module Stratosphere.S3.Bucket.S3TablesDestinationProperty (
S3TablesDestinationProperty(..), mkS3TablesDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3TablesDestinationProperty
=
S3TablesDestinationProperty {S3TablesDestinationProperty -> ()
haddock_workaround_ :: (),
S3TablesDestinationProperty -> Maybe (Value Text)
tableArn :: (Prelude.Maybe (Value Prelude.Text)),
S3TablesDestinationProperty -> Value Text
tableBucketArn :: (Value Prelude.Text),
S3TablesDestinationProperty -> Value Text
tableName :: (Value Prelude.Text),
S3TablesDestinationProperty -> Maybe (Value Text)
tableNamespace :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (S3TablesDestinationProperty -> S3TablesDestinationProperty -> Bool
(S3TablesDestinationProperty
-> S3TablesDestinationProperty -> Bool)
-> (S3TablesDestinationProperty
-> S3TablesDestinationProperty -> Bool)
-> Eq S3TablesDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3TablesDestinationProperty -> S3TablesDestinationProperty -> Bool
== :: S3TablesDestinationProperty -> S3TablesDestinationProperty -> Bool
$c/= :: S3TablesDestinationProperty -> S3TablesDestinationProperty -> Bool
/= :: S3TablesDestinationProperty -> S3TablesDestinationProperty -> Bool
Prelude.Eq, Int -> S3TablesDestinationProperty -> ShowS
[S3TablesDestinationProperty] -> ShowS
S3TablesDestinationProperty -> String
(Int -> S3TablesDestinationProperty -> ShowS)
-> (S3TablesDestinationProperty -> String)
-> ([S3TablesDestinationProperty] -> ShowS)
-> Show S3TablesDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3TablesDestinationProperty -> ShowS
showsPrec :: Int -> S3TablesDestinationProperty -> ShowS
$cshow :: S3TablesDestinationProperty -> String
show :: S3TablesDestinationProperty -> String
$cshowList :: [S3TablesDestinationProperty] -> ShowS
showList :: [S3TablesDestinationProperty] -> ShowS
Prelude.Show)
mkS3TablesDestinationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> S3TablesDestinationProperty
mkS3TablesDestinationProperty :: Value Text -> Value Text -> S3TablesDestinationProperty
mkS3TablesDestinationProperty Value Text
tableBucketArn Value Text
tableName
= S3TablesDestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), tableBucketArn :: Value Text
tableBucketArn = Value Text
tableBucketArn,
tableName :: Value Text
tableName = Value Text
tableName, tableArn :: Maybe (Value Text)
tableArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tableNamespace :: Maybe (Value Text)
tableNamespace = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3TablesDestinationProperty where
toResourceProperties :: S3TablesDestinationProperty -> ResourceProperties
toResourceProperties S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::Bucket.S3TablesDestination",
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
"TableBucketArn" 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
tableBucketArn,
Key
"TableName" 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
tableName]
([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
"TableArn" (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)
tableArn,
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
"TableNamespace" (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)
tableNamespace]))}
instance JSON.ToJSON S3TablesDestinationProperty where
toJSON :: S3TablesDestinationProperty -> Value
toJSON S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: 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
"TableBucketArn" 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
tableBucketArn,
Key
"TableName" 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
tableName]
([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
"TableArn" (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)
tableArn,
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
"TableNamespace" (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)
tableNamespace])))
instance Property "TableArn" S3TablesDestinationProperty where
type PropertyType "TableArn" S3TablesDestinationProperty = Value Prelude.Text
set :: PropertyType "TableArn" S3TablesDestinationProperty
-> S3TablesDestinationProperty -> S3TablesDestinationProperty
set PropertyType "TableArn" S3TablesDestinationProperty
newValue S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
= S3TablesDestinationProperty
{tableArn :: Maybe (Value Text)
tableArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableArn" S3TablesDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
haddock_workaround_ :: ()
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
instance Property "TableBucketArn" S3TablesDestinationProperty where
type PropertyType "TableBucketArn" S3TablesDestinationProperty = Value Prelude.Text
set :: PropertyType "TableBucketArn" S3TablesDestinationProperty
-> S3TablesDestinationProperty -> S3TablesDestinationProperty
set PropertyType "TableBucketArn" S3TablesDestinationProperty
newValue S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
= S3TablesDestinationProperty {tableBucketArn :: Value Text
tableBucketArn = PropertyType "TableBucketArn" S3TablesDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
instance Property "TableName" S3TablesDestinationProperty where
type PropertyType "TableName" S3TablesDestinationProperty = Value Prelude.Text
set :: PropertyType "TableName" S3TablesDestinationProperty
-> S3TablesDestinationProperty -> S3TablesDestinationProperty
set PropertyType "TableName" S3TablesDestinationProperty
newValue S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
= S3TablesDestinationProperty {tableName :: Value Text
tableName = PropertyType "TableName" S3TablesDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableNamespace :: Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableNamespace :: Maybe (Value Text)
..}
instance Property "TableNamespace" S3TablesDestinationProperty where
type PropertyType "TableNamespace" S3TablesDestinationProperty = Value Prelude.Text
set :: PropertyType "TableNamespace" S3TablesDestinationProperty
-> S3TablesDestinationProperty -> S3TablesDestinationProperty
set PropertyType "TableNamespace" S3TablesDestinationProperty
newValue S3TablesDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3TablesDestinationProperty -> ()
tableArn :: S3TablesDestinationProperty -> Maybe (Value Text)
tableBucketArn :: S3TablesDestinationProperty -> Value Text
tableName :: S3TablesDestinationProperty -> Value Text
tableNamespace :: S3TablesDestinationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
tableNamespace :: Maybe (Value Text)
..}
= S3TablesDestinationProperty
{tableNamespace :: Maybe (Value Text)
tableNamespace = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableNamespace" S3TablesDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
haddock_workaround_ :: ()
tableArn :: Maybe (Value Text)
tableBucketArn :: Value Text
tableName :: Value Text
..}