module Stratosphere.DataBrew.Job.ValidationConfigurationProperty ( ValidationConfigurationProperty(..), mkValidationConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ValidationConfigurationProperty = -- | See: ValidationConfigurationProperty {haddock_workaround_ :: (), -- | See: rulesetArn :: (Value Prelude.Text), -- | See: validationMode :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkValidationConfigurationProperty :: Value Prelude.Text -> ValidationConfigurationProperty mkValidationConfigurationProperty rulesetArn = ValidationConfigurationProperty {haddock_workaround_ = (), rulesetArn = rulesetArn, validationMode = Prelude.Nothing} instance ToResourceProperties ValidationConfigurationProperty where toResourceProperties ValidationConfigurationProperty {..} = ResourceProperties {awsType = "AWS::DataBrew::Job.ValidationConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["RulesetArn" JSON..= rulesetArn] (Prelude.catMaybes [(JSON..=) "ValidationMode" Prelude.<$> validationMode]))} instance JSON.ToJSON ValidationConfigurationProperty where toJSON ValidationConfigurationProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["RulesetArn" JSON..= rulesetArn] (Prelude.catMaybes [(JSON..=) "ValidationMode" Prelude.<$> validationMode]))) instance Property "RulesetArn" ValidationConfigurationProperty where type PropertyType "RulesetArn" ValidationConfigurationProperty = Value Prelude.Text set newValue ValidationConfigurationProperty {..} = ValidationConfigurationProperty {rulesetArn = newValue, ..} instance Property "ValidationMode" ValidationConfigurationProperty where type PropertyType "ValidationMode" ValidationConfigurationProperty = Value Prelude.Text set newValue ValidationConfigurationProperty {..} = ValidationConfigurationProperty {validationMode = Prelude.pure newValue, ..}