module Stratosphere.DataBrew.Job.StatisticOverrideProperty (
        StatisticOverrideProperty(..), mkStatisticOverrideProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatisticOverrideProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticoverride.html>
    StatisticOverrideProperty {StatisticOverrideProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticoverride.html#cfn-databrew-job-statisticoverride-parameters>
                               StatisticOverrideProperty -> Map Text (Value Text)
parameters :: (Prelude.Map Prelude.Text (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-job-statisticoverride.html#cfn-databrew-job-statisticoverride-statistic>
                               StatisticOverrideProperty -> Value Text
statistic :: (Value Prelude.Text)}
  deriving stock (StatisticOverrideProperty -> StatisticOverrideProperty -> Bool
(StatisticOverrideProperty -> StatisticOverrideProperty -> Bool)
-> (StatisticOverrideProperty -> StatisticOverrideProperty -> Bool)
-> Eq StatisticOverrideProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StatisticOverrideProperty -> StatisticOverrideProperty -> Bool
== :: StatisticOverrideProperty -> StatisticOverrideProperty -> Bool
$c/= :: StatisticOverrideProperty -> StatisticOverrideProperty -> Bool
/= :: StatisticOverrideProperty -> StatisticOverrideProperty -> Bool
Prelude.Eq, Int -> StatisticOverrideProperty -> ShowS
[StatisticOverrideProperty] -> ShowS
StatisticOverrideProperty -> String
(Int -> StatisticOverrideProperty -> ShowS)
-> (StatisticOverrideProperty -> String)
-> ([StatisticOverrideProperty] -> ShowS)
-> Show StatisticOverrideProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StatisticOverrideProperty -> ShowS
showsPrec :: Int -> StatisticOverrideProperty -> ShowS
$cshow :: StatisticOverrideProperty -> String
show :: StatisticOverrideProperty -> String
$cshowList :: [StatisticOverrideProperty] -> ShowS
showList :: [StatisticOverrideProperty] -> ShowS
Prelude.Show)
mkStatisticOverrideProperty ::
  Prelude.Map Prelude.Text (Value Prelude.Text)
  -> Value Prelude.Text -> StatisticOverrideProperty
mkStatisticOverrideProperty :: Map Text (Value Text) -> Value Text -> StatisticOverrideProperty
mkStatisticOverrideProperty Map Text (Value Text)
parameters Value Text
statistic
  = StatisticOverrideProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), parameters :: Map Text (Value Text)
parameters = Map Text (Value Text)
parameters,
       statistic :: Value Text
statistic = Value Text
statistic}
instance ToResourceProperties StatisticOverrideProperty where
  toResourceProperties :: StatisticOverrideProperty -> ResourceProperties
toResourceProperties StatisticOverrideProperty {()
Map Text (Value Text)
Value Text
haddock_workaround_ :: StatisticOverrideProperty -> ()
parameters :: StatisticOverrideProperty -> Map Text (Value Text)
statistic :: StatisticOverrideProperty -> Value Text
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
statistic :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Job.StatisticOverride",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Parameters" Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Map Text (Value Text)
parameters,
                       Key
"Statistic" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
statistic]}
instance JSON.ToJSON StatisticOverrideProperty where
  toJSON :: StatisticOverrideProperty -> Value
toJSON StatisticOverrideProperty {()
Map Text (Value Text)
Value Text
haddock_workaround_ :: StatisticOverrideProperty -> ()
parameters :: StatisticOverrideProperty -> Map Text (Value Text)
statistic :: StatisticOverrideProperty -> Value Text
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
statistic :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Parameters" Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Map Text (Value Text)
parameters, Key
"Statistic" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
statistic]
instance Property "Parameters" StatisticOverrideProperty where
  type PropertyType "Parameters" StatisticOverrideProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Parameters" StatisticOverrideProperty
-> StatisticOverrideProperty -> StatisticOverrideProperty
set PropertyType "Parameters" StatisticOverrideProperty
newValue StatisticOverrideProperty {()
Map Text (Value Text)
Value Text
haddock_workaround_ :: StatisticOverrideProperty -> ()
parameters :: StatisticOverrideProperty -> Map Text (Value Text)
statistic :: StatisticOverrideProperty -> Value Text
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
statistic :: Value Text
..}
    = StatisticOverrideProperty {parameters :: Map Text (Value Text)
parameters = Map Text (Value Text)
PropertyType "Parameters" StatisticOverrideProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
statistic :: Value Text
haddock_workaround_ :: ()
statistic :: Value Text
..}
instance Property "Statistic" StatisticOverrideProperty where
  type PropertyType "Statistic" StatisticOverrideProperty = Value Prelude.Text
  set :: PropertyType "Statistic" StatisticOverrideProperty
-> StatisticOverrideProperty -> StatisticOverrideProperty
set PropertyType "Statistic" StatisticOverrideProperty
newValue StatisticOverrideProperty {()
Map Text (Value Text)
Value Text
haddock_workaround_ :: StatisticOverrideProperty -> ()
parameters :: StatisticOverrideProperty -> Map Text (Value Text)
statistic :: StatisticOverrideProperty -> Value Text
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
statistic :: Value Text
..}
    = StatisticOverrideProperty {statistic :: Value Text
statistic = PropertyType "Statistic" StatisticOverrideProperty
Value Text
newValue, ()
Map Text (Value Text)
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
haddock_workaround_ :: ()
parameters :: Map Text (Value Text)
..}