module Stratosphere.AutoScaling.ScalingPolicy.CustomizedMetricSpecificationProperty (
module Exports, CustomizedMetricSpecificationProperty(..),
mkCustomizedMetricSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AutoScaling.ScalingPolicy.MetricDimensionProperty as Exports
import {-# SOURCE #-} Stratosphere.AutoScaling.ScalingPolicy.TargetTrackingMetricDataQueryProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomizedMetricSpecificationProperty
=
CustomizedMetricSpecificationProperty {CustomizedMetricSpecificationProperty -> ()
haddock_workaround_ :: (),
CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
dimensions :: (Prelude.Maybe [MetricDimensionProperty]),
CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metricName :: (Prelude.Maybe (Value Prelude.Text)),
CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
metrics :: (Prelude.Maybe [TargetTrackingMetricDataQueryProperty]),
CustomizedMetricSpecificationProperty -> Maybe (Value Text)
namespace :: (Prelude.Maybe (Value Prelude.Text)),
CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
period :: (Prelude.Maybe (Value Prelude.Integer)),
CustomizedMetricSpecificationProperty -> Maybe (Value Text)
statistic :: (Prelude.Maybe (Value Prelude.Text)),
CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool
(CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool)
-> (CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool)
-> Eq CustomizedMetricSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool
== :: CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool
$c/= :: CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool
/= :: CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty -> Bool
Prelude.Eq, Int -> CustomizedMetricSpecificationProperty -> ShowS
[CustomizedMetricSpecificationProperty] -> ShowS
CustomizedMetricSpecificationProperty -> String
(Int -> CustomizedMetricSpecificationProperty -> ShowS)
-> (CustomizedMetricSpecificationProperty -> String)
-> ([CustomizedMetricSpecificationProperty] -> ShowS)
-> Show CustomizedMetricSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomizedMetricSpecificationProperty -> ShowS
showsPrec :: Int -> CustomizedMetricSpecificationProperty -> ShowS
$cshow :: CustomizedMetricSpecificationProperty -> String
show :: CustomizedMetricSpecificationProperty -> String
$cshowList :: [CustomizedMetricSpecificationProperty] -> ShowS
showList :: [CustomizedMetricSpecificationProperty] -> ShowS
Prelude.Show)
mkCustomizedMetricSpecificationProperty ::
CustomizedMetricSpecificationProperty
mkCustomizedMetricSpecificationProperty :: CustomizedMetricSpecificationProperty
mkCustomizedMetricSpecificationProperty
= CustomizedMetricSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dimensions :: Maybe [MetricDimensionProperty]
dimensions = Maybe [MetricDimensionProperty]
forall a. Maybe a
Prelude.Nothing,
metricName :: Maybe (Value Text)
metricName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
metrics = Maybe [TargetTrackingMetricDataQueryProperty]
forall a. Maybe a
Prelude.Nothing,
namespace :: Maybe (Value Text)
namespace = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, period :: Maybe (Value Integer)
period = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
statistic :: Maybe (Value Text)
statistic = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, unit :: Maybe (Value Text)
unit = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomizedMetricSpecificationProperty where
toResourceProperties :: CustomizedMetricSpecificationProperty -> ResourceProperties
toResourceProperties CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AutoScaling::ScalingPolicy.CustomizedMetricSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"MetricName" (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)
metricName,
Key -> [TargetTrackingMetricDataQueryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metrics" ([TargetTrackingMetricDataQueryProperty] -> (Key, Value))
-> Maybe [TargetTrackingMetricDataQueryProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TargetTrackingMetricDataQueryProperty]
metrics,
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
"Namespace" (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)
namespace,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
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
"Statistic" (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)
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..=) 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 CustomizedMetricSpecificationProperty where
toJSON :: CustomizedMetricSpecificationProperty -> Value
toJSON CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (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
([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
"MetricName" (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)
metricName,
Key -> [TargetTrackingMetricDataQueryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metrics" ([TargetTrackingMetricDataQueryProperty] -> (Key, Value))
-> Maybe [TargetTrackingMetricDataQueryProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TargetTrackingMetricDataQueryProperty]
metrics,
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
"Namespace" (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)
namespace,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
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
"Statistic" (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)
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..=) 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" CustomizedMetricSpecificationProperty where
type PropertyType "Dimensions" CustomizedMetricSpecificationProperty = [MetricDimensionProperty]
set :: PropertyType "Dimensions" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Dimensions" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{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" CustomizedMetricSpecificationProperty
newValue, Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "MetricName" CustomizedMetricSpecificationProperty where
type PropertyType "MetricName" CustomizedMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType "MetricName" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "MetricName" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{metricName :: Maybe (Value Text)
metricName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MetricName" CustomizedMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "Metrics" CustomizedMetricSpecificationProperty where
type PropertyType "Metrics" CustomizedMetricSpecificationProperty = [TargetTrackingMetricDataQueryProperty]
set :: PropertyType "Metrics" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Metrics" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
metrics = [TargetTrackingMetricDataQueryProperty]
-> Maybe [TargetTrackingMetricDataQueryProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [TargetTrackingMetricDataQueryProperty]
PropertyType "Metrics" CustomizedMetricSpecificationProperty
newValue, Maybe [MetricDimensionProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "Namespace" CustomizedMetricSpecificationProperty where
type PropertyType "Namespace" CustomizedMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType "Namespace" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Namespace" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{namespace :: Maybe (Value Text)
namespace = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Namespace" CustomizedMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "Period" CustomizedMetricSpecificationProperty where
type PropertyType "Period" CustomizedMetricSpecificationProperty = Value Prelude.Integer
set :: PropertyType "Period" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Period" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{period :: Maybe (Value Integer)
period = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Period" CustomizedMetricSpecificationProperty
Value Integer
newValue, Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
instance Property "Statistic" CustomizedMetricSpecificationProperty where
type PropertyType "Statistic" CustomizedMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType "Statistic" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Statistic" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{statistic :: Maybe (Value Text)
statistic = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Statistic" CustomizedMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
unit :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
unit :: Maybe (Value Text)
..}
instance Property "Unit" CustomizedMetricSpecificationProperty where
type PropertyType "Unit" CustomizedMetricSpecificationProperty = Value Prelude.Text
set :: PropertyType "Unit" CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
-> CustomizedMetricSpecificationProperty
set PropertyType "Unit" CustomizedMetricSpecificationProperty
newValue CustomizedMetricSpecificationProperty {Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomizedMetricSpecificationProperty -> ()
dimensions :: CustomizedMetricSpecificationProperty
-> Maybe [MetricDimensionProperty]
metricName :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
metrics :: CustomizedMetricSpecificationProperty
-> Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
period :: CustomizedMetricSpecificationProperty -> Maybe (Value Integer)
statistic :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
unit :: CustomizedMetricSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
unit :: Maybe (Value Text)
..}
= CustomizedMetricSpecificationProperty
{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" CustomizedMetricSpecificationProperty
Value Text
newValue, Maybe [MetricDimensionProperty]
Maybe [TargetTrackingMetricDataQueryProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
haddock_workaround_ :: ()
dimensions :: Maybe [MetricDimensionProperty]
metricName :: Maybe (Value Text)
metrics :: Maybe [TargetTrackingMetricDataQueryProperty]
namespace :: Maybe (Value Text)
period :: Maybe (Value Integer)
statistic :: Maybe (Value Text)
..}