AutoScalingAction

class aws_cdk.aws_cloudwatch_actions.AutoScalingAction(step_scaling_action)

Bases: object

Use an AutoScaling StepScalingAction as an Alarm Action.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_autoscaling as autoscaling
import aws_cdk.aws_cloudwatch_actions as cloudwatch_actions

# step_scaling_action is of type StepScalingAction

auto_scaling_action = cloudwatch_actions.AutoScalingAction(step_scaling_action)
Parameters

step_scaling_action (StepScalingAction) –

Methods

bind(_scope, _alarm)

Returns an alarm action configuration to use an AutoScaling StepScalingAction as an alarm action.

Parameters
Return type

AlarmActionConfig