@aws-solutions-constructs/aws-sqs-lambda 2.80.0 → 2.82.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 (24) hide show
  1. package/.jsii +43 -4
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.sqslam-deployFifoQueue.js.snapshot/cdk.out +1 -1
  5. package/test/integ.sqslam-deployFifoQueue.js.snapshot/integ.json +1 -1
  6. package/test/integ.sqslam-deployFifoQueue.js.snapshot/manifest.json +215 -3
  7. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslam-deployFifoQueue.assets.json +3 -3
  8. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslam-deployFifoQueue.template.json +24 -18
  9. package/test/integ.sqslam-deployFifoQueue.js.snapshot/sqslamdeployFifoQueueIntegDefaultTestDeployAssert77FD67F7.assets.json +1 -1
  10. package/test/integ.sqslam-deployFifoQueue.js.snapshot/tree.json +1 -592
  11. package/test/integ.sqslam-deployFunction.js.snapshot/cdk.out +1 -1
  12. package/test/integ.sqslam-deployFunction.js.snapshot/integ.json +1 -1
  13. package/test/integ.sqslam-deployFunction.js.snapshot/manifest.json +213 -3
  14. package/test/integ.sqslam-deployFunction.js.snapshot/sqslam-deployFunction.assets.json +3 -3
  15. package/test/integ.sqslam-deployFunction.js.snapshot/sqslam-deployFunction.template.json +24 -18
  16. package/test/integ.sqslam-deployFunction.js.snapshot/sqslamdeployFunctionIntegDefaultTestDeployAssert1ACA7AF2.assets.json +1 -1
  17. package/test/integ.sqslam-deployFunction.js.snapshot/tree.json +1 -588
  18. package/test/integ.sqslam-existingFunction.js.snapshot/cdk.out +1 -1
  19. package/test/integ.sqslam-existingFunction.js.snapshot/integ.json +1 -1
  20. package/test/integ.sqslam-existingFunction.js.snapshot/manifest.json +213 -3
  21. package/test/integ.sqslam-existingFunction.js.snapshot/sqslam-existingFunction.assets.json +3 -3
  22. package/test/integ.sqslam-existingFunction.js.snapshot/sqslam-existingFunction.template.json +24 -18
  23. package/test/integ.sqslam-existingFunction.js.snapshot/sqslamexistingFunctionIntegDefaultTestDeployAssert2E8A6942.assets.json +1 -1
  24. package/test/integ.sqslam-existingFunction.js.snapshot/tree.json +1 -588
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "42.0.0",
3
3
  "artifacts": {
4
4
  "sqslamexistingFunctionIntegDefaultTestDeployAssert2E8A6942.assets": {
5
5
  "type": "cdk:asset-manifest",
@@ -66,7 +66,7 @@
66
66
  "validateOnSynth": false,
67
67
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
68
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
- "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d208299cec0900be7765342ab389dc13d5f1f38270787c8a6a31785933742736.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f8b7e78de920c51a265aacd7a86ef212a2c81978d657497bc16ac58ef6448800.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,48 +82,257 @@
82
82
  "sqslam-existingFunction.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/sqslam-existingFunction/LambdaFunctionServiceRole": [
86
+ {
87
+ "type": "aws:cdk:analytics:construct",
88
+ "data": {
89
+ "assumedBy": {
90
+ "principalAccount": "*",
91
+ "assumeRoleAction": "*"
92
+ },
93
+ "inlinePolicies": "*"
94
+ }
95
+ },
96
+ {
97
+ "type": "aws:cdk:analytics:method",
98
+ "data": {
99
+ "attachInlinePolicy": [
100
+ "*"
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "type": "aws:cdk:analytics:method",
106
+ "data": {
107
+ "attachInlinePolicy": [
108
+ "*"
109
+ ]
110
+ }
111
+ },
112
+ {
113
+ "type": "aws:cdk:analytics:method",
114
+ "data": {
115
+ "addToPrincipalPolicy": [
116
+ {}
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ "type": "aws:cdk:analytics:method",
122
+ "data": {
123
+ "attachInlinePolicy": [
124
+ "*"
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "type": "aws:cdk:analytics:method",
130
+ "data": {
131
+ "attachInlinePolicy": [
132
+ "*"
133
+ ]
134
+ }
135
+ }
136
+ ],
137
+ "/sqslam-existingFunction/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
138
+ {
139
+ "type": "aws:cdk:analytics:construct",
140
+ "data": "*"
141
+ }
142
+ ],
85
143
  "/sqslam-existingFunction/LambdaFunctionServiceRole/Resource": [
86
144
  {
87
145
  "type": "aws:cdk:logicalId",
88
146
  "data": "LambdaFunctionServiceRole0C4CDE0B"
89
147
  }
90
148
  ],
149
+ "/sqslam-existingFunction/LambdaFunctionServiceRole/DefaultPolicy": [
150
+ {
151
+ "type": "aws:cdk:analytics:construct",
152
+ "data": "*"
153
+ },
154
+ {
155
+ "type": "aws:cdk:analytics:method",
156
+ "data": {
157
+ "attachToRole": [
158
+ "*"
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "type": "aws:cdk:analytics:method",
164
+ "data": {
165
+ "attachToRole": [
166
+ "*"
167
+ ]
168
+ }
169
+ },
170
+ {
171
+ "type": "aws:cdk:analytics:method",
172
+ "data": {
173
+ "addStatements": [
174
+ {}
175
+ ]
176
+ }
177
+ }
178
+ ],
91
179
  "/sqslam-existingFunction/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
92
180
  {
93
181
  "type": "aws:cdk:logicalId",
94
182
  "data": "LambdaFunctionServiceRoleDefaultPolicy126C8897"
95
183
  }
96
184
  ],
185
+ "/sqslam-existingFunction/LambdaFunction": [
186
+ {
187
+ "type": "aws:cdk:analytics:construct",
188
+ "data": {
189
+ "role": "*",
190
+ "tracing": "Active",
191
+ "runtime": "*",
192
+ "handler": "*",
193
+ "code": "*"
194
+ }
195
+ },
196
+ {
197
+ "type": "aws:cdk:analytics:method",
198
+ "data": {
199
+ "addEnvironment": [
200
+ "*",
201
+ "*",
202
+ {
203
+ "removeInEdge": true
204
+ }
205
+ ]
206
+ }
207
+ }
208
+ ],
97
209
  "/sqslam-existingFunction/LambdaFunction/Resource": [
98
210
  {
99
211
  "type": "aws:cdk:logicalId",
100
212
  "data": "LambdaFunctionBF21E41F"
101
213
  }
102
214
  ],
215
+ "/sqslam-existingFunction/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
216
+ {
217
+ "type": "aws:cdk:analytics:construct",
218
+ "data": {
219
+ "statements": "*"
220
+ }
221
+ },
222
+ {
223
+ "type": "aws:cdk:analytics:method",
224
+ "data": {
225
+ "addStatements": [
226
+ {}
227
+ ]
228
+ }
229
+ },
230
+ {
231
+ "type": "aws:cdk:analytics:method",
232
+ "data": {
233
+ "attachToRole": [
234
+ "*"
235
+ ]
236
+ }
237
+ },
238
+ {
239
+ "type": "aws:cdk:analytics:method",
240
+ "data": {
241
+ "attachToRole": [
242
+ "*"
243
+ ]
244
+ }
245
+ }
246
+ ],
247
+ "/sqslam-existingFunction/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
248
+ {
249
+ "type": "aws:cdk:logicalId",
250
+ "data": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684"
251
+ }
252
+ ],
253
+ "/sqslam-existingFunction/LambdaFunction/SqsEventSource:sqslamexistingFunctiontestsqslambdaqueue16552447": [
254
+ {
255
+ "type": "aws:cdk:analytics:construct",
256
+ "data": {
257
+ "target": "*",
258
+ "batchSize": "*",
259
+ "maxBatchingWindow": "*",
260
+ "maxConcurrency": "*",
261
+ "reportBatchItemFailures": "*",
262
+ "enabled": "*",
263
+ "eventSourceArn": "*",
264
+ "filters": "*",
265
+ "filterEncryption": "*",
266
+ "metricsConfig": "*"
267
+ }
268
+ }
269
+ ],
103
270
  "/sqslam-existingFunction/LambdaFunction/SqsEventSource:sqslamexistingFunctiontestsqslambdaqueue16552447/Resource": [
104
271
  {
105
272
  "type": "aws:cdk:logicalId",
106
273
  "data": "LambdaFunctionSqsEventSourcesqslamexistingFunctiontestsqslambdaqueue1655244776FD943D"
107
274
  }
108
275
  ],
276
+ "/sqslam-existingFunction/test-sqs-lambda/queue-dlq": [
277
+ {
278
+ "type": "aws:cdk:analytics:construct",
279
+ "data": {
280
+ "encryption": "KMS_MANAGED",
281
+ "fifo": "*"
282
+ }
283
+ }
284
+ ],
109
285
  "/sqslam-existingFunction/test-sqs-lambda/queue-dlq/Resource": [
110
286
  {
111
287
  "type": "aws:cdk:logicalId",
112
288
  "data": "testsqslambdaqueuedlq3A0F89AC"
113
289
  }
114
290
  ],
291
+ "/sqslam-existingFunction/test-sqs-lambda/queue-dlq/Policy": [
292
+ {
293
+ "type": "aws:cdk:analytics:construct",
294
+ "data": {
295
+ "queues": [
296
+ "*"
297
+ ]
298
+ }
299
+ }
300
+ ],
115
301
  "/sqslam-existingFunction/test-sqs-lambda/queue-dlq/Policy/Resource": [
116
302
  {
117
303
  "type": "aws:cdk:logicalId",
118
304
  "data": "testsqslambdaqueuedlqPolicy2BF8AE48"
119
305
  }
120
306
  ],
307
+ "/sqslam-existingFunction/test-sqs-lambda/queue": [
308
+ {
309
+ "type": "aws:cdk:analytics:construct",
310
+ "data": {
311
+ "encryption": "KMS_MANAGED",
312
+ "fifo": "*",
313
+ "deadLetterQueue": {
314
+ "maxReceiveCount": "*",
315
+ "queue": "*"
316
+ }
317
+ }
318
+ }
319
+ ],
121
320
  "/sqslam-existingFunction/test-sqs-lambda/queue/Resource": [
122
321
  {
123
322
  "type": "aws:cdk:logicalId",
124
323
  "data": "testsqslambdaqueue601203B8"
125
324
  }
126
325
  ],
326
+ "/sqslam-existingFunction/test-sqs-lambda/queue/Policy": [
327
+ {
328
+ "type": "aws:cdk:analytics:construct",
329
+ "data": {
330
+ "queues": [
331
+ "*"
332
+ ]
333
+ }
334
+ }
335
+ ],
127
336
  "/sqslam-existingFunction/test-sqs-lambda/queue/Policy/Resource": [
128
337
  {
129
338
  "type": "aws:cdk:logicalId",
@@ -151,5 +360,6 @@
151
360
  "file": "tree.json"
152
361
  }
153
362
  }
154
- }
363
+ },
364
+ "minimumCliVersion": "2.1006.0"
155
365
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f": {
5
5
  "source": {
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
  },
17
- "d208299cec0900be7765342ab389dc13d5f1f38270787c8a6a31785933742736": {
17
+ "f8b7e78de920c51a265aacd7a86ef212a2c81978d657497bc16ac58ef6448800": {
18
18
  "source": {
19
19
  "path": "sqslam-existingFunction.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "d208299cec0900be7765342ab389dc13d5f1f38270787c8a6a31785933742736.json",
25
+ "objectKey": "f8b7e78de920c51a265aacd7a86ef212a2c81978d657497bc16ac58ef6448800.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -68,14 +68,6 @@
68
68
  "Properties": {
69
69
  "PolicyDocument": {
70
70
  "Statement": [
71
- {
72
- "Action": [
73
- "xray:PutTelemetryRecords",
74
- "xray:PutTraceSegments"
75
- ],
76
- "Effect": "Allow",
77
- "Resource": "*"
78
- },
79
71
  {
80
72
  "Action": [
81
73
  "sqs:ChangeMessageVisibility",
@@ -101,16 +93,6 @@
101
93
  "Ref": "LambdaFunctionServiceRole0C4CDE0B"
102
94
  }
103
95
  ]
104
- },
105
- "Metadata": {
106
- "cfn_nag": {
107
- "rules_to_suppress": [
108
- {
109
- "id": "W12",
110
- "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
111
- }
112
- ]
113
- }
114
96
  }
115
97
  },
116
98
  "LambdaFunctionBF21E41F": {
@@ -162,6 +144,30 @@
162
144
  }
163
145
  }
164
146
  },
147
+ "LambdaFunctioninlinePolicyAddedToExecutionRole007875684": {
148
+ "Type": "AWS::IAM::Policy",
149
+ "Properties": {
150
+ "PolicyDocument": {
151
+ "Statement": [
152
+ {
153
+ "Action": [
154
+ "xray:PutTelemetryRecords",
155
+ "xray:PutTraceSegments"
156
+ ],
157
+ "Effect": "Allow",
158
+ "Resource": "*"
159
+ }
160
+ ],
161
+ "Version": "2012-10-17"
162
+ },
163
+ "PolicyName": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684",
164
+ "Roles": [
165
+ {
166
+ "Ref": "LambdaFunctionServiceRole0C4CDE0B"
167
+ }
168
+ ]
169
+ }
170
+ },
165
171
  "LambdaFunctionSqsEventSourcesqslamexistingFunctiontestsqslambdaqueue1655244776FD943D": {
166
172
  "Type": "AWS::Lambda::EventSourceMapping",
167
173
  "Properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {