module Stratosphere.DataBrew.Job.ProfileConfigurationProperty (
        module Exports, ProfileConfigurationProperty(..),
        mkProfileConfigurationProperty
    ) 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.ColumnStatisticsConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Job.EntityDetectorConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Job.StatisticsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data ProfileConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-profileconfiguration.html>
    ProfileConfigurationProperty {ProfileConfigurationProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-profileconfiguration.html#cfn-databrew-job-profileconfiguration-columnstatisticsconfigurations>
                                  ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
columnStatisticsConfigurations :: (Prelude.Maybe [ColumnStatisticsConfigurationProperty]),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-profileconfiguration.html#cfn-databrew-job-profileconfiguration-datasetstatisticsconfiguration>
                                  ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
datasetStatisticsConfiguration :: (Prelude.Maybe StatisticsConfigurationProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-profileconfiguration.html#cfn-databrew-job-profileconfiguration-entitydetectorconfiguration>
                                  ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
entityDetectorConfiguration :: (Prelude.Maybe EntityDetectorConfigurationProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-profileconfiguration.html#cfn-databrew-job-profileconfiguration-profilecolumns>
                                  ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
profileColumns :: (Prelude.Maybe [ColumnSelectorProperty])}
  deriving stock (ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
(ProfileConfigurationProperty
 -> ProfileConfigurationProperty -> Bool)
-> (ProfileConfigurationProperty
    -> ProfileConfigurationProperty -> Bool)
-> Eq ProfileConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
== :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
$c/= :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
/= :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
Prelude.Eq, Int -> ProfileConfigurationProperty -> ShowS
[ProfileConfigurationProperty] -> ShowS
ProfileConfigurationProperty -> String
(Int -> ProfileConfigurationProperty -> ShowS)
-> (ProfileConfigurationProperty -> String)
-> ([ProfileConfigurationProperty] -> ShowS)
-> Show ProfileConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfileConfigurationProperty -> ShowS
showsPrec :: Int -> ProfileConfigurationProperty -> ShowS
$cshow :: ProfileConfigurationProperty -> String
show :: ProfileConfigurationProperty -> String
$cshowList :: [ProfileConfigurationProperty] -> ShowS
showList :: [ProfileConfigurationProperty] -> ShowS
Prelude.Show)
mkProfileConfigurationProperty :: ProfileConfigurationProperty
mkProfileConfigurationProperty :: ProfileConfigurationProperty
mkProfileConfigurationProperty
  = ProfileConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
columnStatisticsConfigurations = Maybe [ColumnStatisticsConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
       datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
datasetStatisticsConfiguration = Maybe StatisticsConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
entityDetectorConfiguration = Maybe EntityDetectorConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       profileColumns :: Maybe [ColumnSelectorProperty]
profileColumns = Maybe [ColumnSelectorProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProfileConfigurationProperty where
  toResourceProperties :: ProfileConfigurationProperty -> ResourceProperties
toResourceProperties ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Job.ProfileConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> [ColumnStatisticsConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnStatisticsConfigurations"
                              ([ColumnStatisticsConfigurationProperty] -> (Key, Value))
-> Maybe [ColumnStatisticsConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnStatisticsConfigurationProperty]
columnStatisticsConfigurations,
                            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..=) Key
"DatasetStatisticsConfiguration"
                              (StatisticsConfigurationProperty -> (Key, Value))
-> Maybe StatisticsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticsConfigurationProperty
datasetStatisticsConfiguration,
                            Key -> EntityDetectorConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EntityDetectorConfiguration"
                              (EntityDetectorConfigurationProperty -> (Key, Value))
-> Maybe EntityDetectorConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EntityDetectorConfigurationProperty
entityDetectorConfiguration,
                            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
"ProfileColumns" ([ColumnSelectorProperty] -> (Key, Value))
-> Maybe [ColumnSelectorProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSelectorProperty]
profileColumns])}
instance JSON.ToJSON ProfileConfigurationProperty where
  toJSON :: ProfileConfigurationProperty -> Value
toJSON ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> [ColumnStatisticsConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnStatisticsConfigurations"
                 ([ColumnStatisticsConfigurationProperty] -> (Key, Value))
-> Maybe [ColumnStatisticsConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnStatisticsConfigurationProperty]
columnStatisticsConfigurations,
               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..=) Key
"DatasetStatisticsConfiguration"
                 (StatisticsConfigurationProperty -> (Key, Value))
-> Maybe StatisticsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticsConfigurationProperty
datasetStatisticsConfiguration,
               Key -> EntityDetectorConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EntityDetectorConfiguration"
                 (EntityDetectorConfigurationProperty -> (Key, Value))
-> Maybe EntityDetectorConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EntityDetectorConfigurationProperty
entityDetectorConfiguration,
               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
"ProfileColumns" ([ColumnSelectorProperty] -> (Key, Value))
-> Maybe [ColumnSelectorProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSelectorProperty]
profileColumns]))
instance Property "ColumnStatisticsConfigurations" ProfileConfigurationProperty where
  type PropertyType "ColumnStatisticsConfigurations" ProfileConfigurationProperty = [ColumnStatisticsConfigurationProperty]
  set :: PropertyType
  "ColumnStatisticsConfigurations" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType
  "ColumnStatisticsConfigurations" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = ProfileConfigurationProperty
        {columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
columnStatisticsConfigurations = [ColumnStatisticsConfigurationProperty]
-> Maybe [ColumnStatisticsConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnStatisticsConfigurationProperty]
PropertyType
  "ColumnStatisticsConfigurations" ProfileConfigurationProperty
newValue, Maybe [ColumnSelectorProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ()
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
instance Property "DatasetStatisticsConfiguration" ProfileConfigurationProperty where
  type PropertyType "DatasetStatisticsConfiguration" ProfileConfigurationProperty = StatisticsConfigurationProperty
  set :: PropertyType
  "DatasetStatisticsConfiguration" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType
  "DatasetStatisticsConfiguration" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = ProfileConfigurationProperty
        {datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
datasetStatisticsConfiguration = StatisticsConfigurationProperty
-> Maybe StatisticsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DatasetStatisticsConfiguration" ProfileConfigurationProperty
StatisticsConfigurationProperty
newValue, Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
()
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
instance Property "EntityDetectorConfiguration" ProfileConfigurationProperty where
  type PropertyType "EntityDetectorConfiguration" ProfileConfigurationProperty = EntityDetectorConfigurationProperty
  set :: PropertyType
  "EntityDetectorConfiguration" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType
  "EntityDetectorConfiguration" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = ProfileConfigurationProperty
        {entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
entityDetectorConfiguration = EntityDetectorConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "EntityDetectorConfiguration" ProfileConfigurationProperty
EntityDetectorConfigurationProperty
newValue, Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
instance Property "ProfileColumns" ProfileConfigurationProperty where
  type PropertyType "ProfileColumns" ProfileConfigurationProperty = [ColumnSelectorProperty]
  set :: PropertyType "ProfileColumns" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType "ProfileColumns" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe [ColumnSelectorProperty]
Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
columnStatisticsConfigurations :: ProfileConfigurationProperty
-> Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: ProfileConfigurationProperty
-> Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: ProfileConfigurationProperty
-> Maybe EntityDetectorConfigurationProperty
profileColumns :: ProfileConfigurationProperty -> Maybe [ColumnSelectorProperty]
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
profileColumns :: Maybe [ColumnSelectorProperty]
..}
    = ProfileConfigurationProperty
        {profileColumns :: Maybe [ColumnSelectorProperty]
profileColumns = [ColumnSelectorProperty] -> Maybe [ColumnSelectorProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnSelectorProperty]
PropertyType "ProfileColumns" ProfileConfigurationProperty
newValue, Maybe [ColumnStatisticsConfigurationProperty]
Maybe EntityDetectorConfigurationProperty
Maybe StatisticsConfigurationProperty
()
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
haddock_workaround_ :: ()
columnStatisticsConfigurations :: Maybe [ColumnStatisticsConfigurationProperty]
datasetStatisticsConfiguration :: Maybe StatisticsConfigurationProperty
entityDetectorConfiguration :: Maybe EntityDetectorConfigurationProperty
..}