stratosphere-databrew-1.0.0: gen/Stratosphere/DataBrew/Job/ValidationConfigurationProperty.hs
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: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-validationconfiguration.html>
ValidationConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-validationconfiguration.html#cfn-databrew-job-validationconfiguration-rulesetarn>
rulesetArn :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-validationconfiguration.html#cfn-databrew-job-validationconfiguration-validationmode>
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, ..}