module Stratosphere.ApplicationAutoScaling.ScalingPolicy.PredictiveScalingPolicyConfigurationProperty (
        module Exports, PredictiveScalingPolicyConfigurationProperty(..),
        mkPredictiveScalingPolicyConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApplicationAutoScaling.ScalingPolicy.PredictiveScalingMetricSpecificationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredictiveScalingPolicyConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html>
    PredictiveScalingPolicyConfigurationProperty {PredictiveScalingPolicyConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration-maxcapacitybreachbehavior>
                                                  PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBreachBehavior :: (Prelude.Maybe (Value Prelude.Text)),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration-maxcapacitybuffer>
                                                  PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
maxCapacityBuffer :: (Prelude.Maybe (Value Prelude.Integer)),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration-metricspecifications>
                                                  PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty],
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration-mode>
                                                  PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
mode :: (Prelude.Maybe (Value Prelude.Text)),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingpolicyconfiguration-schedulingbuffertime>
                                                  PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
schedulingBufferTime :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty -> Bool
(PredictiveScalingPolicyConfigurationProperty
 -> PredictiveScalingPolicyConfigurationProperty -> Bool)
-> (PredictiveScalingPolicyConfigurationProperty
    -> PredictiveScalingPolicyConfigurationProperty -> Bool)
-> Eq PredictiveScalingPolicyConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty -> Bool
== :: PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty -> Bool
$c/= :: PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty -> Bool
/= :: PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty -> Bool
Prelude.Eq, Int -> PredictiveScalingPolicyConfigurationProperty -> ShowS
[PredictiveScalingPolicyConfigurationProperty] -> ShowS
PredictiveScalingPolicyConfigurationProperty -> String
(Int -> PredictiveScalingPolicyConfigurationProperty -> ShowS)
-> (PredictiveScalingPolicyConfigurationProperty -> String)
-> ([PredictiveScalingPolicyConfigurationProperty] -> ShowS)
-> Show PredictiveScalingPolicyConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredictiveScalingPolicyConfigurationProperty -> ShowS
showsPrec :: Int -> PredictiveScalingPolicyConfigurationProperty -> ShowS
$cshow :: PredictiveScalingPolicyConfigurationProperty -> String
show :: PredictiveScalingPolicyConfigurationProperty -> String
$cshowList :: [PredictiveScalingPolicyConfigurationProperty] -> ShowS
showList :: [PredictiveScalingPolicyConfigurationProperty] -> ShowS
Prelude.Show)
mkPredictiveScalingPolicyConfigurationProperty ::
  [PredictiveScalingMetricSpecificationProperty]
  -> PredictiveScalingPolicyConfigurationProperty
mkPredictiveScalingPolicyConfigurationProperty :: [PredictiveScalingMetricSpecificationProperty]
-> PredictiveScalingPolicyConfigurationProperty
mkPredictiveScalingPolicyConfigurationProperty [PredictiveScalingMetricSpecificationProperty]
metricSpecifications
  = PredictiveScalingPolicyConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
metricSpecifications = [PredictiveScalingMetricSpecificationProperty]
metricSpecifications,
       maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBreachBehavior = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       maxCapacityBuffer :: Maybe (Value Integer)
maxCapacityBuffer = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, mode :: Maybe (Value Text)
mode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       schedulingBufferTime :: Maybe (Value Integer)
schedulingBufferTime = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PredictiveScalingPolicyConfigurationProperty where
  toResourceProperties :: PredictiveScalingPolicyConfigurationProperty -> ResourceProperties
toResourceProperties
    PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApplicationAutoScaling::ScalingPolicy.PredictiveScalingPolicyConfiguration",
         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
"MetricSpecifications" Key
-> [PredictiveScalingMetricSpecificationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [PredictiveScalingMetricSpecificationProperty]
metricSpecifications]
                           ([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
"MaxCapacityBreachBehavior"
                                 (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)
maxCapacityBreachBehavior,
                               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
"MaxCapacityBuffer" (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)
maxCapacityBuffer,
                               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
"Mode" (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)
mode,
                               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
"SchedulingBufferTime"
                                 (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)
schedulingBufferTime]))}
instance JSON.ToJSON PredictiveScalingPolicyConfigurationProperty where
  toJSON :: PredictiveScalingPolicyConfigurationProperty -> Value
toJSON PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = [(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
"MetricSpecifications" Key
-> [PredictiveScalingMetricSpecificationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [PredictiveScalingMetricSpecificationProperty]
metricSpecifications]
              ([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
"MaxCapacityBreachBehavior"
                    (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)
maxCapacityBreachBehavior,
                  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
"MaxCapacityBuffer" (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)
maxCapacityBuffer,
                  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
"Mode" (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)
mode,
                  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
"SchedulingBufferTime"
                    (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)
schedulingBufferTime])))
instance Property "MaxCapacityBreachBehavior" PredictiveScalingPolicyConfigurationProperty where
  type PropertyType "MaxCapacityBreachBehavior" PredictiveScalingPolicyConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "MaxCapacityBreachBehavior"
  PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
set PropertyType
  "MaxCapacityBreachBehavior"
  PredictiveScalingPolicyConfigurationProperty
newValue PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = PredictiveScalingPolicyConfigurationProperty
        {maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBreachBehavior = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MaxCapacityBreachBehavior"
  PredictiveScalingPolicyConfigurationProperty
Value Text
newValue, [PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
instance Property "MaxCapacityBuffer" PredictiveScalingPolicyConfigurationProperty where
  type PropertyType "MaxCapacityBuffer" PredictiveScalingPolicyConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "MaxCapacityBuffer" PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
set PropertyType
  "MaxCapacityBuffer" PredictiveScalingPolicyConfigurationProperty
newValue PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = PredictiveScalingPolicyConfigurationProperty
        {maxCapacityBuffer :: Maybe (Value Integer)
maxCapacityBuffer = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MaxCapacityBuffer" PredictiveScalingPolicyConfigurationProperty
Value Integer
newValue, [PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
instance Property "MetricSpecifications" PredictiveScalingPolicyConfigurationProperty where
  type PropertyType "MetricSpecifications" PredictiveScalingPolicyConfigurationProperty = [PredictiveScalingMetricSpecificationProperty]
  set :: PropertyType
  "MetricSpecifications" PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
set PropertyType
  "MetricSpecifications" PredictiveScalingPolicyConfigurationProperty
newValue PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = PredictiveScalingPolicyConfigurationProperty
        {metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
metricSpecifications = [PredictiveScalingMetricSpecificationProperty]
PropertyType
  "MetricSpecifications" PredictiveScalingPolicyConfigurationProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
instance Property "Mode" PredictiveScalingPolicyConfigurationProperty where
  type PropertyType "Mode" PredictiveScalingPolicyConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Mode" PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
set PropertyType "Mode" PredictiveScalingPolicyConfigurationProperty
newValue PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = PredictiveScalingPolicyConfigurationProperty
        {mode :: Maybe (Value Text)
mode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mode" PredictiveScalingPolicyConfigurationProperty
Value Text
newValue, [PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
schedulingBufferTime :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
schedulingBufferTime :: Maybe (Value Integer)
..}
instance Property "SchedulingBufferTime" PredictiveScalingPolicyConfigurationProperty where
  type PropertyType "SchedulingBufferTime" PredictiveScalingPolicyConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "SchedulingBufferTime" PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
-> PredictiveScalingPolicyConfigurationProperty
set PropertyType
  "SchedulingBufferTime" PredictiveScalingPolicyConfigurationProperty
newValue PredictiveScalingPolicyConfigurationProperty {[PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: PredictiveScalingPolicyConfigurationProperty -> ()
maxCapacityBreachBehavior :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
maxCapacityBuffer :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
metricSpecifications :: PredictiveScalingPolicyConfigurationProperty
-> [PredictiveScalingMetricSpecificationProperty]
mode :: PredictiveScalingPolicyConfigurationProperty -> Maybe (Value Text)
schedulingBufferTime :: PredictiveScalingPolicyConfigurationProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
schedulingBufferTime :: Maybe (Value Integer)
..}
    = PredictiveScalingPolicyConfigurationProperty
        {schedulingBufferTime :: Maybe (Value Integer)
schedulingBufferTime = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SchedulingBufferTime" PredictiveScalingPolicyConfigurationProperty
Value Integer
newValue, [PredictiveScalingMetricSpecificationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
haddock_workaround_ :: ()
maxCapacityBreachBehavior :: Maybe (Value Text)
maxCapacityBuffer :: Maybe (Value Integer)
metricSpecifications :: [PredictiveScalingMetricSpecificationProperty]
mode :: Maybe (Value Text)
..}