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 {ColumnStatisticsConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html#cfn-databrew-job-columnstatisticsconfiguration-selectors>
                                           ColumnStatisticsConfigurationProperty
-> Maybe [ColumnSelectorProperty]
selectors :: (Prelude.Maybe [ColumnSelectorProperty]),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-columnstatisticsconfiguration.html#cfn-databrew-job-columnstatisticsconfiguration-statistics>
                                           ColumnStatisticsConfigurationProperty
-> StatisticsConfigurationProperty
statistics :: StatisticsConfigurationProperty}
  deriving stock (ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty -> Bool
(ColumnStatisticsConfigurationProperty
 -> ColumnStatisticsConfigurationProperty -> Bool)
-> (ColumnStatisticsConfigurationProperty
    -> ColumnStatisticsConfigurationProperty -> Bool)
-> Eq ColumnStatisticsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty -> Bool
== :: ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty -> Bool
$c/= :: ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty -> Bool
/= :: ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty -> Bool
Prelude.Eq, Int -> ColumnStatisticsConfigurationProperty -> ShowS
[ColumnStatisticsConfigurationProperty] -> ShowS
ColumnStatisticsConfigurationProperty -> String
(Int -> ColumnStatisticsConfigurationProperty -> ShowS)
-> (ColumnStatisticsConfigurationProperty -> String)
-> ([ColumnStatisticsConfigurationProperty] -> ShowS)
-> Show ColumnStatisticsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnStatisticsConfigurationProperty -> ShowS
showsPrec :: Int -> ColumnStatisticsConfigurationProperty -> ShowS
$cshow :: ColumnStatisticsConfigurationProperty -> String
show :: ColumnStatisticsConfigurationProperty -> String
$cshowList :: [ColumnStatisticsConfigurationProperty] -> ShowS
showList :: [ColumnStatisticsConfigurationProperty] -> ShowS
Prelude.Show)
mkColumnStatisticsConfigurationProperty ::
  StatisticsConfigurationProperty
  -> ColumnStatisticsConfigurationProperty
mkColumnStatisticsConfigurationProperty :: StatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty
mkColumnStatisticsConfigurationProperty StatisticsConfigurationProperty
statistics
  = ColumnStatisticsConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), statistics :: StatisticsConfigurationProperty
statistics = StatisticsConfigurationProperty
statistics,
       selectors :: Maybe [ColumnSelectorProperty]
selectors = Maybe [ColumnSelectorProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColumnStatisticsConfigurationProperty where
  toResourceProperties :: ColumnStatisticsConfigurationProperty -> ResourceProperties
toResourceProperties ColumnStatisticsConfigurationProperty {Maybe [ColumnSelectorProperty]
()
StatisticsConfigurationProperty
haddock_workaround_ :: ColumnStatisticsConfigurationProperty -> ()
selectors :: ColumnStatisticsConfigurationProperty
-> Maybe [ColumnSelectorProperty]
statistics :: ColumnStatisticsConfigurationProperty
-> StatisticsConfigurationProperty
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
statistics :: StatisticsConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Job.ColumnStatisticsConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Statistics" Key -> StatisticsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= StatisticsConfigurationProperty
statistics]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [ColumnSelectorProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Selectors" ([ColumnSelectorProperty] -> (Key, Value))
-> Maybe [ColumnSelectorProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSelectorProperty]
selectors]))}
instance JSON.ToJSON ColumnStatisticsConfigurationProperty where
  toJSON :: ColumnStatisticsConfigurationProperty -> Value
toJSON ColumnStatisticsConfigurationProperty {Maybe [ColumnSelectorProperty]
()
StatisticsConfigurationProperty
haddock_workaround_ :: ColumnStatisticsConfigurationProperty -> ()
selectors :: ColumnStatisticsConfigurationProperty
-> Maybe [ColumnSelectorProperty]
statistics :: ColumnStatisticsConfigurationProperty
-> StatisticsConfigurationProperty
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
statistics :: StatisticsConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Statistics" Key -> StatisticsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= StatisticsConfigurationProperty
statistics]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [ColumnSelectorProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Selectors" ([ColumnSelectorProperty] -> (Key, Value))
-> Maybe [ColumnSelectorProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSelectorProperty]
selectors])))
instance Property "Selectors" ColumnStatisticsConfigurationProperty where
  type PropertyType "Selectors" ColumnStatisticsConfigurationProperty = [ColumnSelectorProperty]
  set :: PropertyType "Selectors" ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty
set PropertyType "Selectors" ColumnStatisticsConfigurationProperty
newValue ColumnStatisticsConfigurationProperty {Maybe [ColumnSelectorProperty]
()
StatisticsConfigurationProperty
haddock_workaround_ :: ColumnStatisticsConfigurationProperty -> ()
selectors :: ColumnStatisticsConfigurationProperty
-> Maybe [ColumnSelectorProperty]
statistics :: ColumnStatisticsConfigurationProperty
-> StatisticsConfigurationProperty
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
statistics :: StatisticsConfigurationProperty
..}
    = ColumnStatisticsConfigurationProperty
        {selectors :: Maybe [ColumnSelectorProperty]
selectors = [ColumnSelectorProperty] -> Maybe [ColumnSelectorProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnSelectorProperty]
PropertyType "Selectors" ColumnStatisticsConfigurationProperty
newValue, ()
StatisticsConfigurationProperty
haddock_workaround_ :: ()
statistics :: StatisticsConfigurationProperty
haddock_workaround_ :: ()
statistics :: StatisticsConfigurationProperty
..}
instance Property "Statistics" ColumnStatisticsConfigurationProperty where
  type PropertyType "Statistics" ColumnStatisticsConfigurationProperty = StatisticsConfigurationProperty
  set :: PropertyType "Statistics" ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty
-> ColumnStatisticsConfigurationProperty
set PropertyType "Statistics" ColumnStatisticsConfigurationProperty
newValue ColumnStatisticsConfigurationProperty {Maybe [ColumnSelectorProperty]
()
StatisticsConfigurationProperty
haddock_workaround_ :: ColumnStatisticsConfigurationProperty -> ()
selectors :: ColumnStatisticsConfigurationProperty
-> Maybe [ColumnSelectorProperty]
statistics :: ColumnStatisticsConfigurationProperty
-> StatisticsConfigurationProperty
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
statistics :: StatisticsConfigurationProperty
..}
    = ColumnStatisticsConfigurationProperty {statistics :: StatisticsConfigurationProperty
statistics = PropertyType "Statistics" ColumnStatisticsConfigurationProperty
StatisticsConfigurationProperty
newValue, Maybe [ColumnSelectorProperty]
()
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
selectors :: Maybe [ColumnSelectorProperty]
..}