-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnApp_EventSubscriptionProperty.go
41 lines (38 loc) · 2.19 KB
/
CfnApp_EventSubscriptionProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package awsresiliencehub
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// eventSubscriptionProperty := &EventSubscriptionProperty{
// EventType: jsii.String("eventType"),
// Name: jsii.String("name"),
//
// // the properties below are optional
// SnsTopicArn: jsii.String("snsTopicArn"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-eventsubscription.html
//
type CfnApp_EventSubscriptionProperty struct {
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-eventsubscription.html#cfn-resiliencehub-app-eventsubscription-eventtype
//
EventType *string `field:"required" json:"eventType" yaml:"eventType"`
// Unique name to identify an event subscription.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-eventsubscription.html#cfn-resiliencehub-app-eventsubscription-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// 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)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* guide.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-eventsubscription.html#cfn-resiliencehub-app-eventsubscription-snstopicarn
//
SnsTopicArn *string `field:"optional" json:"snsTopicArn" yaml:"snsTopicArn"`
}