packages feed

stratosphere-appflow-1.0.0: gen/Stratosphere/AppFlow/Flow/UpsolverDestinationPropertiesProperty.hs

module Stratosphere.AppFlow.Flow.UpsolverDestinationPropertiesProperty (
        module Exports, UpsolverDestinationPropertiesProperty(..),
        mkUpsolverDestinationPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.UpsolverS3OutputFormatConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UpsolverDestinationPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolverdestinationproperties.html>
    UpsolverDestinationPropertiesProperty {haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolverdestinationproperties.html#cfn-appflow-flow-upsolverdestinationproperties-bucketname>
                                           bucketName :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolverdestinationproperties.html#cfn-appflow-flow-upsolverdestinationproperties-bucketprefix>
                                           bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-upsolverdestinationproperties.html#cfn-appflow-flow-upsolverdestinationproperties-s3outputformatconfig>
                                           s3OutputFormatConfig :: UpsolverS3OutputFormatConfigProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkUpsolverDestinationPropertiesProperty ::
  Value Prelude.Text
  -> UpsolverS3OutputFormatConfigProperty
     -> UpsolverDestinationPropertiesProperty
mkUpsolverDestinationPropertiesProperty
  bucketName
  s3OutputFormatConfig
  = UpsolverDestinationPropertiesProperty
      {haddock_workaround_ = (), bucketName = bucketName,
       s3OutputFormatConfig = s3OutputFormatConfig,
       bucketPrefix = Prelude.Nothing}
instance ToResourceProperties UpsolverDestinationPropertiesProperty where
  toResourceProperties UpsolverDestinationPropertiesProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppFlow::Flow.UpsolverDestinationProperties",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        ((Prelude.<>)
                           ["BucketName" JSON..= bucketName,
                            "S3OutputFormatConfig" JSON..= s3OutputFormatConfig]
                           (Prelude.catMaybes
                              [(JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix]))}
instance JSON.ToJSON UpsolverDestinationPropertiesProperty where
  toJSON UpsolverDestinationPropertiesProperty {..}
    = JSON.object
        (Prelude.fromList
           ((Prelude.<>)
              ["BucketName" JSON..= bucketName,
               "S3OutputFormatConfig" JSON..= s3OutputFormatConfig]
              (Prelude.catMaybes
                 [(JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix])))
instance Property "BucketName" UpsolverDestinationPropertiesProperty where
  type PropertyType "BucketName" UpsolverDestinationPropertiesProperty = Value Prelude.Text
  set newValue UpsolverDestinationPropertiesProperty {..}
    = UpsolverDestinationPropertiesProperty {bucketName = newValue, ..}
instance Property "BucketPrefix" UpsolverDestinationPropertiesProperty where
  type PropertyType "BucketPrefix" UpsolverDestinationPropertiesProperty = Value Prelude.Text
  set newValue UpsolverDestinationPropertiesProperty {..}
    = UpsolverDestinationPropertiesProperty
        {bucketPrefix = Prelude.pure newValue, ..}
instance Property "S3OutputFormatConfig" UpsolverDestinationPropertiesProperty where
  type PropertyType "S3OutputFormatConfig" UpsolverDestinationPropertiesProperty = UpsolverS3OutputFormatConfigProperty
  set newValue UpsolverDestinationPropertiesProperty {..}
    = UpsolverDestinationPropertiesProperty
        {s3OutputFormatConfig = newValue, ..}