module Stratosphere.Timestream.Table.S3ConfigurationProperty (
S3ConfigurationProperty(..), mkS3ConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3ConfigurationProperty
=
S3ConfigurationProperty {S3ConfigurationProperty -> ()
haddock_workaround_ :: (),
S3ConfigurationProperty -> Value Text
bucketName :: (Value Prelude.Text),
S3ConfigurationProperty -> Value Text
encryptionOption :: (Value Prelude.Text),
S3ConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
(S3ConfigurationProperty -> S3ConfigurationProperty -> Bool)
-> (S3ConfigurationProperty -> S3ConfigurationProperty -> Bool)
-> Eq S3ConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
== :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
$c/= :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
/= :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
Prelude.Eq, Int -> S3ConfigurationProperty -> ShowS
[S3ConfigurationProperty] -> ShowS
S3ConfigurationProperty -> String
(Int -> S3ConfigurationProperty -> ShowS)
-> (S3ConfigurationProperty -> String)
-> ([S3ConfigurationProperty] -> ShowS)
-> Show S3ConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3ConfigurationProperty -> ShowS
showsPrec :: Int -> S3ConfigurationProperty -> ShowS
$cshow :: S3ConfigurationProperty -> String
show :: S3ConfigurationProperty -> String
$cshowList :: [S3ConfigurationProperty] -> ShowS
showList :: [S3ConfigurationProperty] -> ShowS
Prelude.Show)
mkS3ConfigurationProperty ::
Value Prelude.Text -> Value Prelude.Text -> S3ConfigurationProperty
mkS3ConfigurationProperty :: Value Text -> Value Text -> S3ConfigurationProperty
mkS3ConfigurationProperty Value Text
bucketName Value Text
encryptionOption
= S3ConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName,
encryptionOption :: Value Text
encryptionOption = Value Text
encryptionOption, kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
objectKeyPrefix :: Maybe (Value Text)
objectKeyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3ConfigurationProperty where
toResourceProperties :: S3ConfigurationProperty -> ResourceProperties
toResourceProperties S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Timestream::Table.S3Configuration",
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
"BucketName" 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
bucketName,
Key
"EncryptionOption" 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
encryptionOption]
([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
"KmsKeyId" (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)
kmsKeyId,
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
"ObjectKeyPrefix" (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)
objectKeyPrefix]))}
instance JSON.ToJSON S3ConfigurationProperty where
toJSON :: S3ConfigurationProperty -> Value
toJSON S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: 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
"BucketName" 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
bucketName,
Key
"EncryptionOption" 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
encryptionOption]
([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
"KmsKeyId" (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)
kmsKeyId,
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
"ObjectKeyPrefix" (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)
objectKeyPrefix])))
instance Property "BucketName" S3ConfigurationProperty where
type PropertyType "BucketName" S3ConfigurationProperty = Value Prelude.Text
set :: PropertyType "BucketName" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "BucketName" S3ConfigurationProperty
newValue S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
= S3ConfigurationProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3ConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
instance Property "EncryptionOption" S3ConfigurationProperty where
type PropertyType "EncryptionOption" S3ConfigurationProperty = Value Prelude.Text
set :: PropertyType "EncryptionOption" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "EncryptionOption" S3ConfigurationProperty
newValue S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
= S3ConfigurationProperty {encryptionOption :: Value Text
encryptionOption = PropertyType "EncryptionOption" S3ConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
instance Property "KmsKeyId" S3ConfigurationProperty where
type PropertyType "KmsKeyId" S3ConfigurationProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "KmsKeyId" S3ConfigurationProperty
newValue S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
= S3ConfigurationProperty {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" S3ConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
objectKeyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
objectKeyPrefix :: Maybe (Value Text)
..}
instance Property "ObjectKeyPrefix" S3ConfigurationProperty where
type PropertyType "ObjectKeyPrefix" S3ConfigurationProperty = Value Prelude.Text
set :: PropertyType "ObjectKeyPrefix" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "ObjectKeyPrefix" S3ConfigurationProperty
newValue S3ConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
encryptionOption :: S3ConfigurationProperty -> Value Text
kmsKeyId :: S3ConfigurationProperty -> Maybe (Value Text)
objectKeyPrefix :: S3ConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
objectKeyPrefix :: Maybe (Value Text)
..}
= S3ConfigurationProperty
{objectKeyPrefix :: Maybe (Value Text)
objectKeyPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObjectKeyPrefix" S3ConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketName :: Value Text
encryptionOption :: Value Text
kmsKeyId :: Maybe (Value Text)
..}