module Stratosphere.AppStream.StackUserAssociation (
StackUserAssociation(..), mkStackUserAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StackUserAssociation
=
StackUserAssociation {StackUserAssociation -> ()
haddock_workaround_ :: (),
StackUserAssociation -> Value Text
authenticationType :: (Value Prelude.Text),
StackUserAssociation -> Maybe (Value Bool)
sendEmailNotification :: (Prelude.Maybe (Value Prelude.Bool)),
StackUserAssociation -> Value Text
stackName :: (Value Prelude.Text),
StackUserAssociation -> Value Text
userName :: (Value Prelude.Text)}
deriving stock (StackUserAssociation -> StackUserAssociation -> Bool
(StackUserAssociation -> StackUserAssociation -> Bool)
-> (StackUserAssociation -> StackUserAssociation -> Bool)
-> Eq StackUserAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StackUserAssociation -> StackUserAssociation -> Bool
== :: StackUserAssociation -> StackUserAssociation -> Bool
$c/= :: StackUserAssociation -> StackUserAssociation -> Bool
/= :: StackUserAssociation -> StackUserAssociation -> Bool
Prelude.Eq, Int -> StackUserAssociation -> ShowS
[StackUserAssociation] -> ShowS
StackUserAssociation -> String
(Int -> StackUserAssociation -> ShowS)
-> (StackUserAssociation -> String)
-> ([StackUserAssociation] -> ShowS)
-> Show StackUserAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StackUserAssociation -> ShowS
showsPrec :: Int -> StackUserAssociation -> ShowS
$cshow :: StackUserAssociation -> String
show :: StackUserAssociation -> String
$cshowList :: [StackUserAssociation] -> ShowS
showList :: [StackUserAssociation] -> ShowS
Prelude.Show)
mkStackUserAssociation ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> StackUserAssociation
mkStackUserAssociation :: Value Text -> Value Text -> Value Text -> StackUserAssociation
mkStackUserAssociation Value Text
authenticationType Value Text
stackName Value Text
userName
= StackUserAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), authenticationType :: Value Text
authenticationType = Value Text
authenticationType,
stackName :: Value Text
stackName = Value Text
stackName, userName :: Value Text
userName = Value Text
userName,
sendEmailNotification :: Maybe (Value Bool)
sendEmailNotification = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StackUserAssociation where
toResourceProperties :: StackUserAssociation -> ResourceProperties
toResourceProperties StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppStream::StackUserAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AuthenticationType" 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
authenticationType,
Key
"StackName" 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
stackName, Key
"UserName" 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
userName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SendEmailNotification"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
sendEmailNotification]))}
instance JSON.ToJSON StackUserAssociation where
toJSON :: StackUserAssociation -> Value
toJSON StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AuthenticationType" 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
authenticationType,
Key
"StackName" 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
stackName, Key
"UserName" 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
userName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SendEmailNotification"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
sendEmailNotification])))
instance Property "AuthenticationType" StackUserAssociation where
type PropertyType "AuthenticationType" StackUserAssociation = Value Prelude.Text
set :: PropertyType "AuthenticationType" StackUserAssociation
-> StackUserAssociation -> StackUserAssociation
set PropertyType "AuthenticationType" StackUserAssociation
newValue StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= StackUserAssociation {authenticationType :: Value Text
authenticationType = PropertyType "AuthenticationType" StackUserAssociation
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
haddock_workaround_ :: ()
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
instance Property "SendEmailNotification" StackUserAssociation where
type PropertyType "SendEmailNotification" StackUserAssociation = Value Prelude.Bool
set :: PropertyType "SendEmailNotification" StackUserAssociation
-> StackUserAssociation -> StackUserAssociation
set PropertyType "SendEmailNotification" StackUserAssociation
newValue StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= StackUserAssociation
{sendEmailNotification :: Maybe (Value Bool)
sendEmailNotification = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SendEmailNotification" StackUserAssociation
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
stackName :: Value Text
userName :: Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
stackName :: Value Text
userName :: Value Text
..}
instance Property "StackName" StackUserAssociation where
type PropertyType "StackName" StackUserAssociation = Value Prelude.Text
set :: PropertyType "StackName" StackUserAssociation
-> StackUserAssociation -> StackUserAssociation
set PropertyType "StackName" StackUserAssociation
newValue StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= StackUserAssociation {stackName :: Value Text
stackName = PropertyType "StackName" StackUserAssociation
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
userName :: Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
userName :: Value Text
..}
instance Property "UserName" StackUserAssociation where
type PropertyType "UserName" StackUserAssociation = Value Prelude.Text
set :: PropertyType "UserName" StackUserAssociation
-> StackUserAssociation -> StackUserAssociation
set PropertyType "UserName" StackUserAssociation
newValue StackUserAssociation {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: StackUserAssociation -> ()
authenticationType :: StackUserAssociation -> Value Text
sendEmailNotification :: StackUserAssociation -> Maybe (Value Bool)
stackName :: StackUserAssociation -> Value Text
userName :: StackUserAssociation -> Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
userName :: Value Text
..}
= StackUserAssociation {userName :: Value Text
userName = PropertyType "UserName" StackUserAssociation
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
sendEmailNotification :: Maybe (Value Bool)
stackName :: Value Text
..}