module Stratosphere.GameLift.ContainerFleet.ScalingPolicyProperty (
        module Exports, ScalingPolicyProperty(..), mkScalingPolicyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GameLift.ContainerFleet.TargetConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScalingPolicyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html>
    ScalingPolicyProperty {ScalingPolicyProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-comparisonoperator>
                           ScalingPolicyProperty -> Maybe (Value Text)
comparisonOperator :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-evaluationperiods>
                           ScalingPolicyProperty -> Maybe (Value Integer)
evaluationPeriods :: (Prelude.Maybe (Value Prelude.Integer)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-metricname>
                           ScalingPolicyProperty -> Value Text
metricName :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-name>
                           ScalingPolicyProperty -> Value Text
name :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-policytype>
                           ScalingPolicyProperty -> Maybe (Value Text)
policyType :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-scalingadjustment>
                           ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustment :: (Prelude.Maybe (Value Prelude.Integer)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-scalingadjustmenttype>
                           ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustmentType :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-targetconfiguration>
                           ScalingPolicyProperty -> Maybe TargetConfigurationProperty
targetConfiguration :: (Prelude.Maybe TargetConfigurationProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html#cfn-gamelift-containerfleet-scalingpolicy-threshold>
                           ScalingPolicyProperty -> Maybe (Value Double)
threshold :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (ScalingPolicyProperty -> ScalingPolicyProperty -> Bool
(ScalingPolicyProperty -> ScalingPolicyProperty -> Bool)
-> (ScalingPolicyProperty -> ScalingPolicyProperty -> Bool)
-> Eq ScalingPolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScalingPolicyProperty -> ScalingPolicyProperty -> Bool
== :: ScalingPolicyProperty -> ScalingPolicyProperty -> Bool
$c/= :: ScalingPolicyProperty -> ScalingPolicyProperty -> Bool
/= :: ScalingPolicyProperty -> ScalingPolicyProperty -> Bool
Prelude.Eq, Int -> ScalingPolicyProperty -> ShowS
[ScalingPolicyProperty] -> ShowS
ScalingPolicyProperty -> String
(Int -> ScalingPolicyProperty -> ShowS)
-> (ScalingPolicyProperty -> String)
-> ([ScalingPolicyProperty] -> ShowS)
-> Show ScalingPolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScalingPolicyProperty -> ShowS
showsPrec :: Int -> ScalingPolicyProperty -> ShowS
$cshow :: ScalingPolicyProperty -> String
show :: ScalingPolicyProperty -> String
$cshowList :: [ScalingPolicyProperty] -> ShowS
showList :: [ScalingPolicyProperty] -> ShowS
Prelude.Show)
mkScalingPolicyProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ScalingPolicyProperty
mkScalingPolicyProperty :: Value Text -> Value Text -> ScalingPolicyProperty
mkScalingPolicyProperty Value Text
metricName Value Text
name
  = ScalingPolicyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), metricName :: Value Text
metricName = Value Text
metricName, name :: Value Text
name = Value Text
name,
       comparisonOperator :: Maybe (Value Text)
comparisonOperator = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       evaluationPeriods :: Maybe (Value Integer)
evaluationPeriods = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, policyType :: Maybe (Value Text)
policyType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       scalingAdjustment :: Maybe (Value Integer)
scalingAdjustment = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       scalingAdjustmentType :: Maybe (Value Text)
scalingAdjustmentType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       targetConfiguration :: Maybe TargetConfigurationProperty
targetConfiguration = Maybe TargetConfigurationProperty
forall a. Maybe a
Prelude.Nothing, threshold :: Maybe (Value Double)
threshold = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScalingPolicyProperty where
  toResourceProperties :: ScalingPolicyProperty -> ResourceProperties
toResourceProperties ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::ContainerFleet.ScalingPolicy",
         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
"Name" 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
name]
                           ([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
"ComparisonOperator" (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)
comparisonOperator,
                               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
"EvaluationPeriods" (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)
evaluationPeriods,
                               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
"PolicyType" (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)
policyType,
                               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
"ScalingAdjustment" (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)
scalingAdjustment,
                               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
"ScalingAdjustmentType"
                                 (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)
scalingAdjustmentType,
                               Key -> TargetConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetConfiguration" (TargetConfigurationProperty -> (Key, Value))
-> Maybe TargetConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TargetConfigurationProperty
targetConfiguration,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Threshold" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
threshold]))}
instance JSON.ToJSON ScalingPolicyProperty where
  toJSON :: ScalingPolicyProperty -> Value
toJSON ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = [(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
"Name" 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
name]
              ([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
"ComparisonOperator" (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)
comparisonOperator,
                  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
"EvaluationPeriods" (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)
evaluationPeriods,
                  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
"PolicyType" (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)
policyType,
                  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
"ScalingAdjustment" (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)
scalingAdjustment,
                  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
"ScalingAdjustmentType"
                    (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)
scalingAdjustmentType,
                  Key -> TargetConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetConfiguration" (TargetConfigurationProperty -> (Key, Value))
-> Maybe TargetConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TargetConfigurationProperty
targetConfiguration,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Threshold" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
threshold])))
instance Property "ComparisonOperator" ScalingPolicyProperty where
  type PropertyType "ComparisonOperator" ScalingPolicyProperty = Value Prelude.Text
  set :: PropertyType "ComparisonOperator" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "ComparisonOperator" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty
        {comparisonOperator :: Maybe (Value Text)
comparisonOperator = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComparisonOperator" ScalingPolicyProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "EvaluationPeriods" ScalingPolicyProperty where
  type PropertyType "EvaluationPeriods" ScalingPolicyProperty = Value Prelude.Integer
  set :: PropertyType "EvaluationPeriods" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "EvaluationPeriods" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty
        {evaluationPeriods :: Maybe (Value Integer)
evaluationPeriods = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EvaluationPeriods" ScalingPolicyProperty
Value Integer
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "MetricName" ScalingPolicyProperty where
  type PropertyType "MetricName" ScalingPolicyProperty = Value Prelude.Text
  set :: PropertyType "MetricName" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "MetricName" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty {metricName :: Value Text
metricName = PropertyType "MetricName" ScalingPolicyProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "Name" ScalingPolicyProperty where
  type PropertyType "Name" ScalingPolicyProperty = Value Prelude.Text
  set :: PropertyType "Name" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "Name" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty {name :: Value Text
name = PropertyType "Name" ScalingPolicyProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "PolicyType" ScalingPolicyProperty where
  type PropertyType "PolicyType" ScalingPolicyProperty = Value Prelude.Text
  set :: PropertyType "PolicyType" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "PolicyType" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty {policyType :: Maybe (Value Text)
policyType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PolicyType" ScalingPolicyProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "ScalingAdjustment" ScalingPolicyProperty where
  type PropertyType "ScalingAdjustment" ScalingPolicyProperty = Value Prelude.Integer
  set :: PropertyType "ScalingAdjustment" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "ScalingAdjustment" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty
        {scalingAdjustment :: Maybe (Value Integer)
scalingAdjustment = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingAdjustment" ScalingPolicyProperty
Value Integer
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "ScalingAdjustmentType" ScalingPolicyProperty where
  type PropertyType "ScalingAdjustmentType" ScalingPolicyProperty = Value Prelude.Text
  set :: PropertyType "ScalingAdjustmentType" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "ScalingAdjustmentType" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty
        {scalingAdjustmentType :: Maybe (Value Text)
scalingAdjustmentType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingAdjustmentType" ScalingPolicyProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
instance Property "TargetConfiguration" ScalingPolicyProperty where
  type PropertyType "TargetConfiguration" ScalingPolicyProperty = TargetConfigurationProperty
  set :: PropertyType "TargetConfiguration" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "TargetConfiguration" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty
        {targetConfiguration :: Maybe TargetConfigurationProperty
targetConfiguration = TargetConfigurationProperty -> Maybe TargetConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetConfiguration" ScalingPolicyProperty
TargetConfigurationProperty
newValue, Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
threshold :: Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
threshold :: Maybe (Value Double)
..}
instance Property "Threshold" ScalingPolicyProperty where
  type PropertyType "Threshold" ScalingPolicyProperty = Value Prelude.Double
  set :: PropertyType "Threshold" ScalingPolicyProperty
-> ScalingPolicyProperty -> ScalingPolicyProperty
set PropertyType "Threshold" ScalingPolicyProperty
newValue ScalingPolicyProperty {Maybe (Value Double)
Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ScalingPolicyProperty -> ()
comparisonOperator :: ScalingPolicyProperty -> Maybe (Value Text)
evaluationPeriods :: ScalingPolicyProperty -> Maybe (Value Integer)
metricName :: ScalingPolicyProperty -> Value Text
name :: ScalingPolicyProperty -> Value Text
policyType :: ScalingPolicyProperty -> Maybe (Value Text)
scalingAdjustment :: ScalingPolicyProperty -> Maybe (Value Integer)
scalingAdjustmentType :: ScalingPolicyProperty -> Maybe (Value Text)
targetConfiguration :: ScalingPolicyProperty -> Maybe TargetConfigurationProperty
threshold :: ScalingPolicyProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
threshold :: Maybe (Value Double)
..}
    = ScalingPolicyProperty {threshold :: Maybe (Value Double)
threshold = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Threshold" ScalingPolicyProperty
Value Double
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe TargetConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
evaluationPeriods :: Maybe (Value Integer)
metricName :: Value Text
name :: Value Text
policyType :: Maybe (Value Text)
scalingAdjustment :: Maybe (Value Integer)
scalingAdjustmentType :: Maybe (Value Text)
targetConfiguration :: Maybe TargetConfigurationProperty
..}