module Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty ( ErrorHandlingConfigProperty(..), mkErrorHandlingConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ErrorHandlingConfigProperty = -- | See: ErrorHandlingConfigProperty {haddock_workaround_ :: (), -- | See: bucketName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: bucketPrefix :: (Prelude.Maybe (Value Prelude.Text)), -- | See: failOnFirstError :: (Prelude.Maybe (Value Prelude.Bool))} deriving stock (Prelude.Eq, Prelude.Show) mkErrorHandlingConfigProperty :: ErrorHandlingConfigProperty mkErrorHandlingConfigProperty = ErrorHandlingConfigProperty {haddock_workaround_ = (), bucketName = Prelude.Nothing, bucketPrefix = Prelude.Nothing, failOnFirstError = Prelude.Nothing} instance ToResourceProperties ErrorHandlingConfigProperty where toResourceProperties ErrorHandlingConfigProperty {..} = ResourceProperties {awsType = "AWS::AppFlow::Flow.ErrorHandlingConfig", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "BucketName" Prelude.<$> bucketName, (JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix, (JSON..=) "FailOnFirstError" Prelude.<$> failOnFirstError])} instance JSON.ToJSON ErrorHandlingConfigProperty where toJSON ErrorHandlingConfigProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "BucketName" Prelude.<$> bucketName, (JSON..=) "BucketPrefix" Prelude.<$> bucketPrefix, (JSON..=) "FailOnFirstError" Prelude.<$> failOnFirstError])) instance Property "BucketName" ErrorHandlingConfigProperty where type PropertyType "BucketName" ErrorHandlingConfigProperty = Value Prelude.Text set newValue ErrorHandlingConfigProperty {..} = ErrorHandlingConfigProperty {bucketName = Prelude.pure newValue, ..} instance Property "BucketPrefix" ErrorHandlingConfigProperty where type PropertyType "BucketPrefix" ErrorHandlingConfigProperty = Value Prelude.Text set newValue ErrorHandlingConfigProperty {..} = ErrorHandlingConfigProperty {bucketPrefix = Prelude.pure newValue, ..} instance Property "FailOnFirstError" ErrorHandlingConfigProperty where type PropertyType "FailOnFirstError" ErrorHandlingConfigProperty = Value Prelude.Bool set newValue ErrorHandlingConfigProperty {..} = ErrorHandlingConfigProperty {failOnFirstError = Prelude.pure newValue, ..}