Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Executes the specified policy. This can be useful for testing the design of your scaling policy.
Synopsis
- data ExecutePolicy = ExecutePolicy' {}
- newExecutePolicy :: Text -> ExecutePolicy
- executePolicy_autoScalingGroupName :: Lens' ExecutePolicy (Maybe Text)
- executePolicy_breachThreshold :: Lens' ExecutePolicy (Maybe Double)
- executePolicy_honorCooldown :: Lens' ExecutePolicy (Maybe Bool)
- executePolicy_metricValue :: Lens' ExecutePolicy (Maybe Double)
- executePolicy_policyName :: Lens' ExecutePolicy Text
- data ExecutePolicyResponse = ExecutePolicyResponse' {
- newExecutePolicyResponse :: ExecutePolicyResponse
Creating a Request
data ExecutePolicy Source #
See: newExecutePolicy
smart constructor.
ExecutePolicy' | |
|
Instances
Create a value of ExecutePolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ExecutePolicy
, executePolicy_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:breachThreshold:ExecutePolicy'
, executePolicy_breachThreshold
- The breach threshold for the alarm.
Required if the policy type is StepScaling
and not supported
otherwise.
$sel:honorCooldown:ExecutePolicy'
, executePolicy_honorCooldown
- Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period
to complete before executing the policy.
Valid only if the policy type is SimpleScaling
. For more information,
see
Scaling cooldowns for Amazon EC2 Auto Scaling
in the Amazon EC2 Auto Scaling User Guide.
$sel:metricValue:ExecutePolicy'
, executePolicy_metricValue
- The metric value to compare to BreachThreshold
. This enables you to
execute a policy of type StepScaling
and determine which step
adjustment to use. For example, if the breach threshold is 50 and you
want to use a step adjustment with a lower bound of 0 and an upper bound
of 10, you can set the metric value to 59.
If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
Required if the policy type is StepScaling
and not supported
otherwise.
ExecutePolicy
, executePolicy_policyName
- The name or ARN of the policy.
Request Lenses
executePolicy_autoScalingGroupName :: Lens' ExecutePolicy (Maybe Text) Source #
The name of the Auto Scaling group.
executePolicy_breachThreshold :: Lens' ExecutePolicy (Maybe Double) Source #
The breach threshold for the alarm.
Required if the policy type is StepScaling
and not supported
otherwise.
executePolicy_honorCooldown :: Lens' ExecutePolicy (Maybe Bool) Source #
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.
Valid only if the policy type is SimpleScaling
. For more information,
see
Scaling cooldowns for Amazon EC2 Auto Scaling
in the Amazon EC2 Auto Scaling User Guide.
executePolicy_metricValue :: Lens' ExecutePolicy (Maybe Double) Source #
The metric value to compare to BreachThreshold
. This enables you to
execute a policy of type StepScaling
and determine which step
adjustment to use. For example, if the breach threshold is 50 and you
want to use a step adjustment with a lower bound of 0 and an upper bound
of 10, you can set the metric value to 59.
If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
Required if the policy type is StepScaling
and not supported
otherwise.
executePolicy_policyName :: Lens' ExecutePolicy Text Source #
The name or ARN of the policy.
Destructuring the Response
data ExecutePolicyResponse Source #
See: newExecutePolicyResponse
smart constructor.
Instances
Generic ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy type Rep ExecutePolicyResponse :: Type -> Type # | |
Read ExecutePolicyResponse Source # | |
Show ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy showsPrec :: Int -> ExecutePolicyResponse -> ShowS # show :: ExecutePolicyResponse -> String # showList :: [ExecutePolicyResponse] -> ShowS # | |
NFData ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy rnf :: ExecutePolicyResponse -> () # | |
Eq ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy (==) :: ExecutePolicyResponse -> ExecutePolicyResponse -> Bool # (/=) :: ExecutePolicyResponse -> ExecutePolicyResponse -> Bool # | |
type Rep ExecutePolicyResponse Source # | |
newExecutePolicyResponse :: ExecutePolicyResponse Source #
Create a value of ExecutePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.