@aws-solutions-constructs/aws-lambda-dynamodb 2.76.0 → 2.77.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 (27) hide show
  1. package/.jsii +57 -18
  2. package/lib/index.js +1 -1
  3. package/package.json +7 -6
  4. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  5. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  6. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/cdk.out +1 -1
  7. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/integ.json +1 -1
  8. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.assets.json +9 -9
  9. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddb-deployFunctionWithExistingVpc.template.json +8 -2
  10. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/lamddbdeployFunctionWithExistingVpcIntegDefaultTestDeployAssertEE08E38E.assets.json +1 -1
  11. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/manifest.json +8 -2
  12. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/tree.json +84 -78
  13. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  14. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  15. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/cdk.out +1 -1
  16. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/integ.json +1 -1
  17. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.assets.json +9 -9
  18. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddb-deployFunctionWithVpc.template.json +8 -2
  19. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.assets.json +1 -1
  20. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/manifest.json +8 -2
  21. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/tree.json +64 -58
  22. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  23. package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  24. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  25. package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  26. /package/test/integ.lamddb-deployFunctionWithExistingVpc.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  27. /package/test/integ.lamddb-deployFunctionWithVpc.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+
14
+ exports.handler = async function(event) {
15
+ console.log('request:', JSON.stringify(event, undefined, 2));
16
+ return {
17
+ statusCode: 200,
18
+ headers: { 'Content-Type': 'text/plain' },
19
+ body: `Hello, CDK! You've hit ${event.path}\n`
20
+ };
21
+ };
@@ -1 +1 @@
1
- {"version":"36.0.0"}
1
+ {"version":"39.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "39.0.0",
3
3
  "testCases": {
4
4
  "lamddb-deployFunctionWithVpc/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,33 +1,33 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "39.0.0",
3
3
  "files": {
4
- "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a": {
4
+ "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200": {
5
5
  "source": {
6
- "path": "asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a",
6
+ "path": "asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200",
7
7
  "packaging": "zip"
8
8
  },
9
9
  "destinations": {
10
10
  "current_account-current_region": {
11
11
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
- "objectKey": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip",
12
+ "objectKey": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip",
13
13
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
14
  }
15
15
  }
16
16
  },
17
- "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8": {
17
+ "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c": {
18
18
  "source": {
19
- "path": "asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8",
19
+ "path": "asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c",
20
20
  "packaging": "zip"
21
21
  },
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip",
25
+ "objectKey": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
29
29
  },
30
- "d24f111c0760c5f2b4edfde3d8c0b7ef9250c5102f44830bfc16aad0e1421108": {
30
+ "530f673a7d663315ec57400b014a6cac65f30fa1891cf9f3edc34f5570161a70": {
31
31
  "source": {
32
32
  "path": "lamddb-deployFunctionWithVpc.template.json",
33
33
  "packaging": "file"
@@ -35,7 +35,7 @@
35
35
  "destinations": {
36
36
  "current_account-current_region": {
37
37
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
38
- "objectKey": "d24f111c0760c5f2b4edfde3d8c0b7ef9250c5102f44830bfc16aad0e1421108.json",
38
+ "objectKey": "530f673a7d663315ec57400b014a6cac65f30fa1891cf9f3edc34f5570161a70.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -167,7 +167,7 @@
167
167
  "S3Bucket": {
168
168
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
169
169
  },
170
- "S3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
170
+ "S3Key": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"
171
171
  },
172
172
  "Environment": {
173
173
  "Variables": {
@@ -552,6 +552,12 @@
552
552
  ]
553
553
  ]
554
554
  },
555
+ "Tags": [
556
+ {
557
+ "Key": "Name",
558
+ "Value": "lamddb-deployFunctionWithVpc/Vpc"
559
+ }
560
+ ],
555
561
  "VpcEndpointType": "Gateway",
556
562
  "VpcId": {
557
563
  "Ref": "Vpc8378EB38"
@@ -639,7 +645,7 @@
639
645
  "S3Bucket": {
640
646
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
641
647
  },
642
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
648
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
643
649
  },
644
650
  "Timeout": 900,
645
651
  "MemorySize": 128,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "39.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "39.0.0",
3
3
  "artifacts": {
4
4
  "lamddbdeployFunctionWithVpcIntegDefaultTestDeployAssert0AB8275C.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}/d24f111c0760c5f2b4edfde3d8c0b7ef9250c5102f44830bfc16aad0e1421108.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/530f673a7d663315ec57400b014a6cac65f30fa1891cf9f3edc34f5570161a70.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -196,6 +196,12 @@
196
196
  "data": "LatestNodeRuntimeMap"
197
197
  }
198
198
  ],
199
+ "/lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
200
+ {
201
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
202
+ "data": true
203
+ }
204
+ ],
199
205
  "/lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
200
206
  {
201
207
  "type": "aws:cdk:logicalId",
@@ -21,7 +21,7 @@
21
21
  "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
22
22
  "constructInfo": {
23
23
  "fqn": "aws-cdk-lib.Resource",
24
- "version": "2.150.0"
24
+ "version": "2.174.0"
25
25
  }
26
26
  },
27
27
  "Resource": {
@@ -84,7 +84,7 @@
84
84
  },
85
85
  "constructInfo": {
86
86
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
87
- "version": "2.150.0"
87
+ "version": "2.174.0"
88
88
  }
89
89
  },
90
90
  "DefaultPolicy": {
@@ -153,19 +153,19 @@
153
153
  },
154
154
  "constructInfo": {
155
155
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
156
- "version": "2.150.0"
156
+ "version": "2.174.0"
157
157
  }
158
158
  }
159
159
  },
160
160
  "constructInfo": {
161
161
  "fqn": "aws-cdk-lib.aws_iam.Policy",
162
- "version": "2.150.0"
162
+ "version": "2.174.0"
163
163
  }
164
164
  }
165
165
  },
166
166
  "constructInfo": {
167
167
  "fqn": "aws-cdk-lib.aws_iam.Role",
168
- "version": "2.150.0"
168
+ "version": "2.174.0"
169
169
  }
170
170
  },
171
171
  "ReplaceDefaultSecurityGroup-security-group": {
@@ -193,13 +193,13 @@
193
193
  },
194
194
  "constructInfo": {
195
195
  "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup",
196
- "version": "2.150.0"
196
+ "version": "2.174.0"
197
197
  }
198
198
  }
199
199
  },
200
200
  "constructInfo": {
201
201
  "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup",
202
- "version": "2.150.0"
202
+ "version": "2.174.0"
203
203
  }
204
204
  },
205
205
  "LambdaFunction": {
@@ -215,7 +215,7 @@
215
215
  "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Code/Stage",
216
216
  "constructInfo": {
217
217
  "fqn": "aws-cdk-lib.AssetStaging",
218
- "version": "2.150.0"
218
+ "version": "2.174.0"
219
219
  }
220
220
  },
221
221
  "AssetBucket": {
@@ -223,13 +223,13 @@
223
223
  "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/LambdaFunction/Code/AssetBucket",
224
224
  "constructInfo": {
225
225
  "fqn": "aws-cdk-lib.aws_s3.BucketBase",
226
- "version": "2.150.0"
226
+ "version": "2.174.0"
227
227
  }
228
228
  }
229
229
  },
230
230
  "constructInfo": {
231
231
  "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
232
- "version": "2.150.0"
232
+ "version": "2.174.0"
233
233
  }
234
234
  },
235
235
  "Resource": {
@@ -242,7 +242,7 @@
242
242
  "s3Bucket": {
243
243
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
244
244
  },
245
- "s3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
245
+ "s3Key": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"
246
246
  },
247
247
  "environment": {
248
248
  "variables": {
@@ -285,13 +285,13 @@
285
285
  },
286
286
  "constructInfo": {
287
287
  "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
288
- "version": "2.150.0"
288
+ "version": "2.174.0"
289
289
  }
290
290
  }
291
291
  },
292
292
  "constructInfo": {
293
293
  "fqn": "aws-cdk-lib.aws_lambda.Function",
294
- "version": "2.150.0"
294
+ "version": "2.174.0"
295
295
  }
296
296
  },
297
297
  "DynamoTable": {
@@ -327,7 +327,7 @@
327
327
  },
328
328
  "constructInfo": {
329
329
  "fqn": "aws-cdk-lib.aws_dynamodb.CfnTable",
330
- "version": "2.150.0"
330
+ "version": "2.174.0"
331
331
  }
332
332
  },
333
333
  "ScalingRole": {
@@ -335,19 +335,19 @@
335
335
  "path": "lamddb-deployFunctionWithVpc/test-lambda-dynamodb-stack/DynamoTable/ScalingRole",
336
336
  "constructInfo": {
337
337
  "fqn": "aws-cdk-lib.Resource",
338
- "version": "2.150.0"
338
+ "version": "2.174.0"
339
339
  }
340
340
  }
341
341
  },
342
342
  "constructInfo": {
343
343
  "fqn": "aws-cdk-lib.aws_dynamodb.Table",
344
- "version": "2.150.0"
344
+ "version": "2.174.0"
345
345
  }
346
346
  }
347
347
  },
348
348
  "constructInfo": {
349
349
  "fqn": "@aws-solutions-constructs/aws-lambda-dynamodb.LambdaToDynamoDB",
350
- "version": "2.63.0"
350
+ "version": "2.76.0"
351
351
  }
352
352
  },
353
353
  "Vpc": {
@@ -374,7 +374,7 @@
374
374
  },
375
375
  "constructInfo": {
376
376
  "fqn": "aws-cdk-lib.aws_ec2.CfnVPC",
377
- "version": "2.150.0"
377
+ "version": "2.174.0"
378
378
  }
379
379
  },
380
380
  "isolatedSubnet1": {
@@ -418,7 +418,7 @@
418
418
  },
419
419
  "constructInfo": {
420
420
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
421
- "version": "2.150.0"
421
+ "version": "2.174.0"
422
422
  }
423
423
  },
424
424
  "Acl": {
@@ -426,7 +426,7 @@
426
426
  "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet1/Acl",
427
427
  "constructInfo": {
428
428
  "fqn": "aws-cdk-lib.Resource",
429
- "version": "2.150.0"
429
+ "version": "2.174.0"
430
430
  }
431
431
  },
432
432
  "RouteTable": {
@@ -448,7 +448,7 @@
448
448
  },
449
449
  "constructInfo": {
450
450
  "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
451
- "version": "2.150.0"
451
+ "version": "2.174.0"
452
452
  }
453
453
  },
454
454
  "RouteTableAssociation": {
@@ -467,13 +467,13 @@
467
467
  },
468
468
  "constructInfo": {
469
469
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
470
- "version": "2.150.0"
470
+ "version": "2.174.0"
471
471
  }
472
472
  }
473
473
  },
474
474
  "constructInfo": {
475
475
  "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
476
- "version": "2.150.0"
476
+ "version": "2.174.0"
477
477
  }
478
478
  },
479
479
  "isolatedSubnet2": {
@@ -517,7 +517,7 @@
517
517
  },
518
518
  "constructInfo": {
519
519
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
520
- "version": "2.150.0"
520
+ "version": "2.174.0"
521
521
  }
522
522
  },
523
523
  "Acl": {
@@ -525,7 +525,7 @@
525
525
  "path": "lamddb-deployFunctionWithVpc/Vpc/isolatedSubnet2/Acl",
526
526
  "constructInfo": {
527
527
  "fqn": "aws-cdk-lib.Resource",
528
- "version": "2.150.0"
528
+ "version": "2.174.0"
529
529
  }
530
530
  },
531
531
  "RouteTable": {
@@ -547,7 +547,7 @@
547
547
  },
548
548
  "constructInfo": {
549
549
  "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
550
- "version": "2.150.0"
550
+ "version": "2.174.0"
551
551
  }
552
552
  },
553
553
  "RouteTableAssociation": {
@@ -566,13 +566,13 @@
566
566
  },
567
567
  "constructInfo": {
568
568
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
569
- "version": "2.150.0"
569
+ "version": "2.174.0"
570
570
  }
571
571
  }
572
572
  },
573
573
  "constructInfo": {
574
574
  "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
575
- "version": "2.150.0"
575
+ "version": "2.174.0"
576
576
  }
577
577
  },
578
578
  "RestrictDefaultSecurityGroupCustomResource": {
@@ -584,13 +584,13 @@
584
584
  "path": "lamddb-deployFunctionWithVpc/Vpc/RestrictDefaultSecurityGroupCustomResource/Default",
585
585
  "constructInfo": {
586
586
  "fqn": "aws-cdk-lib.CfnResource",
587
- "version": "2.150.0"
587
+ "version": "2.174.0"
588
588
  }
589
589
  }
590
590
  },
591
591
  "constructInfo": {
592
592
  "fqn": "aws-cdk-lib.CustomResource",
593
- "version": "2.150.0"
593
+ "version": "2.174.0"
594
594
  }
595
595
  },
596
596
  "FlowLog": {
@@ -606,7 +606,7 @@
606
606
  "path": "lamddb-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/ImportIAMRole",
607
607
  "constructInfo": {
608
608
  "fqn": "aws-cdk-lib.Resource",
609
- "version": "2.150.0"
609
+ "version": "2.174.0"
610
610
  }
611
611
  },
612
612
  "Resource": {
@@ -637,7 +637,7 @@
637
637
  },
638
638
  "constructInfo": {
639
639
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
640
- "version": "2.150.0"
640
+ "version": "2.174.0"
641
641
  }
642
642
  },
643
643
  "DefaultPolicy": {
@@ -689,19 +689,19 @@
689
689
  },
690
690
  "constructInfo": {
691
691
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
692
- "version": "2.150.0"
692
+ "version": "2.174.0"
693
693
  }
694
694
  }
695
695
  },
696
696
  "constructInfo": {
697
697
  "fqn": "aws-cdk-lib.aws_iam.Policy",
698
- "version": "2.150.0"
698
+ "version": "2.174.0"
699
699
  }
700
700
  }
701
701
  },
702
702
  "constructInfo": {
703
703
  "fqn": "aws-cdk-lib.aws_iam.Role",
704
- "version": "2.150.0"
704
+ "version": "2.174.0"
705
705
  }
706
706
  },
707
707
  "LogGroup": {
@@ -725,13 +725,13 @@
725
725
  },
726
726
  "constructInfo": {
727
727
  "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
728
- "version": "2.150.0"
728
+ "version": "2.174.0"
729
729
  }
730
730
  }
731
731
  },
732
732
  "constructInfo": {
733
733
  "fqn": "aws-cdk-lib.aws_logs.LogGroup",
734
- "version": "2.150.0"
734
+ "version": "2.174.0"
735
735
  }
736
736
  },
737
737
  "FlowLog": {
@@ -765,13 +765,13 @@
765
765
  },
766
766
  "constructInfo": {
767
767
  "fqn": "aws-cdk-lib.aws_ec2.CfnFlowLog",
768
- "version": "2.150.0"
768
+ "version": "2.174.0"
769
769
  }
770
770
  }
771
771
  },
772
772
  "constructInfo": {
773
773
  "fqn": "aws-cdk-lib.aws_ec2.FlowLog",
774
- "version": "2.150.0"
774
+ "version": "2.174.0"
775
775
  }
776
776
  },
777
777
  "DDB": {
@@ -784,6 +784,12 @@
784
784
  "attributes": {
785
785
  "aws:cdk:cloudformation:type": "AWS::EC2::VPCEndpoint",
786
786
  "aws:cdk:cloudformation:props": {
787
+ "tags": [
788
+ {
789
+ "key": "Name",
790
+ "value": "lamddb-deployFunctionWithVpc/Vpc"
791
+ }
792
+ ],
787
793
  "routeTableIds": [
788
794
  {
789
795
  "Ref": "VpcisolatedSubnet1RouteTableE442650B"
@@ -812,19 +818,19 @@
812
818
  },
813
819
  "constructInfo": {
814
820
  "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpoint",
815
- "version": "2.150.0"
821
+ "version": "2.174.0"
816
822
  }
817
823
  }
818
824
  },
819
825
  "constructInfo": {
820
826
  "fqn": "aws-cdk-lib.aws_ec2.GatewayVpcEndpoint",
821
- "version": "2.150.0"
827
+ "version": "2.174.0"
822
828
  }
823
829
  }
824
830
  },
825
831
  "constructInfo": {
826
832
  "fqn": "aws-cdk-lib.aws_ec2.Vpc",
827
- "version": "2.150.0"
833
+ "version": "2.174.0"
828
834
  }
829
835
  },
830
836
  "LatestNodeRuntimeMap": {
@@ -832,7 +838,7 @@
832
838
  "path": "lamddb-deployFunctionWithVpc/LatestNodeRuntimeMap",
833
839
  "constructInfo": {
834
840
  "fqn": "aws-cdk-lib.CfnMapping",
835
- "version": "2.150.0"
841
+ "version": "2.174.0"
836
842
  }
837
843
  },
838
844
  "Custom::VpcRestrictDefaultSGCustomResourceProvider": {
@@ -844,7 +850,7 @@
844
850
  "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging",
845
851
  "constructInfo": {
846
852
  "fqn": "aws-cdk-lib.AssetStaging",
847
- "version": "2.150.0"
853
+ "version": "2.174.0"
848
854
  }
849
855
  },
850
856
  "Role": {
@@ -852,7 +858,7 @@
852
858
  "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role",
853
859
  "constructInfo": {
854
860
  "fqn": "aws-cdk-lib.CfnResource",
855
- "version": "2.150.0"
861
+ "version": "2.174.0"
856
862
  }
857
863
  },
858
864
  "Handler": {
@@ -860,13 +866,13 @@
860
866
  "path": "lamddb-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler",
861
867
  "constructInfo": {
862
868
  "fqn": "aws-cdk-lib.CfnResource",
863
- "version": "2.150.0"
869
+ "version": "2.174.0"
864
870
  }
865
871
  }
866
872
  },
867
873
  "constructInfo": {
868
874
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
869
- "version": "2.150.0"
875
+ "version": "2.174.0"
870
876
  }
871
877
  },
872
878
  "Integ": {
@@ -882,7 +888,7 @@
882
888
  "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/Default",
883
889
  "constructInfo": {
884
890
  "fqn": "constructs.Construct",
885
- "version": "10.3.0"
891
+ "version": "10.4.2"
886
892
  }
887
893
  },
888
894
  "DeployAssert": {
@@ -894,7 +900,7 @@
894
900
  "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/BootstrapVersion",
895
901
  "constructInfo": {
896
902
  "fqn": "aws-cdk-lib.CfnParameter",
897
- "version": "2.150.0"
903
+ "version": "2.174.0"
898
904
  }
899
905
  },
900
906
  "CheckBootstrapVersion": {
@@ -902,25 +908,25 @@
902
908
  "path": "lamddb-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
903
909
  "constructInfo": {
904
910
  "fqn": "aws-cdk-lib.CfnRule",
905
- "version": "2.150.0"
911
+ "version": "2.174.0"
906
912
  }
907
913
  }
908
914
  },
909
915
  "constructInfo": {
910
916
  "fqn": "aws-cdk-lib.Stack",
911
- "version": "2.150.0"
917
+ "version": "2.174.0"
912
918
  }
913
919
  }
914
920
  },
915
921
  "constructInfo": {
916
922
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
917
- "version": "2.150.0-alpha.0"
923
+ "version": "2.174.0-alpha.0"
918
924
  }
919
925
  }
920
926
  },
921
927
  "constructInfo": {
922
928
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
923
- "version": "2.150.0-alpha.0"
929
+ "version": "2.174.0-alpha.0"
924
930
  }
925
931
  },
926
932
  "BootstrapVersion": {
@@ -928,7 +934,7 @@
928
934
  "path": "lamddb-deployFunctionWithVpc/BootstrapVersion",
929
935
  "constructInfo": {
930
936
  "fqn": "aws-cdk-lib.CfnParameter",
931
- "version": "2.150.0"
937
+ "version": "2.174.0"
932
938
  }
933
939
  },
934
940
  "CheckBootstrapVersion": {
@@ -936,13 +942,13 @@
936
942
  "path": "lamddb-deployFunctionWithVpc/CheckBootstrapVersion",
937
943
  "constructInfo": {
938
944
  "fqn": "aws-cdk-lib.CfnRule",
939
- "version": "2.150.0"
945
+ "version": "2.174.0"
940
946
  }
941
947
  }
942
948
  },
943
949
  "constructInfo": {
944
950
  "fqn": "aws-cdk-lib.Stack",
945
- "version": "2.150.0"
951
+ "version": "2.174.0"
946
952
  }
947
953
  },
948
954
  "Tree": {
@@ -950,13 +956,13 @@
950
956
  "path": "Tree",
951
957
  "constructInfo": {
952
958
  "fqn": "constructs.Construct",
953
- "version": "10.3.0"
959
+ "version": "10.4.2"
954
960
  }
955
961
  }
956
962
  },
957
963
  "constructInfo": {
958
964
  "fqn": "aws-cdk-lib.App",
959
- "version": "2.150.0"
965
+ "version": "2.174.0"
960
966
  }
961
967
  }
962
968
  }
@@ -1,8 +0,0 @@
1
- exports.handler = async function(event) {
2
- console.log('request:', JSON.stringify(event, undefined, 2));
3
- return {
4
- statusCode: 200,
5
- headers: { 'Content-Type': 'text/plain' },
6
- body: `Hello, CDK! You've hit ${event.path}\n`
7
- };
8
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.withRetries=exports.handler=exports.external=void 0;const https=require("https"),url=require("url");exports.external={sendHttpRequest:defaultSendHttpRequest,log:defaultLog,includeStackTraces:!0,userHandlerIndex:"./index"};const CREATE_FAILED_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",MISSING_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";async function handler(event,context){const sanitizedEvent={...event,ResponseURL:"..."};if(exports.external.log(JSON.stringify(sanitizedEvent,void 0,2)),event.RequestType==="Delete"&&event.PhysicalResourceId===CREATE_FAILED_PHYSICAL_ID_MARKER){exports.external.log("ignoring DELETE event caused by a failed CREATE event"),await submitResponse("SUCCESS",event);return}try{const userHandler=require(exports.external.userHandlerIndex).handler,result=await userHandler(sanitizedEvent,context),responseEvent=renderResponse(event,result);await submitResponse("SUCCESS",responseEvent)}catch(e){const resp={...event,Reason:exports.external.includeStackTraces?e.stack:e.message};resp.PhysicalResourceId||(event.RequestType==="Create"?(exports.external.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),resp.PhysicalResourceId=CREATE_FAILED_PHYSICAL_ID_MARKER):exports.external.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(event)}`)),await submitResponse("FAILED",resp)}}exports.handler=handler;function renderResponse(cfnRequest,handlerResponse={}){const physicalResourceId=handlerResponse.PhysicalResourceId??cfnRequest.PhysicalResourceId??cfnRequest.RequestId;if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${handlerResponse.PhysicalResourceId}" during deletion`);return{...cfnRequest,...handlerResponse,PhysicalResourceId:physicalResourceId}}async function submitResponse(status,event){const json={Status:status,Reason:event.Reason??status,StackId:event.StackId,RequestId:event.RequestId,PhysicalResourceId:event.PhysicalResourceId||MISSING_PHYSICAL_ID_MARKER,LogicalResourceId:event.LogicalResourceId,NoEcho:event.NoEcho,Data:event.Data},parsedUrl=url.parse(event.ResponseURL),loggingSafeUrl=`${parsedUrl.protocol}//${parsedUrl.hostname}/${parsedUrl.pathname}?***`;exports.external.log("submit response to cloudformation",loggingSafeUrl,json);const responseBody=JSON.stringify(json),req={hostname:parsedUrl.hostname,path:parsedUrl.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(responseBody,"utf8")}};await withRetries({attempts:5,sleep:1e3},exports.external.sendHttpRequest)(req,responseBody)}async function defaultSendHttpRequest(options,requestBody){return new Promise((resolve,reject)=>{try{const request=https.request(options,response=>{response.resume(),!response.statusCode||response.statusCode>=400?reject(new Error(`Unsuccessful HTTP response: ${response.statusCode}`)):resolve()});request.on("error",reject),request.write(requestBody),request.end()}catch(e){reject(e)}})}function defaultLog(fmt,...params){console.log(fmt,...params)}function withRetries(options,fn){return async(...xs)=>{let attempts=options.attempts,ms=options.sleep;for(;;)try{return await fn(...xs)}catch(e){if(attempts--<=0)throw e;await sleep(Math.floor(Math.random()*ms)),ms*=2}}}exports.withRetries=withRetries;async function sleep(ms){return new Promise(ok=>setTimeout(ok,ms))}