@aws-solutions-constructs/aws-apigateway-lambda 2.79.1 → 2.81.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 (31) hide show
  1. package/.jsii +68 -50
  2. package/README.md +1 -0
  3. package/lib/index.d.ts +7 -0
  4. package/lib/index.js +4 -3
  5. package/package.json +6 -6
  6. package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.assets.json +3 -3
  7. package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.template.json +24 -35
  8. package/test/integ.apilam-deployFunction.js.snapshot/apilamdeployFunctionIntegDefaultTestDeployAssert281C111D.assets.json +1 -1
  9. package/test/integ.apilam-deployFunction.js.snapshot/cdk.out +1 -1
  10. package/test/integ.apilam-deployFunction.js.snapshot/integ.json +1 -1
  11. package/test/integ.apilam-deployFunction.js.snapshot/manifest.json +290 -6
  12. package/test/integ.apilam-deployFunction.js.snapshot/tree.json +1 -927
  13. package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.assets.json +3 -3
  14. package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.template.json +24 -35
  15. package/test/integ.apilam-existingFunction.js.snapshot/apilamexistingFunctionIntegDefaultTestDeployAssert4238FD03.assets.json +1 -1
  16. package/test/integ.apilam-existingFunction.js.snapshot/cdk.out +1 -1
  17. package/test/integ.apilam-existingFunction.js.snapshot/integ.json +1 -1
  18. package/test/integ.apilam-existingFunction.js.snapshot/manifest.json +290 -6
  19. package/test/integ.apilam-existingFunction.js.snapshot/tree.json +1 -927
  20. package/test/integ.apilam-no-usage-plan.d.ts +13 -0
  21. package/test/integ.apilam-no-usage-plan.js +40 -0
  22. package/test/integ.apilam-no-usage-plan.js.snapshot/apilam-no-usage-plan.assets.json +32 -0
  23. package/test/integ.apilam-no-usage-plan.js.snapshot/apilam-no-usage-plan.template.json +626 -0
  24. package/test/integ.apilam-no-usage-plan.js.snapshot/apilamnousageplanIntegDefaultTestDeployAssertFA088EA5.assets.json +19 -0
  25. package/test/integ.apilam-no-usage-plan.js.snapshot/apilamnousageplanIntegDefaultTestDeployAssertFA088EA5.template.json +36 -0
  26. package/test/integ.apilam-no-usage-plan.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  27. package/test/integ.apilam-no-usage-plan.js.snapshot/cdk.out +1 -0
  28. package/test/integ.apilam-no-usage-plan.js.snapshot/integ.json +12 -0
  29. package/test/integ.apilam-no-usage-plan.js.snapshot/manifest.json +481 -0
  30. package/test/integ.apilam-no-usage-plan.js.snapshot/tree.json +1 -0
  31. package/test/test.apigateway-lambda.test.js +40 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "42.0.0",
3
3
  "artifacts": {
4
4
  "apilamdeployFunctionIntegDefaultTestDeployAssert281C111D.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}/3f39e33a6fe8ba01b5992a9f3d66cbf74af0ac15460aad2aec981270d7ffdc3d.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d3fd2b482d0b490a81cfad6d51bdb1e9fa7b04b0bf7741747d49e1ba8835c4af.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,16 +82,68 @@
82
82
  "apilam-deployFunction.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/apilam-deployFunction/test-apigateway-lambda/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
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
114
+ {
115
+ "type": "aws:cdk:analytics:construct",
116
+ "data": "*"
117
+ }
118
+ ],
85
119
  "/apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/Resource": [
86
120
  {
87
121
  "type": "aws:cdk:logicalId",
88
122
  "data": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
89
123
  }
90
124
  ],
91
- "/apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
125
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaFunction": [
92
126
  {
93
- "type": "aws:cdk:logicalId",
94
- "data": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32"
127
+ "type": "aws:cdk:analytics:construct",
128
+ "data": {
129
+ "role": "*",
130
+ "tracing": "Active",
131
+ "runtime": "*",
132
+ "handler": "*",
133
+ "code": "*"
134
+ }
135
+ },
136
+ {
137
+ "type": "aws:cdk:analytics:method",
138
+ "data": {
139
+ "addEnvironment": [
140
+ "*",
141
+ "*",
142
+ {
143
+ "removeInEdge": true
144
+ }
145
+ ]
146
+ }
95
147
  }
96
148
  ],
97
149
  "/apilam-deployFunction/test-apigateway-lambda/LambdaFunction/Resource": [
@@ -100,24 +152,164 @@
100
152
  "data": "testapigatewaylambdaLambdaFunction18FF222F"
101
153
  }
102
154
  ],
155
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
156
+ {
157
+ "type": "aws:cdk:analytics:construct",
158
+ "data": {
159
+ "statements": "*"
160
+ }
161
+ },
162
+ {
163
+ "type": "aws:cdk:analytics:method",
164
+ "data": {
165
+ "addStatements": [
166
+ {}
167
+ ]
168
+ }
169
+ },
170
+ {
171
+ "type": "aws:cdk:analytics:method",
172
+ "data": {
173
+ "attachToRole": [
174
+ "*"
175
+ ]
176
+ }
177
+ },
178
+ {
179
+ "type": "aws:cdk:analytics:method",
180
+ "data": {
181
+ "attachToRole": [
182
+ "*"
183
+ ]
184
+ }
185
+ }
186
+ ],
187
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
188
+ {
189
+ "type": "aws:cdk:logicalId",
190
+ "data": "testapigatewaylambdaLambdaFunctioninlinePolicyAddedToExecutionRole00FEF72FF"
191
+ }
192
+ ],
193
+ "/apilam-deployFunction/test-apigateway-lambda/ApiAccessLogGroup": [
194
+ {
195
+ "type": "aws:cdk:analytics:construct",
196
+ "data": {
197
+ "retention": 9999
198
+ }
199
+ }
200
+ ],
103
201
  "/apilam-deployFunction/test-apigateway-lambda/ApiAccessLogGroup/Resource": [
104
202
  {
105
203
  "type": "aws:cdk:logicalId",
106
204
  "data": "testapigatewaylambdaApiAccessLogGroupEB3253A2"
107
205
  }
108
206
  ],
207
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi": [
208
+ {
209
+ "type": "aws:cdk:analytics:construct",
210
+ "data": {
211
+ "defaultIntegration": "*",
212
+ "endpointConfiguration": {
213
+ "types": [
214
+ "EDGE"
215
+ ]
216
+ },
217
+ "cloudWatchRole": false,
218
+ "deployOptions": {
219
+ "accessLogDestination": "*",
220
+ "accessLogFormat": "*",
221
+ "loggingLevel": "INFO",
222
+ "dataTraceEnabled": false,
223
+ "tracingEnabled": true
224
+ },
225
+ "defaultMethodOptions": {
226
+ "authorizationType": "*"
227
+ },
228
+ "handler": "*"
229
+ }
230
+ },
231
+ {
232
+ "type": "aws:cdk:analytics:construct",
233
+ "data": {
234
+ "endpointConfiguration": {
235
+ "types": [
236
+ "EDGE"
237
+ ]
238
+ },
239
+ "cloudWatchRole": false,
240
+ "deployOptions": {
241
+ "accessLogDestination": "*",
242
+ "accessLogFormat": "*",
243
+ "loggingLevel": "INFO",
244
+ "dataTraceEnabled": false,
245
+ "tracingEnabled": true
246
+ },
247
+ "defaultMethodOptions": {
248
+ "authorizationType": "*"
249
+ },
250
+ "handler": "*"
251
+ }
252
+ }
253
+ ],
109
254
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Resource": [
110
255
  {
111
256
  "type": "aws:cdk:logicalId",
112
257
  "data": "testapigatewaylambdaLambdaRestApiE957E944"
113
258
  }
114
259
  ],
260
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Deployment": [
261
+ {
262
+ "type": "aws:cdk:analytics:construct",
263
+ "data": {
264
+ "description": "*",
265
+ "api": "*",
266
+ "retainDeployments": "*"
267
+ }
268
+ },
269
+ {
270
+ "type": "aws:cdk:analytics:method",
271
+ "data": {
272
+ "addToLogicalId": [
273
+ {}
274
+ ]
275
+ }
276
+ },
277
+ {
278
+ "type": "aws:cdk:analytics:method",
279
+ "data": {
280
+ "addToLogicalId": [
281
+ {}
282
+ ]
283
+ }
284
+ },
285
+ {
286
+ "type": "aws:cdk:analytics:method",
287
+ "data": {
288
+ "addToLogicalId": [
289
+ {}
290
+ ]
291
+ }
292
+ }
293
+ ],
115
294
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Deployment/Resource": [
116
295
  {
117
296
  "type": "aws:cdk:logicalId",
118
297
  "data": "testapigatewaylambdaLambdaRestApiDeployment85334BB3a1765c45928980e423727978265730d1"
119
298
  }
120
299
  ],
300
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/DeploymentStage.prod": [
301
+ {
302
+ "type": "aws:cdk:analytics:construct",
303
+ "data": {
304
+ "deployment": "*",
305
+ "accessLogDestination": "*",
306
+ "accessLogFormat": "*",
307
+ "loggingLevel": "INFO",
308
+ "dataTraceEnabled": false,
309
+ "tracingEnabled": true
310
+ }
311
+ }
312
+ ],
121
313
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/DeploymentStage.prod/Resource": [
122
314
  {
123
315
  "type": "aws:cdk:logicalId",
@@ -130,12 +322,53 @@
130
322
  "data": "testapigatewaylambdaLambdaRestApiEndpoint2EF0B753"
131
323
  }
132
324
  ],
325
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default": [
326
+ {
327
+ "type": "aws:cdk:analytics:construct",
328
+ "data": "*"
329
+ }
330
+ ],
331
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}": [
332
+ {
333
+ "type": "aws:cdk:analytics:construct",
334
+ "data": {
335
+ "parent": "*",
336
+ "defaultIntegration": "*",
337
+ "defaultMethodOptions": "*"
338
+ }
339
+ },
340
+ {
341
+ "type": "aws:cdk:analytics:construct",
342
+ "data": {
343
+ "parent": "*"
344
+ }
345
+ },
346
+ {
347
+ "type": "aws:cdk:analytics:method",
348
+ "data": {
349
+ "addMethod": [
350
+ "*"
351
+ ]
352
+ }
353
+ }
354
+ ],
133
355
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/Resource": [
134
356
  {
135
357
  "type": "aws:cdk:logicalId",
136
358
  "data": "testapigatewaylambdaLambdaRestApiproxy2C2C544E"
137
359
  }
138
360
  ],
361
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY": [
362
+ {
363
+ "type": "aws:cdk:analytics:construct",
364
+ "data": {
365
+ "resource": "*",
366
+ "httpMethod": "*",
367
+ "integration": "*",
368
+ "options": "*"
369
+ }
370
+ }
371
+ ],
139
372
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}": [
140
373
  {
141
374
  "type": "aws:cdk:logicalId",
@@ -154,6 +387,17 @@
154
387
  "data": "testapigatewaylambdaLambdaRestApiproxyANYF6150927"
155
388
  }
156
389
  ],
390
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY": [
391
+ {
392
+ "type": "aws:cdk:analytics:construct",
393
+ "data": {
394
+ "resource": "*",
395
+ "httpMethod": "*",
396
+ "integration": "*",
397
+ "options": "*"
398
+ }
399
+ }
400
+ ],
157
401
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..": [
158
402
  {
159
403
  "type": "aws:cdk:logicalId",
@@ -172,12 +416,42 @@
172
416
  "data": "testapigatewaylambdaLambdaRestApiANY1FACA749"
173
417
  }
174
418
  ],
419
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/UsagePlan": [
420
+ {
421
+ "type": "aws:cdk:analytics:construct",
422
+ "data": {
423
+ "apiStages": [
424
+ {
425
+ "api": "*"
426
+ }
427
+ ]
428
+ }
429
+ }
430
+ ],
175
431
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/UsagePlan/Resource": [
176
432
  {
177
433
  "type": "aws:cdk:logicalId",
178
434
  "data": "testapigatewaylambdaLambdaRestApiUsagePlan658131E3"
179
435
  }
180
436
  ],
437
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole": [
438
+ {
439
+ "type": "aws:cdk:analytics:construct",
440
+ "data": {
441
+ "assumedBy": {
442
+ "principalAccount": "*",
443
+ "assumeRoleAction": "*"
444
+ },
445
+ "inlinePolicies": "*"
446
+ }
447
+ }
448
+ ],
449
+ "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole": [
450
+ {
451
+ "type": "aws:cdk:analytics:construct",
452
+ "data": "*"
453
+ }
454
+ ],
181
455
  "/apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole/Resource": [
182
456
  {
183
457
  "type": "aws:cdk:logicalId",
@@ -201,6 +475,15 @@
201
475
  "type": "aws:cdk:logicalId",
202
476
  "data": "CheckBootstrapVersion"
203
477
  }
478
+ ],
479
+ "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32": [
480
+ {
481
+ "type": "aws:cdk:logicalId",
482
+ "data": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
483
+ "trace": [
484
+ "!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
485
+ ]
486
+ }
204
487
  ]
205
488
  },
206
489
  "displayName": "apilam-deployFunction"
@@ -211,5 +494,6 @@
211
494
  "file": "tree.json"
212
495
  }
213
496
  }
214
- }
497
+ },
498
+ "minimumCliVersion": "2.1006.0"
215
499
  }