aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty

interface NotificationConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.NotificationConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_NotificationConfigurationProperty
Javasoftware.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty
Pythonaws_cdk.aws_autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty
TypeScript aws-cdk-lib » aws_autoscaling » CfnAutoScalingGroup » NotificationConfigurationProperty

A structure that specifies an Amazon SNS notification configuration for the NotificationConfigurations property of the AWS::AutoScaling::AutoScalingGroup resource.

For an example template snippet, see Auto scaling template snippets .

For more information, see Get Amazon SNS notifications when your Auto Scaling group scales in the Amazon EC2 Auto Scaling User Guide .

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';
const notificationConfigurationProperty: autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty = {
  topicArn: 'topicArn',

  // the properties below are optional
  notificationTypes: ['notificationTypes'],
};

Properties

NameTypeDescription
topicArnstringThe Amazon Resource Name (ARN) of the Amazon SNS topic.
notificationTypes?string[]A list of event types that send a notification. Event types can include any of the following types.

topicArn

Type: string

The Amazon Resource Name (ARN) of the Amazon SNS topic.


notificationTypes?

Type: string[] (optional)

A list of event types that send a notification. Event types can include any of the following types.

Allowed values :

  • autoscaling:EC2_INSTANCE_LAUNCH
  • autoscaling:EC2_INSTANCE_LAUNCH_ERROR
  • autoscaling:EC2_INSTANCE_TERMINATE
  • autoscaling:EC2_INSTANCE_TERMINATE_ERROR
  • autoscaling:TEST_NOTIFICATION