module Stratosphere.KinesisFirehose.DeliveryStream.DestinationTableConfigurationProperty (
module Exports, DestinationTableConfigurationProperty(..),
mkDestinationTableConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisFirehose.DeliveryStream.PartitionSpecProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DestinationTableConfigurationProperty
=
DestinationTableConfigurationProperty {DestinationTableConfigurationProperty -> ()
haddock_workaround_ :: (),
DestinationTableConfigurationProperty -> Value Text
destinationDatabaseName :: (Value Prelude.Text),
DestinationTableConfigurationProperty -> Value Text
destinationTableName :: (Value Prelude.Text),
DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
partitionSpec :: (Prelude.Maybe PartitionSpecProperty),
DestinationTableConfigurationProperty -> Maybe (Value Text)
s3ErrorOutputPrefix :: (Prelude.Maybe (Value Prelude.Text)),
DestinationTableConfigurationProperty -> Maybe (ValueList Text)
uniqueKeys :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool
(DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool)
-> (DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool)
-> Eq DestinationTableConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool
== :: DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool
$c/= :: DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool
/= :: DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty -> Bool
Prelude.Eq, Int -> DestinationTableConfigurationProperty -> ShowS
[DestinationTableConfigurationProperty] -> ShowS
DestinationTableConfigurationProperty -> String
(Int -> DestinationTableConfigurationProperty -> ShowS)
-> (DestinationTableConfigurationProperty -> String)
-> ([DestinationTableConfigurationProperty] -> ShowS)
-> Show DestinationTableConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DestinationTableConfigurationProperty -> ShowS
showsPrec :: Int -> DestinationTableConfigurationProperty -> ShowS
$cshow :: DestinationTableConfigurationProperty -> String
show :: DestinationTableConfigurationProperty -> String
$cshowList :: [DestinationTableConfigurationProperty] -> ShowS
showList :: [DestinationTableConfigurationProperty] -> ShowS
Prelude.Show)
mkDestinationTableConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> DestinationTableConfigurationProperty
mkDestinationTableConfigurationProperty :: Value Text -> Value Text -> DestinationTableConfigurationProperty
mkDestinationTableConfigurationProperty
Value Text
destinationDatabaseName
Value Text
destinationTableName
= DestinationTableConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
destinationDatabaseName :: Value Text
destinationDatabaseName = Value Text
destinationDatabaseName,
destinationTableName :: Value Text
destinationTableName = Value Text
destinationTableName,
partitionSpec :: Maybe PartitionSpecProperty
partitionSpec = Maybe PartitionSpecProperty
forall a. Maybe a
Prelude.Nothing,
s3ErrorOutputPrefix :: Maybe (Value Text)
s3ErrorOutputPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
uniqueKeys :: Maybe (ValueList Text)
uniqueKeys = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DestinationTableConfigurationProperty where
toResourceProperties :: DestinationTableConfigurationProperty -> ResourceProperties
toResourceProperties DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.DestinationTableConfiguration",
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
"DestinationDatabaseName" 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
destinationDatabaseName,
Key
"DestinationTableName" 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
destinationTableName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> PartitionSpecProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PartitionSpec" (PartitionSpecProperty -> (Key, Value))
-> Maybe PartitionSpecProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PartitionSpecProperty
partitionSpec,
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
"S3ErrorOutputPrefix" (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)
s3ErrorOutputPrefix,
Key -> ValueList 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
"UniqueKeys" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
uniqueKeys]))}
instance JSON.ToJSON DestinationTableConfigurationProperty where
toJSON :: DestinationTableConfigurationProperty -> Value
toJSON DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList 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
"DestinationDatabaseName" 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
destinationDatabaseName,
Key
"DestinationTableName" 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
destinationTableName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> PartitionSpecProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PartitionSpec" (PartitionSpecProperty -> (Key, Value))
-> Maybe PartitionSpecProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PartitionSpecProperty
partitionSpec,
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
"S3ErrorOutputPrefix" (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)
s3ErrorOutputPrefix,
Key -> ValueList 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
"UniqueKeys" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
uniqueKeys])))
instance Property "DestinationDatabaseName" DestinationTableConfigurationProperty where
type PropertyType "DestinationDatabaseName" DestinationTableConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DestinationDatabaseName" DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
set PropertyType
"DestinationDatabaseName" DestinationTableConfigurationProperty
newValue DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= DestinationTableConfigurationProperty
{destinationDatabaseName :: Value Text
destinationDatabaseName = PropertyType
"DestinationDatabaseName" DestinationTableConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: ()
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
instance Property "DestinationTableName" DestinationTableConfigurationProperty where
type PropertyType "DestinationTableName" DestinationTableConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DestinationTableName" DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
set PropertyType
"DestinationTableName" DestinationTableConfigurationProperty
newValue DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= DestinationTableConfigurationProperty
{destinationTableName :: Value Text
destinationTableName = PropertyType
"DestinationTableName" DestinationTableConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
instance Property "PartitionSpec" DestinationTableConfigurationProperty where
type PropertyType "PartitionSpec" DestinationTableConfigurationProperty = PartitionSpecProperty
set :: PropertyType "PartitionSpec" DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
set PropertyType "PartitionSpec" DestinationTableConfigurationProperty
newValue DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= DestinationTableConfigurationProperty
{partitionSpec :: Maybe PartitionSpecProperty
partitionSpec = PartitionSpecProperty -> Maybe PartitionSpecProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PartitionSpec" DestinationTableConfigurationProperty
PartitionSpecProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
instance Property "S3ErrorOutputPrefix" DestinationTableConfigurationProperty where
type PropertyType "S3ErrorOutputPrefix" DestinationTableConfigurationProperty = Value Prelude.Text
set :: PropertyType
"S3ErrorOutputPrefix" DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
set PropertyType
"S3ErrorOutputPrefix" DestinationTableConfigurationProperty
newValue DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= DestinationTableConfigurationProperty
{s3ErrorOutputPrefix :: Maybe (Value Text)
s3ErrorOutputPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"S3ErrorOutputPrefix" DestinationTableConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
uniqueKeys :: Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
uniqueKeys :: Maybe (ValueList Text)
..}
instance Property "UniqueKeys" DestinationTableConfigurationProperty where
type PropertyType "UniqueKeys" DestinationTableConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "UniqueKeys" DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
-> DestinationTableConfigurationProperty
set PropertyType "UniqueKeys" DestinationTableConfigurationProperty
newValue DestinationTableConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: DestinationTableConfigurationProperty -> ()
destinationDatabaseName :: DestinationTableConfigurationProperty -> Value Text
destinationTableName :: DestinationTableConfigurationProperty -> Value Text
partitionSpec :: DestinationTableConfigurationProperty
-> Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: DestinationTableConfigurationProperty -> Maybe (Value Text)
uniqueKeys :: DestinationTableConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
uniqueKeys :: Maybe (ValueList Text)
..}
= DestinationTableConfigurationProperty
{uniqueKeys :: Maybe (ValueList Text)
uniqueKeys = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UniqueKeys" DestinationTableConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe PartitionSpecProperty
()
Value Text
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationDatabaseName :: Value Text
destinationTableName :: Value Text
partitionSpec :: Maybe PartitionSpecProperty
s3ErrorOutputPrefix :: Maybe (Value Text)
..}