@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)
A value that indicates whether to activate the subscription.
|
CfnEventSubscription.Builder |
enabled(IResolvable enabled)
A value that indicates whether to activate the subscription.
|
CfnEventSubscription.Builder |
eventCategories(List<String> eventCategories)
A list of event categories for a particular source type ( `SourceType` ) that you want to subscribe to.
|
CfnEventSubscription.Builder |
snsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event notification.
|
CfnEventSubscription.Builder |
sourceIds(List<String> sourceIds)
The list of identifiers of the event sources for which events are returned.
|
CfnEventSubscription.Builder |
sourceType(String sourceType)
The type of source that is generating the events.
|
CfnEventSubscription.Builder |
subscriptionName(String subscriptionName)
`AWS::RDS::EventSubscription.SubscriptionName`.
|
CfnEventSubscription.Builder |
tags(List<? extends CfnTag> tags)
`AWS::RDS::EventSubscription.Tags`.
|
@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 SNS topic created for event notification. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder enabled(Boolean enabled)
If the event notification subscription isn't activated, the subscription is created but not active.
enabled - A value that indicates whether to activate the subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder enabled(IResolvable enabled)
If the event notification subscription isn't activated, the subscription is created but not active.
enabled - A value that indicates whether to activate the subscription. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder eventCategories(List<String> eventCategories)
You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide . You can also see this list by using the DescribeEventCategories operation.
eventCategories - A list of event categories for a particular source type ( `SourceType` ) that you want to subscribe to. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder sourceIds(List<String> sourceIds)
If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
SourceIds value is supplied, SourceType must also be provided.DBInstanceIdentifier value must be supplied.DBClusterIdentifier value must be supplied.DBParameterGroupName value must be supplied.DBSecurityGroupName value must be supplied.DBSnapshotIdentifier value must be supplied.DBClusterSnapshotIdentifier value must be supplied.sourceIds - The list of identifiers of the event sources for which events are returned. 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 DB instance, set this parameter to db-instance . If this value isn't specified, all events are returned.
Valid values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot
sourceType - The type of source that is generating the events. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder subscriptionName(String subscriptionName)
subscriptionName - `AWS::RDS::EventSubscription.SubscriptionName`. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder tags(List<? extends CfnTag> tags)
tags - `AWS::RDS::EventSubscription.Tags`. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription build()
build in interface software.amazon.jsii.Builder<CfnEventSubscription>Copyright © 2022. All rights reserved.