Class CfnEventSubscriptionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshift.CfnEventSubscriptionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
- Enclosing interface:
CfnEventSubscriptionMixinProps
@Stability(Stable)
public static final class CfnEventSubscriptionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
A builder for
CfnEventSubscriptionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.getEventCategories()Sets the value ofCfnEventSubscriptionMixinProps.getSeverity()snsTopicArn(String snsTopicArn) Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()snsTopicArn(ITopicRef snsTopicArn) Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()Sets the value ofCfnEventSubscriptionMixinProps.getSourceIds()sourceType(String sourceType) Sets the value ofCfnEventSubscriptionMixinProps.getSourceType()subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.getSubscriptionName()Sets the value ofCfnEventSubscriptionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- A boolean value;. set totrueto activate the subscription, and set tofalseto create the subscription but not activate it.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- A boolean value;. set totrueto activate the subscription, and set tofalseto create the subscription but not activate it.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionMixinProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.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
-
snsTopicArn
Sets the value ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.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
-
subscriptionName
@Stability(Stable) public CfnEventSubscriptionMixinProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.getSubscriptionName()- Parameters:
subscriptionName- The name of the event subscription to be created. 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
-
tags
Sets the value ofCfnEventSubscriptionMixinProps.getTags()- Parameters:
tags- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>- Returns:
- a new instance of
CfnEventSubscriptionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-