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