stratosphere-appflow-1.0.0: gen/Stratosphere/AppFlow/Flow/UpsolverS3OutputFormatConfigProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolvers3outputformatconfig.html>
UpsolverS3OutputFormatConfigProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolvers3outputformatconfig.html#cfn-appflow-flow-upsolvers3outputformatconfig-aggregationconfig>
aggregationConfig :: (Prelude.Maybe AggregationConfigProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolvers3outputformatconfig.html#cfn-appflow-flow-upsolvers3outputformatconfig-filetype>
fileType :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolvers3outputformatconfig.html#cfn-appflow-flow-upsolvers3outputformatconfig-prefixconfig>
prefixConfig :: PrefixConfigProperty}
deriving stock (Prelude.Eq, Prelude.Show)
mkUpsolverS3OutputFormatConfigProperty ::
PrefixConfigProperty -> UpsolverS3OutputFormatConfigProperty
mkUpsolverS3OutputFormatConfigProperty prefixConfig
= UpsolverS3OutputFormatConfigProperty
{haddock_workaround_ = (), prefixConfig = prefixConfig,
aggregationConfig = Prelude.Nothing, fileType = Prelude.Nothing}
instance ToResourceProperties UpsolverS3OutputFormatConfigProperty where
toResourceProperties UpsolverS3OutputFormatConfigProperty {..}
= ResourceProperties
{awsType = "AWS::AppFlow::Flow.UpsolverS3OutputFormatConfig",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["PrefixConfig" JSON..= prefixConfig]
(Prelude.catMaybes
[(JSON..=) "AggregationConfig" Prelude.<$> aggregationConfig,
(JSON..=) "FileType" Prelude.<$> fileType]))}
instance JSON.ToJSON UpsolverS3OutputFormatConfigProperty where
toJSON UpsolverS3OutputFormatConfigProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["PrefixConfig" JSON..= prefixConfig]
(Prelude.catMaybes
[(JSON..=) "AggregationConfig" Prelude.<$> aggregationConfig,
(JSON..=) "FileType" Prelude.<$> fileType])))
instance Property "AggregationConfig" UpsolverS3OutputFormatConfigProperty where
type PropertyType "AggregationConfig" UpsolverS3OutputFormatConfigProperty = AggregationConfigProperty
set newValue UpsolverS3OutputFormatConfigProperty {..}
= UpsolverS3OutputFormatConfigProperty
{aggregationConfig = Prelude.pure newValue, ..}
instance Property "FileType" UpsolverS3OutputFormatConfigProperty where
type PropertyType "FileType" UpsolverS3OutputFormatConfigProperty = Value Prelude.Text
set newValue UpsolverS3OutputFormatConfigProperty {..}
= UpsolverS3OutputFormatConfigProperty
{fileType = Prelude.pure newValue, ..}
instance Property "PrefixConfig" UpsolverS3OutputFormatConfigProperty where
type PropertyType "PrefixConfig" UpsolverS3OutputFormatConfigProperty = PrefixConfigProperty
set newValue UpsolverS3OutputFormatConfigProperty {..}
= UpsolverS3OutputFormatConfigProperty
{prefixConfig = newValue, ..}