# NotificationConfiguration

AutoScalingGroup fleet change notifications configurations.

You can configure AutoScaling to send an SNS notification whenever your Auto Scaling group scales.

- Source: [`aws-autoscaling/lib/auto-scaling-group.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L2454)

## Example

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

declare const scalingEvents: autoscaling.ScalingEvents;
declare const topic: sns.Topic;
const notificationConfiguration: autoscaling.NotificationConfiguration = {
  topic: topic,

  // the properties below are optional
  scalingEvents: scalingEvents,
};
```

## Properties

- `scalingEvents`: [ScalingEvents](/cdk/api/v2/docs/aws-cdk-lib.aws_autoscaling.ScalingEvents.html) = ScalingEvents.ALL — Which fleet scaling events triggers a notification.

- `topic`: [ITopic](/cdk/api/v2/docs/aws-cdk-lib.aws_sns.ITopic.html) (required) — SNS topic to send notifications about fleet scaling events.
