module Stratosphere.SES.EmailIdentity.DkimAttributesProperty (
        DkimAttributesProperty(..), mkDkimAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DkimAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-emailidentity-dkimattributes.html>
    DkimAttributesProperty {DkimAttributesProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-emailidentity-dkimattributes.html#cfn-ses-emailidentity-dkimattributes-signingenabled>
                            DkimAttributesProperty -> Maybe (Value Bool)
signingEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (DkimAttributesProperty -> DkimAttributesProperty -> Bool
(DkimAttributesProperty -> DkimAttributesProperty -> Bool)
-> (DkimAttributesProperty -> DkimAttributesProperty -> Bool)
-> Eq DkimAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DkimAttributesProperty -> DkimAttributesProperty -> Bool
== :: DkimAttributesProperty -> DkimAttributesProperty -> Bool
$c/= :: DkimAttributesProperty -> DkimAttributesProperty -> Bool
/= :: DkimAttributesProperty -> DkimAttributesProperty -> Bool
Prelude.Eq, Int -> DkimAttributesProperty -> ShowS
[DkimAttributesProperty] -> ShowS
DkimAttributesProperty -> String
(Int -> DkimAttributesProperty -> ShowS)
-> (DkimAttributesProperty -> String)
-> ([DkimAttributesProperty] -> ShowS)
-> Show DkimAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DkimAttributesProperty -> ShowS
showsPrec :: Int -> DkimAttributesProperty -> ShowS
$cshow :: DkimAttributesProperty -> String
show :: DkimAttributesProperty -> String
$cshowList :: [DkimAttributesProperty] -> ShowS
showList :: [DkimAttributesProperty] -> ShowS
Prelude.Show)
mkDkimAttributesProperty :: DkimAttributesProperty
mkDkimAttributesProperty :: DkimAttributesProperty
mkDkimAttributesProperty
  = DkimAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), signingEnabled :: Maybe (Value Bool)
signingEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DkimAttributesProperty where
  toResourceProperties :: DkimAttributesProperty -> ResourceProperties
toResourceProperties DkimAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DkimAttributesProperty -> ()
signingEnabled :: DkimAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
signingEnabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SES::EmailIdentity.DkimAttributes",
         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 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
"SigningEnabled" (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)
signingEnabled])}
instance JSON.ToJSON DkimAttributesProperty where
  toJSON :: DkimAttributesProperty -> Value
toJSON DkimAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DkimAttributesProperty -> ()
signingEnabled :: DkimAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
signingEnabled :: Maybe (Value Bool)
..}
    = [(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 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
"SigningEnabled" (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)
signingEnabled]))
instance Property "SigningEnabled" DkimAttributesProperty where
  type PropertyType "SigningEnabled" DkimAttributesProperty = Value Prelude.Bool
  set :: PropertyType "SigningEnabled" DkimAttributesProperty
-> DkimAttributesProperty -> DkimAttributesProperty
set PropertyType "SigningEnabled" DkimAttributesProperty
newValue DkimAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DkimAttributesProperty -> ()
signingEnabled :: DkimAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
signingEnabled :: Maybe (Value Bool)
..}
    = DkimAttributesProperty
        {signingEnabled :: Maybe (Value Bool)
signingEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SigningEnabled" DkimAttributesProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}