stratosphere-applicationautoscaling-1.0.0: gen/Stratosphere/ApplicationAutoScaling/ScalingPolicy/PredictiveScalingMetricStatProperty.hs
module Stratosphere.ApplicationAutoScaling.ScalingPolicy.PredictiveScalingMetricStatProperty (
module Exports, PredictiveScalingMetricStatProperty(..),
mkPredictiveScalingMetricStatProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApplicationAutoScaling.ScalingPolicy.PredictiveScalingMetricProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredictiveScalingMetricStatProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html>
PredictiveScalingMetricStatProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-metric>
metric :: (Prelude.Maybe PredictiveScalingMetricProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-stat>
stat :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-unit>
unit :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkPredictiveScalingMetricStatProperty ::
PredictiveScalingMetricStatProperty
mkPredictiveScalingMetricStatProperty
= PredictiveScalingMetricStatProperty
{haddock_workaround_ = (), metric = Prelude.Nothing,
stat = Prelude.Nothing, unit = Prelude.Nothing}
instance ToResourceProperties PredictiveScalingMetricStatProperty where
toResourceProperties PredictiveScalingMetricStatProperty {..}
= ResourceProperties
{awsType = "AWS::ApplicationAutoScaling::ScalingPolicy.PredictiveScalingMetricStat",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Metric" Prelude.<$> metric,
(JSON..=) "Stat" Prelude.<$> stat,
(JSON..=) "Unit" Prelude.<$> unit])}
instance JSON.ToJSON PredictiveScalingMetricStatProperty where
toJSON PredictiveScalingMetricStatProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Metric" Prelude.<$> metric,
(JSON..=) "Stat" Prelude.<$> stat,
(JSON..=) "Unit" Prelude.<$> unit]))
instance Property "Metric" PredictiveScalingMetricStatProperty where
type PropertyType "Metric" PredictiveScalingMetricStatProperty = PredictiveScalingMetricProperty
set newValue PredictiveScalingMetricStatProperty {..}
= PredictiveScalingMetricStatProperty
{metric = Prelude.pure newValue, ..}
instance Property "Stat" PredictiveScalingMetricStatProperty where
type PropertyType "Stat" PredictiveScalingMetricStatProperty = Value Prelude.Text
set newValue PredictiveScalingMetricStatProperty {..}
= PredictiveScalingMetricStatProperty
{stat = Prelude.pure newValue, ..}
instance Property "Unit" PredictiveScalingMetricStatProperty where
type PropertyType "Unit" PredictiveScalingMetricStatProperty = Value Prelude.Text
set newValue PredictiveScalingMetricStatProperty {..}
= PredictiveScalingMetricStatProperty
{unit = Prelude.pure newValue, ..}