module Stratosphere.AutoScalingPlans.ScalingPlan.PredefinedLoadMetricSpecificationProperty (
PredefinedLoadMetricSpecificationProperty(..),
mkPredefinedLoadMetricSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredefinedLoadMetricSpecificationProperty
=
PredefinedLoadMetricSpecificationProperty {PredefinedLoadMetricSpecificationProperty -> ()
haddock_workaround_ :: (),
PredefinedLoadMetricSpecificationProperty -> Value Text
predefinedLoadMetricType :: (Value Prelude.Text),
PredefinedLoadMetricSpecificationProperty -> Maybe (Value Text)
resourceLabel :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool
(PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool)
-> (PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool)
-> Eq PredefinedLoadMetricSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool
== :: PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool
$c/= :: PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool
/= :: PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty -> Bool
Prelude.Eq, Int -> PredefinedLoadMetricSpecificationProperty -> ShowS
[PredefinedLoadMetricSpecificationProperty] -> ShowS
PredefinedLoadMetricSpecificationProperty -> String
(Int -> PredefinedLoadMetricSpecificationProperty -> ShowS)
-> (PredefinedLoadMetricSpecificationProperty -> String)
-> ([PredefinedLoadMetricSpecificationProperty] -> ShowS)
-> Show PredefinedLoadMetricSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredefinedLoadMetricSpecificationProperty -> ShowS
showsPrec :: Int -> PredefinedLoadMetricSpecificationProperty -> ShowS
$cshow :: PredefinedLoadMetricSpecificationProperty -> String
show :: PredefinedLoadMetricSpecificationProperty -> String
$cshowList :: [PredefinedLoadMetricSpecificationProperty] -> ShowS
showList :: [PredefinedLoadMetricSpecificationProperty] -> ShowS
Prelude.Show)
mkPredefinedLoadMetricSpecificationProperty ::
Value Prelude.Text -> PredefinedLoadMetricSpecificationProperty
mkPredefinedLoadMetricSpecificationProperty :: Value Text -> PredefinedLoadMetricSpecificationProperty
mkPredefinedLoadMetricSpecificationProperty
Value Text
predefinedLoadMetricType
= PredefinedLoadMetricSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
predefinedLoadMetricType :: Value Text
predefinedLoadMetricType = Value Text
predefinedLoadMetricType,
resourceLabel :: Maybe (Value Text)
resourceLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PredefinedLoadMetricSpecificationProperty where
toResourceProperties :: PredefinedLoadMetricSpecificationProperty -> ResourceProperties
toResourceProperties PredefinedLoadMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedLoadMetricSpecificationProperty -> ()
predefinedLoadMetricType :: PredefinedLoadMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedLoadMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedLoadMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AutoScalingPlans::ScalingPlan.PredefinedLoadMetricSpecification",
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
"PredefinedLoadMetricType" 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
predefinedLoadMetricType]
([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 PredefinedLoadMetricSpecificationProperty where
toJSON :: PredefinedLoadMetricSpecificationProperty -> Value
toJSON PredefinedLoadMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedLoadMetricSpecificationProperty -> ()
predefinedLoadMetricType :: PredefinedLoadMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedLoadMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedLoadMetricType :: 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
"PredefinedLoadMetricType" 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
predefinedLoadMetricType]
([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 "PredefinedLoadMetricType" PredefinedLoadMetricSpecificationProperty where
type PropertyType "PredefinedLoadMetricType" PredefinedLoadMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"PredefinedLoadMetricType"
PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty
set PropertyType
"PredefinedLoadMetricType"
PredefinedLoadMetricSpecificationProperty
newValue PredefinedLoadMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedLoadMetricSpecificationProperty -> ()
predefinedLoadMetricType :: PredefinedLoadMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedLoadMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedLoadMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= PredefinedLoadMetricSpecificationProperty
{predefinedLoadMetricType :: Value Text
predefinedLoadMetricType = PropertyType
"PredefinedLoadMetricType"
PredefinedLoadMetricSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
resourceLabel :: Maybe (Value Text)
haddock_workaround_ :: ()
resourceLabel :: Maybe (Value Text)
..}
instance Property "ResourceLabel" PredefinedLoadMetricSpecificationProperty where
type PropertyType "ResourceLabel" PredefinedLoadMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"ResourceLabel" PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty
-> PredefinedLoadMetricSpecificationProperty
set PropertyType
"ResourceLabel" PredefinedLoadMetricSpecificationProperty
newValue PredefinedLoadMetricSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PredefinedLoadMetricSpecificationProperty -> ()
predefinedLoadMetricType :: PredefinedLoadMetricSpecificationProperty -> Value Text
resourceLabel :: PredefinedLoadMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
predefinedLoadMetricType :: Value Text
resourceLabel :: Maybe (Value Text)
..}
= PredefinedLoadMetricSpecificationProperty
{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" PredefinedLoadMetricSpecificationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
predefinedLoadMetricType :: Value Text
haddock_workaround_ :: ()
predefinedLoadMetricType :: Value Text
..}