module Stratosphere.EMR.InstanceGroupConfig.ScalingTriggerProperty (
module Exports, ScalingTriggerProperty(..),
mkScalingTriggerProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMR.InstanceGroupConfig.CloudWatchAlarmDefinitionProperty as Exports
import Stratosphere.ResourceProperties
data ScalingTriggerProperty
=
ScalingTriggerProperty {ScalingTriggerProperty -> ()
haddock_workaround_ :: (),
ScalingTriggerProperty -> CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty}
deriving stock (ScalingTriggerProperty -> ScalingTriggerProperty -> Bool
(ScalingTriggerProperty -> ScalingTriggerProperty -> Bool)
-> (ScalingTriggerProperty -> ScalingTriggerProperty -> Bool)
-> Eq ScalingTriggerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScalingTriggerProperty -> ScalingTriggerProperty -> Bool
== :: ScalingTriggerProperty -> ScalingTriggerProperty -> Bool
$c/= :: ScalingTriggerProperty -> ScalingTriggerProperty -> Bool
/= :: ScalingTriggerProperty -> ScalingTriggerProperty -> Bool
Prelude.Eq, Int -> ScalingTriggerProperty -> ShowS
[ScalingTriggerProperty] -> ShowS
ScalingTriggerProperty -> String
(Int -> ScalingTriggerProperty -> ShowS)
-> (ScalingTriggerProperty -> String)
-> ([ScalingTriggerProperty] -> ShowS)
-> Show ScalingTriggerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScalingTriggerProperty -> ShowS
showsPrec :: Int -> ScalingTriggerProperty -> ShowS
$cshow :: ScalingTriggerProperty -> String
show :: ScalingTriggerProperty -> String
$cshowList :: [ScalingTriggerProperty] -> ShowS
showList :: [ScalingTriggerProperty] -> ShowS
Prelude.Show)
mkScalingTriggerProperty ::
CloudWatchAlarmDefinitionProperty -> ScalingTriggerProperty
mkScalingTriggerProperty :: CloudWatchAlarmDefinitionProperty -> ScalingTriggerProperty
mkScalingTriggerProperty CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition
= ScalingTriggerProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition = CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition}
instance ToResourceProperties ScalingTriggerProperty where
toResourceProperties :: ScalingTriggerProperty -> ResourceProperties
toResourceProperties ScalingTriggerProperty {()
CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ScalingTriggerProperty -> ()
cloudWatchAlarmDefinition :: ScalingTriggerProperty -> CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ()
cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMR::InstanceGroupConfig.ScalingTrigger",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"CloudWatchAlarmDefinition"
Key -> CloudWatchAlarmDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition]}
instance JSON.ToJSON ScalingTriggerProperty where
toJSON :: ScalingTriggerProperty -> Value
toJSON ScalingTriggerProperty {()
CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ScalingTriggerProperty -> ()
cloudWatchAlarmDefinition :: ScalingTriggerProperty -> CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ()
cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"CloudWatchAlarmDefinition" Key -> CloudWatchAlarmDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition]
instance Property "CloudWatchAlarmDefinition" ScalingTriggerProperty where
type PropertyType "CloudWatchAlarmDefinition" ScalingTriggerProperty = CloudWatchAlarmDefinitionProperty
set :: PropertyType "CloudWatchAlarmDefinition" ScalingTriggerProperty
-> ScalingTriggerProperty -> ScalingTriggerProperty
set PropertyType "CloudWatchAlarmDefinition" ScalingTriggerProperty
newValue ScalingTriggerProperty {()
CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ScalingTriggerProperty -> ()
cloudWatchAlarmDefinition :: ScalingTriggerProperty -> CloudWatchAlarmDefinitionProperty
haddock_workaround_ :: ()
cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty
..}
= ScalingTriggerProperty {cloudWatchAlarmDefinition :: CloudWatchAlarmDefinitionProperty
cloudWatchAlarmDefinition = PropertyType "CloudWatchAlarmDefinition" ScalingTriggerProperty
CloudWatchAlarmDefinitionProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}