@aws-solutions-constructs/aws-eventbridge-sqs 2.75.0 → 2.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +189 -34
- package/README.md +5 -0
- package/lib/index.d.ts +27 -0
- package/lib/index.js +26 -10
- package/package.json +7 -6
- package/test/eventbridge-sqs-queue.test.js +142 -3
- package/test/integ.evtsqs-custom-target.d.ts +13 -0
- package/test/integ.evtsqs-custom-target.js +36 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/evtsqs-custom-target.assets.json +19 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/evtsqs-custom-target.template.json +312 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/evtsqscustomtargetIntegDefaultTestDeployAssertD220243E.assets.json +19 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/evtsqscustomtargetIntegDefaultTestDeployAssertD220243E.template.json +36 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/manifest.json +149 -0
- package/test/integ.evtsqs-custom-target.js.snapshot/tree.json +487 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/cdk.out +1 -1
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.assets.json +3 -3
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.template.json +15 -6
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqsexistbusIntegDefaultTestDeployAssertD6166996.assets.json +1 -1
- package/test/integ.evtsqs-exist-bus.js.snapshot/integ.json +1 -1
- package/test/integ.evtsqs-exist-bus.js.snapshot/manifest.json +2 -2
- package/test/integ.evtsqs-exist-bus.js.snapshot/tree.json +38 -29
- package/test/integ.evtsqs-exist-queue.js.snapshot/cdk.out +1 -1
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.assets.json +3 -3
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.template.json +15 -6
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.assets.json +1 -1
- package/test/integ.evtsqs-exist-queue.js.snapshot/integ.json +1 -1
- package/test/integ.evtsqs-exist-queue.js.snapshot/manifest.json +2 -2
- package/test/integ.evtsqs-exist-queue.js.snapshot/tree.json +36 -27
- package/test/integ.evtsqs-new-bus.js.snapshot/cdk.out +1 -1
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.assets.json +3 -3
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.template.json +15 -6
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqsnewbusIntegDefaultTestDeployAssertA45AD5F2.assets.json +1 -1
- package/test/integ.evtsqs-new-bus.js.snapshot/integ.json +1 -1
- package/test/integ.evtsqs-new-bus.js.snapshot/manifest.json +2 -20
- package/test/integ.evtsqs-new-bus.js.snapshot/tree.json +42 -33
- package/test/integ.evtsqs-no-arg.js.snapshot/cdk.out +1 -1
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.assets.json +3 -3
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.template.json +15 -6
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqsnoargIntegDefaultTestDeployAssertB5DFB718.assets.json +1 -1
- package/test/integ.evtsqs-no-arg.js.snapshot/integ.json +1 -1
- package/test/integ.evtsqs-no-arg.js.snapshot/manifest.json +2 -20
- package/test/integ.evtsqs-no-arg.js.snapshot/tree.json +40 -31
- package/test/integ.evtsqs-rule-dlq.d.ts +13 -0
- package/test/integ.evtsqs-rule-dlq.js +36 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/evtsqs-rule-dlq.assets.json +19 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/evtsqs-rule-dlq.template.json +485 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/evtsqsruledlqIntegDefaultTestDeployAssertE0D1E1C2.assets.json +19 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/evtsqsruledlqIntegDefaultTestDeployAssertE0D1E1C2.template.json +36 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/manifest.json +179 -0
- package/test/integ.evtsqs-rule-dlq.js.snapshot/tree.json +728 -0
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "tree-0.1",
|
|
3
|
+
"tree": {
|
|
4
|
+
"id": "App",
|
|
5
|
+
"path": "",
|
|
6
|
+
"children": {
|
|
7
|
+
"evtsqs-rule-dlq": {
|
|
8
|
+
"id": "evtsqs-rule-dlq",
|
|
9
|
+
"path": "evtsqs-rule-dlq",
|
|
10
|
+
"children": {
|
|
11
|
+
"construct": {
|
|
12
|
+
"id": "construct",
|
|
13
|
+
"path": "evtsqs-rule-dlq/construct",
|
|
14
|
+
"children": {
|
|
15
|
+
"queue-dlq": {
|
|
16
|
+
"id": "queue-dlq",
|
|
17
|
+
"path": "evtsqs-rule-dlq/construct/queue-dlq",
|
|
18
|
+
"children": {
|
|
19
|
+
"Resource": {
|
|
20
|
+
"id": "Resource",
|
|
21
|
+
"path": "evtsqs-rule-dlq/construct/queue-dlq/Resource",
|
|
22
|
+
"attributes": {
|
|
23
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::Queue",
|
|
24
|
+
"aws:cdk:cloudformation:props": {
|
|
25
|
+
"kmsMasterKeyId": "alias/aws/sqs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"constructInfo": {
|
|
29
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
|
|
30
|
+
"version": "2.177.0"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"Policy": {
|
|
34
|
+
"id": "Policy",
|
|
35
|
+
"path": "evtsqs-rule-dlq/construct/queue-dlq/Policy",
|
|
36
|
+
"children": {
|
|
37
|
+
"Resource": {
|
|
38
|
+
"id": "Resource",
|
|
39
|
+
"path": "evtsqs-rule-dlq/construct/queue-dlq/Policy/Resource",
|
|
40
|
+
"attributes": {
|
|
41
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
|
|
42
|
+
"aws:cdk:cloudformation:props": {
|
|
43
|
+
"policyDocument": {
|
|
44
|
+
"Statement": [
|
|
45
|
+
{
|
|
46
|
+
"Action": [
|
|
47
|
+
"sqs:AddPermission",
|
|
48
|
+
"sqs:DeleteMessage",
|
|
49
|
+
"sqs:GetQueueAttributes",
|
|
50
|
+
"sqs:ReceiveMessage",
|
|
51
|
+
"sqs:RemovePermission",
|
|
52
|
+
"sqs:SendMessage",
|
|
53
|
+
"sqs:SetQueueAttributes"
|
|
54
|
+
],
|
|
55
|
+
"Effect": "Allow",
|
|
56
|
+
"Principal": {
|
|
57
|
+
"AWS": {
|
|
58
|
+
"Fn::Join": [
|
|
59
|
+
"",
|
|
60
|
+
[
|
|
61
|
+
"arn:",
|
|
62
|
+
{
|
|
63
|
+
"Ref": "AWS::Partition"
|
|
64
|
+
},
|
|
65
|
+
":iam::",
|
|
66
|
+
{
|
|
67
|
+
"Ref": "AWS::AccountId"
|
|
68
|
+
},
|
|
69
|
+
":root"
|
|
70
|
+
]
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"Resource": {
|
|
75
|
+
"Fn::GetAtt": [
|
|
76
|
+
"constructqueuedlq6B66D1E6",
|
|
77
|
+
"Arn"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"Sid": "QueueOwnerOnlyAccess"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"Action": "SQS:*",
|
|
84
|
+
"Condition": {
|
|
85
|
+
"Bool": {
|
|
86
|
+
"aws:SecureTransport": "false"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"Effect": "Deny",
|
|
90
|
+
"Principal": {
|
|
91
|
+
"AWS": "*"
|
|
92
|
+
},
|
|
93
|
+
"Resource": {
|
|
94
|
+
"Fn::GetAtt": [
|
|
95
|
+
"constructqueuedlq6B66D1E6",
|
|
96
|
+
"Arn"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"Sid": "HttpsOnly"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"Version": "2012-10-17"
|
|
103
|
+
},
|
|
104
|
+
"queues": [
|
|
105
|
+
{
|
|
106
|
+
"Ref": "constructqueuedlq6B66D1E6"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"constructInfo": {
|
|
112
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
|
|
113
|
+
"version": "2.177.0"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"constructInfo": {
|
|
118
|
+
"fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
|
|
119
|
+
"version": "2.177.0"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"constructInfo": {
|
|
124
|
+
"fqn": "aws-cdk-lib.aws_sqs.Queue",
|
|
125
|
+
"version": "2.177.0"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"'queueKey'": {
|
|
129
|
+
"id": "'queueKey'",
|
|
130
|
+
"path": "evtsqs-rule-dlq/construct/'queueKey'",
|
|
131
|
+
"children": {
|
|
132
|
+
"Resource": {
|
|
133
|
+
"id": "Resource",
|
|
134
|
+
"path": "evtsqs-rule-dlq/construct/'queueKey'/Resource",
|
|
135
|
+
"attributes": {
|
|
136
|
+
"aws:cdk:cloudformation:type": "AWS::KMS::Key",
|
|
137
|
+
"aws:cdk:cloudformation:props": {
|
|
138
|
+
"enableKeyRotation": true,
|
|
139
|
+
"keyPolicy": {
|
|
140
|
+
"Statement": [
|
|
141
|
+
{
|
|
142
|
+
"Action": "kms:*",
|
|
143
|
+
"Effect": "Allow",
|
|
144
|
+
"Principal": {
|
|
145
|
+
"AWS": {
|
|
146
|
+
"Fn::Join": [
|
|
147
|
+
"",
|
|
148
|
+
[
|
|
149
|
+
"arn:",
|
|
150
|
+
{
|
|
151
|
+
"Ref": "AWS::Partition"
|
|
152
|
+
},
|
|
153
|
+
":iam::",
|
|
154
|
+
{
|
|
155
|
+
"Ref": "AWS::AccountId"
|
|
156
|
+
},
|
|
157
|
+
":root"
|
|
158
|
+
]
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"Resource": "*"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"Action": [
|
|
166
|
+
"kms:Decrypt",
|
|
167
|
+
"kms:Encrypt",
|
|
168
|
+
"kms:GenerateDataKey*",
|
|
169
|
+
"kms:ReEncrypt*"
|
|
170
|
+
],
|
|
171
|
+
"Condition": {
|
|
172
|
+
"StringEquals": {
|
|
173
|
+
"aws:SourceAccount": {
|
|
174
|
+
"Ref": "AWS::AccountId"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"Effect": "Allow",
|
|
179
|
+
"Principal": {
|
|
180
|
+
"Service": "events.amazonaws.com"
|
|
181
|
+
},
|
|
182
|
+
"Resource": "*"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"Version": "2012-10-17"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"constructInfo": {
|
|
190
|
+
"fqn": "aws-cdk-lib.aws_kms.CfnKey",
|
|
191
|
+
"version": "2.177.0"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"constructInfo": {
|
|
196
|
+
"fqn": "aws-cdk-lib.aws_kms.Key",
|
|
197
|
+
"version": "2.177.0"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"queue": {
|
|
201
|
+
"id": "queue",
|
|
202
|
+
"path": "evtsqs-rule-dlq/construct/queue",
|
|
203
|
+
"children": {
|
|
204
|
+
"Resource": {
|
|
205
|
+
"id": "Resource",
|
|
206
|
+
"path": "evtsqs-rule-dlq/construct/queue/Resource",
|
|
207
|
+
"attributes": {
|
|
208
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::Queue",
|
|
209
|
+
"aws:cdk:cloudformation:props": {
|
|
210
|
+
"kmsMasterKeyId": {
|
|
211
|
+
"Fn::GetAtt": [
|
|
212
|
+
"constructqueueKey0638E1FB",
|
|
213
|
+
"Arn"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"redrivePolicy": {
|
|
217
|
+
"deadLetterTargetArn": {
|
|
218
|
+
"Fn::GetAtt": [
|
|
219
|
+
"constructqueuedlq6B66D1E6",
|
|
220
|
+
"Arn"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"maxReceiveCount": 15
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"constructInfo": {
|
|
228
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
|
|
229
|
+
"version": "2.177.0"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"Policy": {
|
|
233
|
+
"id": "Policy",
|
|
234
|
+
"path": "evtsqs-rule-dlq/construct/queue/Policy",
|
|
235
|
+
"children": {
|
|
236
|
+
"Resource": {
|
|
237
|
+
"id": "Resource",
|
|
238
|
+
"path": "evtsqs-rule-dlq/construct/queue/Policy/Resource",
|
|
239
|
+
"attributes": {
|
|
240
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
|
|
241
|
+
"aws:cdk:cloudformation:props": {
|
|
242
|
+
"policyDocument": {
|
|
243
|
+
"Statement": [
|
|
244
|
+
{
|
|
245
|
+
"Action": [
|
|
246
|
+
"sqs:AddPermission",
|
|
247
|
+
"sqs:DeleteMessage",
|
|
248
|
+
"sqs:GetQueueAttributes",
|
|
249
|
+
"sqs:ReceiveMessage",
|
|
250
|
+
"sqs:RemovePermission",
|
|
251
|
+
"sqs:SendMessage",
|
|
252
|
+
"sqs:SetQueueAttributes"
|
|
253
|
+
],
|
|
254
|
+
"Effect": "Allow",
|
|
255
|
+
"Principal": {
|
|
256
|
+
"AWS": {
|
|
257
|
+
"Fn::Join": [
|
|
258
|
+
"",
|
|
259
|
+
[
|
|
260
|
+
"arn:",
|
|
261
|
+
{
|
|
262
|
+
"Ref": "AWS::Partition"
|
|
263
|
+
},
|
|
264
|
+
":iam::",
|
|
265
|
+
{
|
|
266
|
+
"Ref": "AWS::AccountId"
|
|
267
|
+
},
|
|
268
|
+
":root"
|
|
269
|
+
]
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"Resource": {
|
|
274
|
+
"Fn::GetAtt": [
|
|
275
|
+
"constructqueue481DC1EC",
|
|
276
|
+
"Arn"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"Sid": "QueueOwnerOnlyAccess"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"Action": "SQS:*",
|
|
283
|
+
"Condition": {
|
|
284
|
+
"Bool": {
|
|
285
|
+
"aws:SecureTransport": "false"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"Effect": "Deny",
|
|
289
|
+
"Principal": {
|
|
290
|
+
"AWS": "*"
|
|
291
|
+
},
|
|
292
|
+
"Resource": {
|
|
293
|
+
"Fn::GetAtt": [
|
|
294
|
+
"constructqueue481DC1EC",
|
|
295
|
+
"Arn"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"Sid": "HttpsOnly"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"Action": [
|
|
302
|
+
"sqs:GetQueueAttributes",
|
|
303
|
+
"sqs:GetQueueUrl",
|
|
304
|
+
"sqs:SendMessage"
|
|
305
|
+
],
|
|
306
|
+
"Condition": {
|
|
307
|
+
"StringEquals": {
|
|
308
|
+
"aws:SourceAccount": {
|
|
309
|
+
"Ref": "AWS::AccountId"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"Effect": "Allow",
|
|
314
|
+
"Principal": {
|
|
315
|
+
"Service": "events.amazonaws.com"
|
|
316
|
+
},
|
|
317
|
+
"Resource": {
|
|
318
|
+
"Fn::GetAtt": [
|
|
319
|
+
"constructqueue481DC1EC",
|
|
320
|
+
"Arn"
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"Version": "2012-10-17"
|
|
326
|
+
},
|
|
327
|
+
"queues": [
|
|
328
|
+
{
|
|
329
|
+
"Ref": "constructqueue481DC1EC"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"constructInfo": {
|
|
335
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
|
|
336
|
+
"version": "2.177.0"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"constructInfo": {
|
|
341
|
+
"fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
|
|
342
|
+
"version": "2.177.0"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"constructInfo": {
|
|
347
|
+
"fqn": "aws-cdk-lib.aws_sqs.Queue",
|
|
348
|
+
"version": "2.177.0"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"'ruleDlqKey'": {
|
|
352
|
+
"id": "'ruleDlqKey'",
|
|
353
|
+
"path": "evtsqs-rule-dlq/construct/'ruleDlqKey'",
|
|
354
|
+
"children": {
|
|
355
|
+
"Resource": {
|
|
356
|
+
"id": "Resource",
|
|
357
|
+
"path": "evtsqs-rule-dlq/construct/'ruleDlqKey'/Resource",
|
|
358
|
+
"attributes": {
|
|
359
|
+
"aws:cdk:cloudformation:type": "AWS::KMS::Key",
|
|
360
|
+
"aws:cdk:cloudformation:props": {
|
|
361
|
+
"enableKeyRotation": true,
|
|
362
|
+
"keyPolicy": {
|
|
363
|
+
"Statement": [
|
|
364
|
+
{
|
|
365
|
+
"Action": "kms:*",
|
|
366
|
+
"Effect": "Allow",
|
|
367
|
+
"Principal": {
|
|
368
|
+
"AWS": {
|
|
369
|
+
"Fn::Join": [
|
|
370
|
+
"",
|
|
371
|
+
[
|
|
372
|
+
"arn:",
|
|
373
|
+
{
|
|
374
|
+
"Ref": "AWS::Partition"
|
|
375
|
+
},
|
|
376
|
+
":iam::",
|
|
377
|
+
{
|
|
378
|
+
"Ref": "AWS::AccountId"
|
|
379
|
+
},
|
|
380
|
+
":root"
|
|
381
|
+
]
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"Resource": "*"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"Action": [
|
|
389
|
+
"kms:Decrypt",
|
|
390
|
+
"kms:Encrypt",
|
|
391
|
+
"kms:GenerateDataKey*",
|
|
392
|
+
"kms:ReEncrypt*"
|
|
393
|
+
],
|
|
394
|
+
"Effect": "Allow",
|
|
395
|
+
"Principal": {
|
|
396
|
+
"Service": "events.amazonaws.com"
|
|
397
|
+
},
|
|
398
|
+
"Resource": "*"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"Version": "2012-10-17"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"constructInfo": {
|
|
406
|
+
"fqn": "aws-cdk-lib.aws_kms.CfnKey",
|
|
407
|
+
"version": "2.177.0"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"Alias": {
|
|
411
|
+
"id": "Alias",
|
|
412
|
+
"path": "evtsqs-rule-dlq/construct/'ruleDlqKey'/Alias",
|
|
413
|
+
"children": {
|
|
414
|
+
"Resource": {
|
|
415
|
+
"id": "Resource",
|
|
416
|
+
"path": "evtsqs-rule-dlq/construct/'ruleDlqKey'/Alias/Resource",
|
|
417
|
+
"attributes": {
|
|
418
|
+
"aws:cdk:cloudformation:type": "AWS::KMS::Alias",
|
|
419
|
+
"aws:cdk:cloudformation:props": {
|
|
420
|
+
"aliasName": "alias/test-alias",
|
|
421
|
+
"targetKeyId": {
|
|
422
|
+
"Fn::GetAtt": [
|
|
423
|
+
"constructruleDlqKey4F9EAB36",
|
|
424
|
+
"Arn"
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"constructInfo": {
|
|
430
|
+
"fqn": "aws-cdk-lib.aws_kms.CfnAlias",
|
|
431
|
+
"version": "2.177.0"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"constructInfo": {
|
|
436
|
+
"fqn": "aws-cdk-lib.aws_kms.Alias",
|
|
437
|
+
"version": "2.177.0"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"constructInfo": {
|
|
442
|
+
"fqn": "aws-cdk-lib.aws_kms.Key",
|
|
443
|
+
"version": "2.177.0"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"ruleDlq": {
|
|
447
|
+
"id": "ruleDlq",
|
|
448
|
+
"path": "evtsqs-rule-dlq/construct/ruleDlq",
|
|
449
|
+
"children": {
|
|
450
|
+
"Resource": {
|
|
451
|
+
"id": "Resource",
|
|
452
|
+
"path": "evtsqs-rule-dlq/construct/ruleDlq/Resource",
|
|
453
|
+
"attributes": {
|
|
454
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::Queue",
|
|
455
|
+
"aws:cdk:cloudformation:props": {
|
|
456
|
+
"kmsMasterKeyId": {
|
|
457
|
+
"Fn::GetAtt": [
|
|
458
|
+
"constructruleDlqKey4F9EAB36",
|
|
459
|
+
"Arn"
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"constructInfo": {
|
|
465
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
|
|
466
|
+
"version": "2.177.0"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"Policy": {
|
|
470
|
+
"id": "Policy",
|
|
471
|
+
"path": "evtsqs-rule-dlq/construct/ruleDlq/Policy",
|
|
472
|
+
"children": {
|
|
473
|
+
"Resource": {
|
|
474
|
+
"id": "Resource",
|
|
475
|
+
"path": "evtsqs-rule-dlq/construct/ruleDlq/Policy/Resource",
|
|
476
|
+
"attributes": {
|
|
477
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
|
|
478
|
+
"aws:cdk:cloudformation:props": {
|
|
479
|
+
"policyDocument": {
|
|
480
|
+
"Statement": [
|
|
481
|
+
{
|
|
482
|
+
"Action": [
|
|
483
|
+
"sqs:AddPermission",
|
|
484
|
+
"sqs:DeleteMessage",
|
|
485
|
+
"sqs:GetQueueAttributes",
|
|
486
|
+
"sqs:ReceiveMessage",
|
|
487
|
+
"sqs:RemovePermission",
|
|
488
|
+
"sqs:SendMessage",
|
|
489
|
+
"sqs:SetQueueAttributes"
|
|
490
|
+
],
|
|
491
|
+
"Effect": "Allow",
|
|
492
|
+
"Principal": {
|
|
493
|
+
"AWS": {
|
|
494
|
+
"Fn::Join": [
|
|
495
|
+
"",
|
|
496
|
+
[
|
|
497
|
+
"arn:",
|
|
498
|
+
{
|
|
499
|
+
"Ref": "AWS::Partition"
|
|
500
|
+
},
|
|
501
|
+
":iam::",
|
|
502
|
+
{
|
|
503
|
+
"Ref": "AWS::AccountId"
|
|
504
|
+
},
|
|
505
|
+
":root"
|
|
506
|
+
]
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"Resource": {
|
|
511
|
+
"Fn::GetAtt": [
|
|
512
|
+
"constructruleDlq7D359AE9",
|
|
513
|
+
"Arn"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"Sid": "QueueOwnerOnlyAccess"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"Action": "SQS:*",
|
|
520
|
+
"Condition": {
|
|
521
|
+
"Bool": {
|
|
522
|
+
"aws:SecureTransport": "false"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"Effect": "Deny",
|
|
526
|
+
"Principal": {
|
|
527
|
+
"AWS": "*"
|
|
528
|
+
},
|
|
529
|
+
"Resource": {
|
|
530
|
+
"Fn::GetAtt": [
|
|
531
|
+
"constructruleDlq7D359AE9",
|
|
532
|
+
"Arn"
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
"Sid": "HttpsOnly"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"Action": "sqs:SendMessage",
|
|
539
|
+
"Condition": {
|
|
540
|
+
"ArnEquals": {
|
|
541
|
+
"aws:SourceArn": {
|
|
542
|
+
"Fn::GetAtt": [
|
|
543
|
+
"constructEventsRule43880ADB",
|
|
544
|
+
"Arn"
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"Effect": "Allow",
|
|
550
|
+
"Principal": {
|
|
551
|
+
"Service": "events.amazonaws.com"
|
|
552
|
+
},
|
|
553
|
+
"Resource": {
|
|
554
|
+
"Fn::GetAtt": [
|
|
555
|
+
"constructruleDlq7D359AE9",
|
|
556
|
+
"Arn"
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"Sid": "AllowEventRuleevtsqsruledlqconstructEventsRule62503343"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"Version": "2012-10-17"
|
|
563
|
+
},
|
|
564
|
+
"queues": [
|
|
565
|
+
{
|
|
566
|
+
"Ref": "constructruleDlq7D359AE9"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"constructInfo": {
|
|
572
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
|
|
573
|
+
"version": "2.177.0"
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"constructInfo": {
|
|
578
|
+
"fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
|
|
579
|
+
"version": "2.177.0"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"constructInfo": {
|
|
584
|
+
"fqn": "aws-cdk-lib.aws_sqs.Queue",
|
|
585
|
+
"version": "2.177.0"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"EventsRule": {
|
|
589
|
+
"id": "EventsRule",
|
|
590
|
+
"path": "evtsqs-rule-dlq/construct/EventsRule",
|
|
591
|
+
"children": {
|
|
592
|
+
"Resource": {
|
|
593
|
+
"id": "Resource",
|
|
594
|
+
"path": "evtsqs-rule-dlq/construct/EventsRule/Resource",
|
|
595
|
+
"attributes": {
|
|
596
|
+
"aws:cdk:cloudformation:type": "AWS::Events::Rule",
|
|
597
|
+
"aws:cdk:cloudformation:props": {
|
|
598
|
+
"scheduleExpression": "rate(1 minute)",
|
|
599
|
+
"state": "ENABLED",
|
|
600
|
+
"targets": [
|
|
601
|
+
{
|
|
602
|
+
"id": "Target0",
|
|
603
|
+
"arn": {
|
|
604
|
+
"Fn::GetAtt": [
|
|
605
|
+
"constructqueue481DC1EC",
|
|
606
|
+
"Arn"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"deadLetterConfig": {
|
|
610
|
+
"arn": {
|
|
611
|
+
"Fn::GetAtt": [
|
|
612
|
+
"constructruleDlq7D359AE9",
|
|
613
|
+
"Arn"
|
|
614
|
+
]
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"constructInfo": {
|
|
622
|
+
"fqn": "aws-cdk-lib.aws_events.CfnRule",
|
|
623
|
+
"version": "2.177.0"
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
"constructInfo": {
|
|
628
|
+
"fqn": "aws-cdk-lib.aws_events.Rule",
|
|
629
|
+
"version": "2.177.0"
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"constructInfo": {
|
|
634
|
+
"fqn": "@aws-solutions-constructs/aws-eventbridge-sqs.EventbridgeToSqs",
|
|
635
|
+
"version": "2.76.0"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"Integ": {
|
|
639
|
+
"id": "Integ",
|
|
640
|
+
"path": "evtsqs-rule-dlq/Integ",
|
|
641
|
+
"children": {
|
|
642
|
+
"DefaultTest": {
|
|
643
|
+
"id": "DefaultTest",
|
|
644
|
+
"path": "evtsqs-rule-dlq/Integ/DefaultTest",
|
|
645
|
+
"children": {
|
|
646
|
+
"Default": {
|
|
647
|
+
"id": "Default",
|
|
648
|
+
"path": "evtsqs-rule-dlq/Integ/DefaultTest/Default",
|
|
649
|
+
"constructInfo": {
|
|
650
|
+
"fqn": "constructs.Construct",
|
|
651
|
+
"version": "10.4.2"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"DeployAssert": {
|
|
655
|
+
"id": "DeployAssert",
|
|
656
|
+
"path": "evtsqs-rule-dlq/Integ/DefaultTest/DeployAssert",
|
|
657
|
+
"children": {
|
|
658
|
+
"BootstrapVersion": {
|
|
659
|
+
"id": "BootstrapVersion",
|
|
660
|
+
"path": "evtsqs-rule-dlq/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
661
|
+
"constructInfo": {
|
|
662
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
663
|
+
"version": "2.177.0"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"CheckBootstrapVersion": {
|
|
667
|
+
"id": "CheckBootstrapVersion",
|
|
668
|
+
"path": "evtsqs-rule-dlq/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
669
|
+
"constructInfo": {
|
|
670
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
671
|
+
"version": "2.177.0"
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"constructInfo": {
|
|
676
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
677
|
+
"version": "2.177.0"
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"constructInfo": {
|
|
682
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
683
|
+
"version": "2.177.0-alpha.0"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"constructInfo": {
|
|
688
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
689
|
+
"version": "2.177.0-alpha.0"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"BootstrapVersion": {
|
|
693
|
+
"id": "BootstrapVersion",
|
|
694
|
+
"path": "evtsqs-rule-dlq/BootstrapVersion",
|
|
695
|
+
"constructInfo": {
|
|
696
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
697
|
+
"version": "2.177.0"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
"CheckBootstrapVersion": {
|
|
701
|
+
"id": "CheckBootstrapVersion",
|
|
702
|
+
"path": "evtsqs-rule-dlq/CheckBootstrapVersion",
|
|
703
|
+
"constructInfo": {
|
|
704
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
705
|
+
"version": "2.177.0"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"constructInfo": {
|
|
710
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
711
|
+
"version": "2.177.0"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"Tree": {
|
|
715
|
+
"id": "Tree",
|
|
716
|
+
"path": "Tree",
|
|
717
|
+
"constructInfo": {
|
|
718
|
+
"fqn": "constructs.Construct",
|
|
719
|
+
"version": "10.4.2"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"constructInfo": {
|
|
724
|
+
"fqn": "aws-cdk-lib.App",
|
|
725
|
+
"version": "2.177.0"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|