@aws-solutions-constructs/aws-sqs-pipes-stepfunctions 2.73.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.
Files changed (92) hide show
  1. package/.eslintignore +7 -0
  2. package/.jsii +4457 -0
  3. package/README.md +100 -0
  4. package/architecture.png +0 -0
  5. package/integ.config.json +0 -0
  6. package/lib/index.d.ts +140 -0
  7. package/lib/index.js +77 -0
  8. package/package.json +96 -0
  9. package/test/integ.sqspstp-custom-log-level.d.ts +13 -0
  10. package/test/integ.sqspstp-custom-log-level.js +33 -0
  11. package/test/integ.sqspstp-custom-log-level.js.snapshot/cdk.out +1 -0
  12. package/test/integ.sqspstp-custom-log-level.js.snapshot/integ.json +12 -0
  13. package/test/integ.sqspstp-custom-log-level.js.snapshot/manifest.json +205 -0
  14. package/test/integ.sqspstp-custom-log-level.js.snapshot/sqspstp-custom-log-level.assets.json +19 -0
  15. package/test/integ.sqspstp-custom-log-level.js.snapshot/sqspstp-custom-log-level.template.json +654 -0
  16. package/test/integ.sqspstp-custom-log-level.js.snapshot/sqspstpcustomloglevelIntegDefaultTestDeployAssertD542618D.assets.json +19 -0
  17. package/test/integ.sqspstp-custom-log-level.js.snapshot/sqspstpcustomloglevelIntegDefaultTestDeployAssertD542618D.template.json +36 -0
  18. package/test/integ.sqspstp-custom-log-level.js.snapshot/tree.json +957 -0
  19. package/test/integ.sqspstp-existing-queue.d.ts +13 -0
  20. package/test/integ.sqspstp-existing-queue.js +35 -0
  21. package/test/integ.sqspstp-existing-queue.js.snapshot/cdk.out +1 -0
  22. package/test/integ.sqspstp-existing-queue.js.snapshot/integ.json +12 -0
  23. package/test/integ.sqspstp-existing-queue.js.snapshot/manifest.json +205 -0
  24. package/test/integ.sqspstp-existing-queue.js.snapshot/sqspstp-existing-queue.assets.json +19 -0
  25. package/test/integ.sqspstp-existing-queue.js.snapshot/sqspstp-existing-queue.template.json +654 -0
  26. package/test/integ.sqspstp-existing-queue.js.snapshot/sqspstpexistingqueueIntegDefaultTestDeployAssert6DA9FDD7.assets.json +19 -0
  27. package/test/integ.sqspstp-existing-queue.js.snapshot/sqspstpexistingqueueIntegDefaultTestDeployAssert6DA9FDD7.template.json +36 -0
  28. package/test/integ.sqspstp-existing-queue.js.snapshot/tree.json +957 -0
  29. package/test/integ.sqspstp-filter.d.ts +13 -0
  30. package/test/integ.sqspstp-filter.js +44 -0
  31. package/test/integ.sqspstp-filter.js.snapshot/cdk.out +1 -0
  32. package/test/integ.sqspstp-filter.js.snapshot/integ.json +12 -0
  33. package/test/integ.sqspstp-filter.js.snapshot/manifest.json +205 -0
  34. package/test/integ.sqspstp-filter.js.snapshot/sqspstp-filter.assets.json +19 -0
  35. package/test/integ.sqspstp-filter.js.snapshot/sqspstp-filter.template.json +662 -0
  36. package/test/integ.sqspstp-filter.js.snapshot/sqspstpfilterIntegDefaultTestDeployAssert0C52837E.assets.json +19 -0
  37. package/test/integ.sqspstp-filter.js.snapshot/sqspstpfilterIntegDefaultTestDeployAssert0C52837E.template.json +36 -0
  38. package/test/integ.sqspstp-filter.js.snapshot/tree.json +965 -0
  39. package/test/integ.sqspstp-lambda-function-enrichment.d.ts +13 -0
  40. package/test/integ.sqspstp-lambda-function-enrichment.js +40 -0
  41. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/asset.33adcab38bd8c4e154734b436a40ee81920a89cd6c787ce62302c33df5e1dfcb/index.js +9 -0
  42. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/cdk.out +1 -0
  43. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/integ.json +12 -0
  44. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/manifest.json +223 -0
  45. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/sqspstp-lambda-function-enrichment.assets.json +32 -0
  46. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/sqspstp-lambda-function-enrichment.template.json +757 -0
  47. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/sqspstplambdafunctionenrichmentIntegDefaultTestDeployAssert1F2A8125.assets.json +19 -0
  48. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/sqspstplambdafunctionenrichmentIntegDefaultTestDeployAssert1F2A8125.template.json +36 -0
  49. package/test/integ.sqspstp-lambda-function-enrichment.js.snapshot/tree.json +1127 -0
  50. package/test/integ.sqspstp-logs-off.d.ts +13 -0
  51. package/test/integ.sqspstp-logs-off.js +33 -0
  52. package/test/integ.sqspstp-logs-off.js.snapshot/cdk.out +1 -0
  53. package/test/integ.sqspstp-logs-off.js.snapshot/integ.json +12 -0
  54. package/test/integ.sqspstp-logs-off.js.snapshot/manifest.json +199 -0
  55. package/test/integ.sqspstp-logs-off.js.snapshot/sqspstp-logs-off.assets.json +19 -0
  56. package/test/integ.sqspstp-logs-off.js.snapshot/sqspstp-logs-off.template.json +601 -0
  57. package/test/integ.sqspstp-logs-off.js.snapshot/sqspstplogsoffIntegDefaultTestDeployAssert25C29ACD.assets.json +19 -0
  58. package/test/integ.sqspstp-logs-off.js.snapshot/sqspstplogsoffIntegDefaultTestDeployAssert25C29ACD.template.json +36 -0
  59. package/test/integ.sqspstp-logs-off.js.snapshot/tree.json +902 -0
  60. package/test/integ.sqspstp-no-arguments.d.ts +13 -0
  61. package/test/integ.sqspstp-no-arguments.js +32 -0
  62. package/test/integ.sqspstp-no-arguments.js.snapshot/cdk.out +1 -0
  63. package/test/integ.sqspstp-no-arguments.js.snapshot/integ.json +12 -0
  64. package/test/integ.sqspstp-no-arguments.js.snapshot/manifest.json +205 -0
  65. package/test/integ.sqspstp-no-arguments.js.snapshot/sqspstp-no-arguments.assets.json +19 -0
  66. package/test/integ.sqspstp-no-arguments.js.snapshot/sqspstp-no-arguments.template.json +654 -0
  67. package/test/integ.sqspstp-no-arguments.js.snapshot/sqspstpnoargumentsIntegDefaultTestDeployAssert83953622.assets.json +19 -0
  68. package/test/integ.sqspstp-no-arguments.js.snapshot/sqspstpnoargumentsIntegDefaultTestDeployAssert83953622.template.json +36 -0
  69. package/test/integ.sqspstp-no-arguments.js.snapshot/tree.json +957 -0
  70. package/test/integ.sqspstp-set-queue-batch-size.d.ts +13 -0
  71. package/test/integ.sqspstp-set-queue-batch-size.js +39 -0
  72. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/cdk.out +1 -0
  73. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/integ.json +12 -0
  74. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/manifest.json +205 -0
  75. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/sqspstp-set-queue-batch-size.assets.json +19 -0
  76. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/sqspstp-set-queue-batch-size.template.json +658 -0
  77. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/sqspstpsetqueuebatchsizeIntegDefaultTestDeployAssertA1752E9D.assets.json +19 -0
  78. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/sqspstpsetqueuebatchsizeIntegDefaultTestDeployAssertA1752E9D.template.json +36 -0
  79. package/test/integ.sqspstp-set-queue-batch-size.js.snapshot/tree.json +961 -0
  80. package/test/integ.sqspstp-state-machine-enrichment.d.ts +13 -0
  81. package/test/integ.sqspstp-state-machine-enrichment.js +39 -0
  82. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/cdk.out +1 -0
  83. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/integ.json +12 -0
  84. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/manifest.json +241 -0
  85. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/sqspstp-state-machine-enrichment.assets.json +19 -0
  86. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/sqspstp-state-machine-enrichment.template.json +868 -0
  87. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/sqspstpstatemachineenrichmentIntegDefaultTestDeployAssert47A5DE6D.assets.json +19 -0
  88. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/sqspstpstatemachineenrichmentIntegDefaultTestDeployAssert47A5DE6D.template.json +36 -0
  89. package/test/integ.sqspstp-state-machine-enrichment.js.snapshot/tree.json +1252 -0
  90. package/test/lambda/index.js +9 -0
  91. package/test/sqs-pipes-stepfunctions.test.d.ts +13 -0
  92. package/test/sqs-pipes-stepfunctions.test.js +394 -0
@@ -0,0 +1,957 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "sqspstp-existing-queue": {
8
+ "id": "sqspstp-existing-queue",
9
+ "path": "sqspstp-existing-queue",
10
+ "children": {
11
+ "existing-queue-dlq": {
12
+ "id": "existing-queue-dlq",
13
+ "path": "sqspstp-existing-queue/existing-queue-dlq",
14
+ "children": {
15
+ "Resource": {
16
+ "id": "Resource",
17
+ "path": "sqspstp-existing-queue/existing-queue-dlq/Resource",
18
+ "attributes": {
19
+ "aws:cdk:cloudformation:type": "AWS::SQS::Queue",
20
+ "aws:cdk:cloudformation:props": {
21
+ "kmsMasterKeyId": "alias/aws/sqs"
22
+ }
23
+ },
24
+ "constructInfo": {
25
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
26
+ "version": "2.161.0"
27
+ }
28
+ },
29
+ "Policy": {
30
+ "id": "Policy",
31
+ "path": "sqspstp-existing-queue/existing-queue-dlq/Policy",
32
+ "children": {
33
+ "Resource": {
34
+ "id": "Resource",
35
+ "path": "sqspstp-existing-queue/existing-queue-dlq/Policy/Resource",
36
+ "attributes": {
37
+ "aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
38
+ "aws:cdk:cloudformation:props": {
39
+ "policyDocument": {
40
+ "Statement": [
41
+ {
42
+ "Action": [
43
+ "sqs:AddPermission",
44
+ "sqs:DeleteMessage",
45
+ "sqs:GetQueueAttributes",
46
+ "sqs:ReceiveMessage",
47
+ "sqs:RemovePermission",
48
+ "sqs:SendMessage",
49
+ "sqs:SetQueueAttributes"
50
+ ],
51
+ "Effect": "Allow",
52
+ "Principal": {
53
+ "AWS": {
54
+ "Fn::Join": [
55
+ "",
56
+ [
57
+ "arn:",
58
+ {
59
+ "Ref": "AWS::Partition"
60
+ },
61
+ ":iam::",
62
+ {
63
+ "Ref": "AWS::AccountId"
64
+ },
65
+ ":root"
66
+ ]
67
+ ]
68
+ }
69
+ },
70
+ "Resource": {
71
+ "Fn::GetAtt": [
72
+ "existingqueuedlq98283DB9",
73
+ "Arn"
74
+ ]
75
+ },
76
+ "Sid": "QueueOwnerOnlyAccess"
77
+ },
78
+ {
79
+ "Action": "SQS:*",
80
+ "Condition": {
81
+ "Bool": {
82
+ "aws:SecureTransport": "false"
83
+ }
84
+ },
85
+ "Effect": "Deny",
86
+ "Principal": {
87
+ "AWS": "*"
88
+ },
89
+ "Resource": {
90
+ "Fn::GetAtt": [
91
+ "existingqueuedlq98283DB9",
92
+ "Arn"
93
+ ]
94
+ },
95
+ "Sid": "HttpsOnly"
96
+ }
97
+ ],
98
+ "Version": "2012-10-17"
99
+ },
100
+ "queues": [
101
+ {
102
+ "Ref": "existingqueuedlq98283DB9"
103
+ }
104
+ ]
105
+ }
106
+ },
107
+ "constructInfo": {
108
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
109
+ "version": "2.161.0"
110
+ }
111
+ }
112
+ },
113
+ "constructInfo": {
114
+ "fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
115
+ "version": "2.161.0"
116
+ }
117
+ }
118
+ },
119
+ "constructInfo": {
120
+ "fqn": "aws-cdk-lib.aws_sqs.Queue",
121
+ "version": "2.161.0"
122
+ }
123
+ },
124
+ "existing-queue": {
125
+ "id": "existing-queue",
126
+ "path": "sqspstp-existing-queue/existing-queue",
127
+ "children": {
128
+ "Resource": {
129
+ "id": "Resource",
130
+ "path": "sqspstp-existing-queue/existing-queue/Resource",
131
+ "attributes": {
132
+ "aws:cdk:cloudformation:type": "AWS::SQS::Queue",
133
+ "aws:cdk:cloudformation:props": {
134
+ "kmsMasterKeyId": "alias/aws/sqs",
135
+ "redrivePolicy": {
136
+ "deadLetterTargetArn": {
137
+ "Fn::GetAtt": [
138
+ "existingqueuedlq98283DB9",
139
+ "Arn"
140
+ ]
141
+ },
142
+ "maxReceiveCount": 15
143
+ }
144
+ }
145
+ },
146
+ "constructInfo": {
147
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueue",
148
+ "version": "2.161.0"
149
+ }
150
+ },
151
+ "Policy": {
152
+ "id": "Policy",
153
+ "path": "sqspstp-existing-queue/existing-queue/Policy",
154
+ "children": {
155
+ "Resource": {
156
+ "id": "Resource",
157
+ "path": "sqspstp-existing-queue/existing-queue/Policy/Resource",
158
+ "attributes": {
159
+ "aws:cdk:cloudformation:type": "AWS::SQS::QueuePolicy",
160
+ "aws:cdk:cloudformation:props": {
161
+ "policyDocument": {
162
+ "Statement": [
163
+ {
164
+ "Action": [
165
+ "sqs:AddPermission",
166
+ "sqs:DeleteMessage",
167
+ "sqs:GetQueueAttributes",
168
+ "sqs:ReceiveMessage",
169
+ "sqs:RemovePermission",
170
+ "sqs:SendMessage",
171
+ "sqs:SetQueueAttributes"
172
+ ],
173
+ "Effect": "Allow",
174
+ "Principal": {
175
+ "AWS": {
176
+ "Fn::Join": [
177
+ "",
178
+ [
179
+ "arn:",
180
+ {
181
+ "Ref": "AWS::Partition"
182
+ },
183
+ ":iam::",
184
+ {
185
+ "Ref": "AWS::AccountId"
186
+ },
187
+ ":root"
188
+ ]
189
+ ]
190
+ }
191
+ },
192
+ "Resource": {
193
+ "Fn::GetAtt": [
194
+ "existingqueue03D57A53",
195
+ "Arn"
196
+ ]
197
+ },
198
+ "Sid": "QueueOwnerOnlyAccess"
199
+ },
200
+ {
201
+ "Action": "SQS:*",
202
+ "Condition": {
203
+ "Bool": {
204
+ "aws:SecureTransport": "false"
205
+ }
206
+ },
207
+ "Effect": "Deny",
208
+ "Principal": {
209
+ "AWS": "*"
210
+ },
211
+ "Resource": {
212
+ "Fn::GetAtt": [
213
+ "existingqueue03D57A53",
214
+ "Arn"
215
+ ]
216
+ },
217
+ "Sid": "HttpsOnly"
218
+ }
219
+ ],
220
+ "Version": "2012-10-17"
221
+ },
222
+ "queues": [
223
+ {
224
+ "Ref": "existingqueue03D57A53"
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "constructInfo": {
230
+ "fqn": "aws-cdk-lib.aws_sqs.CfnQueuePolicy",
231
+ "version": "2.161.0"
232
+ }
233
+ }
234
+ },
235
+ "constructInfo": {
236
+ "fqn": "aws-cdk-lib.aws_sqs.QueuePolicy",
237
+ "version": "2.161.0"
238
+ }
239
+ }
240
+ },
241
+ "constructInfo": {
242
+ "fqn": "aws-cdk-lib.aws_sqs.Queue",
243
+ "version": "2.161.0"
244
+ }
245
+ },
246
+ "lambdas3stp-test": {
247
+ "id": "lambdas3stp-test",
248
+ "path": "sqspstp-existing-queue/lambdas3stp-test",
249
+ "children": {
250
+ "ServiceRole": {
251
+ "id": "ServiceRole",
252
+ "path": "sqspstp-existing-queue/lambdas3stp-test/ServiceRole",
253
+ "children": {
254
+ "ImportServiceRole": {
255
+ "id": "ImportServiceRole",
256
+ "path": "sqspstp-existing-queue/lambdas3stp-test/ServiceRole/ImportServiceRole",
257
+ "constructInfo": {
258
+ "fqn": "aws-cdk-lib.Resource",
259
+ "version": "2.161.0"
260
+ }
261
+ },
262
+ "Resource": {
263
+ "id": "Resource",
264
+ "path": "sqspstp-existing-queue/lambdas3stp-test/ServiceRole/Resource",
265
+ "attributes": {
266
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
267
+ "aws:cdk:cloudformation:props": {
268
+ "assumeRolePolicyDocument": {
269
+ "Statement": [
270
+ {
271
+ "Action": "sts:AssumeRole",
272
+ "Effect": "Allow",
273
+ "Principal": {
274
+ "Service": "lambda.amazonaws.com"
275
+ }
276
+ }
277
+ ],
278
+ "Version": "2012-10-17"
279
+ },
280
+ "managedPolicyArns": [
281
+ {
282
+ "Fn::Join": [
283
+ "",
284
+ [
285
+ "arn:",
286
+ {
287
+ "Ref": "AWS::Partition"
288
+ },
289
+ ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
290
+ ]
291
+ ]
292
+ }
293
+ ]
294
+ }
295
+ },
296
+ "constructInfo": {
297
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
298
+ "version": "2.161.0"
299
+ }
300
+ }
301
+ },
302
+ "constructInfo": {
303
+ "fqn": "aws-cdk-lib.aws_iam.Role",
304
+ "version": "2.161.0"
305
+ }
306
+ },
307
+ "Resource": {
308
+ "id": "Resource",
309
+ "path": "sqspstp-existing-queue/lambdas3stp-test/Resource",
310
+ "attributes": {
311
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
312
+ "aws:cdk:cloudformation:props": {
313
+ "code": {
314
+ "zipFile": "exports.handler = async (event) => console.log(event)"
315
+ },
316
+ "handler": "index.handler",
317
+ "role": {
318
+ "Fn::GetAtt": [
319
+ "lambdas3stptestServiceRoleF17BB6C7",
320
+ "Arn"
321
+ ]
322
+ },
323
+ "runtime": "nodejs20.x"
324
+ }
325
+ },
326
+ "constructInfo": {
327
+ "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
328
+ "version": "2.161.0"
329
+ }
330
+ }
331
+ },
332
+ "constructInfo": {
333
+ "fqn": "aws-cdk-lib.aws_lambda.Function",
334
+ "version": "2.161.0"
335
+ }
336
+ },
337
+ "tasks3stp-test": {
338
+ "id": "tasks3stp-test",
339
+ "path": "sqspstp-existing-queue/tasks3stp-test",
340
+ "constructInfo": {
341
+ "fqn": "aws-cdk-lib.aws_stepfunctions_tasks.LambdaInvoke",
342
+ "version": "2.161.0"
343
+ }
344
+ },
345
+ "test-sqs-pipes-states-construct": {
346
+ "id": "test-sqs-pipes-states-construct",
347
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct",
348
+ "children": {
349
+ "StateMachineLogGroup": {
350
+ "id": "StateMachineLogGroup",
351
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachineLogGroup",
352
+ "children": {
353
+ "Resource": {
354
+ "id": "Resource",
355
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachineLogGroup/Resource",
356
+ "attributes": {
357
+ "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
358
+ "aws:cdk:cloudformation:props": {
359
+ "logGroupName": {
360
+ "Fn::Join": [
361
+ "",
362
+ [
363
+ "/aws/vendedlogs/states/constructs/sqspstp-existing-queuetest-sqs-pipes-states-constructStateMachineLog-",
364
+ {
365
+ "Fn::Select": [
366
+ 2,
367
+ {
368
+ "Fn::Split": [
369
+ "/",
370
+ {
371
+ "Ref": "AWS::StackId"
372
+ }
373
+ ]
374
+ }
375
+ ]
376
+ }
377
+ ]
378
+ ]
379
+ }
380
+ }
381
+ },
382
+ "constructInfo": {
383
+ "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
384
+ "version": "2.161.0"
385
+ }
386
+ }
387
+ },
388
+ "constructInfo": {
389
+ "fqn": "aws-cdk-lib.aws_logs.LogGroup",
390
+ "version": "2.161.0"
391
+ }
392
+ },
393
+ "StateMachine": {
394
+ "id": "StateMachine",
395
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine",
396
+ "children": {
397
+ "Role": {
398
+ "id": "Role",
399
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Role",
400
+ "children": {
401
+ "ImportRole": {
402
+ "id": "ImportRole",
403
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Role/ImportRole",
404
+ "constructInfo": {
405
+ "fqn": "aws-cdk-lib.Resource",
406
+ "version": "2.161.0"
407
+ }
408
+ },
409
+ "Resource": {
410
+ "id": "Resource",
411
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Role/Resource",
412
+ "attributes": {
413
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
414
+ "aws:cdk:cloudformation:props": {
415
+ "assumeRolePolicyDocument": {
416
+ "Statement": [
417
+ {
418
+ "Action": "sts:AssumeRole",
419
+ "Effect": "Allow",
420
+ "Principal": {
421
+ "Service": "states.amazonaws.com"
422
+ }
423
+ }
424
+ ],
425
+ "Version": "2012-10-17"
426
+ }
427
+ }
428
+ },
429
+ "constructInfo": {
430
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
431
+ "version": "2.161.0"
432
+ }
433
+ },
434
+ "DefaultPolicy": {
435
+ "id": "DefaultPolicy",
436
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Role/DefaultPolicy",
437
+ "children": {
438
+ "Resource": {
439
+ "id": "Resource",
440
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Role/DefaultPolicy/Resource",
441
+ "attributes": {
442
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
443
+ "aws:cdk:cloudformation:props": {
444
+ "policyDocument": {
445
+ "Statement": [
446
+ {
447
+ "Action": "lambda:InvokeFunction",
448
+ "Effect": "Allow",
449
+ "Resource": [
450
+ {
451
+ "Fn::GetAtt": [
452
+ "lambdas3stptest9FBDC6CE",
453
+ "Arn"
454
+ ]
455
+ },
456
+ {
457
+ "Fn::Join": [
458
+ "",
459
+ [
460
+ {
461
+ "Fn::GetAtt": [
462
+ "lambdas3stptest9FBDC6CE",
463
+ "Arn"
464
+ ]
465
+ },
466
+ ":*"
467
+ ]
468
+ ]
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "Action": [
474
+ "logs:CreateLogDelivery",
475
+ "logs:DeleteLogDelivery",
476
+ "logs:DescribeLogGroups",
477
+ "logs:DescribeResourcePolicies",
478
+ "logs:GetLogDelivery",
479
+ "logs:ListLogDeliveries",
480
+ "logs:PutResourcePolicy",
481
+ "logs:UpdateLogDelivery"
482
+ ],
483
+ "Effect": "Allow",
484
+ "Resource": "*"
485
+ }
486
+ ],
487
+ "Version": "2012-10-17"
488
+ },
489
+ "policyName": "testsqspipesstatesconstructStateMachineRoleDefaultPolicyD1BA2BF2",
490
+ "roles": [
491
+ {
492
+ "Ref": "testsqspipesstatesconstructStateMachineRoleBF97BFC0"
493
+ }
494
+ ]
495
+ }
496
+ },
497
+ "constructInfo": {
498
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
499
+ "version": "2.161.0"
500
+ }
501
+ }
502
+ },
503
+ "constructInfo": {
504
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
505
+ "version": "2.161.0"
506
+ }
507
+ }
508
+ },
509
+ "constructInfo": {
510
+ "fqn": "aws-cdk-lib.aws_iam.Role",
511
+ "version": "2.161.0"
512
+ }
513
+ },
514
+ "Resource": {
515
+ "id": "Resource",
516
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/StateMachine/Resource",
517
+ "attributes": {
518
+ "aws:cdk:cloudformation:type": "AWS::StepFunctions::StateMachine",
519
+ "aws:cdk:cloudformation:props": {
520
+ "definitionString": {
521
+ "Fn::Join": [
522
+ "",
523
+ [
524
+ "{\"StartAt\":\"tasks3stp-test\",\"States\":{\"tasks3stp-test\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
525
+ {
526
+ "Ref": "AWS::Partition"
527
+ },
528
+ ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
529
+ {
530
+ "Fn::GetAtt": [
531
+ "lambdas3stptest9FBDC6CE",
532
+ "Arn"
533
+ ]
534
+ },
535
+ "\",\"Payload.$\":\"$\"}}}}"
536
+ ]
537
+ ]
538
+ },
539
+ "loggingConfiguration": {
540
+ "destinations": [
541
+ {
542
+ "cloudWatchLogsLogGroup": {
543
+ "logGroupArn": {
544
+ "Fn::GetAtt": [
545
+ "testsqspipesstatesconstructStateMachineLogGroupADE94F1D",
546
+ "Arn"
547
+ ]
548
+ }
549
+ }
550
+ }
551
+ ],
552
+ "level": "ERROR"
553
+ },
554
+ "roleArn": {
555
+ "Fn::GetAtt": [
556
+ "testsqspipesstatesconstructStateMachineRoleBF97BFC0",
557
+ "Arn"
558
+ ]
559
+ }
560
+ }
561
+ },
562
+ "constructInfo": {
563
+ "fqn": "aws-cdk-lib.aws_stepfunctions.CfnStateMachine",
564
+ "version": "2.161.0"
565
+ }
566
+ }
567
+ },
568
+ "constructInfo": {
569
+ "fqn": "aws-cdk-lib.aws_stepfunctions.StateMachine",
570
+ "version": "2.161.0"
571
+ }
572
+ },
573
+ "ExecutionFailedAlarm": {
574
+ "id": "ExecutionFailedAlarm",
575
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionFailedAlarm",
576
+ "children": {
577
+ "Resource": {
578
+ "id": "Resource",
579
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionFailedAlarm/Resource",
580
+ "attributes": {
581
+ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
582
+ "aws:cdk:cloudformation:props": {
583
+ "alarmDescription": "Alarm for the number of executions that failed exceeded the threshold of 1. ",
584
+ "comparisonOperator": "GreaterThanOrEqualToThreshold",
585
+ "dimensions": [
586
+ {
587
+ "name": "StateMachineArn",
588
+ "value": {
589
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
590
+ }
591
+ }
592
+ ],
593
+ "evaluationPeriods": 1,
594
+ "metricName": "ExecutionsFailed",
595
+ "namespace": "AWS/States",
596
+ "period": 300,
597
+ "statistic": "Sum",
598
+ "threshold": 1
599
+ }
600
+ },
601
+ "constructInfo": {
602
+ "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
603
+ "version": "2.161.0"
604
+ }
605
+ }
606
+ },
607
+ "constructInfo": {
608
+ "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
609
+ "version": "2.161.0"
610
+ }
611
+ },
612
+ "ExecutionThrottledAlarm": {
613
+ "id": "ExecutionThrottledAlarm",
614
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionThrottledAlarm",
615
+ "children": {
616
+ "Resource": {
617
+ "id": "Resource",
618
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionThrottledAlarm/Resource",
619
+ "attributes": {
620
+ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
621
+ "aws:cdk:cloudformation:props": {
622
+ "alarmDescription": "Alarm for the number of executions that throttled exceeded the threshold of 1. ",
623
+ "comparisonOperator": "GreaterThanOrEqualToThreshold",
624
+ "dimensions": [
625
+ {
626
+ "name": "StateMachineArn",
627
+ "value": {
628
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
629
+ }
630
+ }
631
+ ],
632
+ "evaluationPeriods": 1,
633
+ "metricName": "ExecutionThrottled",
634
+ "namespace": "AWS/States",
635
+ "period": 300,
636
+ "statistic": "Sum",
637
+ "threshold": 1
638
+ }
639
+ },
640
+ "constructInfo": {
641
+ "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
642
+ "version": "2.161.0"
643
+ }
644
+ }
645
+ },
646
+ "constructInfo": {
647
+ "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
648
+ "version": "2.161.0"
649
+ }
650
+ },
651
+ "ExecutionAbortedAlarm": {
652
+ "id": "ExecutionAbortedAlarm",
653
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionAbortedAlarm",
654
+ "children": {
655
+ "Resource": {
656
+ "id": "Resource",
657
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/ExecutionAbortedAlarm/Resource",
658
+ "attributes": {
659
+ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
660
+ "aws:cdk:cloudformation:props": {
661
+ "alarmDescription": "Alarm for the number of executions that aborted exceeded the threshold of 1. ",
662
+ "comparisonOperator": "GreaterThanOrEqualToThreshold",
663
+ "dimensions": [
664
+ {
665
+ "name": "StateMachineArn",
666
+ "value": {
667
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
668
+ }
669
+ }
670
+ ],
671
+ "evaluationPeriods": 1,
672
+ "metricName": "ExecutionsAborted",
673
+ "namespace": "AWS/States",
674
+ "period": 300,
675
+ "statistic": "Maximum",
676
+ "threshold": 1
677
+ }
678
+ },
679
+ "constructInfo": {
680
+ "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
681
+ "version": "2.161.0"
682
+ }
683
+ }
684
+ },
685
+ "constructInfo": {
686
+ "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
687
+ "version": "2.161.0"
688
+ }
689
+ },
690
+ "PipeRole--test-sqs-pipes-states-construct": {
691
+ "id": "PipeRole--test-sqs-pipes-states-construct",
692
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/PipeRole--test-sqs-pipes-states-construct",
693
+ "children": {
694
+ "ImportPipeRole--test-sqs-pipes-states-construct": {
695
+ "id": "ImportPipeRole--test-sqs-pipes-states-construct",
696
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/PipeRole--test-sqs-pipes-states-construct/ImportPipeRole--test-sqs-pipes-states-construct",
697
+ "constructInfo": {
698
+ "fqn": "aws-cdk-lib.Resource",
699
+ "version": "2.161.0"
700
+ }
701
+ },
702
+ "Resource": {
703
+ "id": "Resource",
704
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/PipeRole--test-sqs-pipes-states-construct/Resource",
705
+ "attributes": {
706
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
707
+ "aws:cdk:cloudformation:props": {
708
+ "assumeRolePolicyDocument": {
709
+ "Statement": [
710
+ {
711
+ "Action": "sts:AssumeRole",
712
+ "Effect": "Allow",
713
+ "Principal": {
714
+ "Service": "pipes.amazonaws.com"
715
+ }
716
+ }
717
+ ],
718
+ "Version": "2012-10-17"
719
+ },
720
+ "policies": [
721
+ {
722
+ "policyName": "sourcePolicy",
723
+ "policyDocument": {
724
+ "Statement": [
725
+ {
726
+ "Action": [
727
+ "sqs:DeleteMessage",
728
+ "sqs:GetQueueAttributes",
729
+ "sqs:ReceiveMessage"
730
+ ],
731
+ "Effect": "Allow",
732
+ "Resource": {
733
+ "Fn::GetAtt": [
734
+ "existingqueue03D57A53",
735
+ "Arn"
736
+ ]
737
+ }
738
+ }
739
+ ],
740
+ "Version": "2012-10-17"
741
+ }
742
+ },
743
+ {
744
+ "policyName": "targetPolicy",
745
+ "policyDocument": {
746
+ "Statement": [
747
+ {
748
+ "Action": "states:StartExecution",
749
+ "Effect": "Allow",
750
+ "Resource": {
751
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
752
+ }
753
+ }
754
+ ],
755
+ "Version": "2012-10-17"
756
+ }
757
+ }
758
+ ]
759
+ }
760
+ },
761
+ "constructInfo": {
762
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
763
+ "version": "2.161.0"
764
+ }
765
+ }
766
+ },
767
+ "constructInfo": {
768
+ "fqn": "aws-cdk-lib.aws_iam.Role",
769
+ "version": "2.161.0"
770
+ }
771
+ },
772
+ "LogGroup-test-sqs-pipes-states-construct": {
773
+ "id": "LogGroup-test-sqs-pipes-states-construct",
774
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/LogGroup-test-sqs-pipes-states-construct",
775
+ "children": {
776
+ "Resource": {
777
+ "id": "Resource",
778
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/LogGroup-test-sqs-pipes-states-construct/Resource",
779
+ "attributes": {
780
+ "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
781
+ "aws:cdk:cloudformation:props": {
782
+ "logGroupName": {
783
+ "Fn::Join": [
784
+ "",
785
+ [
786
+ "/aws/vendedlogs/pipes/constructs/sqspstp-existing-queuetest-sqs-pipes-states-constructPipesLog-",
787
+ {
788
+ "Fn::Select": [
789
+ 2,
790
+ {
791
+ "Fn::Split": [
792
+ "/",
793
+ {
794
+ "Ref": "AWS::StackId"
795
+ }
796
+ ]
797
+ }
798
+ ]
799
+ }
800
+ ]
801
+ ]
802
+ }
803
+ }
804
+ },
805
+ "constructInfo": {
806
+ "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
807
+ "version": "2.161.0"
808
+ }
809
+ }
810
+ },
811
+ "constructInfo": {
812
+ "fqn": "aws-cdk-lib.aws_logs.LogGroup",
813
+ "version": "2.161.0"
814
+ }
815
+ },
816
+ "pipe-test-sqs-pipes-states-construct": {
817
+ "id": "pipe-test-sqs-pipes-states-construct",
818
+ "path": "sqspstp-existing-queue/test-sqs-pipes-states-construct/pipe-test-sqs-pipes-states-construct",
819
+ "attributes": {
820
+ "aws:cdk:cloudformation:type": "AWS::Pipes::Pipe",
821
+ "aws:cdk:cloudformation:props": {
822
+ "logConfiguration": {
823
+ "cloudwatchLogsLogDestination": {
824
+ "logGroupArn": {
825
+ "Fn::GetAtt": [
826
+ "testsqspipesstatesconstructLogGrouptestsqspipesstatesconstructF827FE15",
827
+ "Arn"
828
+ ]
829
+ }
830
+ },
831
+ "level": "INFO"
832
+ },
833
+ "roleArn": {
834
+ "Fn::GetAtt": [
835
+ "testsqspipesstatesconstructPipeRoletestsqspipesstatesconstruct2CC9A13C",
836
+ "Arn"
837
+ ]
838
+ },
839
+ "source": {
840
+ "Fn::GetAtt": [
841
+ "existingqueue03D57A53",
842
+ "Arn"
843
+ ]
844
+ },
845
+ "sourceParameters": {},
846
+ "target": {
847
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
848
+ },
849
+ "targetParameters": {
850
+ "stepFunctionStateMachineParameters": {
851
+ "invocationType": "FIRE_AND_FORGET"
852
+ }
853
+ }
854
+ }
855
+ },
856
+ "constructInfo": {
857
+ "fqn": "aws-cdk-lib.aws_pipes.CfnPipe",
858
+ "version": "2.161.0"
859
+ }
860
+ }
861
+ },
862
+ "constructInfo": {
863
+ "fqn": "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions.SqsToPipesToStepfunctions",
864
+ "version": "2.72.0"
865
+ }
866
+ },
867
+ "Integ": {
868
+ "id": "Integ",
869
+ "path": "sqspstp-existing-queue/Integ",
870
+ "children": {
871
+ "DefaultTest": {
872
+ "id": "DefaultTest",
873
+ "path": "sqspstp-existing-queue/Integ/DefaultTest",
874
+ "children": {
875
+ "Default": {
876
+ "id": "Default",
877
+ "path": "sqspstp-existing-queue/Integ/DefaultTest/Default",
878
+ "constructInfo": {
879
+ "fqn": "constructs.Construct",
880
+ "version": "10.4.2"
881
+ }
882
+ },
883
+ "DeployAssert": {
884
+ "id": "DeployAssert",
885
+ "path": "sqspstp-existing-queue/Integ/DefaultTest/DeployAssert",
886
+ "children": {
887
+ "BootstrapVersion": {
888
+ "id": "BootstrapVersion",
889
+ "path": "sqspstp-existing-queue/Integ/DefaultTest/DeployAssert/BootstrapVersion",
890
+ "constructInfo": {
891
+ "fqn": "aws-cdk-lib.CfnParameter",
892
+ "version": "2.161.0"
893
+ }
894
+ },
895
+ "CheckBootstrapVersion": {
896
+ "id": "CheckBootstrapVersion",
897
+ "path": "sqspstp-existing-queue/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
898
+ "constructInfo": {
899
+ "fqn": "aws-cdk-lib.CfnRule",
900
+ "version": "2.161.0"
901
+ }
902
+ }
903
+ },
904
+ "constructInfo": {
905
+ "fqn": "aws-cdk-lib.Stack",
906
+ "version": "2.161.0"
907
+ }
908
+ }
909
+ },
910
+ "constructInfo": {
911
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
912
+ "version": "2.161.0-alpha.0"
913
+ }
914
+ }
915
+ },
916
+ "constructInfo": {
917
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
918
+ "version": "2.161.0-alpha.0"
919
+ }
920
+ },
921
+ "BootstrapVersion": {
922
+ "id": "BootstrapVersion",
923
+ "path": "sqspstp-existing-queue/BootstrapVersion",
924
+ "constructInfo": {
925
+ "fqn": "aws-cdk-lib.CfnParameter",
926
+ "version": "2.161.0"
927
+ }
928
+ },
929
+ "CheckBootstrapVersion": {
930
+ "id": "CheckBootstrapVersion",
931
+ "path": "sqspstp-existing-queue/CheckBootstrapVersion",
932
+ "constructInfo": {
933
+ "fqn": "aws-cdk-lib.CfnRule",
934
+ "version": "2.161.0"
935
+ }
936
+ }
937
+ },
938
+ "constructInfo": {
939
+ "fqn": "aws-cdk-lib.Stack",
940
+ "version": "2.161.0"
941
+ }
942
+ },
943
+ "Tree": {
944
+ "id": "Tree",
945
+ "path": "Tree",
946
+ "constructInfo": {
947
+ "fqn": "constructs.Construct",
948
+ "version": "10.4.2"
949
+ }
950
+ }
951
+ },
952
+ "constructInfo": {
953
+ "fqn": "aws-cdk-lib.App",
954
+ "version": "2.161.0"
955
+ }
956
+ }
957
+ }