Class CfnEventSubscriptionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dms.CfnEventSubscriptionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
- Enclosing interface:
CfnEventSubscriptionMixinProps
@Stability(Stable)
public static final class CfnEventSubscriptionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
A builder for
CfnEventSubscriptionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.getEventCategories()snsTopicArn(String snsTopicArn) Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()Sets the value ofCfnEventSubscriptionMixinProps.getSourceIds()sourceType(String sourceType) Sets the value ofCfnEventSubscriptionMixinProps.getSourceType()subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.getSubscriptionName()Sets the value ofCfnEventSubscriptionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionMixinProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.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
-
snsTopicArn
Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()- Parameters:
snsTopicArn- The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.- Returns:
this
-
sourceIds
Sets the value ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.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 CfnEventSubscriptionMixinProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.getTags()- Parameters:
tags- One or more tags to be assigned to the event subscription.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>- Returns:
- a new instance of
CfnEventSubscriptionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-