@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(Construct scope,
String id) |
CfnEventSubscription.Builder |
enabled(Boolean enabled)
A Boolean value;
|
CfnEventSubscription.Builder |
enabled(IResolvable enabled)
A Boolean value;
|
CfnEventSubscription.Builder |
eventCategories(List<String> eventCategories)
A list of event categories for a 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.
|
@Stability(value=Stable) public static CfnEventSubscription.Builder create(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)
set to true to activate the subscription, set to false to create the subscription but not active it.
enabled - A Boolean value;. This parameter is required.this@Stability(value=Stable) public CfnEventSubscription.Builder enabled(IResolvable enabled)
set to true to activate the subscription, set to false to create the subscription but not active it.
enabled - A Boolean value;. 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 SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
eventCategories - A list of event categories for a 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 build()
build in interface software.amazon.jsii.Builder<CfnEventSubscription>Copyright © 2022. All rights reserved.