module Stratosphere.DataBrew.Job.EntityDetectorConfigurationProperty (
        module Exports, EntityDetectorConfigurationProperty(..),
        mkEntityDetectorConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Job.AllowedStatisticsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EntityDetectorConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-entitydetectorconfiguration.html>
    EntityDetectorConfigurationProperty {EntityDetectorConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-entitydetectorconfiguration.html#cfn-databrew-job-entitydetectorconfiguration-allowedstatistics>
                                         EntityDetectorConfigurationProperty
-> Maybe AllowedStatisticsProperty
allowedStatistics :: (Prelude.Maybe AllowedStatisticsProperty),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-entitydetectorconfiguration.html#cfn-databrew-job-entitydetectorconfiguration-entitytypes>
                                         EntityDetectorConfigurationProperty -> ValueList Text
entityTypes :: (ValueList Prelude.Text)}
  deriving stock (EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty -> Bool
(EntityDetectorConfigurationProperty
 -> EntityDetectorConfigurationProperty -> Bool)
-> (EntityDetectorConfigurationProperty
    -> EntityDetectorConfigurationProperty -> Bool)
-> Eq EntityDetectorConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty -> Bool
== :: EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty -> Bool
$c/= :: EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty -> Bool
/= :: EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty -> Bool
Prelude.Eq, Int -> EntityDetectorConfigurationProperty -> ShowS
[EntityDetectorConfigurationProperty] -> ShowS
EntityDetectorConfigurationProperty -> String
(Int -> EntityDetectorConfigurationProperty -> ShowS)
-> (EntityDetectorConfigurationProperty -> String)
-> ([EntityDetectorConfigurationProperty] -> ShowS)
-> Show EntityDetectorConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EntityDetectorConfigurationProperty -> ShowS
showsPrec :: Int -> EntityDetectorConfigurationProperty -> ShowS
$cshow :: EntityDetectorConfigurationProperty -> String
show :: EntityDetectorConfigurationProperty -> String
$cshowList :: [EntityDetectorConfigurationProperty] -> ShowS
showList :: [EntityDetectorConfigurationProperty] -> ShowS
Prelude.Show)
mkEntityDetectorConfigurationProperty ::
  ValueList Prelude.Text -> EntityDetectorConfigurationProperty
mkEntityDetectorConfigurationProperty :: ValueList Text -> EntityDetectorConfigurationProperty
mkEntityDetectorConfigurationProperty ValueList Text
entityTypes
  = EntityDetectorConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), entityTypes :: ValueList Text
entityTypes = ValueList Text
entityTypes,
       allowedStatistics :: Maybe AllowedStatisticsProperty
allowedStatistics = Maybe AllowedStatisticsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EntityDetectorConfigurationProperty where
  toResourceProperties :: EntityDetectorConfigurationProperty -> ResourceProperties
toResourceProperties EntityDetectorConfigurationProperty {Maybe AllowedStatisticsProperty
()
ValueList Text
haddock_workaround_ :: EntityDetectorConfigurationProperty -> ()
allowedStatistics :: EntityDetectorConfigurationProperty
-> Maybe AllowedStatisticsProperty
entityTypes :: EntityDetectorConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
entityTypes :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Job.EntityDetectorConfiguration",
         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
"EntityTypes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
entityTypes]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> AllowedStatisticsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllowedStatistics" (AllowedStatisticsProperty -> (Key, Value))
-> Maybe AllowedStatisticsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AllowedStatisticsProperty
allowedStatistics]))}
instance JSON.ToJSON EntityDetectorConfigurationProperty where
  toJSON :: EntityDetectorConfigurationProperty -> Value
toJSON EntityDetectorConfigurationProperty {Maybe AllowedStatisticsProperty
()
ValueList Text
haddock_workaround_ :: EntityDetectorConfigurationProperty -> ()
allowedStatistics :: EntityDetectorConfigurationProperty
-> Maybe AllowedStatisticsProperty
entityTypes :: EntityDetectorConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
entityTypes :: ValueList Text
..}
    = [(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
"EntityTypes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
entityTypes]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> AllowedStatisticsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllowedStatistics" (AllowedStatisticsProperty -> (Key, Value))
-> Maybe AllowedStatisticsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AllowedStatisticsProperty
allowedStatistics])))
instance Property "AllowedStatistics" EntityDetectorConfigurationProperty where
  type PropertyType "AllowedStatistics" EntityDetectorConfigurationProperty = AllowedStatisticsProperty
  set :: PropertyType
  "AllowedStatistics" EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty
set PropertyType
  "AllowedStatistics" EntityDetectorConfigurationProperty
newValue EntityDetectorConfigurationProperty {Maybe AllowedStatisticsProperty
()
ValueList Text
haddock_workaround_ :: EntityDetectorConfigurationProperty -> ()
allowedStatistics :: EntityDetectorConfigurationProperty
-> Maybe AllowedStatisticsProperty
entityTypes :: EntityDetectorConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
entityTypes :: ValueList Text
..}
    = EntityDetectorConfigurationProperty
        {allowedStatistics :: Maybe AllowedStatisticsProperty
allowedStatistics = AllowedStatisticsProperty -> Maybe AllowedStatisticsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AllowedStatistics" EntityDetectorConfigurationProperty
AllowedStatisticsProperty
newValue, ()
ValueList Text
haddock_workaround_ :: ()
entityTypes :: ValueList Text
haddock_workaround_ :: ()
entityTypes :: ValueList Text
..}
instance Property "EntityTypes" EntityDetectorConfigurationProperty where
  type PropertyType "EntityTypes" EntityDetectorConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "EntityTypes" EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty
-> EntityDetectorConfigurationProperty
set PropertyType "EntityTypes" EntityDetectorConfigurationProperty
newValue EntityDetectorConfigurationProperty {Maybe AllowedStatisticsProperty
()
ValueList Text
haddock_workaround_ :: EntityDetectorConfigurationProperty -> ()
allowedStatistics :: EntityDetectorConfigurationProperty
-> Maybe AllowedStatisticsProperty
entityTypes :: EntityDetectorConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
entityTypes :: ValueList Text
..}
    = EntityDetectorConfigurationProperty {entityTypes :: ValueList Text
entityTypes = PropertyType "EntityTypes" EntityDetectorConfigurationProperty
ValueList Text
newValue, Maybe AllowedStatisticsProperty
()
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
haddock_workaround_ :: ()
allowedStatistics :: Maybe AllowedStatisticsProperty
..}