interface EventSubscriptionProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.ResilienceHub.CfnApp.EventSubscriptionProperty | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsresiliencehub#CfnApp_EventSubscriptionProperty | 
|  Java | software.amazon.awscdk.services.resiliencehub.CfnApp.EventSubscriptionProperty | 
|  Python | aws_cdk.aws_resiliencehub.CfnApp.EventSubscriptionProperty | 
|  TypeScript | aws-cdk-lib»aws_resiliencehub»CfnApp»EventSubscriptionProperty | 
Indicates an event you would like to subscribe and get notification for.
Currently, AWS Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_resiliencehub as resiliencehub } from 'aws-cdk-lib';
const eventSubscriptionProperty: resiliencehub.CfnApp.EventSubscriptionProperty = {
  eventType: 'eventType',
  name: 'name',
  // the properties below are optional
  snsTopicArn: 'snsTopicArn',
};
Properties
| Name | Type | Description | 
|---|---|---|
| event | string | The type of event you would like to subscribe and get notification for. | 
| name | string | Unique name to identify an event subscription. | 
| sns | string | Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. | 
eventType
Type:
string
The type of event you would like to subscribe and get notification for.
Currently, AWS Resilience Hub supports notifications only for Drift detected ( DriftDetected ) and Scheduled assessment failure ( ScheduledAssessmentFailure ) events.
name
Type:
string
Unique name to identify an event subscription.
snsTopicArn?
Type:
string
(optional)
Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic.
The format for this ARN is: arn:partition:sns:region:account:topic-name . For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference guide.
