packages feed

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

module Stratosphere.AppFlow.Flow.RedshiftDestinationPropertiesProperty (
        module Exports, RedshiftDestinationPropertiesProperty(..),
        mkRedshiftDestinationPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftDestinationPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-redshiftdestinationproperties.html>
    RedshiftDestinationPropertiesProperty {haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-redshiftdestinationproperties.html#cfn-appflow-flow-redshiftdestinationproperties-bucketprefix>
                                           bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-redshiftdestinationproperties.html#cfn-appflow-flow-redshiftdestinationproperties-errorhandlingconfig>
                                           errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-redshiftdestinationproperties.html#cfn-appflow-flow-redshiftdestinationproperties-intermediatebucketname>
                                           intermediateBucketName :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-redshiftdestinationproperties.html#cfn-appflow-flow-redshiftdestinationproperties-object>
                                           object :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkRedshiftDestinationPropertiesProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> RedshiftDestinationPropertiesProperty
mkRedshiftDestinationPropertiesProperty
  intermediateBucketName
  object
  = RedshiftDestinationPropertiesProperty
      {haddock_workaround_ = (),
       intermediateBucketName = intermediateBucketName, object = object,
       bucketPrefix = Prelude.Nothing,
       errorHandlingConfig = Prelude.Nothing}
instance ToResourceProperties RedshiftDestinationPropertiesProperty where
  toResourceProperties RedshiftDestinationPropertiesProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppFlow::Flow.RedshiftDestinationProperties",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        ((Prelude.<>)
                           ["IntermediateBucketName" JSON..= intermediateBucketName,
                            "Object" JSON..= object]
                           (Prelude.catMaybes
                              [(JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix,
                               (JSON..=) "ErrorHandlingConfig" Prelude.<$> errorHandlingConfig]))}
instance JSON.ToJSON RedshiftDestinationPropertiesProperty where
  toJSON RedshiftDestinationPropertiesProperty {..}
    = JSON.object
        (Prelude.fromList
           ((Prelude.<>)
              ["IntermediateBucketName" JSON..= intermediateBucketName,
               "Object" JSON..= object]
              (Prelude.catMaybes
                 [(JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix,
                  (JSON..=) "ErrorHandlingConfig" Prelude.<$> errorHandlingConfig])))
instance Property "BucketPrefix" RedshiftDestinationPropertiesProperty where
  type PropertyType "BucketPrefix" RedshiftDestinationPropertiesProperty = Value Prelude.Text
  set newValue RedshiftDestinationPropertiesProperty {..}
    = RedshiftDestinationPropertiesProperty
        {bucketPrefix = Prelude.pure newValue, ..}
instance Property "ErrorHandlingConfig" RedshiftDestinationPropertiesProperty where
  type PropertyType "ErrorHandlingConfig" RedshiftDestinationPropertiesProperty = ErrorHandlingConfigProperty
  set newValue RedshiftDestinationPropertiesProperty {..}
    = RedshiftDestinationPropertiesProperty
        {errorHandlingConfig = Prelude.pure newValue, ..}
instance Property "IntermediateBucketName" RedshiftDestinationPropertiesProperty where
  type PropertyType "IntermediateBucketName" RedshiftDestinationPropertiesProperty = Value Prelude.Text
  set newValue RedshiftDestinationPropertiesProperty {..}
    = RedshiftDestinationPropertiesProperty
        {intermediateBucketName = newValue, ..}
instance Property "Object" RedshiftDestinationPropertiesProperty where
  type PropertyType "Object" RedshiftDestinationPropertiesProperty = Value Prelude.Text
  set newValue RedshiftDestinationPropertiesProperty {..}
    = RedshiftDestinationPropertiesProperty {object = newValue, ..}