Class CfnMaintenanceWindowTask.NotificationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.NotificationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTask.NotificationConfigProperty>
- Enclosing interface:
- CfnMaintenanceWindowTask.NotificationConfigProperty
@Stability(Stable)
public static final class CfnMaintenanceWindowTask.NotificationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTask.NotificationConfigProperty>
A builder for
CfnMaintenanceWindowTask.NotificationConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.notificationArn(String notificationArn) Sets the value ofCfnMaintenanceWindowTask.NotificationConfigProperty.getNotificationArn()notificationEvents(List<String> notificationEvents) notificationType(String notificationType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notificationArn
@Stability(Stable) public CfnMaintenanceWindowTask.NotificationConfigProperty.Builder notificationArn(String notificationArn) Sets the value ofCfnMaintenanceWindowTask.NotificationConfigProperty.getNotificationArn()- Parameters:
notificationArn- An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. This parameter is required. Run Command pushes notifications about command status changes to this topic.- Returns:
this
-
notificationEvents
@Stability(Stable) public CfnMaintenanceWindowTask.NotificationConfigProperty.Builder notificationEvents(List<String> notificationEvents) - Parameters:
notificationEvents- The different events that you can receive notifications for. These events include the following:All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide .- Returns:
this
-
notificationType
@Stability(Stable) public CfnMaintenanceWindowTask.NotificationConfigProperty.Builder notificationType(String notificationType) - Parameters:
notificationType- The notification type.Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTask.NotificationConfigProperty>- Returns:
- a new instance of
CfnMaintenanceWindowTask.NotificationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-