@Stability(value=Stable)
public static interface CfnAutoScalingGroup.NotificationConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAutoScalingGroup.NotificationConfigurationProperty.Builder
A builder for
CfnAutoScalingGroup.NotificationConfigurationProperty |
static class |
CfnAutoScalingGroup.NotificationConfigurationProperty.Jsii$Proxy
An implementation for
CfnAutoScalingGroup.NotificationConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAutoScalingGroup.NotificationConfigurationProperty.Builder |
builder() |
default List<String> |
getNotificationTypes()
A list of event types that send a notification.
|
String |
getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic.
|
@Stability(value=Stable) @NotNull String getTopicArn()
@Stability(value=Stable) @Nullable default List<String> getNotificationTypes()
Allowed values :
autoscaling:EC2_INSTANCE_LAUNCHautoscaling:EC2_INSTANCE_LAUNCH_ERRORautoscaling:EC2_INSTANCE_TERMINATEautoscaling:EC2_INSTANCE_TERMINATE_ERRORautoscaling:TEST_NOTIFICATION@Stability(value=Stable) static CfnAutoScalingGroup.NotificationConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.