Class CfnEventSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnEventSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionProps>
- Enclosing interface:
CfnEventSubscriptionProps
@Stability(Stable)
public static final class CfnEventSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionProps>
A builder for
CfnEventSubscriptionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnEventSubscriptionProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnEventSubscriptionProps.getEnabled()
eventCategories
(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()
Sets the value ofCfnEventSubscriptionProps.getSeverity()
snsTopicArn
(String snsTopicArn) Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()
Sets the value ofCfnEventSubscriptionProps.getSourceIds()
sourceType
(String sourceType) Sets the value ofCfnEventSubscriptionProps.getSourceType()
subscriptionName
(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()
Sets the value ofCfnEventSubscriptionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subscriptionName
@Stability(Stable) public CfnEventSubscriptionProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()
- Parameters:
subscriptionName
- The name of the event subscription to be created. This parameter is required. Constraints:- Cannot be null, empty, or blank.
- Must contain from 1 to 255 alphanumeric characters or hyphens.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()
- Parameters:
enabled
- A boolean value;. set totrue
to activate the subscription, and set tofalse
to create the subscription but not activate it.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()
- Parameters:
enabled
- A boolean value;. set totrue
to activate the subscription, and set tofalse
to create the subscription but not activate it.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()
- Parameters:
eventCategories
- Specifies the Amazon Redshift event categories to be published by the event notification subscription. Values: configuration, management, monitoring, security, pending- Returns:
this
-
severity
Sets the value ofCfnEventSubscriptionProps.getSeverity()
- Parameters:
severity
- Specifies the Amazon Redshift event severity to be published by the event notification subscription. Values: ERROR, INFO- Returns:
this
-
snsTopicArn
Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications. The ARN is created by Amazon SNS when you create a topic and subscribe to it.- Returns:
this
-
sourceIds
Sets the value ofCfnEventSubscriptionProps.getSourceIds()
- Parameters:
sourceIds
- A list of one or more identifiers of Amazon Redshift source objects. 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
- Returns:
this
-
sourceType
Sets the value ofCfnEventSubscriptionProps.getSourceType()
- Parameters:
sourceType
- The type of source that will be generating the events. 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.
- Returns:
this
-
tags
Sets the value ofCfnEventSubscriptionProps.getTags()
- Parameters:
tags
- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSubscriptionProps>
- Returns:
- a new instance of
CfnEventSubscriptionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-