packages feed

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

module Stratosphere.DataBrew.Job.ColumnStatisticsConfigurationProperty (
        module Exports, ColumnStatisticsConfigurationProperty(..),
        mkColumnStatisticsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Job.ColumnSelectorProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Job.StatisticsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data ColumnStatisticsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html>
    ColumnStatisticsConfigurationProperty {haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html#cfn-databrew-job-columnstatisticsconfiguration-selectors>
                                           selectors :: (Prelude.Maybe [ColumnSelectorProperty]),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html#cfn-databrew-job-columnstatisticsconfiguration-statistics>
                                           statistics :: StatisticsConfigurationProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkColumnStatisticsConfigurationProperty ::
  StatisticsConfigurationProperty
  -> ColumnStatisticsConfigurationProperty
mkColumnStatisticsConfigurationProperty statistics
  = ColumnStatisticsConfigurationProperty
      {haddock_workaround_ = (), statistics = statistics,
       selectors = Prelude.Nothing}
instance ToResourceProperties ColumnStatisticsConfigurationProperty where
  toResourceProperties ColumnStatisticsConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataBrew::Job.ColumnStatisticsConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        ((Prelude.<>)
                           ["Statistics" JSON..= statistics]
                           (Prelude.catMaybes [(JSON..=) "Selectors" Prelude.<$> selectors]))}
instance JSON.ToJSON ColumnStatisticsConfigurationProperty where
  toJSON ColumnStatisticsConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           ((Prelude.<>)
              ["Statistics" JSON..= statistics]
              (Prelude.catMaybes [(JSON..=) "Selectors" Prelude.<$> selectors])))
instance Property "Selectors" ColumnStatisticsConfigurationProperty where
  type PropertyType "Selectors" ColumnStatisticsConfigurationProperty = [ColumnSelectorProperty]
  set newValue ColumnStatisticsConfigurationProperty {..}
    = ColumnStatisticsConfigurationProperty
        {selectors = Prelude.pure newValue, ..}
instance Property "Statistics" ColumnStatisticsConfigurationProperty where
  type PropertyType "Statistics" ColumnStatisticsConfigurationProperty = StatisticsConfigurationProperty
  set newValue ColumnStatisticsConfigurationProperty {..}
    = ColumnStatisticsConfigurationProperty {statistics = newValue, ..}