aws-cdk-lib.aws_autoscaling.NotificationConfiguration

interface NotificationConfiguration

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.NotificationConfiguration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#NotificationConfiguration
Javasoftware.amazon.awscdk.services.autoscaling.NotificationConfiguration
Pythonaws_cdk.aws_autoscaling.NotificationConfiguration
TypeScript (source)aws-cdk-lib » aws_autoscaling » NotificationConfiguration

AutoScalingGroup fleet change notifications configurations.

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

Example

// 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

NameTypeDescription
topicITopicSNS topic to send notifications about fleet scaling events.
scalingEvents?ScalingEventsWhich fleet scaling events triggers a notification.

topic

Type: ITopic

SNS topic to send notifications about fleet scaling events.


scalingEvents?

Type: ScalingEvents (optional, default: ScalingEvents.ALL)

Which fleet scaling events triggers a notification.