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