module Stratosphere.Deadline.Queue.PosixUserProperty (
PosixUserProperty(..), mkPosixUserProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PosixUserProperty
=
PosixUserProperty {PosixUserProperty -> ()
haddock_workaround_ :: (),
PosixUserProperty -> Value Text
group :: (Value Prelude.Text),
PosixUserProperty -> Value Text
user :: (Value Prelude.Text)}
deriving stock (PosixUserProperty -> PosixUserProperty -> Bool
(PosixUserProperty -> PosixUserProperty -> Bool)
-> (PosixUserProperty -> PosixUserProperty -> Bool)
-> Eq PosixUserProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PosixUserProperty -> PosixUserProperty -> Bool
== :: PosixUserProperty -> PosixUserProperty -> Bool
$c/= :: PosixUserProperty -> PosixUserProperty -> Bool
/= :: PosixUserProperty -> PosixUserProperty -> Bool
Prelude.Eq, Int -> PosixUserProperty -> ShowS
[PosixUserProperty] -> ShowS
PosixUserProperty -> String
(Int -> PosixUserProperty -> ShowS)
-> (PosixUserProperty -> String)
-> ([PosixUserProperty] -> ShowS)
-> Show PosixUserProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PosixUserProperty -> ShowS
showsPrec :: Int -> PosixUserProperty -> ShowS
$cshow :: PosixUserProperty -> String
show :: PosixUserProperty -> String
$cshowList :: [PosixUserProperty] -> ShowS
showList :: [PosixUserProperty] -> ShowS
Prelude.Show)
mkPosixUserProperty ::
Value Prelude.Text -> Value Prelude.Text -> PosixUserProperty
mkPosixUserProperty :: Value Text -> Value Text -> PosixUserProperty
mkPosixUserProperty Value Text
group Value Text
user
= PosixUserProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), group :: Value Text
group = Value Text
group, user :: Value Text
user = Value Text
user}
instance ToResourceProperties PosixUserProperty where
toResourceProperties :: PosixUserProperty -> ResourceProperties
toResourceProperties PosixUserProperty {()
Value Text
haddock_workaround_ :: PosixUserProperty -> ()
group :: PosixUserProperty -> Value Text
user :: PosixUserProperty -> Value Text
haddock_workaround_ :: ()
group :: Value Text
user :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Deadline::Queue.PosixUser",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Group" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
group, Key
"User" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
user]}
instance JSON.ToJSON PosixUserProperty where
toJSON :: PosixUserProperty -> Value
toJSON PosixUserProperty {()
Value Text
haddock_workaround_ :: PosixUserProperty -> ()
group :: PosixUserProperty -> Value Text
user :: PosixUserProperty -> Value Text
haddock_workaround_ :: ()
group :: Value Text
user :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Group" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
group, Key
"User" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
user]
instance Property "Group" PosixUserProperty where
type PropertyType "Group" PosixUserProperty = Value Prelude.Text
set :: PropertyType "Group" PosixUserProperty
-> PosixUserProperty -> PosixUserProperty
set PropertyType "Group" PosixUserProperty
newValue PosixUserProperty {()
Value Text
haddock_workaround_ :: PosixUserProperty -> ()
group :: PosixUserProperty -> Value Text
user :: PosixUserProperty -> Value Text
haddock_workaround_ :: ()
group :: Value Text
user :: Value Text
..}
= PosixUserProperty {group :: Value Text
group = PropertyType "Group" PosixUserProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
user :: Value Text
haddock_workaround_ :: ()
user :: Value Text
..}
instance Property "User" PosixUserProperty where
type PropertyType "User" PosixUserProperty = Value Prelude.Text
set :: PropertyType "User" PosixUserProperty
-> PosixUserProperty -> PosixUserProperty
set PropertyType "User" PosixUserProperty
newValue PosixUserProperty {()
Value Text
haddock_workaround_ :: PosixUserProperty -> ()
group :: PosixUserProperty -> Value Text
user :: PosixUserProperty -> Value Text
haddock_workaround_ :: ()
group :: Value Text
user :: Value Text
..}
= PosixUserProperty {user :: Value Text
user = PropertyType "User" PosixUserProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
group :: Value Text
haddock_workaround_ :: ()
group :: Value Text
..}