module Stratosphere.AutoScalingPlans.ScalingPlan.CustomizedScalingMetricSpecificationProperty (
module Exports, CustomizedScalingMetricSpecificationProperty(..),
mkCustomizedScalingMetricSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AutoScalingPlans.ScalingPlan.MetricDimensionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomizedScalingMetricSpecificationProperty
=
CustomizedScalingMetricSpecificationProperty {CustomizedScalingMetricSpecificationProperty -> ()
haddock_workaround_ :: (),
CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
dimensions :: (Prelude.Maybe [MetricDimensionProperty]),
CustomizedScalingMetricSpecificationProperty -> Value Text
metricName :: (Value Prelude.Text),
CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: (Value Prelude.Text),
CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: (Value Prelude.Text),
CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
unit :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool
(CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool)
-> (CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool)
-> Eq CustomizedScalingMetricSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool
== :: CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool
$c/= :: CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool
/= :: CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty -> Bool
Prelude.Eq, Int -> CustomizedScalingMetricSpecificationProperty -> ShowS
[CustomizedScalingMetricSpecificationProperty] -> ShowS
CustomizedScalingMetricSpecificationProperty -> String
(Int -> CustomizedScalingMetricSpecificationProperty -> ShowS)
-> (CustomizedScalingMetricSpecificationProperty -> String)
-> ([CustomizedScalingMetricSpecificationProperty] -> ShowS)
-> Show CustomizedScalingMetricSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomizedScalingMetricSpecificationProperty -> ShowS
showsPrec :: Int -> CustomizedScalingMetricSpecificationProperty -> ShowS
$cshow :: CustomizedScalingMetricSpecificationProperty -> String
show :: CustomizedScalingMetricSpecificationProperty -> String
$cshowList :: [CustomizedScalingMetricSpecificationProperty] -> ShowS
showList :: [CustomizedScalingMetricSpecificationProperty] -> ShowS
Prelude.Show)
mkCustomizedScalingMetricSpecificationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text
-> CustomizedScalingMetricSpecificationProperty
mkCustomizedScalingMetricSpecificationProperty :: Value Text
-> Value Text
-> Value Text
-> CustomizedScalingMetricSpecificationProperty
mkCustomizedScalingMetricSpecificationProperty
Value Text
metricName
Value Text
namespace
Value Text
statistic
= CustomizedScalingMetricSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), metricName :: Value Text
metricName = Value Text
metricName,
namespace :: Value Text
namespace = Value Text
namespace, statistic :: Value Text
statistic = Value Text
statistic,
dimensions :: Maybe [MetricDimensionProperty]
dimensions = Maybe [MetricDimensionProperty]
forall a. Maybe a
Prelude.Nothing, unit :: Maybe (Value Text)
unit = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomizedScalingMetricSpecificationProperty where
toResourceProperties :: CustomizedScalingMetricSpecificationProperty -> ResourceProperties
toResourceProperties
CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AutoScalingPlans::ScalingPlan.CustomizedScalingMetricSpecification",
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
"MetricName" 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
metricName, Key
"Namespace" 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
namespace,
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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [MetricDimensionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Dimensions" ([MetricDimensionProperty] -> (Key, Value))
-> Maybe [MetricDimensionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricDimensionProperty]
dimensions,
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
"Unit" (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)
unit]))}
instance JSON.ToJSON CustomizedScalingMetricSpecificationProperty where
toJSON :: CustomizedScalingMetricSpecificationProperty -> Value
toJSON CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: 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
"MetricName" 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
metricName, Key
"Namespace" 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
namespace,
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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [MetricDimensionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Dimensions" ([MetricDimensionProperty] -> (Key, Value))
-> Maybe [MetricDimensionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricDimensionProperty]
dimensions,
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
"Unit" (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)
unit])))
instance Property "Dimensions" CustomizedScalingMetricSpecificationProperty where
type PropertyType "Dimensions" CustomizedScalingMetricSpecificationProperty = [MetricDimensionProperty]
set :: PropertyType
"Dimensions" CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
set PropertyType
"Dimensions" CustomizedScalingMetricSpecificationProperty
newValue CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= CustomizedScalingMetricSpecificationProperty
{dimensions :: Maybe [MetricDimensionProperty]
dimensions = [MetricDimensionProperty] -> Maybe [MetricDimensionProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [MetricDimensionProperty]
PropertyType
"Dimensions" CustomizedScalingMetricSpecificationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
instance Property "MetricName" CustomizedScalingMetricSpecificationProperty where
type PropertyType "MetricName" CustomizedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"MetricName" CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
set PropertyType
"MetricName" CustomizedScalingMetricSpecificationProperty
newValue CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= CustomizedScalingMetricSpecificationProperty
{metricName :: Value Text
metricName = PropertyType
"MetricName" CustomizedScalingMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
instance Property "Namespace" CustomizedScalingMetricSpecificationProperty where
type PropertyType "Namespace" CustomizedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"Namespace" CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
set PropertyType
"Namespace" CustomizedScalingMetricSpecificationProperty
newValue CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= CustomizedScalingMetricSpecificationProperty
{namespace :: Value Text
namespace = PropertyType
"Namespace" CustomizedScalingMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
instance Property "Statistic" CustomizedScalingMetricSpecificationProperty where
type PropertyType "Statistic" CustomizedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType
"Statistic" CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
set PropertyType
"Statistic" CustomizedScalingMetricSpecificationProperty
newValue CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= CustomizedScalingMetricSpecificationProperty
{statistic :: Value Text
statistic = PropertyType
"Statistic" CustomizedScalingMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
unit :: Maybe (Value Text)
..}
instance Property "Unit" CustomizedScalingMetricSpecificationProperty where
type PropertyType "Unit" CustomizedScalingMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType "Unit" CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
-> CustomizedScalingMetricSpecificationProperty
set PropertyType "Unit" CustomizedScalingMetricSpecificationProperty
newValue CustomizedScalingMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomizedScalingMetricSpecificationProperty -> ()
dimensions :: CustomizedScalingMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedScalingMetricSpecificationProperty -> Value Text
namespace :: CustomizedScalingMetricSpecificationProperty -> Value Text
statistic :: CustomizedScalingMetricSpecificationProperty -> Value Text
unit :: CustomizedScalingMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
unit :: Maybe (Value Text)
..}
= CustomizedScalingMetricSpecificationProperty
{unit :: Maybe (Value Text)
unit = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Unit" CustomizedScalingMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
()
Value Text
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Value Text
namespace :: Value Text
statistic :: Value Text
..}