public static final class CfnEventSubscription.Builder
extends java.lang.Object
CfnEventSubscription
.Modifier and Type | Method and Description |
---|---|
CfnEventSubscription |
build() |
static CfnEventSubscription.Builder |
create(Construct scope,
java.lang.String id) |
CfnEventSubscription.Builder |
enabled(java.lang.Boolean enabled)
A boolean value;
|
CfnEventSubscription.Builder |
enabled(IResolvable enabled)
A boolean value;
|
CfnEventSubscription.Builder |
eventCategories(java.util.List<java.lang.String> eventCategories)
Specifies the Amazon Redshift event categories to be published by the event notification subscription.
|
CfnEventSubscription.Builder |
severity(java.lang.String severity)
Specifies the Amazon Redshift event severity to be published by the event notification subscription.
|
CfnEventSubscription.Builder |
snsTopicArn(java.lang.String snsTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.
|
CfnEventSubscription.Builder |
sourceIds(java.util.List<java.lang.String> sourceIds)
A list of one or more identifiers of Amazon Redshift source objects.
|
CfnEventSubscription.Builder |
sourceType(java.lang.String sourceType)
The type of source that will be generating the events.
|
CfnEventSubscription.Builder |
subscriptionName(java.lang.String subscriptionName)
The name of the event subscription to be created.
|
CfnEventSubscription.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of tag instances.
|
public static CfnEventSubscription.Builder create(Construct scope, java.lang.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
.public CfnEventSubscription.Builder subscriptionName(java.lang.String subscriptionName)
Constraints:
subscriptionName
- The name of the event subscription to be created. This parameter is required.this
public CfnEventSubscription.Builder enabled(java.lang.Boolean enabled)
set to true
to activate the subscription, and set to false
to create the subscription but not activate it.
enabled
- A boolean value;. This parameter is required.this
public CfnEventSubscription.Builder enabled(IResolvable enabled)
set to true
to activate the subscription, and set to false
to create the subscription but not activate it.
enabled
- A boolean value;. This parameter is required.this
public CfnEventSubscription.Builder eventCategories(java.util.List<java.lang.String> eventCategories)
Values: configuration, management, monitoring, security, pending
eventCategories
- Specifies the Amazon Redshift event categories to be published by the event notification subscription. This parameter is required.this
public CfnEventSubscription.Builder severity(java.lang.String severity)
Values: ERROR, INFO
severity
- Specifies the Amazon Redshift event severity to be published by the event notification subscription. This parameter is required.this
public CfnEventSubscription.Builder snsTopicArn(java.lang.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 Amazon SNS topic used to transmit the event notifications. This parameter is required.this
public CfnEventSubscription.Builder sourceIds(java.util.List<java.lang.String> sourceIds)
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
sourceIds
- A list of one or more identifiers of Amazon Redshift source objects. This parameter is required.this
public CfnEventSubscription.Builder sourceType(java.lang.String sourceType)
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.
sourceType
- The type of source that will be generating the events. This parameter is required.this
public CfnEventSubscription.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- A list of tag instances. This parameter is required.this
public CfnEventSubscription build()