@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:13.399Z") @Stability(value=Stable) public interface CfnEventSubscriptionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
CfnEventSubscriptionProps cfnEventSubscriptionProps = CfnEventSubscriptionProps.builder()
.snsTopicArn("snsTopicArn")
// the properties below are optional
.enabled(false)
.eventCategories(List.of("eventCategories"))
.sourceIds(List.of("sourceIds"))
.sourceType("sourceType")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEventSubscriptionProps.Builder
A builder for
CfnEventSubscriptionProps |
static class |
CfnEventSubscriptionProps.Jsii$Proxy
An implementation for
CfnEventSubscriptionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnEventSubscriptionProps.Builder |
builder() |
default Object |
getEnabled()
A Boolean value;
|
default List<String> |
getEventCategories()
A list of event categories for a SourceType that you want to subscribe to.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the SNS topic created for event notification.
|
default List<String> |
getSourceIds()
The list of identifiers of the event sources for which events are returned.
|
default String |
getSourceType()
The type of source that is generating the events.
|
@Stability(value=Stable) @NotNull String getSnsTopicArn()
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
@Stability(value=Stable) @Nullable default Object getEnabled()
set to true to activate the subscription, set to false to create the subscription but not active it.
@Stability(value=Stable) @Nullable default List<String> getEventCategories()
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.
@Stability(value=Stable) @Nullable default List<String> getSourceIds()
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.@Stability(value=Stable) @Nullable default String getSourceType()
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
@Stability(value=Stable) static CfnEventSubscriptionProps.Builder builder()
CfnEventSubscriptionProps.Builder of CfnEventSubscriptionPropsCopyright © 2022. All rights reserved.