packages feed

stratosphere-databrew-1.0.0: gen/Stratosphere/DataBrew/Dataset/FilterValueProperty.hs

module Stratosphere.DataBrew.Dataset.FilterValueProperty (
        FilterValueProperty(..), mkFilterValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html>
    FilterValueProperty {haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html#cfn-databrew-dataset-filtervalue-value>
                         value :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-filtervalue.html#cfn-databrew-dataset-filtervalue-valuereference>
                         valueReference :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkFilterValueProperty ::
  Value Prelude.Text -> Value Prelude.Text -> FilterValueProperty
mkFilterValueProperty value valueReference
  = FilterValueProperty
      {haddock_workaround_ = (), value = value,
       valueReference = valueReference}
instance ToResourceProperties FilterValueProperty where
  toResourceProperties FilterValueProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataBrew::Dataset.FilterValue",
         supportsTags = Prelude.False,
         properties = ["Value" JSON..= value,
                       "ValueReference" JSON..= valueReference]}
instance JSON.ToJSON FilterValueProperty where
  toJSON FilterValueProperty {..}
    = JSON.object
        ["Value" JSON..= value, "ValueReference" JSON..= valueReference]
instance Property "Value" FilterValueProperty where
  type PropertyType "Value" FilterValueProperty = Value Prelude.Text
  set newValue FilterValueProperty {..}
    = FilterValueProperty {value = newValue, ..}
instance Property "ValueReference" FilterValueProperty where
  type PropertyType "ValueReference" FilterValueProperty = Value Prelude.Text
  set newValue FilterValueProperty {..}
    = FilterValueProperty {valueReference = newValue, ..}