module Stratosphere.SES.MailManagerRuleSet.SendActionProperty (
SendActionProperty(..), mkSendActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SendActionProperty
=
SendActionProperty {SendActionProperty -> ()
haddock_workaround_ :: (),
SendActionProperty -> Maybe (Value Text)
actionFailurePolicy :: (Prelude.Maybe (Value Prelude.Text)),
SendActionProperty -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (SendActionProperty -> SendActionProperty -> Bool
(SendActionProperty -> SendActionProperty -> Bool)
-> (SendActionProperty -> SendActionProperty -> Bool)
-> Eq SendActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SendActionProperty -> SendActionProperty -> Bool
== :: SendActionProperty -> SendActionProperty -> Bool
$c/= :: SendActionProperty -> SendActionProperty -> Bool
/= :: SendActionProperty -> SendActionProperty -> Bool
Prelude.Eq, Int -> SendActionProperty -> ShowS
[SendActionProperty] -> ShowS
SendActionProperty -> String
(Int -> SendActionProperty -> ShowS)
-> (SendActionProperty -> String)
-> ([SendActionProperty] -> ShowS)
-> Show SendActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SendActionProperty -> ShowS
showsPrec :: Int -> SendActionProperty -> ShowS
$cshow :: SendActionProperty -> String
show :: SendActionProperty -> String
$cshowList :: [SendActionProperty] -> ShowS
showList :: [SendActionProperty] -> ShowS
Prelude.Show)
mkSendActionProperty :: Value Prelude.Text -> SendActionProperty
mkSendActionProperty :: Value Text -> SendActionProperty
mkSendActionProperty Value Text
roleArn
= SendActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
actionFailurePolicy :: Maybe (Value Text)
actionFailurePolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SendActionProperty where
toResourceProperties :: SendActionProperty -> ResourceProperties
toResourceProperties SendActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SendActionProperty -> ()
actionFailurePolicy :: SendActionProperty -> Maybe (Value Text)
roleArn :: SendActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::MailManagerRuleSet.SendAction",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"RoleArn" 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..= Value Text
roleArn]
([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
"ActionFailurePolicy"
(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)
actionFailurePolicy]))}
instance JSON.ToJSON SendActionProperty where
toJSON :: SendActionProperty -> Value
toJSON SendActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SendActionProperty -> ()
actionFailurePolicy :: SendActionProperty -> Maybe (Value Text)
roleArn :: SendActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"RoleArn" 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..= Value Text
roleArn]
([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
"ActionFailurePolicy"
(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)
actionFailurePolicy])))
instance Property "ActionFailurePolicy" SendActionProperty where
type PropertyType "ActionFailurePolicy" SendActionProperty = Value Prelude.Text
set :: PropertyType "ActionFailurePolicy" SendActionProperty
-> SendActionProperty -> SendActionProperty
set PropertyType "ActionFailurePolicy" SendActionProperty
newValue SendActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SendActionProperty -> ()
actionFailurePolicy :: SendActionProperty -> Maybe (Value Text)
roleArn :: SendActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
..}
= SendActionProperty
{actionFailurePolicy :: Maybe (Value Text)
actionFailurePolicy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ActionFailurePolicy" SendActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
instance Property "RoleArn" SendActionProperty where
type PropertyType "RoleArn" SendActionProperty = Value Prelude.Text
set :: PropertyType "RoleArn" SendActionProperty
-> SendActionProperty -> SendActionProperty
set PropertyType "RoleArn" SendActionProperty
newValue SendActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SendActionProperty -> ()
actionFailurePolicy :: SendActionProperty -> Maybe (Value Text)
roleArn :: SendActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
..}
= SendActionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" SendActionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
..}