@aws-solutions-constructs/aws-iot-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.
Files changed (85) hide show
  1. package/.eslintignore +3 -1
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  6. package/test/integ.iotsqs-custom-max-receive-count.js +5 -2
  7. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/cdk.out +1 -0
  8. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/integ.json +12 -0
  9. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/iotsqs-custom-max-receive-count.assets.json +19 -0
  10. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/iotsqs-custom-max-receive-count.template.json +362 -0
  11. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/iotsqscustommaxreceivecountIntegDefaultTestDeployAssert73D6F7FF.assets.json +19 -0
  12. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/iotsqscustommaxreceivecountIntegDefaultTestDeployAssert73D6F7FF.template.json +36 -0
  13. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/manifest.json +161 -0
  14. package/test/integ.iotsqs-custom-max-receive-count.js.snapshot/tree.json +570 -0
  15. package/test/integ.iotsqs-dead-letter-queue-off.js +5 -2
  16. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/cdk.out +1 -0
  17. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/integ.json +12 -0
  18. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/iotsqs-dead-letter-queue-off.assets.json +19 -0
  19. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/iotsqs-dead-letter-queue-off.template.json +273 -0
  20. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/iotsqsdeadletterqueueoffIntegDefaultTestDeployAssertDAEB8150.assets.json +19 -0
  21. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/iotsqsdeadletterqueueoffIntegDefaultTestDeployAssertDAEB8150.template.json +36 -0
  22. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/manifest.json +149 -0
  23. package/test/integ.iotsqs-dead-letter-queue-off.js.snapshot/tree.json +447 -0
  24. package/test/integ.iotsqs-default-arguments.js +5 -2
  25. package/test/integ.iotsqs-default-arguments.js.snapshot/cdk.out +1 -0
  26. package/test/integ.iotsqs-default-arguments.js.snapshot/integ.json +12 -0
  27. package/test/integ.iotsqs-default-arguments.js.snapshot/iotsqs-default-arguments.assets.json +19 -0
  28. package/test/integ.iotsqs-default-arguments.js.snapshot/iotsqs-default-arguments.template.json +360 -0
  29. package/test/integ.iotsqs-default-arguments.js.snapshot/iotsqsdefaultargumentsIntegDefaultTestDeployAssertB545C643.assets.json +19 -0
  30. package/test/integ.iotsqs-default-arguments.js.snapshot/iotsqsdefaultargumentsIntegDefaultTestDeployAssertB545C643.template.json +36 -0
  31. package/test/integ.iotsqs-default-arguments.js.snapshot/manifest.json +161 -0
  32. package/test/integ.iotsqs-default-arguments.js.snapshot/tree.json +568 -0
  33. package/test/integ.iotsqs-existing-queue.js +5 -2
  34. package/test/integ.iotsqs-existing-queue.js.snapshot/cdk.out +1 -0
  35. package/test/integ.iotsqs-existing-queue.js.snapshot/integ.json +12 -0
  36. package/test/integ.iotsqs-existing-queue.js.snapshot/iotsqs-existing-queue.assets.json +19 -0
  37. package/test/integ.iotsqs-existing-queue.js.snapshot/iotsqs-existing-queue.template.json +120 -0
  38. package/test/integ.iotsqs-existing-queue.js.snapshot/iotsqsexistingqueueIntegDefaultTestDeployAssertC1833CEE.assets.json +19 -0
  39. package/test/integ.iotsqs-existing-queue.js.snapshot/iotsqsexistingqueueIntegDefaultTestDeployAssertC1833CEE.template.json +36 -0
  40. package/test/integ.iotsqs-existing-queue.js.snapshot/manifest.json +131 -0
  41. package/test/integ.iotsqs-existing-queue.js.snapshot/tree.json +260 -0
  42. package/test/integ.iotsqs-use-kms-key-props.js +5 -2
  43. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/cdk.out +1 -0
  44. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/integ.json +12 -0
  45. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/iotsqs-use-kms-key-props.assets.json +19 -0
  46. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/iotsqs-use-kms-key-props.template.json +372 -0
  47. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/iotsqsusekmskeypropsIntegDefaultTestDeployAssert4B209F6F.assets.json +19 -0
  48. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/iotsqsusekmskeypropsIntegDefaultTestDeployAssert4B209F6F.template.json +36 -0
  49. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/manifest.json +167 -0
  50. package/test/integ.iotsqs-use-kms-key-props.js.snapshot/tree.json +598 -0
  51. package/test/integ.iotsqs-use-queue-props.js +5 -2
  52. package/test/integ.iotsqs-use-queue-props.js.snapshot/cdk.out +1 -0
  53. package/test/integ.iotsqs-use-queue-props.js.snapshot/integ.json +12 -0
  54. package/test/integ.iotsqs-use-queue-props.js.snapshot/iotsqs-use-queue-props.assets.json +19 -0
  55. package/test/integ.iotsqs-use-queue-props.js.snapshot/iotsqs-use-queue-props.template.json +362 -0
  56. package/test/integ.iotsqs-use-queue-props.js.snapshot/iotsqsusequeuepropsIntegDefaultTestDeployAssertE88E6656.assets.json +19 -0
  57. package/test/integ.iotsqs-use-queue-props.js.snapshot/iotsqsusequeuepropsIntegDefaultTestDeployAssertE88E6656.template.json +36 -0
  58. package/test/integ.iotsqs-use-queue-props.js.snapshot/manifest.json +161 -0
  59. package/test/integ.iotsqs-use-queue-props.js.snapshot/tree.json +570 -0
  60. package/test/integ.iotsqs-with-existing-key.js +5 -2
  61. package/test/integ.iotsqs-with-existing-key.js.snapshot/cdk.out +1 -0
  62. package/test/integ.iotsqs-with-existing-key.js.snapshot/integ.json +12 -0
  63. package/test/integ.iotsqs-with-existing-key.js.snapshot/iotsqs-with-existing-key.assets.json +19 -0
  64. package/test/integ.iotsqs-with-existing-key.js.snapshot/iotsqs-with-existing-key.template.json +372 -0
  65. package/test/integ.iotsqs-with-existing-key.js.snapshot/iotsqswithexistingkeyIntegDefaultTestDeployAssert7A2CD336.assets.json +19 -0
  66. package/test/integ.iotsqs-with-existing-key.js.snapshot/iotsqswithexistingkeyIntegDefaultTestDeployAssert7A2CD336.template.json +36 -0
  67. package/test/integ.iotsqs-with-existing-key.js.snapshot/manifest.json +167 -0
  68. package/test/integ.iotsqs-with-existing-key.js.snapshot/tree.json +598 -0
  69. package/test/integ.iotsqs-without-create-kms-key.js +5 -2
  70. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/cdk.out +1 -0
  71. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/integ.json +12 -0
  72. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/iotsqs-without-create-kms-key.assets.json +19 -0
  73. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/iotsqs-without-create-kms-key.template.json +278 -0
  74. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/iotsqswithoutcreatekmskeyIntegDefaultTestDeployAssertF21DB5E1.assets.json +19 -0
  75. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/iotsqswithoutcreatekmskeyIntegDefaultTestDeployAssertF21DB5E1.template.json +36 -0
  76. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/manifest.json +149 -0
  77. package/test/integ.iotsqs-without-create-kms-key.js.snapshot/tree.json +470 -0
  78. package/test/integ.iotsqs-custom-max-receive-count.expected.json +0 -376
  79. package/test/integ.iotsqs-dead-letter-queue-off.expected.json +0 -287
  80. package/test/integ.iotsqs-default-arguments.expected.json +0 -374
  81. package/test/integ.iotsqs-existing-queue.expected.json +0 -120
  82. package/test/integ.iotsqs-use-kms-key-props.expected.json +0 -386
  83. package/test/integ.iotsqs-use-queue-props.expected.json +0 -376
  84. package/test/integ.iotsqs-with-existing-key.expected.json +0 -386
  85. package/test/integ.iotsqs-without-create-kms-key.expected.json +0 -278
@@ -1,376 +0,0 @@
1
- {
2
- "Description": "Integration Test for aws-iot-sqs",
3
- "Resources": {
4
- "testiotsqsstackdeadLetterQueueA417EB97": {
5
- "Type": "AWS::SQS::Queue",
6
- "Properties": {
7
- "KmsMasterKeyId": "alias/aws/sqs",
8
- "QueueName": "use-queue-test-dlq-name"
9
- },
10
- "UpdateReplacePolicy": "Delete",
11
- "DeletionPolicy": "Delete"
12
- },
13
- "testiotsqsstackdeadLetterQueuePolicyD0F4B7D3": {
14
- "Type": "AWS::SQS::QueuePolicy",
15
- "Properties": {
16
- "PolicyDocument": {
17
- "Statement": [
18
- {
19
- "Action": [
20
- "sqs:DeleteMessage",
21
- "sqs:ReceiveMessage",
22
- "sqs:SendMessage",
23
- "sqs:GetQueueAttributes",
24
- "sqs:RemovePermission",
25
- "sqs:AddPermission",
26
- "sqs:SetQueueAttributes"
27
- ],
28
- "Effect": "Allow",
29
- "Principal": {
30
- "AWS": {
31
- "Fn::Join": [
32
- "",
33
- [
34
- "arn:",
35
- {
36
- "Ref": "AWS::Partition"
37
- },
38
- ":iam::",
39
- {
40
- "Ref": "AWS::AccountId"
41
- },
42
- ":root"
43
- ]
44
- ]
45
- }
46
- },
47
- "Resource": {
48
- "Fn::GetAtt": [
49
- "testiotsqsstackdeadLetterQueueA417EB97",
50
- "Arn"
51
- ]
52
- },
53
- "Sid": "QueueOwnerOnlyAccess"
54
- },
55
- {
56
- "Action": "SQS:*",
57
- "Condition": {
58
- "Bool": {
59
- "aws:SecureTransport": "false"
60
- }
61
- },
62
- "Effect": "Deny",
63
- "Principal": {
64
- "AWS": "*"
65
- },
66
- "Resource": {
67
- "Fn::GetAtt": [
68
- "testiotsqsstackdeadLetterQueueA417EB97",
69
- "Arn"
70
- ]
71
- },
72
- "Sid": "HttpsOnly"
73
- }
74
- ],
75
- "Version": "2012-10-17"
76
- },
77
- "Queues": [
78
- {
79
- "Ref": "testiotsqsstackdeadLetterQueueA417EB97"
80
- }
81
- ]
82
- }
83
- },
84
- "testiotsqsstackEncryptionKeyAB09201B": {
85
- "Type": "AWS::KMS::Key",
86
- "Properties": {
87
- "EnableKeyRotation": true,
88
- "KeyPolicy": {
89
- "Statement": [
90
- {
91
- "Action": "kms:*",
92
- "Effect": "Allow",
93
- "Principal": {
94
- "AWS": {
95
- "Fn::Join": [
96
- "",
97
- [
98
- "arn:",
99
- {
100
- "Ref": "AWS::Partition"
101
- },
102
- ":iam::",
103
- {
104
- "Ref": "AWS::AccountId"
105
- },
106
- ":root"
107
- ]
108
- ]
109
- }
110
- },
111
- "Resource": "*"
112
- },
113
- {
114
- "Action": [
115
- "kms:Encrypt",
116
- "kms:Decrypt"
117
- ],
118
- "Effect": "Allow",
119
- "Principal": {
120
- "AWS": {
121
- "Fn::Join": [
122
- "",
123
- [
124
- "arn:",
125
- {
126
- "Ref": "AWS::Partition"
127
- },
128
- ":iam::",
129
- {
130
- "Ref": "AWS::AccountId"
131
- },
132
- ":root"
133
- ]
134
- ]
135
- }
136
- },
137
- "Resource": "*"
138
- }
139
- ],
140
- "Version": "2012-10-17"
141
- }
142
- },
143
- "UpdateReplacePolicy": "Retain",
144
- "DeletionPolicy": "Retain"
145
- },
146
- "testiotsqsstackqueue3DEA94EF": {
147
- "Type": "AWS::SQS::Queue",
148
- "Properties": {
149
- "KmsMasterKeyId": {
150
- "Fn::GetAtt": [
151
- "testiotsqsstackEncryptionKeyAB09201B",
152
- "Arn"
153
- ]
154
- },
155
- "QueueName": "use-queue-test-name",
156
- "RedrivePolicy": {
157
- "deadLetterTargetArn": {
158
- "Fn::GetAtt": [
159
- "testiotsqsstackdeadLetterQueueA417EB97",
160
- "Arn"
161
- ]
162
- },
163
- "maxReceiveCount": 15
164
- }
165
- },
166
- "UpdateReplacePolicy": "Delete",
167
- "DeletionPolicy": "Delete"
168
- },
169
- "testiotsqsstackqueuePolicy76FA6440": {
170
- "Type": "AWS::SQS::QueuePolicy",
171
- "Properties": {
172
- "PolicyDocument": {
173
- "Statement": [
174
- {
175
- "Action": [
176
- "sqs:DeleteMessage",
177
- "sqs:ReceiveMessage",
178
- "sqs:SendMessage",
179
- "sqs:GetQueueAttributes",
180
- "sqs:RemovePermission",
181
- "sqs:AddPermission",
182
- "sqs:SetQueueAttributes"
183
- ],
184
- "Effect": "Allow",
185
- "Principal": {
186
- "AWS": {
187
- "Fn::Join": [
188
- "",
189
- [
190
- "arn:",
191
- {
192
- "Ref": "AWS::Partition"
193
- },
194
- ":iam::",
195
- {
196
- "Ref": "AWS::AccountId"
197
- },
198
- ":root"
199
- ]
200
- ]
201
- }
202
- },
203
- "Resource": {
204
- "Fn::GetAtt": [
205
- "testiotsqsstackqueue3DEA94EF",
206
- "Arn"
207
- ]
208
- },
209
- "Sid": "QueueOwnerOnlyAccess"
210
- },
211
- {
212
- "Action": "SQS:*",
213
- "Condition": {
214
- "Bool": {
215
- "aws:SecureTransport": "false"
216
- }
217
- },
218
- "Effect": "Deny",
219
- "Principal": {
220
- "AWS": "*"
221
- },
222
- "Resource": {
223
- "Fn::GetAtt": [
224
- "testiotsqsstackqueue3DEA94EF",
225
- "Arn"
226
- ]
227
- },
228
- "Sid": "HttpsOnly"
229
- }
230
- ],
231
- "Version": "2012-10-17"
232
- },
233
- "Queues": [
234
- {
235
- "Ref": "testiotsqsstackqueue3DEA94EF"
236
- }
237
- ]
238
- }
239
- },
240
- "testiotsqsstackiotactionsrole5F8821AA": {
241
- "Type": "AWS::IAM::Role",
242
- "Properties": {
243
- "AssumeRolePolicyDocument": {
244
- "Statement": [
245
- {
246
- "Action": "sts:AssumeRole",
247
- "Effect": "Allow",
248
- "Principal": {
249
- "Service": "iot.amazonaws.com"
250
- }
251
- }
252
- ],
253
- "Version": "2012-10-17"
254
- }
255
- }
256
- },
257
- "testiotsqsstackiotactionsroleDefaultPolicy02ED7F00": {
258
- "Type": "AWS::IAM::Policy",
259
- "Properties": {
260
- "PolicyDocument": {
261
- "Statement": [
262
- {
263
- "Action": [
264
- "sqs:SendMessage",
265
- "sqs:GetQueueAttributes",
266
- "sqs:GetQueueUrl"
267
- ],
268
- "Effect": "Allow",
269
- "Resource": {
270
- "Fn::GetAtt": [
271
- "testiotsqsstackqueue3DEA94EF",
272
- "Arn"
273
- ]
274
- }
275
- },
276
- {
277
- "Action": [
278
- "kms:Decrypt",
279
- "kms:Encrypt",
280
- "kms:ReEncrypt*",
281
- "kms:GenerateDataKey*"
282
- ],
283
- "Effect": "Allow",
284
- "Resource": {
285
- "Fn::GetAtt": [
286
- "testiotsqsstackEncryptionKeyAB09201B",
287
- "Arn"
288
- ]
289
- }
290
- },
291
- {
292
- "Action": [
293
- "kms:Encrypt",
294
- "kms:ReEncrypt*",
295
- "kms:GenerateDataKey*"
296
- ],
297
- "Effect": "Allow",
298
- "Resource": {
299
- "Fn::GetAtt": [
300
- "testiotsqsstackEncryptionKeyAB09201B",
301
- "Arn"
302
- ]
303
- }
304
- }
305
- ],
306
- "Version": "2012-10-17"
307
- },
308
- "PolicyName": "testiotsqsstackiotactionsroleDefaultPolicy02ED7F00",
309
- "Roles": [
310
- {
311
- "Ref": "testiotsqsstackiotactionsrole5F8821AA"
312
- }
313
- ]
314
- }
315
- },
316
- "testiotsqsstackIotTopicRule02F8F602": {
317
- "Type": "AWS::IoT::TopicRule",
318
- "Properties": {
319
- "TopicRulePayload": {
320
- "Actions": [
321
- {
322
- "Sqs": {
323
- "QueueUrl": {
324
- "Ref": "testiotsqsstackqueue3DEA94EF"
325
- },
326
- "RoleArn": {
327
- "Fn::GetAtt": [
328
- "testiotsqsstackiotactionsrole5F8821AA",
329
- "Arn"
330
- ]
331
- }
332
- }
333
- }
334
- ],
335
- "Description": "Processing messages from IoT devices or factory machines",
336
- "RuleDisabled": false,
337
- "Sql": "SELECT * FROM 'test/topic/#'"
338
- }
339
- }
340
- }
341
- },
342
- "Parameters": {
343
- "BootstrapVersion": {
344
- "Type": "AWS::SSM::Parameter::Value<String>",
345
- "Default": "/cdk-bootstrap/hnb659fds/version",
346
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
347
- }
348
- },
349
- "Rules": {
350
- "CheckBootstrapVersion": {
351
- "Assertions": [
352
- {
353
- "Assert": {
354
- "Fn::Not": [
355
- {
356
- "Fn::Contains": [
357
- [
358
- "1",
359
- "2",
360
- "3",
361
- "4",
362
- "5"
363
- ],
364
- {
365
- "Ref": "BootstrapVersion"
366
- }
367
- ]
368
- }
369
- ]
370
- },
371
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
372
- }
373
- ]
374
- }
375
- }
376
- }