Interface CfnEventSubscriptionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEventSubscriptionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:42.500Z")
@Stability(Stable)
public interface CfnEventSubscriptionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnEventSubscription.
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.neptune.*;
CfnEventSubscriptionProps cfnEventSubscriptionProps = CfnEventSubscriptionProps.builder()
.snsTopicArn("snsTopicArn")
// the properties below are optional
.enabled(false)
.eventCategories(List.of("eventCategories"))
.sourceIds(List.of("sourceIds"))
.sourceType("sourceType")
.subscriptionName("subscriptionName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEventSubscriptionPropsstatic final classAn implementation forCfnEventSubscriptionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA Boolean value indicating if the subscription is enabled.A list of event categories for a SourceType that you want to subscribe to.The topic ARN of the event notification subscription.The list of identifiers of the event sources for which events will be returned.default StringThe source type for the event notification subscription.default StringThe name of the subscription.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSnsTopicArn
The topic ARN of the event notification subscription.- See Also:
-
getEnabled
A Boolean value indicating if the subscription is enabled.True indicates the subscription is enabled.
Returns union: either
BooleanorIResolvableDefault: - true
- See Also:
-
getEventCategories
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.
- See Also:
-
getSourceIds
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.
- See Also:
-
getSourceType
The source type for the event notification subscription.- See Also:
-
getSubscriptionName
The name of the subscription.- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
builder
- Returns:
- a
CfnEventSubscriptionProps.BuilderofCfnEventSubscriptionProps
-