# ApplicationScalingAction

Use an ApplicationAutoScaling StepScalingAction as an Alarm Action.

Implements: [IAlarmAction](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.IAlarmAction.html)

- Source: [`aws-cloudwatch-actions/lib/appscaling.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/appscaling.ts#L8)
- Type last changed: v2.236.0 · 23 Jan 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
import { aws_cloudwatch_actions as cloudwatch_actions } from 'aws-cdk-lib';

declare const stepScalingAction: appscaling.StepScalingAction;
const applicationScalingAction = new cloudwatch_actions.ApplicationScalingAction(stepScalingAction);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationautoscaling as appscaling
from aws_cdk import aws_cloudwatch_actions as cloudwatch_actions

# step_scaling_action: appscaling.StepScalingAction

application_scaling_action = cloudwatch_actions.ApplicationScalingAction(step_scaling_action)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationautoscaling.*;
import software.amazon.awscdk.services.cloudwatch.actions.*;

StepScalingAction stepScalingAction;

ApplicationScalingAction applicationScalingAction = new ApplicationScalingAction(stepScalingAction);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationAutoScaling;
using Amazon.CDK.AWS.CloudWatch.Actions;

StepScalingAction stepScalingAction;

var applicationScalingAction = new ApplicationScalingAction(stepScalingAction);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var stepScalingAction StepScalingAction

applicationScalingAction := awscdk.Aws_cloudwatch_actions.NewApplicationScalingAction(stepScalingAction)
```

## Initializer

TypeScript:

```ts
new ApplicationScalingAction(stepScalingAction: StepScalingAction)
```

Python:

```python
ApplicationScalingAction(step_scaling_action: StepScalingAction)
```

Java:

```java
new ApplicationScalingAction(StepScalingAction stepScalingAction)
```

C# / .NET:

```csharp
new ApplicationScalingAction(StepScalingAction stepScalingAction)
```

Golang:

```go
NewApplicationScalingAction(StepScalingAction StepScalingAction)
```

## Methods

- `bind(_scope: Construct, _alarm: IAlarm): AlarmActionConfig` — Returns an alarm action configuration to use an ApplicationScaling StepScalingAction as an alarm action.
