@aws-solutions-constructs/aws-eventbridge-sqs 2.51.0 → 2.52.1
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/.eslintignore +2 -0
- package/.jsii +49 -4
- package/integ.config.json +7 -0
- package/lib/index.js +1 -1
- package/package.json +9 -8
- package/test/integ.evtsqs-exist-bus.js +5 -2
- package/test/integ.evtsqs-exist-bus.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.assets.json +19 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqs-exist-bus.template.json +168 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqsexistbusIntegDefaultTestDeployAssertD6166996.assets.json +19 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/evtsqsexistbusIntegDefaultTestDeployAssertD6166996.template.json +36 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/manifest.json +137 -0
- package/test/integ.evtsqs-exist-bus.js.snapshot/tree.json +327 -0
- package/test/integ.evtsqs-exist-queue.js +5 -2
- package/test/integ.evtsqs-exist-queue.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.assets.json +19 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqs-exist-queue.template.json +155 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.assets.json +19 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.template.json +36 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/manifest.json +131 -0
- package/test/integ.evtsqs-exist-queue.js.snapshot/tree.json +296 -0
- package/test/integ.evtsqs-new-bus.js +5 -2
- package/test/integ.evtsqs-new-bus.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.assets.json +19 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqs-new-bus.template.json +312 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqsnewbusIntegDefaultTestDeployAssertA45AD5F2.assets.json +19 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/evtsqsnewbusIntegDefaultTestDeployAssertA45AD5F2.template.json +36 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/manifest.json +155 -0
- package/test/integ.evtsqs-new-bus.js.snapshot/tree.json +505 -0
- package/test/integ.evtsqs-no-arg.js +5 -2
- package/test/integ.evtsqs-no-arg.js.snapshot/cdk.out +1 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.assets.json +19 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqs-no-arg.template.json +299 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqsnoargIntegDefaultTestDeployAssertB5DFB718.assets.json +19 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/evtsqsnoargIntegDefaultTestDeployAssertB5DFB718.template.json +36 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/integ.json +12 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/manifest.json +149 -0
- package/test/integ.evtsqs-no-arg.js.snapshot/tree.json +474 -0
- package/test/integ.evtsqs-exist-bus.expected.json +0 -168
- package/test/integ.evtsqs-exist-queue.expected.json +0 -155
- package/test/integ.evtsqs-new-bus.expected.json +0 -312
- package/test/integ.evtsqs-no-arg.expected.json +0 -299
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "tree-0.1",
|
|
3
|
+
"tree": {
|
|
4
|
+
"id": "App",
|
|
5
|
+
"path": "",
|
|
6
|
+
"children": {
|
|
7
|
+
"evtsqs-exist-bus": {
|
|
8
|
+
"id": "evtsqs-exist-bus",
|
|
9
|
+
"path": "evtsqs-exist-bus",
|
|
10
|
+
"children": {
|
|
11
|
+
"MyKey": {
|
|
12
|
+
"id": "MyKey",
|
|
13
|
+
"path": "evtsqs-exist-bus/MyKey",
|
|
14
|
+
"children": {
|
|
15
|
+
"Resource": {
|
|
16
|
+
"id": "Resource",
|
|
17
|
+
"path": "evtsqs-exist-bus/MyKey/Resource",
|
|
18
|
+
"attributes": {
|
|
19
|
+
"aws:cdk:cloudformation:type": "AWS::KMS::Key",
|
|
20
|
+
"aws:cdk:cloudformation:props": {
|
|
21
|
+
"enableKeyRotation": true,
|
|
22
|
+
"keyPolicy": {
|
|
23
|
+
"Statement": [
|
|
24
|
+
{
|
|
25
|
+
"Action": "kms:*",
|
|
26
|
+
"Effect": "Allow",
|
|
27
|
+
"Principal": {
|
|
28
|
+
"AWS": {
|
|
29
|
+
"Fn::Join": [
|
|
30
|
+
"",
|
|
31
|
+
[
|
|
32
|
+
"arn:",
|
|
33
|
+
{
|
|
34
|
+
"Ref": "AWS::Partition"
|
|
35
|
+
},
|
|
36
|
+
":iam::",
|
|
37
|
+
{
|
|
38
|
+
"Ref": "AWS::AccountId"
|
|
39
|
+
},
|
|
40
|
+
":root"
|
|
41
|
+
]
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"Resource": "*"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"Action": [
|
|
49
|
+
"kms:Decrypt",
|
|
50
|
+
"kms:Encrypt",
|
|
51
|
+
"kms:GenerateDataKey*",
|
|
52
|
+
"kms:ReEncrypt*"
|
|
53
|
+
],
|
|
54
|
+
"Effect": "Allow",
|
|
55
|
+
"Principal": {
|
|
56
|
+
"Service": "events.amazonaws.com"
|
|
57
|
+
},
|
|
58
|
+
"Resource": "*"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"Version": "2012-10-17"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"constructInfo": {
|
|
66
|
+
"fqn": "aws-cdk-lib.aws_kms.CfnKey",
|
|
67
|
+
"version": "2.118.0"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"constructInfo": {
|
|
72
|
+
"fqn": "aws-cdk-lib.aws_kms.Key",
|
|
73
|
+
"version": "2.118.0"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"MyQueue": {
|
|
77
|
+
"id": "MyQueue",
|
|
78
|
+
"path": "evtsqs-exist-bus/MyQueue",
|
|
79
|
+
"children": {
|
|
80
|
+
"Resource": {
|
|
81
|
+
"id": "Resource",
|
|
82
|
+
"path": "evtsqs-exist-bus/MyQueue/Resource",
|
|
83
|
+
"attributes": {
|
|
84
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::Queue",
|
|
85
|
+
"aws:cdk:cloudformation:props": {
|
|
86
|
+
"kmsMasterKeyId": {
|
|
87
|
+
"Fn::GetAtt": [
|
|
88
|
+
"MyKey6AB29FA6",
|
|
89
|
+
"Arn"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"constructInfo": {
|
|
95
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
|
|
96
|
+
"version": "2.118.0"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"Policy": {
|
|
100
|
+
"id": "Policy",
|
|
101
|
+
"path": "evtsqs-exist-bus/MyQueue/Policy",
|
|
102
|
+
"children": {
|
|
103
|
+
"Resource": {
|
|
104
|
+
"id": "Resource",
|
|
105
|
+
"path": "evtsqs-exist-bus/MyQueue/Policy/Resource",
|
|
106
|
+
"attributes": {
|
|
107
|
+
"aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
|
|
108
|
+
"aws:cdk:cloudformation:props": {
|
|
109
|
+
"policyDocument": {
|
|
110
|
+
"Statement": [
|
|
111
|
+
{
|
|
112
|
+
"Action": [
|
|
113
|
+
"sqs:GetQueueAttributes",
|
|
114
|
+
"sqs:GetQueueUrl",
|
|
115
|
+
"sqs:SendMessage"
|
|
116
|
+
],
|
|
117
|
+
"Effect": "Allow",
|
|
118
|
+
"Principal": {
|
|
119
|
+
"Service": "events.amazonaws.com"
|
|
120
|
+
},
|
|
121
|
+
"Resource": {
|
|
122
|
+
"Fn::GetAtt": [
|
|
123
|
+
"MyQueueE6CA6235",
|
|
124
|
+
"Arn"
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"Version": "2012-10-17"
|
|
130
|
+
},
|
|
131
|
+
"queues": [
|
|
132
|
+
{
|
|
133
|
+
"Ref": "MyQueueE6CA6235"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"constructInfo": {
|
|
139
|
+
"fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
|
|
140
|
+
"version": "2.118.0"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"constructInfo": {
|
|
145
|
+
"fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
|
|
146
|
+
"version": "2.118.0"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"constructInfo": {
|
|
151
|
+
"fqn": "aws-cdk-lib.aws_sqs.Queue",
|
|
152
|
+
"version": "2.118.0"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"existing-event-bus": {
|
|
156
|
+
"id": "existing-event-bus",
|
|
157
|
+
"path": "evtsqs-exist-bus/existing-event-bus",
|
|
158
|
+
"children": {
|
|
159
|
+
"Resource": {
|
|
160
|
+
"id": "Resource",
|
|
161
|
+
"path": "evtsqs-exist-bus/existing-event-bus/Resource",
|
|
162
|
+
"attributes": {
|
|
163
|
+
"aws:cdk:cloudformation:type": "AWS::Events::EventBus",
|
|
164
|
+
"aws:cdk:cloudformation:props": {
|
|
165
|
+
"name": "evtsqsexistbusexistingeventbus730F622B"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"constructInfo": {
|
|
169
|
+
"fqn": "aws-cdk-lib.aws_events.CfnEventBus",
|
|
170
|
+
"version": "2.118.0"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"constructInfo": {
|
|
175
|
+
"fqn": "aws-cdk-lib.aws_events.EventBus",
|
|
176
|
+
"version": "2.118.0"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"construct": {
|
|
180
|
+
"id": "construct",
|
|
181
|
+
"path": "evtsqs-exist-bus/construct",
|
|
182
|
+
"children": {
|
|
183
|
+
"EventsRule": {
|
|
184
|
+
"id": "EventsRule",
|
|
185
|
+
"path": "evtsqs-exist-bus/construct/EventsRule",
|
|
186
|
+
"children": {
|
|
187
|
+
"Resource": {
|
|
188
|
+
"id": "Resource",
|
|
189
|
+
"path": "evtsqs-exist-bus/construct/EventsRule/Resource",
|
|
190
|
+
"attributes": {
|
|
191
|
+
"aws:cdk:cloudformation:type": "AWS::Events::Rule",
|
|
192
|
+
"aws:cdk:cloudformation:props": {
|
|
193
|
+
"eventBusName": {
|
|
194
|
+
"Ref": "existingeventbusA5B80487"
|
|
195
|
+
},
|
|
196
|
+
"eventPattern": {
|
|
197
|
+
"source": [
|
|
198
|
+
"solutionsconstructs"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"state": "ENABLED",
|
|
202
|
+
"targets": [
|
|
203
|
+
{
|
|
204
|
+
"id": {
|
|
205
|
+
"Fn::GetAtt": [
|
|
206
|
+
"MyQueueE6CA6235",
|
|
207
|
+
"QueueName"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"arn": {
|
|
211
|
+
"Fn::GetAtt": [
|
|
212
|
+
"MyQueueE6CA6235",
|
|
213
|
+
"Arn"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"constructInfo": {
|
|
221
|
+
"fqn": "aws-cdk-lib.aws_events.CfnRule",
|
|
222
|
+
"version": "2.118.0"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"constructInfo": {
|
|
227
|
+
"fqn": "aws-cdk-lib.aws_events.Rule",
|
|
228
|
+
"version": "2.118.0"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"constructInfo": {
|
|
233
|
+
"fqn": "@aws-solutions-constructs/aws-eventbridge-sqs.EventbridgeToSqs",
|
|
234
|
+
"version": "2.50.0"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"Integ": {
|
|
238
|
+
"id": "Integ",
|
|
239
|
+
"path": "evtsqs-exist-bus/Integ",
|
|
240
|
+
"children": {
|
|
241
|
+
"DefaultTest": {
|
|
242
|
+
"id": "DefaultTest",
|
|
243
|
+
"path": "evtsqs-exist-bus/Integ/DefaultTest",
|
|
244
|
+
"children": {
|
|
245
|
+
"Default": {
|
|
246
|
+
"id": "Default",
|
|
247
|
+
"path": "evtsqs-exist-bus/Integ/DefaultTest/Default",
|
|
248
|
+
"constructInfo": {
|
|
249
|
+
"fqn": "constructs.Construct",
|
|
250
|
+
"version": "10.0.0"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"DeployAssert": {
|
|
254
|
+
"id": "DeployAssert",
|
|
255
|
+
"path": "evtsqs-exist-bus/Integ/DefaultTest/DeployAssert",
|
|
256
|
+
"children": {
|
|
257
|
+
"BootstrapVersion": {
|
|
258
|
+
"id": "BootstrapVersion",
|
|
259
|
+
"path": "evtsqs-exist-bus/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
260
|
+
"constructInfo": {
|
|
261
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
262
|
+
"version": "2.118.0"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"CheckBootstrapVersion": {
|
|
266
|
+
"id": "CheckBootstrapVersion",
|
|
267
|
+
"path": "evtsqs-exist-bus/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
268
|
+
"constructInfo": {
|
|
269
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
270
|
+
"version": "2.118.0"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"constructInfo": {
|
|
275
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
276
|
+
"version": "2.118.0"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"constructInfo": {
|
|
281
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
282
|
+
"version": "2.118.0-alpha.0"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"constructInfo": {
|
|
287
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
288
|
+
"version": "2.118.0-alpha.0"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"BootstrapVersion": {
|
|
292
|
+
"id": "BootstrapVersion",
|
|
293
|
+
"path": "evtsqs-exist-bus/BootstrapVersion",
|
|
294
|
+
"constructInfo": {
|
|
295
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
296
|
+
"version": "2.118.0"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"CheckBootstrapVersion": {
|
|
300
|
+
"id": "CheckBootstrapVersion",
|
|
301
|
+
"path": "evtsqs-exist-bus/CheckBootstrapVersion",
|
|
302
|
+
"constructInfo": {
|
|
303
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
304
|
+
"version": "2.118.0"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"constructInfo": {
|
|
309
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
310
|
+
"version": "2.118.0"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"Tree": {
|
|
314
|
+
"id": "Tree",
|
|
315
|
+
"path": "Tree",
|
|
316
|
+
"constructInfo": {
|
|
317
|
+
"fqn": "constructs.Construct",
|
|
318
|
+
"version": "10.0.0"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"constructInfo": {
|
|
323
|
+
"fqn": "aws-cdk-lib.App",
|
|
324
|
+
"version": "2.118.0"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
@@ -19,6 +19,7 @@ const aws_cdk_lib_2 = require("aws-cdk-lib");
|
|
|
19
19
|
const sqs = require("aws-cdk-lib/aws-sqs");
|
|
20
20
|
const kms = require("aws-cdk-lib/aws-kms");
|
|
21
21
|
const core_1 = require("@aws-solutions-constructs/core");
|
|
22
|
+
const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha");
|
|
22
23
|
const app = new aws_cdk_lib_2.App();
|
|
23
24
|
const stack = new aws_cdk_lib_2.Stack(app, core_1.generateIntegStackName(__filename));
|
|
24
25
|
const existingQueueObj = new sqs.Queue(stack, 'MyQueue', {
|
|
@@ -34,5 +35,7 @@ const props = {
|
|
|
34
35
|
existingQueueObj
|
|
35
36
|
};
|
|
36
37
|
new lib_1.EventbridgeToSqs(stack, 'construct', props);
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
new integ_tests_alpha_1.IntegTest(stack, 'Integ', { testCases: [
|
|
39
|
+
stack
|
|
40
|
+
] });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZ0c3FzLWV4aXN0LXF1ZXVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXZ0c3FzLWV4aXN0LXF1ZXVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7R0FXRzs7QUFFSCw2Q0FBdU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
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"files": {
|
|
4
|
+
"2697c1685077d157ce278d357ebcc8c55dea9ffc2724999c41d2dc9e19d34488": {
|
|
5
|
+
"source": {
|
|
6
|
+
"path": "evtsqs-exist-queue.template.json",
|
|
7
|
+
"packaging": "file"
|
|
8
|
+
},
|
|
9
|
+
"destinations": {
|
|
10
|
+
"current_account-current_region": {
|
|
11
|
+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
+
"objectKey": "2697c1685077d157ce278d357ebcc8c55dea9ffc2724999c41d2dc9e19d34488.json",
|
|
13
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dockerImages": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Resources": {
|
|
3
|
+
"MyKey6AB29FA6": {
|
|
4
|
+
"Type": "AWS::KMS::Key",
|
|
5
|
+
"Properties": {
|
|
6
|
+
"EnableKeyRotation": true,
|
|
7
|
+
"KeyPolicy": {
|
|
8
|
+
"Statement": [
|
|
9
|
+
{
|
|
10
|
+
"Action": "kms:*",
|
|
11
|
+
"Effect": "Allow",
|
|
12
|
+
"Principal": {
|
|
13
|
+
"AWS": {
|
|
14
|
+
"Fn::Join": [
|
|
15
|
+
"",
|
|
16
|
+
[
|
|
17
|
+
"arn:",
|
|
18
|
+
{
|
|
19
|
+
"Ref": "AWS::Partition"
|
|
20
|
+
},
|
|
21
|
+
":iam::",
|
|
22
|
+
{
|
|
23
|
+
"Ref": "AWS::AccountId"
|
|
24
|
+
},
|
|
25
|
+
":root"
|
|
26
|
+
]
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"Resource": "*"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"Action": [
|
|
34
|
+
"kms:Decrypt",
|
|
35
|
+
"kms:Encrypt",
|
|
36
|
+
"kms:GenerateDataKey*",
|
|
37
|
+
"kms:ReEncrypt*"
|
|
38
|
+
],
|
|
39
|
+
"Effect": "Allow",
|
|
40
|
+
"Principal": {
|
|
41
|
+
"Service": "events.amazonaws.com"
|
|
42
|
+
},
|
|
43
|
+
"Resource": "*"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"Version": "2012-10-17"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"UpdateReplacePolicy": "Retain",
|
|
50
|
+
"DeletionPolicy": "Retain"
|
|
51
|
+
},
|
|
52
|
+
"MyQueueE6CA6235": {
|
|
53
|
+
"Type": "AWS::SQS::Queue",
|
|
54
|
+
"Properties": {
|
|
55
|
+
"KmsMasterKeyId": {
|
|
56
|
+
"Fn::GetAtt": [
|
|
57
|
+
"MyKey6AB29FA6",
|
|
58
|
+
"Arn"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"UpdateReplacePolicy": "Delete",
|
|
63
|
+
"DeletionPolicy": "Delete"
|
|
64
|
+
},
|
|
65
|
+
"MyQueuePolicy6BBEDDAC": {
|
|
66
|
+
"Type": "AWS::SQS::QueuePolicy",
|
|
67
|
+
"Properties": {
|
|
68
|
+
"PolicyDocument": {
|
|
69
|
+
"Statement": [
|
|
70
|
+
{
|
|
71
|
+
"Action": [
|
|
72
|
+
"sqs:GetQueueAttributes",
|
|
73
|
+
"sqs:GetQueueUrl",
|
|
74
|
+
"sqs:SendMessage"
|
|
75
|
+
],
|
|
76
|
+
"Effect": "Allow",
|
|
77
|
+
"Principal": {
|
|
78
|
+
"Service": "events.amazonaws.com"
|
|
79
|
+
},
|
|
80
|
+
"Resource": {
|
|
81
|
+
"Fn::GetAtt": [
|
|
82
|
+
"MyQueueE6CA6235",
|
|
83
|
+
"Arn"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"Version": "2012-10-17"
|
|
89
|
+
},
|
|
90
|
+
"Queues": [
|
|
91
|
+
{
|
|
92
|
+
"Ref": "MyQueueE6CA6235"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"constructEventsRule43880ADB": {
|
|
98
|
+
"Type": "AWS::Events::Rule",
|
|
99
|
+
"Properties": {
|
|
100
|
+
"ScheduleExpression": "rate(5 minutes)",
|
|
101
|
+
"State": "ENABLED",
|
|
102
|
+
"Targets": [
|
|
103
|
+
{
|
|
104
|
+
"Arn": {
|
|
105
|
+
"Fn::GetAtt": [
|
|
106
|
+
"MyQueueE6CA6235",
|
|
107
|
+
"Arn"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"Id": {
|
|
111
|
+
"Fn::GetAtt": [
|
|
112
|
+
"MyQueueE6CA6235",
|
|
113
|
+
"QueueName"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"Parameters": {
|
|
122
|
+
"BootstrapVersion": {
|
|
123
|
+
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
124
|
+
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
125
|
+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Rules": {
|
|
129
|
+
"CheckBootstrapVersion": {
|
|
130
|
+
"Assertions": [
|
|
131
|
+
{
|
|
132
|
+
"Assert": {
|
|
133
|
+
"Fn::Not": [
|
|
134
|
+
{
|
|
135
|
+
"Fn::Contains": [
|
|
136
|
+
[
|
|
137
|
+
"1",
|
|
138
|
+
"2",
|
|
139
|
+
"3",
|
|
140
|
+
"4",
|
|
141
|
+
"5"
|
|
142
|
+
],
|
|
143
|
+
{
|
|
144
|
+
"Ref": "BootstrapVersion"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"files": {
|
|
4
|
+
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
|
|
5
|
+
"source": {
|
|
6
|
+
"path": "evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB.template.json",
|
|
7
|
+
"packaging": "file"
|
|
8
|
+
},
|
|
9
|
+
"destinations": {
|
|
10
|
+
"current_account-current_region": {
|
|
11
|
+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
+
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
|
|
13
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dockerImages": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Parameters": {
|
|
3
|
+
"BootstrapVersion": {
|
|
4
|
+
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
5
|
+
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
6
|
+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"Rules": {
|
|
10
|
+
"CheckBootstrapVersion": {
|
|
11
|
+
"Assertions": [
|
|
12
|
+
{
|
|
13
|
+
"Assert": {
|
|
14
|
+
"Fn::Not": [
|
|
15
|
+
{
|
|
16
|
+
"Fn::Contains": [
|
|
17
|
+
[
|
|
18
|
+
"1",
|
|
19
|
+
"2",
|
|
20
|
+
"3",
|
|
21
|
+
"4",
|
|
22
|
+
"5"
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
"Ref": "BootstrapVersion"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"testCases": {
|
|
4
|
+
"evtsqs-exist-queue/Integ/DefaultTest": {
|
|
5
|
+
"stacks": [
|
|
6
|
+
"evtsqs-exist-queue"
|
|
7
|
+
],
|
|
8
|
+
"assertionStack": "evtsqs-exist-queue/Integ/DefaultTest/DeployAssert",
|
|
9
|
+
"assertionStackName": "evtsqsexistqueueIntegDefaultTestDeployAssert4E2D04AB"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|