interface CfnEventSubscriptionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Neptune.CfnEventSubscriptionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsneptune#CfnEventSubscriptionProps |
Java | software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps |
Python | aws_cdk.aws_neptune.CfnEventSubscriptionProps |
TypeScript | aws-cdk-lib » aws_neptune » CfnEventSubscriptionProps |
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 { aws_neptune as neptune } from 'aws-cdk-lib';
const cfnEventSubscriptionProps: neptune.CfnEventSubscriptionProps = {
snsTopicArn: 'snsTopicArn',
// the properties below are optional
enabled: false,
eventCategories: ['eventCategories'],
sourceIds: ['sourceIds'],
sourceType: 'sourceType',
subscriptionName: 'subscriptionName',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| sns | string | The topic ARN of the event notification subscription. |
| enabled? | boolean | IResolvable | A Boolean value indicating if the subscription is enabled. |
| event | string[] | A list of event categories for a SourceType that you want to subscribe to. |
| source | string[] | The list of identifiers of the event sources for which events will be returned. |
| source | string | The source type for the event notification subscription. |
| subscription | string | The name of the subscription. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
snsTopicArn
Type:
string
The topic ARN of the event notification subscription.
enabled?
Type:
boolean | IResolvable
(optional, default: true)
A Boolean value indicating if the subscription is enabled.
True indicates the subscription is enabled.
eventCategories?
Type:
string[]
(optional)
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.
sourceIds?
Type:
string[]
(optional)
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.
sourceType?
Type:
string
(optional)
The source type for the event notification subscription.
subscriptionName?
Type:
string
(optional)
The name of the subscription.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.

.NET
Go
Java
Python
TypeScript