@Stability(value=Stable) public static final class CfnEventSubscription.Builder extends Object implements software.amazon.jsii.Builder<CfnEventSubscription>
CfnEventSubscription.| Modifier and Type | Method and Description |
|---|---|
CfnEventSubscription |
build() |
static CfnEventSubscription.Builder |
create(software.constructs.Construct scope,
String id) |
CfnEventSubscription.Builder |
enabled(Boolean enabled)
Indicates whether to activate the subscription.
|
CfnEventSubscription.Builder |
enabled(IResolvable enabled)
Indicates whether to activate the subscription.
|
CfnEventSubscription.Builder |
eventCategories(List<String> eventCategories)
A list of event categories for a source type that you want to subscribe to.
|
CfnEventSubscription.Builder |
snsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification.
|
CfnEventSubscription.Builder |
sourceIds(List<String> sourceIds)
A list of identifiers for which AWS DMS provides notification events.
|
CfnEventSubscription.Builder |
sourceType(String sourceType)
The type of AWS DMS resource that generates the events.
|
CfnEventSubscription.Builder |
subscriptionName(String subscriptionName)
The name of the AWS DMS event notification subscription.
|
CfnEventSubscription.Builder |
tags(List<? extends CfnTag> tags)
One or more tags to be assigned to the event subscription.
|
@Stability(value=Stable) public static CfnEventSubscription.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnEventSubscription.Builder.@Stability(value=Stable) public CfnEventSubscription.Builder snsTopicArn(String snsTopicArn)
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
snsTopicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder enabled(Boolean enabled)
If you don't specify this property, AWS CloudFormation activates the subscription.
enabled - Indicates whether to activate the subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder enabled(IResolvable enabled)
If you don't specify this property, AWS CloudFormation activates the subscription.
enabled - Indicates whether to activate the subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder eventCategories(List<String> eventCategories)
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 .
eventCategories - A list of event categories for a source type that you want to subscribe to. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder sourceIds(List<String> sourceIds)
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.
sourceIds - A list of identifiers for which AWS DMS provides notification events. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder sourceType(String sourceType)
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
sourceType - The type of AWS DMS resource that generates the events. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder subscriptionName(String subscriptionName)
This name must be less than 255 characters.
subscriptionName - The name of the AWS DMS event notification subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder tags(List<? extends CfnTag> tags)
tags - One or more tags to be assigned to the event subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription build()
build in interface software.amazon.jsii.Builder<CfnEventSubscription>Copyright © 2022. All rights reserved.