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