@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,654 @@
1
+ {
2
+ "Resources": {
3
+ "existingqueuedlq98283DB9": {
4
+ "Type": "AWS::SQS::Queue",
5
+ "Properties": {
6
+ "KmsMasterKeyId": "alias/aws/sqs"
7
+ },
8
+ "UpdateReplacePolicy": "Delete",
9
+ "DeletionPolicy": "Delete"
10
+ },
11
+ "existingqueuedlqPolicyAA729260": {
12
+ "Type": "AWS::SQS::QueuePolicy",
13
+ "Properties": {
14
+ "PolicyDocument": {
15
+ "Statement": [
16
+ {
17
+ "Action": [
18
+ "sqs:AddPermission",
19
+ "sqs:DeleteMessage",
20
+ "sqs:GetQueueAttributes",
21
+ "sqs:ReceiveMessage",
22
+ "sqs:RemovePermission",
23
+ "sqs:SendMessage",
24
+ "sqs:SetQueueAttributes"
25
+ ],
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
+ "Fn::GetAtt": [
47
+ "existingqueuedlq98283DB9",
48
+ "Arn"
49
+ ]
50
+ },
51
+ "Sid": "QueueOwnerOnlyAccess"
52
+ },
53
+ {
54
+ "Action": "SQS:*",
55
+ "Condition": {
56
+ "Bool": {
57
+ "aws:SecureTransport": "false"
58
+ }
59
+ },
60
+ "Effect": "Deny",
61
+ "Principal": {
62
+ "AWS": "*"
63
+ },
64
+ "Resource": {
65
+ "Fn::GetAtt": [
66
+ "existingqueuedlq98283DB9",
67
+ "Arn"
68
+ ]
69
+ },
70
+ "Sid": "HttpsOnly"
71
+ }
72
+ ],
73
+ "Version": "2012-10-17"
74
+ },
75
+ "Queues": [
76
+ {
77
+ "Ref": "existingqueuedlq98283DB9"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ "existingqueue03D57A53": {
83
+ "Type": "AWS::SQS::Queue",
84
+ "Properties": {
85
+ "KmsMasterKeyId": "alias/aws/sqs",
86
+ "RedrivePolicy": {
87
+ "deadLetterTargetArn": {
88
+ "Fn::GetAtt": [
89
+ "existingqueuedlq98283DB9",
90
+ "Arn"
91
+ ]
92
+ },
93
+ "maxReceiveCount": 15
94
+ }
95
+ },
96
+ "UpdateReplacePolicy": "Delete",
97
+ "DeletionPolicy": "Delete"
98
+ },
99
+ "existingqueuePolicy8BCB024D": {
100
+ "Type": "AWS::SQS::QueuePolicy",
101
+ "Properties": {
102
+ "PolicyDocument": {
103
+ "Statement": [
104
+ {
105
+ "Action": [
106
+ "sqs:AddPermission",
107
+ "sqs:DeleteMessage",
108
+ "sqs:GetQueueAttributes",
109
+ "sqs:ReceiveMessage",
110
+ "sqs:RemovePermission",
111
+ "sqs:SendMessage",
112
+ "sqs:SetQueueAttributes"
113
+ ],
114
+ "Effect": "Allow",
115
+ "Principal": {
116
+ "AWS": {
117
+ "Fn::Join": [
118
+ "",
119
+ [
120
+ "arn:",
121
+ {
122
+ "Ref": "AWS::Partition"
123
+ },
124
+ ":iam::",
125
+ {
126
+ "Ref": "AWS::AccountId"
127
+ },
128
+ ":root"
129
+ ]
130
+ ]
131
+ }
132
+ },
133
+ "Resource": {
134
+ "Fn::GetAtt": [
135
+ "existingqueue03D57A53",
136
+ "Arn"
137
+ ]
138
+ },
139
+ "Sid": "QueueOwnerOnlyAccess"
140
+ },
141
+ {
142
+ "Action": "SQS:*",
143
+ "Condition": {
144
+ "Bool": {
145
+ "aws:SecureTransport": "false"
146
+ }
147
+ },
148
+ "Effect": "Deny",
149
+ "Principal": {
150
+ "AWS": "*"
151
+ },
152
+ "Resource": {
153
+ "Fn::GetAtt": [
154
+ "existingqueue03D57A53",
155
+ "Arn"
156
+ ]
157
+ },
158
+ "Sid": "HttpsOnly"
159
+ }
160
+ ],
161
+ "Version": "2012-10-17"
162
+ },
163
+ "Queues": [
164
+ {
165
+ "Ref": "existingqueue03D57A53"
166
+ }
167
+ ]
168
+ }
169
+ },
170
+ "lambdas3stptestServiceRoleF17BB6C7": {
171
+ "Type": "AWS::IAM::Role",
172
+ "Properties": {
173
+ "AssumeRolePolicyDocument": {
174
+ "Statement": [
175
+ {
176
+ "Action": "sts:AssumeRole",
177
+ "Effect": "Allow",
178
+ "Principal": {
179
+ "Service": "lambda.amazonaws.com"
180
+ }
181
+ }
182
+ ],
183
+ "Version": "2012-10-17"
184
+ },
185
+ "ManagedPolicyArns": [
186
+ {
187
+ "Fn::Join": [
188
+ "",
189
+ [
190
+ "arn:",
191
+ {
192
+ "Ref": "AWS::Partition"
193
+ },
194
+ ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
195
+ ]
196
+ ]
197
+ }
198
+ ]
199
+ }
200
+ },
201
+ "lambdas3stptest9FBDC6CE": {
202
+ "Type": "AWS::Lambda::Function",
203
+ "Properties": {
204
+ "Code": {
205
+ "ZipFile": "exports.handler = async (event) => console.log(event)"
206
+ },
207
+ "Handler": "index.handler",
208
+ "Role": {
209
+ "Fn::GetAtt": [
210
+ "lambdas3stptestServiceRoleF17BB6C7",
211
+ "Arn"
212
+ ]
213
+ },
214
+ "Runtime": "nodejs20.x"
215
+ },
216
+ "DependsOn": [
217
+ "lambdas3stptestServiceRoleF17BB6C7"
218
+ ],
219
+ "Metadata": {
220
+ "cfn_nag": {
221
+ "rules_to_suppress": [
222
+ {
223
+ "id": "W58",
224
+ "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
225
+ },
226
+ {
227
+ "id": "W89",
228
+ "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
229
+ },
230
+ {
231
+ "id": "W92",
232
+ "reason": "This Lambda Function is created for integration testing purposes only and is not part of an actual construct"
233
+ }
234
+ ]
235
+ }
236
+ }
237
+ },
238
+ "testsqspipesstatesconstructStateMachineLogGroupADE94F1D": {
239
+ "Type": "AWS::Logs::LogGroup",
240
+ "Properties": {
241
+ "LogGroupName": {
242
+ "Fn::Join": [
243
+ "",
244
+ [
245
+ "/aws/vendedlogs/states/constructs/sqspstp-existing-queuetest-sqs-pipes-states-constructStateMachineLog-",
246
+ {
247
+ "Fn::Select": [
248
+ 2,
249
+ {
250
+ "Fn::Split": [
251
+ "/",
252
+ {
253
+ "Ref": "AWS::StackId"
254
+ }
255
+ ]
256
+ }
257
+ ]
258
+ }
259
+ ]
260
+ ]
261
+ }
262
+ },
263
+ "UpdateReplacePolicy": "Retain",
264
+ "DeletionPolicy": "Retain",
265
+ "Metadata": {
266
+ "cfn_nag": {
267
+ "rules_to_suppress": [
268
+ {
269
+ "id": "W86",
270
+ "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
271
+ },
272
+ {
273
+ "id": "W84",
274
+ "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ },
280
+ "testsqspipesstatesconstructStateMachineRoleBF97BFC0": {
281
+ "Type": "AWS::IAM::Role",
282
+ "Properties": {
283
+ "AssumeRolePolicyDocument": {
284
+ "Statement": [
285
+ {
286
+ "Action": "sts:AssumeRole",
287
+ "Effect": "Allow",
288
+ "Principal": {
289
+ "Service": "states.amazonaws.com"
290
+ }
291
+ }
292
+ ],
293
+ "Version": "2012-10-17"
294
+ }
295
+ }
296
+ },
297
+ "testsqspipesstatesconstructStateMachineRoleDefaultPolicyD1BA2BF2": {
298
+ "Type": "AWS::IAM::Policy",
299
+ "Properties": {
300
+ "PolicyDocument": {
301
+ "Statement": [
302
+ {
303
+ "Action": "lambda:InvokeFunction",
304
+ "Effect": "Allow",
305
+ "Resource": [
306
+ {
307
+ "Fn::GetAtt": [
308
+ "lambdas3stptest9FBDC6CE",
309
+ "Arn"
310
+ ]
311
+ },
312
+ {
313
+ "Fn::Join": [
314
+ "",
315
+ [
316
+ {
317
+ "Fn::GetAtt": [
318
+ "lambdas3stptest9FBDC6CE",
319
+ "Arn"
320
+ ]
321
+ },
322
+ ":*"
323
+ ]
324
+ ]
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "Action": [
330
+ "logs:CreateLogDelivery",
331
+ "logs:DeleteLogDelivery",
332
+ "logs:DescribeLogGroups",
333
+ "logs:DescribeResourcePolicies",
334
+ "logs:GetLogDelivery",
335
+ "logs:ListLogDeliveries",
336
+ "logs:PutResourcePolicy",
337
+ "logs:UpdateLogDelivery"
338
+ ],
339
+ "Effect": "Allow",
340
+ "Resource": "*"
341
+ }
342
+ ],
343
+ "Version": "2012-10-17"
344
+ },
345
+ "PolicyName": "testsqspipesstatesconstructStateMachineRoleDefaultPolicyD1BA2BF2",
346
+ "Roles": [
347
+ {
348
+ "Ref": "testsqspipesstatesconstructStateMachineRoleBF97BFC0"
349
+ }
350
+ ]
351
+ },
352
+ "Metadata": {
353
+ "cfn_nag": {
354
+ "rules_to_suppress": [
355
+ {
356
+ "id": "W12",
357
+ "reason": "These are CDK defaults. The 'LogDelivery' actions do not support resource-level authorizations. Any logging is done by State Machine code"
358
+ }
359
+ ]
360
+ }
361
+ }
362
+ },
363
+ "testsqspipesstatesconstructStateMachine29272AA9": {
364
+ "Type": "AWS::StepFunctions::StateMachine",
365
+ "Properties": {
366
+ "DefinitionString": {
367
+ "Fn::Join": [
368
+ "",
369
+ [
370
+ "{\"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:",
371
+ {
372
+ "Ref": "AWS::Partition"
373
+ },
374
+ ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
375
+ {
376
+ "Fn::GetAtt": [
377
+ "lambdas3stptest9FBDC6CE",
378
+ "Arn"
379
+ ]
380
+ },
381
+ "\",\"Payload.$\":\"$\"}}}}"
382
+ ]
383
+ ]
384
+ },
385
+ "LoggingConfiguration": {
386
+ "Destinations": [
387
+ {
388
+ "CloudWatchLogsLogGroup": {
389
+ "LogGroupArn": {
390
+ "Fn::GetAtt": [
391
+ "testsqspipesstatesconstructStateMachineLogGroupADE94F1D",
392
+ "Arn"
393
+ ]
394
+ }
395
+ }
396
+ }
397
+ ],
398
+ "Level": "ERROR"
399
+ },
400
+ "RoleArn": {
401
+ "Fn::GetAtt": [
402
+ "testsqspipesstatesconstructStateMachineRoleBF97BFC0",
403
+ "Arn"
404
+ ]
405
+ }
406
+ },
407
+ "DependsOn": [
408
+ "testsqspipesstatesconstructStateMachineRoleDefaultPolicyD1BA2BF2",
409
+ "testsqspipesstatesconstructStateMachineRoleBF97BFC0"
410
+ ],
411
+ "UpdateReplacePolicy": "Delete",
412
+ "DeletionPolicy": "Delete"
413
+ },
414
+ "testsqspipesstatesconstructExecutionFailedAlarm1002FF55": {
415
+ "Type": "AWS::CloudWatch::Alarm",
416
+ "Properties": {
417
+ "AlarmDescription": "Alarm for the number of executions that failed exceeded the threshold of 1. ",
418
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
419
+ "Dimensions": [
420
+ {
421
+ "Name": "StateMachineArn",
422
+ "Value": {
423
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
424
+ }
425
+ }
426
+ ],
427
+ "EvaluationPeriods": 1,
428
+ "MetricName": "ExecutionsFailed",
429
+ "Namespace": "AWS/States",
430
+ "Period": 300,
431
+ "Statistic": "Sum",
432
+ "Threshold": 1
433
+ }
434
+ },
435
+ "testsqspipesstatesconstructExecutionThrottledAlarm0242B01A": {
436
+ "Type": "AWS::CloudWatch::Alarm",
437
+ "Properties": {
438
+ "AlarmDescription": "Alarm for the number of executions that throttled exceeded the threshold of 1. ",
439
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
440
+ "Dimensions": [
441
+ {
442
+ "Name": "StateMachineArn",
443
+ "Value": {
444
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
445
+ }
446
+ }
447
+ ],
448
+ "EvaluationPeriods": 1,
449
+ "MetricName": "ExecutionThrottled",
450
+ "Namespace": "AWS/States",
451
+ "Period": 300,
452
+ "Statistic": "Sum",
453
+ "Threshold": 1
454
+ }
455
+ },
456
+ "testsqspipesstatesconstructExecutionAbortedAlarm14349A7B": {
457
+ "Type": "AWS::CloudWatch::Alarm",
458
+ "Properties": {
459
+ "AlarmDescription": "Alarm for the number of executions that aborted exceeded the threshold of 1. ",
460
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
461
+ "Dimensions": [
462
+ {
463
+ "Name": "StateMachineArn",
464
+ "Value": {
465
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
466
+ }
467
+ }
468
+ ],
469
+ "EvaluationPeriods": 1,
470
+ "MetricName": "ExecutionsAborted",
471
+ "Namespace": "AWS/States",
472
+ "Period": 300,
473
+ "Statistic": "Maximum",
474
+ "Threshold": 1
475
+ }
476
+ },
477
+ "testsqspipesstatesconstructPipeRoletestsqspipesstatesconstruct2CC9A13C": {
478
+ "Type": "AWS::IAM::Role",
479
+ "Properties": {
480
+ "AssumeRolePolicyDocument": {
481
+ "Statement": [
482
+ {
483
+ "Action": "sts:AssumeRole",
484
+ "Effect": "Allow",
485
+ "Principal": {
486
+ "Service": "pipes.amazonaws.com"
487
+ }
488
+ }
489
+ ],
490
+ "Version": "2012-10-17"
491
+ },
492
+ "Policies": [
493
+ {
494
+ "PolicyDocument": {
495
+ "Statement": [
496
+ {
497
+ "Action": [
498
+ "sqs:DeleteMessage",
499
+ "sqs:GetQueueAttributes",
500
+ "sqs:ReceiveMessage"
501
+ ],
502
+ "Effect": "Allow",
503
+ "Resource": {
504
+ "Fn::GetAtt": [
505
+ "existingqueue03D57A53",
506
+ "Arn"
507
+ ]
508
+ }
509
+ }
510
+ ],
511
+ "Version": "2012-10-17"
512
+ },
513
+ "PolicyName": "sourcePolicy"
514
+ },
515
+ {
516
+ "PolicyDocument": {
517
+ "Statement": [
518
+ {
519
+ "Action": "states:StartExecution",
520
+ "Effect": "Allow",
521
+ "Resource": {
522
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
523
+ }
524
+ }
525
+ ],
526
+ "Version": "2012-10-17"
527
+ },
528
+ "PolicyName": "targetPolicy"
529
+ }
530
+ ]
531
+ },
532
+ "Metadata": {
533
+ "guard": {
534
+ "SuppressedRules": [
535
+ "IAM_NO_INLINE_POLICY_CHECK"
536
+ ]
537
+ }
538
+ }
539
+ },
540
+ "testsqspipesstatesconstructLogGrouptestsqspipesstatesconstructF827FE15": {
541
+ "Type": "AWS::Logs::LogGroup",
542
+ "Properties": {
543
+ "LogGroupName": {
544
+ "Fn::Join": [
545
+ "",
546
+ [
547
+ "/aws/vendedlogs/pipes/constructs/sqspstp-existing-queuetest-sqs-pipes-states-constructPipesLog-",
548
+ {
549
+ "Fn::Select": [
550
+ 2,
551
+ {
552
+ "Fn::Split": [
553
+ "/",
554
+ {
555
+ "Ref": "AWS::StackId"
556
+ }
557
+ ]
558
+ }
559
+ ]
560
+ }
561
+ ]
562
+ ]
563
+ }
564
+ },
565
+ "UpdateReplacePolicy": "Retain",
566
+ "DeletionPolicy": "Retain",
567
+ "Metadata": {
568
+ "cfn_nag": {
569
+ "rules_to_suppress": [
570
+ {
571
+ "id": "W86",
572
+ "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
573
+ },
574
+ {
575
+ "id": "W84",
576
+ "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
577
+ }
578
+ ]
579
+ }
580
+ }
581
+ },
582
+ "testsqspipesstatesconstructpipetestsqspipesstatesconstruct71A64A15": {
583
+ "Type": "AWS::Pipes::Pipe",
584
+ "Properties": {
585
+ "LogConfiguration": {
586
+ "CloudwatchLogsLogDestination": {
587
+ "LogGroupArn": {
588
+ "Fn::GetAtt": [
589
+ "testsqspipesstatesconstructLogGrouptestsqspipesstatesconstructF827FE15",
590
+ "Arn"
591
+ ]
592
+ }
593
+ },
594
+ "Level": "INFO"
595
+ },
596
+ "RoleArn": {
597
+ "Fn::GetAtt": [
598
+ "testsqspipesstatesconstructPipeRoletestsqspipesstatesconstruct2CC9A13C",
599
+ "Arn"
600
+ ]
601
+ },
602
+ "Source": {
603
+ "Fn::GetAtt": [
604
+ "existingqueue03D57A53",
605
+ "Arn"
606
+ ]
607
+ },
608
+ "SourceParameters": {},
609
+ "Target": {
610
+ "Ref": "testsqspipesstatesconstructStateMachine29272AA9"
611
+ },
612
+ "TargetParameters": {
613
+ "StepFunctionStateMachineParameters": {
614
+ "InvocationType": "FIRE_AND_FORGET"
615
+ }
616
+ }
617
+ }
618
+ }
619
+ },
620
+ "Parameters": {
621
+ "BootstrapVersion": {
622
+ "Type": "AWS::SSM::Parameter::Value<String>",
623
+ "Default": "/cdk-bootstrap/hnb659fds/version",
624
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
625
+ }
626
+ },
627
+ "Rules": {
628
+ "CheckBootstrapVersion": {
629
+ "Assertions": [
630
+ {
631
+ "Assert": {
632
+ "Fn::Not": [
633
+ {
634
+ "Fn::Contains": [
635
+ [
636
+ "1",
637
+ "2",
638
+ "3",
639
+ "4",
640
+ "5"
641
+ ],
642
+ {
643
+ "Ref": "BootstrapVersion"
644
+ }
645
+ ]
646
+ }
647
+ ]
648
+ },
649
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
650
+ }
651
+ ]
652
+ }
653
+ }
654
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "38.0.1",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "sqspstpexistingqueueIntegDefaultTestDeployAssert6DA9FDD7.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
+ }