module Stratosphere.AutoScalingPlans.ScalingPlan.PredefinedScalingMetricSpecificationProperty (
PredefinedScalingMetricSpecificationProperty(..),
mkPredefinedScalingMetricSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredefinedScalingMetricSpecificationProperty
=
PredefinedScalingMetricSpecificationProperty {PredefinedScalingMetricSpecificationProperty -> ()
haddock_workaround_ :: (),
PredefinedScalingMetricSpecificationProperty -> Value Text
predefinedScalingMetricType :: (Value Prelude.Text),
PredefinedScalingMetricSpecificationProperty -> Maybe (Value Text)
resourceLabel :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool
(PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool)
-> (PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool)
-> Eq PredefinedScalingMetricSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool
== :: PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool
$c/= :: PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool
/= :: PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty -> Bool
Prelude.Eq, Int -> PredefinedScalingMetricSpecificationProperty -> ShowS
[PredefinedScalingMetricSpecificationProperty] -> ShowS
PredefinedScalingMetricSpecificationProperty -> String
(Int -> PredefinedScalingMetricSpecificationProperty -> ShowS)
-> (PredefinedScalingMetricSpecificationProperty -> String)
-> ([PredefinedScalingMetricSpecificationProperty] -> ShowS)
-> Show PredefinedScalingMetricSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredefinedScalingMetricSpecificationProperty -> ShowS
showsPrec :: Int -> PredefinedScalingMetricSpecificationProperty -> ShowS
$cshow :: PredefinedScalingMetricSpecificationProperty -> String
show :: PredefinedScalingMetricSpecificationProperty -> String
$cshowList :: [PredefinedScalingMetricSpecificationProperty] -> ShowS
showList :: [PredefinedScalingMetricSpecificationProperty] -> ShowS
Prelude.Show)
mkPredefinedScalingMetricSpecificationProperty ::
Value Prelude.Text -> PredefinedScalingMetricSpecificationProperty
mkPredefinedScalingMetricSpecificationProperty :: Value Text -> PredefinedScalingMetricSpecificationProperty
mkPredefinedScalingMetricSpecificationProperty
Value Text
predefinedScalingMetricType
= PredefinedScalingMetricSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
predefinedScalingMetricType :: Value Text
predefinedScalingMetricType = Value Text
predefinedScalingMetricType,
resourceLabel :: Maybe (Value Text)
resourceLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PredefinedScalingMetricSpecificationProperty where
toResourceProperties :: PredefinedScalingMetricSpecificationProperty -> ResourceProperties
toResourceProperties
PredefinedScalingMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedScalingMetricSpecificationProperty -> ()
predefinedScalingMetricType :: PredefinedScalingMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AutoScalingPlans::ScalingPlan.PredefinedScalingMetricSpecification",
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
"PredefinedScalingMetricType" 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
predefinedScalingMetricType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"ResourceLabel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceLabel]))}
instance JSON.ToJSON PredefinedScalingMetricSpecificationProperty where
toJSON :: PredefinedScalingMetricSpecificationProperty -> Value
toJSON PredefinedScalingMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedScalingMetricSpecificationProperty -> ()
predefinedScalingMetricType :: PredefinedScalingMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
resourceLabel :: Maybe (Value 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
"PredefinedScalingMetricType" 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
predefinedScalingMetricType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"ResourceLabel" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceLabel])))
instance Property "PredefinedScalingMetricType" PredefinedScalingMetricSpecificationProperty where
type PropertyType "PredefinedScalingMetricType" PredefinedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"PredefinedScalingMetricType"
PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty
set PropertyType
"PredefinedScalingMetricType"
PredefinedScalingMetricSpecificationProperty
newValue PredefinedScalingMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedScalingMetricSpecificationProperty -> ()
predefinedScalingMetricType :: PredefinedScalingMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= PredefinedScalingMetricSpecificationProperty
{predefinedScalingMetricType :: Value Text
predefinedScalingMetricType = PropertyType
"PredefinedScalingMetricType"
PredefinedScalingMetricSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
resourceLabel :: Maybe (Value Text)
haddock_workaround_ :: ()
resourceLabel :: Maybe (Value Text)
..}
instance Property "ResourceLabel" PredefinedScalingMetricSpecificationProperty where
type PropertyType "ResourceLabel" PredefinedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"ResourceLabel" PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty
-> PredefinedScalingMetricSpecificationProperty
set PropertyType
"ResourceLabel" PredefinedScalingMetricSpecificationProperty
newValue PredefinedScalingMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedScalingMetricSpecificationProperty -> ()
predefinedScalingMetricType :: PredefinedScalingMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= PredefinedScalingMetricSpecificationProperty
{resourceLabel :: Maybe (Value Text)
resourceLabel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ResourceLabel" PredefinedScalingMetricSpecificationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
haddock_workaround_ :: ()
predefinedScalingMetricType :: Value Text
..}