module Stratosphere.AppFlow.Flow.UpsolverS3OutputFormatConfigProperty (
module Exports, UpsolverS3OutputFormatConfigProperty(..),
mkUpsolverS3OutputFormatConfigProperty
) 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 UpsolverS3OutputFormatConfigProperty
=
UpsolverS3OutputFormatConfigProperty {UpsolverS3OutputFormatConfigProperty -> ()
haddock_workaround_ :: (),
UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
aggregationConfig :: (Prelude.Maybe AggregationConfigProperty),
UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
fileType :: (Prelude.Maybe (Value Prelude.Text)),
UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
prefixConfig :: PrefixConfigProperty}
deriving stock (UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool
(UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool)
-> (UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool)
-> Eq UpsolverS3OutputFormatConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool
== :: UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool
$c/= :: UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool
/= :: UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty -> Bool
Prelude.Eq, Int -> UpsolverS3OutputFormatConfigProperty -> ShowS
[UpsolverS3OutputFormatConfigProperty] -> ShowS
UpsolverS3OutputFormatConfigProperty -> String
(Int -> UpsolverS3OutputFormatConfigProperty -> ShowS)
-> (UpsolverS3OutputFormatConfigProperty -> String)
-> ([UpsolverS3OutputFormatConfigProperty] -> ShowS)
-> Show UpsolverS3OutputFormatConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpsolverS3OutputFormatConfigProperty -> ShowS
showsPrec :: Int -> UpsolverS3OutputFormatConfigProperty -> ShowS
$cshow :: UpsolverS3OutputFormatConfigProperty -> String
show :: UpsolverS3OutputFormatConfigProperty -> String
$cshowList :: [UpsolverS3OutputFormatConfigProperty] -> ShowS
showList :: [UpsolverS3OutputFormatConfigProperty] -> ShowS
Prelude.Show)
mkUpsolverS3OutputFormatConfigProperty ::
PrefixConfigProperty -> UpsolverS3OutputFormatConfigProperty
mkUpsolverS3OutputFormatConfigProperty :: PrefixConfigProperty -> UpsolverS3OutputFormatConfigProperty
mkUpsolverS3OutputFormatConfigProperty PrefixConfigProperty
prefixConfig
= UpsolverS3OutputFormatConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), prefixConfig :: PrefixConfigProperty
prefixConfig = PrefixConfigProperty
prefixConfig,
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}
instance ToResourceProperties UpsolverS3OutputFormatConfigProperty where
toResourceProperties :: UpsolverS3OutputFormatConfigProperty -> ResourceProperties
toResourceProperties UpsolverS3OutputFormatConfigProperty {Maybe (Value Text)
Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: UpsolverS3OutputFormatConfigProperty -> ()
aggregationConfig :: UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
fileType :: UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.UpsolverS3OutputFormatConfig",
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
"PrefixConfig" 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..= PrefixConfigProperty
prefixConfig]
([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]))}
instance JSON.ToJSON UpsolverS3OutputFormatConfigProperty where
toJSON :: UpsolverS3OutputFormatConfigProperty -> Value
toJSON UpsolverS3OutputFormatConfigProperty {Maybe (Value Text)
Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: UpsolverS3OutputFormatConfigProperty -> ()
aggregationConfig :: UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
fileType :: UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
= [(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
"PrefixConfig" 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..= PrefixConfigProperty
prefixConfig]
([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])))
instance Property "AggregationConfig" UpsolverS3OutputFormatConfigProperty where
type PropertyType "AggregationConfig" UpsolverS3OutputFormatConfigProperty = AggregationConfigProperty
set :: PropertyType
"AggregationConfig" UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
set PropertyType
"AggregationConfig" UpsolverS3OutputFormatConfigProperty
newValue UpsolverS3OutputFormatConfigProperty {Maybe (Value Text)
Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: UpsolverS3OutputFormatConfigProperty -> ()
aggregationConfig :: UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
fileType :: UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
= UpsolverS3OutputFormatConfigProperty
{aggregationConfig :: Maybe AggregationConfigProperty
aggregationConfig = AggregationConfigProperty -> Maybe AggregationConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AggregationConfig" UpsolverS3OutputFormatConfigProperty
AggregationConfigProperty
newValue, Maybe (Value Text)
()
PrefixConfigProperty
haddock_workaround_ :: ()
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
haddock_workaround_ :: ()
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
instance Property "FileType" UpsolverS3OutputFormatConfigProperty where
type PropertyType "FileType" UpsolverS3OutputFormatConfigProperty = Value Prelude.Text
set :: PropertyType "FileType" UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
set PropertyType "FileType" UpsolverS3OutputFormatConfigProperty
newValue UpsolverS3OutputFormatConfigProperty {Maybe (Value Text)
Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: UpsolverS3OutputFormatConfigProperty -> ()
aggregationConfig :: UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
fileType :: UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
= UpsolverS3OutputFormatConfigProperty
{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" UpsolverS3OutputFormatConfigProperty
Value Text
newValue, Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
prefixConfig :: PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
prefixConfig :: PrefixConfigProperty
..}
instance Property "PrefixConfig" UpsolverS3OutputFormatConfigProperty where
type PropertyType "PrefixConfig" UpsolverS3OutputFormatConfigProperty = PrefixConfigProperty
set :: PropertyType "PrefixConfig" UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
-> UpsolverS3OutputFormatConfigProperty
set PropertyType "PrefixConfig" UpsolverS3OutputFormatConfigProperty
newValue UpsolverS3OutputFormatConfigProperty {Maybe (Value Text)
Maybe AggregationConfigProperty
()
PrefixConfigProperty
haddock_workaround_ :: UpsolverS3OutputFormatConfigProperty -> ()
aggregationConfig :: UpsolverS3OutputFormatConfigProperty
-> Maybe AggregationConfigProperty
fileType :: UpsolverS3OutputFormatConfigProperty -> Maybe (Value Text)
prefixConfig :: UpsolverS3OutputFormatConfigProperty -> PrefixConfigProperty
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
prefixConfig :: PrefixConfigProperty
..}
= UpsolverS3OutputFormatConfigProperty
{prefixConfig :: PrefixConfigProperty
prefixConfig = PropertyType "PrefixConfig" UpsolverS3OutputFormatConfigProperty
PrefixConfigProperty
newValue, Maybe (Value Text)
Maybe AggregationConfigProperty
()
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
haddock_workaround_ :: ()
aggregationConfig :: Maybe AggregationConfigProperty
fileType :: Maybe (Value Text)
..}