module Stratosphere.AppFlow.Flow.S3OutputFormatConfigProperty (
module Exports, S3OutputFormatConfigProperty(..),
mkS3OutputFormatConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.AggregationConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.PrefixConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3OutputFormatConfigProperty
=
S3OutputFormatConfigProperty {S3OutputFormatConfigProperty -> ()
haddock_workaround_ :: (),
S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
aggregationConfig :: (Prelude.Maybe AggregationConfigProperty),
S3OutputFormatConfigProperty -> Maybe (Value Text)
fileType :: (Prelude.Maybe (Value Prelude.Text)),
S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
prefixConfig :: (Prelude.Maybe PrefixConfigProperty),
S3OutputFormatConfigProperty -> Maybe (Value Bool)
preserveSourceDataTyping :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool
(S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool)
-> (S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool)
-> Eq S3OutputFormatConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool
== :: S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool
$c/= :: S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool
/= :: S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> Bool
Prelude.Eq, Int -> S3OutputFormatConfigProperty -> ShowS
[S3OutputFormatConfigProperty] -> ShowS
S3OutputFormatConfigProperty -> String
(Int -> S3OutputFormatConfigProperty -> ShowS)
-> (S3OutputFormatConfigProperty -> String)
-> ([S3OutputFormatConfigProperty] -> ShowS)
-> Show S3OutputFormatConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3OutputFormatConfigProperty -> ShowS
showsPrec :: Int -> S3OutputFormatConfigProperty -> ShowS
$cshow :: S3OutputFormatConfigProperty -> String
show :: S3OutputFormatConfigProperty -> String
$cshowList :: [S3OutputFormatConfigProperty] -> ShowS
showList :: [S3OutputFormatConfigProperty] -> ShowS
Prelude.Show)
mkS3OutputFormatConfigProperty :: S3OutputFormatConfigProperty
mkS3OutputFormatConfigProperty :: S3OutputFormatConfigProperty
mkS3OutputFormatConfigProperty
= S3OutputFormatConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), aggregationConfig :: Maybe AggregationConfigProperty
aggregationConfig = Maybe AggregationConfigProperty
forall a. Maybe a
Prelude.Nothing,
fileType :: Maybe (Value Text)
fileType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, prefixConfig :: Maybe PrefixConfigProperty
prefixConfig = Maybe PrefixConfigProperty
forall a. Maybe a
Prelude.Nothing,
preserveSourceDataTyping :: Maybe (Value Bool)
preserveSourceDataTyping = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3OutputFormatConfigProperty where
toResourceProperties :: S3OutputFormatConfigProperty -> ResourceProperties
toResourceProperties S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.S3OutputFormatConfig",
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 -> AggregationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationConfig" (AggregationConfigProperty -> (Key, Value))
-> Maybe AggregationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregationConfigProperty
aggregationConfig,
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
"FileType" (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)
fileType,
Key -> PrefixConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PrefixConfig" (PrefixConfigProperty -> (Key, Value))
-> Maybe PrefixConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PrefixConfigProperty
prefixConfig,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PreserveSourceDataTyping"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
preserveSourceDataTyping])}
instance JSON.ToJSON S3OutputFormatConfigProperty where
toJSON :: S3OutputFormatConfigProperty -> Value
toJSON S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= [(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 -> AggregationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationConfig" (AggregationConfigProperty -> (Key, Value))
-> Maybe AggregationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregationConfigProperty
aggregationConfig,
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
"FileType" (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)
fileType,
Key -> PrefixConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PrefixConfig" (PrefixConfigProperty -> (Key, Value))
-> Maybe PrefixConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PrefixConfigProperty
prefixConfig,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PreserveSourceDataTyping"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
preserveSourceDataTyping]))
instance Property "AggregationConfig" S3OutputFormatConfigProperty where
type PropertyType "AggregationConfig" S3OutputFormatConfigProperty = AggregationConfigProperty
set :: PropertyType "AggregationConfig" S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> S3OutputFormatConfigProperty
set PropertyType "AggregationConfig" S3OutputFormatConfigProperty
newValue S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= S3OutputFormatConfigProperty
{aggregationConfig :: Maybe AggregationConfigProperty
aggregationConfig = AggregationConfigProperty -> Maybe AggregationConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AggregationConfig" S3OutputFormatConfigProperty
AggregationConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe PrefixConfigProperty
()
haddock_workaround_ :: ()
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
haddock_workaround_ :: ()
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
instance Property "FileType" S3OutputFormatConfigProperty where
type PropertyType "FileType" S3OutputFormatConfigProperty = Value Prelude.Text
set :: PropertyType "FileType" S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> S3OutputFormatConfigProperty
set PropertyType "FileType" S3OutputFormatConfigProperty
newValue S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= S3OutputFormatConfigProperty
{fileType :: Maybe (Value Text)
fileType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FileType" S3OutputFormatConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
instance Property "PrefixConfig" S3OutputFormatConfigProperty where
type PropertyType "PrefixConfig" S3OutputFormatConfigProperty = PrefixConfigProperty
set :: PropertyType "PrefixConfig" S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> S3OutputFormatConfigProperty
set PropertyType "PrefixConfig" S3OutputFormatConfigProperty
newValue S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= S3OutputFormatConfigProperty
{prefixConfig :: Maybe PrefixConfigProperty
prefixConfig = PrefixConfigProperty -> Maybe PrefixConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrefixConfig" S3OutputFormatConfigProperty
PrefixConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
()
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
preserveSourceDataTyping :: Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
preserveSourceDataTyping :: Maybe (Value Bool)
..}
instance Property "PreserveSourceDataTyping" S3OutputFormatConfigProperty where
type PropertyType "PreserveSourceDataTyping" S3OutputFormatConfigProperty = Value Prelude.Bool
set :: PropertyType
"PreserveSourceDataTyping" S3OutputFormatConfigProperty
-> S3OutputFormatConfigProperty -> S3OutputFormatConfigProperty
set PropertyType
"PreserveSourceDataTyping" S3OutputFormatConfigProperty
newValue S3OutputFormatConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: S3OutputFormatConfigProperty -> ()
aggregationConfig :: S3OutputFormatConfigProperty -> Maybe AggregationConfigProperty
fileType :: S3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: S3OutputFormatConfigProperty -> Maybe PrefixConfigProperty
preserveSourceDataTyping :: S3OutputFormatConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
preserveSourceDataTyping :: Maybe (Value Bool)
..}
= S3OutputFormatConfigProperty
{preserveSourceDataTyping :: Maybe (Value Bool)
preserveSourceDataTyping = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PreserveSourceDataTyping" S3OutputFormatConfigProperty
Value Bool
newValue, Maybe (Value Text)
Maybe AggregationConfigProperty
Maybe PrefixConfigProperty
()
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: Maybe PrefixConfigProperty
..}