Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Executes the specified policy. This can be useful for testing the design of your scaling policy.
Synopsis
- data ExecutePolicy = ExecutePolicy' {}
- newExecutePolicy :: Text -> ExecutePolicy
- executePolicy_honorCooldown :: Lens' ExecutePolicy (Maybe Bool)
- executePolicy_metricValue :: Lens' ExecutePolicy (Maybe Double)
- executePolicy_autoScalingGroupName :: Lens' ExecutePolicy (Maybe Text)
- executePolicy_breachThreshold :: 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:
$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.
$sel:autoScalingGroupName: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:policyName:ExecutePolicy'
, executePolicy_policyName
- The name or ARN of the policy.
Request Lenses
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_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_policyName :: Lens' ExecutePolicy Text Source #
The name or ARN of the policy.
Destructuring the Response
data ExecutePolicyResponse Source #
See: newExecutePolicyResponse
smart constructor.
Instances
Eq ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy (==) :: ExecutePolicyResponse -> ExecutePolicyResponse -> Bool # (/=) :: ExecutePolicyResponse -> ExecutePolicyResponse -> Bool # | |
Read ExecutePolicyResponse Source # | |
Show ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy showsPrec :: Int -> ExecutePolicyResponse -> ShowS # show :: ExecutePolicyResponse -> String # showList :: [ExecutePolicyResponse] -> ShowS # | |
Generic ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy type Rep ExecutePolicyResponse :: Type -> Type # | |
NFData ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy rnf :: ExecutePolicyResponse -> () # | |
type Rep ExecutePolicyResponse Source # | |
Defined in Amazonka.AutoScaling.ExecutePolicy |
newExecutePolicyResponse :: ExecutePolicyResponse Source #
Create a value of ExecutePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.