Interface CfnAutoScalingGroup.NotificationConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAutoScalingGroup.NotificationConfigurationProperty.Jsii$Proxy
- Enclosing class:
- CfnAutoScalingGroup
@Stability(Stable)
public static interface CfnAutoScalingGroup.NotificationConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.autoscaling.*;
NotificationConfigurationProperty notificationConfigurationProperty = NotificationConfigurationProperty.builder()
.topicArn("topicArn")
// the properties below are optional
.notificationTypes(List.of("notificationTypes"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAutoScalingGroup.NotificationConfigurationPropertystatic final classAn implementation forCfnAutoScalingGroup.NotificationConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of event types that send a notification.The Amazon Resource Name (ARN) of the Amazon SNS topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic. -
getNotificationTypes
A list of event types that send a notification. Event types can include any of the following types.Allowed values :
autoscaling:EC2_INSTANCE_LAUNCHautoscaling:EC2_INSTANCE_LAUNCH_ERRORautoscaling:EC2_INSTANCE_TERMINATEautoscaling:EC2_INSTANCE_TERMINATE_ERRORautoscaling:TEST_NOTIFICATION
-
builder
-