30
30
export interface EventPattern {
31
31
/**
32
32
* By default, this is set to 0 (zero) in all events.
33
+ *
34
+ * @default - No filtering on version
33
35
*/
34
36
readonly version ?: string [ ] ;
35
37
36
38
/**
37
39
* A unique value is generated for every event. This can be helpful in
38
40
* tracing events as they move through rules to targets, and are processed.
41
+ *
42
+ * @default - No filtering on id
39
43
*/
40
44
readonly id ?: string [ ] ;
41
45
@@ -44,6 +48,8 @@ export interface EventPattern {
44
48
* that appear in the detail field.
45
49
*
46
50
* Represents the "detail-type" event field.
51
+ *
52
+ * @default - No filtering on detail type
47
53
*/
48
54
readonly detailType ?: string [ ] ;
49
55
@@ -58,11 +64,14 @@ export interface EventPattern {
58
64
* CloudFront is aws.cloudfront.
59
65
*
60
66
* @see http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
67
+ * @default - No filtering on source
61
68
*/
62
69
readonly source ?: string [ ] ;
63
70
64
71
/**
65
72
* The 12-digit number identifying an AWS account.
73
+ *
74
+ * @default - No filtering on account
66
75
*/
67
76
readonly account ?: string [ ] ;
68
77
@@ -71,11 +80,15 @@ export interface EventPattern {
71
80
* the event. If the event spans a time interval, the service might choose
72
81
* to report the start time, so this value can be noticeably before the time
73
82
* the event is actually received.
83
+ *
84
+ * @default - No filtering on time
74
85
*/
75
86
readonly time ?: string [ ] ;
76
87
77
88
/**
78
89
* Identifies the AWS region where the event originated.
90
+ *
91
+ * @default - No filtering on region
79
92
*/
80
93
readonly region ?: string [ ] ;
81
94
@@ -88,12 +101,16 @@ export interface EventPattern {
88
101
* instance ARNs, Auto Scaling events include ARNs for both instances and
89
102
* Auto Scaling groups, but API calls with AWS CloudTrail do not include
90
103
* resource ARNs.
104
+ *
105
+ * @default - No filtering on resource
91
106
*/
92
107
readonly resources ?: string [ ] ;
93
108
94
109
/**
95
110
* A JSON object, whose content is at the discretion of the service
96
111
* originating the event.
112
+ *
113
+ * @default - No filtering on detail
97
114
*/
98
- readonly detail ?: any ;
115
+ readonly detail ?: { [ key : string ] : any } ;
99
116
}
0 commit comments