module Stratosphere.SES.VdmAttributes.GuardianAttributesProperty (
GuardianAttributesProperty(..), mkGuardianAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GuardianAttributesProperty
=
GuardianAttributesProperty {GuardianAttributesProperty -> ()
haddock_workaround_ :: (),
GuardianAttributesProperty -> Maybe (Value Text)
optimizedSharedDelivery :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (GuardianAttributesProperty -> GuardianAttributesProperty -> Bool
(GuardianAttributesProperty -> GuardianAttributesProperty -> Bool)
-> (GuardianAttributesProperty
-> GuardianAttributesProperty -> Bool)
-> Eq GuardianAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GuardianAttributesProperty -> GuardianAttributesProperty -> Bool
== :: GuardianAttributesProperty -> GuardianAttributesProperty -> Bool
$c/= :: GuardianAttributesProperty -> GuardianAttributesProperty -> Bool
/= :: GuardianAttributesProperty -> GuardianAttributesProperty -> Bool
Prelude.Eq, Int -> GuardianAttributesProperty -> ShowS
[GuardianAttributesProperty] -> ShowS
GuardianAttributesProperty -> String
(Int -> GuardianAttributesProperty -> ShowS)
-> (GuardianAttributesProperty -> String)
-> ([GuardianAttributesProperty] -> ShowS)
-> Show GuardianAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GuardianAttributesProperty -> ShowS
showsPrec :: Int -> GuardianAttributesProperty -> ShowS
$cshow :: GuardianAttributesProperty -> String
show :: GuardianAttributesProperty -> String
$cshowList :: [GuardianAttributesProperty] -> ShowS
showList :: [GuardianAttributesProperty] -> ShowS
Prelude.Show)
mkGuardianAttributesProperty :: GuardianAttributesProperty
mkGuardianAttributesProperty :: GuardianAttributesProperty
mkGuardianAttributesProperty
= GuardianAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
optimizedSharedDelivery :: Maybe (Value Text)
optimizedSharedDelivery = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GuardianAttributesProperty where
toResourceProperties :: GuardianAttributesProperty -> ResourceProperties
toResourceProperties GuardianAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: GuardianAttributesProperty -> ()
optimizedSharedDelivery :: GuardianAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
optimizedSharedDelivery :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::VdmAttributes.GuardianAttributes",
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
"OptimizedSharedDelivery"
(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)
optimizedSharedDelivery])}
instance JSON.ToJSON GuardianAttributesProperty where
toJSON :: GuardianAttributesProperty -> Value
toJSON GuardianAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: GuardianAttributesProperty -> ()
optimizedSharedDelivery :: GuardianAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
optimizedSharedDelivery :: 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
"OptimizedSharedDelivery"
(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)
optimizedSharedDelivery]))
instance Property "OptimizedSharedDelivery" GuardianAttributesProperty where
type PropertyType "OptimizedSharedDelivery" GuardianAttributesProperty = Value Prelude.Text
set :: PropertyType "OptimizedSharedDelivery" GuardianAttributesProperty
-> GuardianAttributesProperty -> GuardianAttributesProperty
set PropertyType "OptimizedSharedDelivery" GuardianAttributesProperty
newValue GuardianAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: GuardianAttributesProperty -> ()
optimizedSharedDelivery :: GuardianAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
optimizedSharedDelivery :: Maybe (Value Text)
..}
= GuardianAttributesProperty
{optimizedSharedDelivery :: Maybe (Value Text)
optimizedSharedDelivery = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OptimizedSharedDelivery" GuardianAttributesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}