module Stratosphere.SES.EmailIdentity.ConfigurationSetAttributesProperty (
ConfigurationSetAttributesProperty(..),
mkConfigurationSetAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationSetAttributesProperty
=
ConfigurationSetAttributesProperty {ConfigurationSetAttributesProperty -> ()
haddock_workaround_ :: (),
ConfigurationSetAttributesProperty -> Maybe (Value Text)
configurationSetName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool
(ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool)
-> (ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool)
-> Eq ConfigurationSetAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool
== :: ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool
$c/= :: ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool
/= :: ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty -> Bool
Prelude.Eq, Int -> ConfigurationSetAttributesProperty -> ShowS
[ConfigurationSetAttributesProperty] -> ShowS
ConfigurationSetAttributesProperty -> String
(Int -> ConfigurationSetAttributesProperty -> ShowS)
-> (ConfigurationSetAttributesProperty -> String)
-> ([ConfigurationSetAttributesProperty] -> ShowS)
-> Show ConfigurationSetAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationSetAttributesProperty -> ShowS
showsPrec :: Int -> ConfigurationSetAttributesProperty -> ShowS
$cshow :: ConfigurationSetAttributesProperty -> String
show :: ConfigurationSetAttributesProperty -> String
$cshowList :: [ConfigurationSetAttributesProperty] -> ShowS
showList :: [ConfigurationSetAttributesProperty] -> ShowS
Prelude.Show)
mkConfigurationSetAttributesProperty ::
ConfigurationSetAttributesProperty
mkConfigurationSetAttributesProperty :: ConfigurationSetAttributesProperty
mkConfigurationSetAttributesProperty
= ConfigurationSetAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configurationSetName :: Maybe (Value Text)
configurationSetName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationSetAttributesProperty where
toResourceProperties :: ConfigurationSetAttributesProperty -> ResourceProperties
toResourceProperties ConfigurationSetAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationSetAttributesProperty -> ()
configurationSetName :: ConfigurationSetAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationSetName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::EmailIdentity.ConfigurationSetAttributes",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"ConfigurationSetName"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
configurationSetName])}
instance JSON.ToJSON ConfigurationSetAttributesProperty where
toJSON :: ConfigurationSetAttributesProperty -> Value
toJSON ConfigurationSetAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationSetAttributesProperty -> ()
configurationSetName :: ConfigurationSetAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationSetName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"ConfigurationSetName"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
configurationSetName]))
instance Property "ConfigurationSetName" ConfigurationSetAttributesProperty where
type PropertyType "ConfigurationSetName" ConfigurationSetAttributesProperty = Value Prelude.Text
set :: PropertyType
"ConfigurationSetName" ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty
-> ConfigurationSetAttributesProperty
set PropertyType
"ConfigurationSetName" ConfigurationSetAttributesProperty
newValue ConfigurationSetAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationSetAttributesProperty -> ()
configurationSetName :: ConfigurationSetAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
configurationSetName :: Maybe (Value Text)
..}
= ConfigurationSetAttributesProperty
{configurationSetName :: Maybe (Value Text)
configurationSetName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConfigurationSetName" ConfigurationSetAttributesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}