module Stratosphere.DynamoDB.Table.ImportSourceSpecificationProperty (
module Exports, ImportSourceSpecificationProperty(..),
mkImportSourceSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DynamoDB.Table.InputFormatOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.DynamoDB.Table.S3BucketSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImportSourceSpecificationProperty
=
ImportSourceSpecificationProperty {ImportSourceSpecificationProperty -> ()
haddock_workaround_ :: (),
ImportSourceSpecificationProperty -> Maybe (Value Text)
inputCompressionType :: (Prelude.Maybe (Value Prelude.Text)),
ImportSourceSpecificationProperty -> Value Text
inputFormat :: (Value Prelude.Text),
ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
inputFormatOptions :: (Prelude.Maybe InputFormatOptionsProperty),
ImportSourceSpecificationProperty -> S3BucketSourceProperty
s3BucketSource :: S3BucketSourceProperty}
deriving stock (ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool
(ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool)
-> (ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool)
-> Eq ImportSourceSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool
== :: ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool
$c/= :: ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool
/= :: ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty -> Bool
Prelude.Eq, Int -> ImportSourceSpecificationProperty -> ShowS
[ImportSourceSpecificationProperty] -> ShowS
ImportSourceSpecificationProperty -> String
(Int -> ImportSourceSpecificationProperty -> ShowS)
-> (ImportSourceSpecificationProperty -> String)
-> ([ImportSourceSpecificationProperty] -> ShowS)
-> Show ImportSourceSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImportSourceSpecificationProperty -> ShowS
showsPrec :: Int -> ImportSourceSpecificationProperty -> ShowS
$cshow :: ImportSourceSpecificationProperty -> String
show :: ImportSourceSpecificationProperty -> String
$cshowList :: [ImportSourceSpecificationProperty] -> ShowS
showList :: [ImportSourceSpecificationProperty] -> ShowS
Prelude.Show)
mkImportSourceSpecificationProperty ::
Value Prelude.Text
-> S3BucketSourceProperty -> ImportSourceSpecificationProperty
mkImportSourceSpecificationProperty :: Value Text
-> S3BucketSourceProperty -> ImportSourceSpecificationProperty
mkImportSourceSpecificationProperty Value Text
inputFormat S3BucketSourceProperty
s3BucketSource
= ImportSourceSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), inputFormat :: Value Text
inputFormat = Value Text
inputFormat,
s3BucketSource :: S3BucketSourceProperty
s3BucketSource = S3BucketSourceProperty
s3BucketSource,
inputCompressionType :: Maybe (Value Text)
inputCompressionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
inputFormatOptions :: Maybe InputFormatOptionsProperty
inputFormatOptions = Maybe InputFormatOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImportSourceSpecificationProperty where
toResourceProperties :: ImportSourceSpecificationProperty -> ResourceProperties
toResourceProperties ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DynamoDB::Table.ImportSourceSpecification",
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
"InputFormat" 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
inputFormat,
Key
"S3BucketSource" Key -> S3BucketSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3BucketSourceProperty
s3BucketSource]
([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
"InputCompressionType" (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)
inputCompressionType,
Key -> InputFormatOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputFormatOptions" (InputFormatOptionsProperty -> (Key, Value))
-> Maybe InputFormatOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputFormatOptionsProperty
inputFormatOptions]))}
instance JSON.ToJSON ImportSourceSpecificationProperty where
toJSON :: ImportSourceSpecificationProperty -> Value
toJSON ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= [(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
"InputFormat" 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
inputFormat,
Key
"S3BucketSource" Key -> S3BucketSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3BucketSourceProperty
s3BucketSource]
([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
"InputCompressionType" (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)
inputCompressionType,
Key -> InputFormatOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputFormatOptions" (InputFormatOptionsProperty -> (Key, Value))
-> Maybe InputFormatOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputFormatOptionsProperty
inputFormatOptions])))
instance Property "InputCompressionType" ImportSourceSpecificationProperty where
type PropertyType "InputCompressionType" ImportSourceSpecificationProperty = Value Prelude.Text
set :: PropertyType
"InputCompressionType" ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
set PropertyType
"InputCompressionType" ImportSourceSpecificationProperty
newValue ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= ImportSourceSpecificationProperty
{inputCompressionType :: Maybe (Value Text)
inputCompressionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InputCompressionType" ImportSourceSpecificationProperty
Value Text
newValue, Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ()
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
haddock_workaround_ :: ()
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
instance Property "InputFormat" ImportSourceSpecificationProperty where
type PropertyType "InputFormat" ImportSourceSpecificationProperty = Value Prelude.Text
set :: PropertyType "InputFormat" ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
set PropertyType "InputFormat" ImportSourceSpecificationProperty
newValue ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= ImportSourceSpecificationProperty {inputFormat :: Value Text
inputFormat = PropertyType "InputFormat" ImportSourceSpecificationProperty
Value Text
newValue, Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
instance Property "InputFormatOptions" ImportSourceSpecificationProperty where
type PropertyType "InputFormatOptions" ImportSourceSpecificationProperty = InputFormatOptionsProperty
set :: PropertyType "InputFormatOptions" ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
set PropertyType "InputFormatOptions" ImportSourceSpecificationProperty
newValue ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= ImportSourceSpecificationProperty
{inputFormatOptions :: Maybe InputFormatOptionsProperty
inputFormatOptions = InputFormatOptionsProperty -> Maybe InputFormatOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputFormatOptions" ImportSourceSpecificationProperty
InputFormatOptionsProperty
newValue, Maybe (Value Text)
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
s3BucketSource :: S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
s3BucketSource :: S3BucketSourceProperty
..}
instance Property "S3BucketSource" ImportSourceSpecificationProperty where
type PropertyType "S3BucketSource" ImportSourceSpecificationProperty = S3BucketSourceProperty
set :: PropertyType "S3BucketSource" ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
-> ImportSourceSpecificationProperty
set PropertyType "S3BucketSource" ImportSourceSpecificationProperty
newValue ImportSourceSpecificationProperty {Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
S3BucketSourceProperty
haddock_workaround_ :: ImportSourceSpecificationProperty -> ()
inputCompressionType :: ImportSourceSpecificationProperty -> Maybe (Value Text)
inputFormat :: ImportSourceSpecificationProperty -> Value Text
inputFormatOptions :: ImportSourceSpecificationProperty
-> Maybe InputFormatOptionsProperty
s3BucketSource :: ImportSourceSpecificationProperty -> S3BucketSourceProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
s3BucketSource :: S3BucketSourceProperty
..}
= ImportSourceSpecificationProperty {s3BucketSource :: S3BucketSourceProperty
s3BucketSource = PropertyType "S3BucketSource" ImportSourceSpecificationProperty
S3BucketSourceProperty
newValue, Maybe (Value Text)
Maybe InputFormatOptionsProperty
()
Value Text
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
haddock_workaround_ :: ()
inputCompressionType :: Maybe (Value Text)
inputFormat :: Value Text
inputFormatOptions :: Maybe InputFormatOptionsProperty
..}