Class CfnEventSubscription.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.CfnEventSubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscription>
- Enclosing class:
CfnEventSubscription
@Stability(Stable)
public static final class CfnEventSubscription.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscription>
A fluent builder for
CfnEventSubscription.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnEventSubscription.BuilderA Boolean value indicating if the subscription is enabled.enabled(IResolvable enabled) A Boolean value indicating if the subscription is enabled.eventCategories(List<String> eventCategories) A list of event categories for a SourceType that you want to subscribe to.snsTopicArn(String snsTopicArn) The topic ARN of the event notification subscription.The list of identifiers of the event sources for which events will be returned.sourceType(String sourceType) The source type for the event notification subscription.subscriptionName(String subscriptionName) The name of the subscription.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnEventSubscription.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnEventSubscription.Builder.
-
snsTopicArn
The topic ARN of the event notification subscription.- Parameters:
snsTopicArn- The topic ARN of the event notification subscription. This parameter is required.- Returns:
this- See Also:
-
enabled
A Boolean value indicating if the subscription is enabled.True indicates the subscription is enabled.
Default: - true
- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. This parameter is required.- Returns:
this- See Also:
-
enabled
A Boolean value indicating if the subscription is enabled.True indicates the subscription is enabled.
Default: - true
- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. This parameter is required.- Returns:
this- See Also:
-
eventCategories
@Stability(Stable) public CfnEventSubscription.Builder eventCategories(List<String> eventCategories) A list of event categories for a SourceType that you want to subscribe to.You can see a list of the categories for a given SourceType in the Events topic in the Amazon Neptune User Guide or by using the DescribeEventCategories action.
- Parameters:
eventCategories- A list of event categories for a SourceType that you want to subscribe to. This parameter is required.- Returns:
this- See Also:
-
sourceIds
The list of identifiers of the event sources for which events will be returned.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 cannot end with a hyphen or contain two consecutive hyphens.
- Parameters:
sourceIds- The list of identifiers of the event sources for which events will be returned. This parameter is required.- Returns:
this- See Also:
-
sourceType
The source type for the event notification subscription.- Parameters:
sourceType- The source type for the event notification subscription. This parameter is required.- Returns:
this- See Also:
-
subscriptionName
The name of the subscription.- Parameters:
subscriptionName- The name of the subscription. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSubscription>- Returns:
- a newly built instance of
CfnEventSubscription.
-