module Stratosphere.SES.MailManagerRuleSet.S3ActionProperty (
S3ActionProperty(..), mkS3ActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3ActionProperty
=
S3ActionProperty {S3ActionProperty -> ()
haddock_workaround_ :: (),
S3ActionProperty -> Maybe (Value Text)
actionFailurePolicy :: (Prelude.Maybe (Value Prelude.Text)),
S3ActionProperty -> Value Text
roleArn :: (Value Prelude.Text),
S3ActionProperty -> Value Text
s3Bucket :: (Value Prelude.Text),
S3ActionProperty -> Maybe (Value Text)
s3Prefix :: (Prelude.Maybe (Value Prelude.Text)),
S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (S3ActionProperty -> S3ActionProperty -> Bool
(S3ActionProperty -> S3ActionProperty -> Bool)
-> (S3ActionProperty -> S3ActionProperty -> Bool)
-> Eq S3ActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3ActionProperty -> S3ActionProperty -> Bool
== :: S3ActionProperty -> S3ActionProperty -> Bool
$c/= :: S3ActionProperty -> S3ActionProperty -> Bool
/= :: S3ActionProperty -> S3ActionProperty -> Bool
Prelude.Eq, Int -> S3ActionProperty -> ShowS
[S3ActionProperty] -> ShowS
S3ActionProperty -> String
(Int -> S3ActionProperty -> ShowS)
-> (S3ActionProperty -> String)
-> ([S3ActionProperty] -> ShowS)
-> Show S3ActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3ActionProperty -> ShowS
showsPrec :: Int -> S3ActionProperty -> ShowS
$cshow :: S3ActionProperty -> String
show :: S3ActionProperty -> String
$cshowList :: [S3ActionProperty] -> ShowS
showList :: [S3ActionProperty] -> ShowS
Prelude.Show)
mkS3ActionProperty ::
Value Prelude.Text -> Value Prelude.Text -> S3ActionProperty
mkS3ActionProperty :: Value Text -> Value Text -> S3ActionProperty
mkS3ActionProperty Value Text
roleArn Value Text
s3Bucket
= S3ActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn, s3Bucket :: Value Text
s3Bucket = Value Text
s3Bucket,
actionFailurePolicy :: Maybe (Value Text)
actionFailurePolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3Prefix :: Maybe (Value Text)
s3Prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
s3SseKmsKeyId :: Maybe (Value Text)
s3SseKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3ActionProperty where
toResourceProperties :: S3ActionProperty -> ResourceProperties
toResourceProperties S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::MailManagerRuleSet.S3Action",
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, Key
"S3Bucket" 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
s3Bucket]
([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,
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
"S3Prefix" (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)
s3Prefix,
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
"S3SseKmsKeyId" (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)
s3SseKmsKeyId]))}
instance JSON.ToJSON S3ActionProperty where
toJSON :: S3ActionProperty -> Value
toJSON S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (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, Key
"S3Bucket" 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
s3Bucket]
([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,
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
"S3Prefix" (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)
s3Prefix,
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
"S3SseKmsKeyId" (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)
s3SseKmsKeyId])))
instance Property "ActionFailurePolicy" S3ActionProperty where
type PropertyType "ActionFailurePolicy" S3ActionProperty = Value Prelude.Text
set :: PropertyType "ActionFailurePolicy" S3ActionProperty
-> S3ActionProperty -> S3ActionProperty
set PropertyType "ActionFailurePolicy" S3ActionProperty
newValue S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= S3ActionProperty
{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" S3ActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
instance Property "RoleArn" S3ActionProperty where
type PropertyType "RoleArn" S3ActionProperty = Value Prelude.Text
set :: PropertyType "RoleArn" S3ActionProperty
-> S3ActionProperty -> S3ActionProperty
set PropertyType "RoleArn" S3ActionProperty
newValue S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= S3ActionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" S3ActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
instance Property "S3Bucket" S3ActionProperty where
type PropertyType "S3Bucket" S3ActionProperty = Value Prelude.Text
set :: PropertyType "S3Bucket" S3ActionProperty
-> S3ActionProperty -> S3ActionProperty
set PropertyType "S3Bucket" S3ActionProperty
newValue S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= S3ActionProperty {s3Bucket :: Value Text
s3Bucket = PropertyType "S3Bucket" S3ActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
instance Property "S3Prefix" S3ActionProperty where
type PropertyType "S3Prefix" S3ActionProperty = Value Prelude.Text
set :: PropertyType "S3Prefix" S3ActionProperty
-> S3ActionProperty -> S3ActionProperty
set PropertyType "S3Prefix" S3ActionProperty
newValue S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= S3ActionProperty {s3Prefix :: Maybe (Value Text)
s3Prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Prefix" S3ActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3SseKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3SseKmsKeyId :: Maybe (Value Text)
..}
instance Property "S3SseKmsKeyId" S3ActionProperty where
type PropertyType "S3SseKmsKeyId" S3ActionProperty = Value Prelude.Text
set :: PropertyType "S3SseKmsKeyId" S3ActionProperty
-> S3ActionProperty -> S3ActionProperty
set PropertyType "S3SseKmsKeyId" S3ActionProperty
newValue S3ActionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ActionProperty -> ()
actionFailurePolicy :: S3ActionProperty -> Maybe (Value Text)
roleArn :: S3ActionProperty -> Value Text
s3Bucket :: S3ActionProperty -> Value Text
s3Prefix :: S3ActionProperty -> Maybe (Value Text)
s3SseKmsKeyId :: S3ActionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
s3SseKmsKeyId :: Maybe (Value Text)
..}
= S3ActionProperty {s3SseKmsKeyId :: Maybe (Value Text)
s3SseKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3SseKmsKeyId" S3ActionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
actionFailurePolicy :: Maybe (Value Text)
roleArn :: Value Text
s3Bucket :: Value Text
s3Prefix :: Maybe (Value Text)
..}