@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.541Z") @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.redshift.*;
CfnEventSubscriptionProps cfnEventSubscriptionProps = CfnEventSubscriptionProps.builder()
.subscriptionName("subscriptionName")
// the properties below are optional
.enabled(false)
.eventCategories(List.of("eventCategories"))
.severity("severity")
.snsTopicArn("snsTopicArn")
.sourceIds(List.of("sourceIds"))
.sourceType("sourceType")
.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 boolean value;
|
default List<String> |
getEventCategories()
Specifies the Amazon Redshift event categories to be published by the event notification subscription.
|
default String |
getSeverity()
Specifies the Amazon Redshift event severity to be published by the event notification subscription.
|
default String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.
|
default List<String> |
getSourceIds()
A list of one or more identifiers of Amazon Redshift source objects.
|
default String |
getSourceType()
The type of source that will be generating the events.
|
String |
getSubscriptionName()
The name of the event subscription to be created.
|
default List<CfnTag> |
getTags()
A list of tag instances.
|
@Stability(value=Stable) @NotNull String getSubscriptionName()
Constraints:
@Stability(value=Stable) @Nullable default Object getEnabled()
set to true to activate the subscription, and set to false to create the subscription but not activate it.
@Stability(value=Stable) @Nullable default List<String> getEventCategories()
Values: configuration, management, monitoring, security, pending
@Stability(value=Stable) @Nullable default String getSeverity()
Values: ERROR, INFO
@Stability(value=Stable) @Nullable default String getSnsTopicArn()
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
@Stability(value=Stable) @Nullable default List<String> getSourceIds()
All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified.
Example: my-cluster-1, my-cluster-2
Example: my-snapshot-20131010
@Stability(value=Stable) @Nullable default String getSourceType()
For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your AWS account . You must specify a source type in order to specify source IDs.
Valid values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and scheduled-action.
@Stability(value=Stable) static CfnEventSubscriptionProps.Builder builder()
CfnEventSubscriptionProps.Builder of CfnEventSubscriptionPropsCopyright © 2022. All rights reserved.