packages feed

stratosphere-databrew-1.0.0: gen/Stratosphere/DataBrew/Job/StatisticsConfigurationProperty.hs

module Stratosphere.DataBrew.Job.StatisticsConfigurationProperty (
        module Exports, StatisticsConfigurationProperty(..),
        mkStatisticsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Job.StatisticOverrideProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatisticsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticsconfiguration.html>
    StatisticsConfigurationProperty {haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticsconfiguration.html#cfn-databrew-job-statisticsconfiguration-includedstatistics>
                                     includedStatistics :: (Prelude.Maybe (ValueList Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticsconfiguration.html#cfn-databrew-job-statisticsconfiguration-overrides>
                                     overrides :: (Prelude.Maybe [StatisticOverrideProperty])}
  deriving stock (Prelude.Eq, Prelude.Show)
mkStatisticsConfigurationProperty ::
  StatisticsConfigurationProperty
mkStatisticsConfigurationProperty
  = StatisticsConfigurationProperty
      {haddock_workaround_ = (), includedStatistics = Prelude.Nothing,
       overrides = Prelude.Nothing}
instance ToResourceProperties StatisticsConfigurationProperty where
  toResourceProperties StatisticsConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataBrew::Job.StatisticsConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "IncludedStatistics" Prelude.<$> includedStatistics,
                            (JSON..=) "Overrides" Prelude.<$> overrides])}
instance JSON.ToJSON StatisticsConfigurationProperty where
  toJSON StatisticsConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "IncludedStatistics" Prelude.<$> includedStatistics,
               (JSON..=) "Overrides" Prelude.<$> overrides]))
instance Property "IncludedStatistics" StatisticsConfigurationProperty where
  type PropertyType "IncludedStatistics" StatisticsConfigurationProperty = ValueList Prelude.Text
  set newValue StatisticsConfigurationProperty {..}
    = StatisticsConfigurationProperty
        {includedStatistics = Prelude.pure newValue, ..}
instance Property "Overrides" StatisticsConfigurationProperty where
  type PropertyType "Overrides" StatisticsConfigurationProperty = [StatisticOverrideProperty]
  set newValue StatisticsConfigurationProperty {..}
    = StatisticsConfigurationProperty
        {overrides = Prelude.pure newValue, ..}