module Stratosphere.DataBrew.Job.AllowedStatisticsProperty (
        AllowedStatisticsProperty(..), mkAllowedStatisticsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AllowedStatisticsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-allowedstatistics.html>
    AllowedStatisticsProperty {AllowedStatisticsProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-allowedstatistics.html#cfn-databrew-job-allowedstatistics-statistics>
                               AllowedStatisticsProperty -> ValueList Text
statistics :: (ValueList Prelude.Text)}
  deriving stock (AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool
(AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool)
-> (AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool)
-> Eq AllowedStatisticsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool
== :: AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool
$c/= :: AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool
/= :: AllowedStatisticsProperty -> AllowedStatisticsProperty -> Bool
Prelude.Eq, Int -> AllowedStatisticsProperty -> ShowS
[AllowedStatisticsProperty] -> ShowS
AllowedStatisticsProperty -> String
(Int -> AllowedStatisticsProperty -> ShowS)
-> (AllowedStatisticsProperty -> String)
-> ([AllowedStatisticsProperty] -> ShowS)
-> Show AllowedStatisticsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AllowedStatisticsProperty -> ShowS
showsPrec :: Int -> AllowedStatisticsProperty -> ShowS
$cshow :: AllowedStatisticsProperty -> String
show :: AllowedStatisticsProperty -> String
$cshowList :: [AllowedStatisticsProperty] -> ShowS
showList :: [AllowedStatisticsProperty] -> ShowS
Prelude.Show)
mkAllowedStatisticsProperty ::
  ValueList Prelude.Text -> AllowedStatisticsProperty
mkAllowedStatisticsProperty :: ValueList Text -> AllowedStatisticsProperty
mkAllowedStatisticsProperty ValueList Text
statistics
  = AllowedStatisticsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), statistics :: ValueList Text
statistics = ValueList Text
statistics}
instance ToResourceProperties AllowedStatisticsProperty where
  toResourceProperties :: AllowedStatisticsProperty -> ResourceProperties
toResourceProperties AllowedStatisticsProperty {()
ValueList Text
haddock_workaround_ :: AllowedStatisticsProperty -> ()
statistics :: AllowedStatisticsProperty -> ValueList Text
haddock_workaround_ :: ()
statistics :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Job.AllowedStatistics",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Statistics" 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
statistics]}
instance JSON.ToJSON AllowedStatisticsProperty where
  toJSON :: AllowedStatisticsProperty -> Value
toJSON AllowedStatisticsProperty {()
ValueList Text
haddock_workaround_ :: AllowedStatisticsProperty -> ()
statistics :: AllowedStatisticsProperty -> ValueList Text
haddock_workaround_ :: ()
statistics :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Statistics" 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
statistics]
instance Property "Statistics" AllowedStatisticsProperty where
  type PropertyType "Statistics" AllowedStatisticsProperty = ValueList Prelude.Text
  set :: PropertyType "Statistics" AllowedStatisticsProperty
-> AllowedStatisticsProperty -> AllowedStatisticsProperty
set PropertyType "Statistics" AllowedStatisticsProperty
newValue AllowedStatisticsProperty {()
ValueList Text
haddock_workaround_ :: AllowedStatisticsProperty -> ()
statistics :: AllowedStatisticsProperty -> ValueList Text
haddock_workaround_ :: ()
statistics :: ValueList Text
..}
    = AllowedStatisticsProperty {statistics :: ValueList Text
statistics = PropertyType "Statistics" AllowedStatisticsProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}