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