Class CfnAutoScalingGroup.NotificationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.NotificationConfigurationProperty>
- Enclosing interface:
CfnAutoScalingGroup.NotificationConfigurationProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.NotificationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.NotificationConfigurationProperty>
A builder for
CfnAutoScalingGroup.NotificationConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.notificationTypes
(List<String> notificationTypes) Sets the value ofCfnAutoScalingGroup.NotificationConfigurationProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicArn
@Stability(Stable) public CfnAutoScalingGroup.NotificationConfigurationProperty.Builder topicArn(String topicArn) Sets the value ofCfnAutoScalingGroup.NotificationConfigurationProperty.getTopicArn()
- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic. This parameter is required.- Returns:
this
-
notificationTypes
@Stability(Stable) public CfnAutoScalingGroup.NotificationConfigurationProperty.Builder notificationTypes(List<String> notificationTypes) - Parameters:
notificationTypes
- 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
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.NotificationConfigurationProperty>
- Returns:
- a new instance of
CfnAutoScalingGroup.NotificationConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-