module Stratosphere.DataBrew.Ruleset.ColumnSelectorProperty ( ColumnSelectorProperty(..), mkColumnSelectorProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ColumnSelectorProperty = -- | See: ColumnSelectorProperty {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: regex :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkColumnSelectorProperty :: ColumnSelectorProperty mkColumnSelectorProperty = ColumnSelectorProperty {haddock_workaround_ = (), name = Prelude.Nothing, regex = Prelude.Nothing} instance ToResourceProperties ColumnSelectorProperty where toResourceProperties ColumnSelectorProperty {..} = ResourceProperties {awsType = "AWS::DataBrew::Ruleset.ColumnSelector", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Regex" Prelude.<$> regex])} instance JSON.ToJSON ColumnSelectorProperty where toJSON ColumnSelectorProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Regex" Prelude.<$> regex])) instance Property "Name" ColumnSelectorProperty where type PropertyType "Name" ColumnSelectorProperty = Value Prelude.Text set newValue ColumnSelectorProperty {..} = ColumnSelectorProperty {name = Prelude.pure newValue, ..} instance Property "Regex" ColumnSelectorProperty where type PropertyType "Regex" ColumnSelectorProperty = Value Prelude.Text set newValue ColumnSelectorProperty {..} = ColumnSelectorProperty {regex = Prelude.pure newValue, ..}