Class CfnEventSubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscription>
- Enclosing class:
CfnEventSubscription
CfnEventSubscription
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnEventSubscription.Builder
Indicates whether to activate the subscription.enabled
(IResolvable enabled) Indicates whether to activate the subscription.eventCategories
(List<String> eventCategories) A list of event categories for a source type that you want to subscribe to.snsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification.A list of identifiers for which AWS DMS provides notification events.sourceType
(String sourceType) The type of AWS DMS resource that generates the events.subscriptionName
(String subscriptionName) The name of the AWS DMS event notification subscription.One or more tags to be assigned to the event subscription.
-
Method Details
-
create
@Stability(Stable) public static CfnEventSubscription.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnEventSubscription.Builder
.
-
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.
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. This parameter is required.- Returns:
this
- See Also:
-
enabled
Indicates whether to activate the subscription.If you don't specify this property, AWS CloudFormation activates the subscription.
- Parameters:
enabled
- Indicates whether to activate the subscription. This parameter is required.- Returns:
this
- See Also:
-
enabled
Indicates whether to activate the subscription.If you don't specify this property, AWS CloudFormation activates the subscription.
- Parameters:
enabled
- Indicates whether to activate the subscription. This parameter is required.- Returns:
this
- See Also:
-
eventCategories
@Stability(Stable) public CfnEventSubscription.Builder eventCategories(List<String> 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 .
- Parameters:
eventCategories
- A list of event categories for a source type that you want to subscribe to. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
sourceIds
- A list of identifiers for which AWS DMS provides notification events. This parameter is required.- Returns:
this
- See Also:
-
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 to
replication-instance
. If this value isn't specified, all events are returned.Valid values :
replication-instance
|replication-task
- Parameters:
sourceType
- The type of AWS DMS resource that generates the events. This parameter is required.- Returns:
this
- See Also:
-
subscriptionName
The name of the AWS DMS event notification subscription.This name must be less than 255 characters.
- Parameters:
subscriptionName
- The name of the AWS DMS event notification subscription. This parameter is required.- Returns:
this
- See Also:
-
tags
One or more tags to be assigned to the event subscription.- Parameters:
tags
- One or more tags to be assigned to the event subscription. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSubscription>
- Returns:
- a newly built instance of
CfnEventSubscription
.
-