module Stratosphere.SES.MailManagerRuleSet.DeliverToQBusinessActionProperty (
DeliverToQBusinessActionProperty(..),
mkDeliverToQBusinessActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeliverToQBusinessActionProperty
=
DeliverToQBusinessActionProperty {DeliverToQBusinessActionProperty -> ()
haddock_workaround_ :: (),
DeliverToQBusinessActionProperty -> Maybe (Value Text)
actionFailurePolicy :: (Prelude.Maybe (Value Prelude.Text)),
DeliverToQBusinessActionProperty -> Value Text
applicationId :: (Value Prelude.Text),
DeliverToQBusinessActionProperty -> Value Text
indexId :: (Value Prelude.Text),
DeliverToQBusinessActionProperty -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool
(DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool)
-> (DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool)
-> Eq DeliverToQBusinessActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool
== :: DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool
$c/= :: DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool
/= :: DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty -> Bool
Prelude.Eq, Int -> DeliverToQBusinessActionProperty -> ShowS
[DeliverToQBusinessActionProperty] -> ShowS
DeliverToQBusinessActionProperty -> String
(Int -> DeliverToQBusinessActionProperty -> ShowS)
-> (DeliverToQBusinessActionProperty -> String)
-> ([DeliverToQBusinessActionProperty] -> ShowS)
-> Show DeliverToQBusinessActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeliverToQBusinessActionProperty -> ShowS
showsPrec :: Int -> DeliverToQBusinessActionProperty -> ShowS
$cshow :: DeliverToQBusinessActionProperty -> String
show :: DeliverToQBusinessActionProperty -> String
$cshowList :: [DeliverToQBusinessActionProperty] -> ShowS
showList :: [DeliverToQBusinessActionProperty] -> ShowS
Prelude.Show)
mkDeliverToQBusinessActionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> DeliverToQBusinessActionProperty
mkDeliverToQBusinessActionProperty :: Value Text
-> Value Text -> Value Text -> DeliverToQBusinessActionProperty
mkDeliverToQBusinessActionProperty Value Text
applicationId Value Text
indexId Value Text
roleArn
= DeliverToQBusinessActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), applicationId :: Value Text
applicationId = Value Text
applicationId,
indexId :: Value Text
indexId = Value Text
indexId, roleArn :: Value Text
roleArn = Value Text
roleArn,
actionFailurePolicy :: Maybe (Value Text)
actionFailurePolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeliverToQBusinessActionProperty where
toResourceProperties :: DeliverToQBusinessActionProperty -> ResourceProperties
toResourceProperties DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::MailManagerRuleSet.DeliverToQBusinessAction",
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
"ApplicationId" 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
applicationId, Key
"IndexId" 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
indexId,
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 DeliverToQBusinessActionProperty where
toJSON :: DeliverToQBusinessActionProperty -> Value
toJSON DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: 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
"ApplicationId" 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
applicationId, Key
"IndexId" 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
indexId,
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" DeliverToQBusinessActionProperty where
type PropertyType "ActionFailurePolicy" DeliverToQBusinessActionProperty = Value Prelude.Text
set :: PropertyType "ActionFailurePolicy" DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
set PropertyType "ActionFailurePolicy" DeliverToQBusinessActionProperty
newValue DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
= DeliverToQBusinessActionProperty
{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" DeliverToQBusinessActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
instance Property "ApplicationId" DeliverToQBusinessActionProperty where
type PropertyType "ApplicationId" DeliverToQBusinessActionProperty = Value Prelude.Text
set :: PropertyType "ApplicationId" DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
set PropertyType "ApplicationId" DeliverToQBusinessActionProperty
newValue DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
= DeliverToQBusinessActionProperty {applicationId :: Value Text
applicationId = PropertyType "ApplicationId" DeliverToQBusinessActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
indexId :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
indexId :: Value Text
roleArn :: Value Text
..}
instance Property "IndexId" DeliverToQBusinessActionProperty where
type PropertyType "IndexId" DeliverToQBusinessActionProperty = Value Prelude.Text
set :: PropertyType "IndexId" DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
set PropertyType "IndexId" DeliverToQBusinessActionProperty
newValue DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
= DeliverToQBusinessActionProperty {indexId :: Value Text
indexId = PropertyType "IndexId" DeliverToQBusinessActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
roleArn :: Value Text
..}
instance Property "RoleArn" DeliverToQBusinessActionProperty where
type PropertyType "RoleArn" DeliverToQBusinessActionProperty = Value Prelude.Text
set :: PropertyType "RoleArn" DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
-> DeliverToQBusinessActionProperty
set PropertyType "RoleArn" DeliverToQBusinessActionProperty
newValue DeliverToQBusinessActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliverToQBusinessActionProperty -> ()
actionFailurePolicy :: DeliverToQBusinessActionProperty -> Maybe (Value Text)
applicationId :: DeliverToQBusinessActionProperty -> Value Text
indexId :: DeliverToQBusinessActionProperty -> Value Text
roleArn :: DeliverToQBusinessActionProperty -> Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
roleArn :: Value Text
..}
= DeliverToQBusinessActionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" DeliverToQBusinessActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
applicationId :: Value Text
indexId :: Value Text
..}