Class CfnEventSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.dms.CfnEventSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionProps>
- Enclosing interface:
CfnEventSubscriptionProps
@Stability(Stable)
public static final class CfnEventSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionProps>
A builder for
CfnEventSubscriptionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnEventSubscriptionProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnEventSubscriptionProps.getEnabled()
eventCategories
(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()
snsTopicArn
(String snsTopicArn) Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()
Sets the value ofCfnEventSubscriptionProps.getSourceIds()
sourceType
(String sourceType) Sets the value ofCfnEventSubscriptionProps.getSourceType()
subscriptionName
(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()
Sets the value ofCfnEventSubscriptionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snsTopicArn
Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. This parameter is required. The ARN is created by Amazon SNS when you create a topic and subscribe to it.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()
- Parameters:
enabled
- Indicates whether to activate the subscription. If you don't specify this property, AWS CloudFormation activates the subscription.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()
- Parameters:
enabled
- Indicates whether to activate the subscription. If you don't specify this property, AWS CloudFormation activates the subscription.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()
- Parameters:
eventCategories
- A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories. For more information, see Working with Events and Notifications in the AWS DMS User Guide .- Returns:
this
-
sourceIds
Sets the value ofCfnEventSubscriptionProps.getSourceIds()
- Parameters:
sourceIds
- A list of identifiers for which AWS DMS provides notification events. If you don't specify a value, notifications are provided for all sources.If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- Returns:
this
-
sourceType
Sets the value ofCfnEventSubscriptionProps.getSourceType()
- Parameters:
sourceType
- The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter toreplication-instance
. If this value isn't specified, all events are returned.Valid values :
replication-instance
|replication-task
- Returns:
this
-
subscriptionName
@Stability(Stable) public CfnEventSubscriptionProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()
- Parameters:
subscriptionName
- The name of the AWS DMS event notification subscription. This name must be less than 255 characters.- Returns:
this
-
tags
Sets the value ofCfnEventSubscriptionProps.getTags()
- Parameters:
tags
- One or more tags to be assigned to the event subscription.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSubscriptionProps>
- Returns:
- a new instance of
CfnEventSubscriptionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-