module Stratosphere.SSM.Association.S3OutputLocationProperty (
S3OutputLocationProperty(..), mkS3OutputLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3OutputLocationProperty
=
S3OutputLocationProperty {S3OutputLocationProperty -> ()
haddock_workaround_ :: (),
S3OutputLocationProperty -> Maybe (Value Text)
outputS3BucketName :: (Prelude.Maybe (Value Prelude.Text)),
S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: (Prelude.Maybe (Value Prelude.Text)),
S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (S3OutputLocationProperty -> S3OutputLocationProperty -> Bool
(S3OutputLocationProperty -> S3OutputLocationProperty -> Bool)
-> (S3OutputLocationProperty -> S3OutputLocationProperty -> Bool)
-> Eq S3OutputLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3OutputLocationProperty -> S3OutputLocationProperty -> Bool
== :: S3OutputLocationProperty -> S3OutputLocationProperty -> Bool
$c/= :: S3OutputLocationProperty -> S3OutputLocationProperty -> Bool
/= :: S3OutputLocationProperty -> S3OutputLocationProperty -> Bool
Prelude.Eq, Int -> S3OutputLocationProperty -> ShowS
[S3OutputLocationProperty] -> ShowS
S3OutputLocationProperty -> String
(Int -> S3OutputLocationProperty -> ShowS)
-> (S3OutputLocationProperty -> String)
-> ([S3OutputLocationProperty] -> ShowS)
-> Show S3OutputLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3OutputLocationProperty -> ShowS
showsPrec :: Int -> S3OutputLocationProperty -> ShowS
$cshow :: S3OutputLocationProperty -> String
show :: S3OutputLocationProperty -> String
$cshowList :: [S3OutputLocationProperty] -> ShowS
showList :: [S3OutputLocationProperty] -> ShowS
Prelude.Show)
mkS3OutputLocationProperty :: S3OutputLocationProperty
mkS3OutputLocationProperty :: S3OutputLocationProperty
mkS3OutputLocationProperty
= S3OutputLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), outputS3BucketName :: Maybe (Value Text)
outputS3BucketName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
outputS3KeyPrefix :: Maybe (Value Text)
outputS3KeyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
outputS3Region :: Maybe (Value Text)
outputS3Region = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3OutputLocationProperty where
toResourceProperties :: S3OutputLocationProperty -> ResourceProperties
toResourceProperties S3OutputLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3OutputLocationProperty -> ()
outputS3BucketName :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: S3OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::Association.S3OutputLocation",
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
"OutputS3BucketName" (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)
outputS3BucketName,
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
"OutputS3KeyPrefix" (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)
outputS3KeyPrefix,
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
"OutputS3Region" (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)
outputS3Region])}
instance JSON.ToJSON S3OutputLocationProperty where
toJSON :: S3OutputLocationProperty -> Value
toJSON S3OutputLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3OutputLocationProperty -> ()
outputS3BucketName :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: S3OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: 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
"OutputS3BucketName" (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)
outputS3BucketName,
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
"OutputS3KeyPrefix" (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)
outputS3KeyPrefix,
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
"OutputS3Region" (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)
outputS3Region]))
instance Property "OutputS3BucketName" S3OutputLocationProperty where
type PropertyType "OutputS3BucketName" S3OutputLocationProperty = Value Prelude.Text
set :: PropertyType "OutputS3BucketName" S3OutputLocationProperty
-> S3OutputLocationProperty -> S3OutputLocationProperty
set PropertyType "OutputS3BucketName" S3OutputLocationProperty
newValue S3OutputLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3OutputLocationProperty -> ()
outputS3BucketName :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: S3OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
= S3OutputLocationProperty
{outputS3BucketName :: Maybe (Value Text)
outputS3BucketName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputS3BucketName" S3OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
haddock_workaround_ :: ()
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
instance Property "OutputS3KeyPrefix" S3OutputLocationProperty where
type PropertyType "OutputS3KeyPrefix" S3OutputLocationProperty = Value Prelude.Text
set :: PropertyType "OutputS3KeyPrefix" S3OutputLocationProperty
-> S3OutputLocationProperty -> S3OutputLocationProperty
set PropertyType "OutputS3KeyPrefix" S3OutputLocationProperty
newValue S3OutputLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3OutputLocationProperty -> ()
outputS3BucketName :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: S3OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
= S3OutputLocationProperty
{outputS3KeyPrefix :: Maybe (Value Text)
outputS3KeyPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputS3KeyPrefix" S3OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
instance Property "OutputS3Region" S3OutputLocationProperty where
type PropertyType "OutputS3Region" S3OutputLocationProperty = Value Prelude.Text
set :: PropertyType "OutputS3Region" S3OutputLocationProperty
-> S3OutputLocationProperty -> S3OutputLocationProperty
set PropertyType "OutputS3Region" S3OutputLocationProperty
newValue S3OutputLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3OutputLocationProperty -> ()
outputS3BucketName :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3KeyPrefix :: S3OutputLocationProperty -> Maybe (Value Text)
outputS3Region :: S3OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
outputS3Region :: Maybe (Value Text)
..}
= S3OutputLocationProperty
{outputS3Region :: Maybe (Value Text)
outputS3Region = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputS3Region" S3OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
outputS3BucketName :: Maybe (Value Text)
outputS3KeyPrefix :: Maybe (Value Text)
..}