@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.426Z") @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")
.subscriptionName("subscriptionName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 value that indicates whether to activate the subscription.
|
default List<String> |
getEventCategories()
A list of event categories for a particular source type ( `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.
|
default String |
getSubscriptionName()
`AWS::RDS::EventSubscription.SubscriptionName`.
|
default List<CfnTag> |
getTags()
`AWS::RDS::EventSubscription.Tags`.
|
@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()
If the event notification subscription isn't activated, the subscription is created but not active.
@Stability(value=Stable) @Nullable default List<String> getEventCategories()
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.
@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) @Nullable default String getSubscriptionName()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnEventSubscriptionProps.Builder builder()
CfnEventSubscriptionProps.Builder of CfnEventSubscriptionPropsCopyright © 2022. All rights reserved.