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