@aws-solutions-constructs/aws-lambda-secretsmanager 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.lamsec-deployFunctionWithExistingVpc.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  5. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  6. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/cdk.out +1 -1
  7. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/integ.json +1 -1
  8. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/lamsec-deployFunctionWithExistingVpc.assets.json +9 -9
  9. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/lamsec-deployFunctionWithExistingVpc.template.json +8 -2
  10. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/lamsecdeployFunctionWithExistingVpcIntegDefaultTestDeployAssert647243A7.assets.json +1 -1
  11. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/manifest.json +8 -2
  12. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/tree.json +85 -79
  13. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  14. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/asset.a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c/index.js +21 -0
  15. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/cdk.out +1 -1
  16. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/integ.json +1 -1
  17. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/lamsec-deployFunctionWithVpc.assets.json +9 -9
  18. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/lamsec-deployFunctionWithVpc.template.json +8 -2
  19. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/lamsecdeployFunctionWithVpcIntegDefaultTestDeployAssert66148FF5.assets.json +1 -1
  20. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/manifest.json +8 -2
  21. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/tree.json +65 -59
  22. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  23. package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  24. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/asset.0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8/index.js +0 -8
  25. package/test/integ.lamsec-deployFunctionWithVpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  26. /package/test/integ.lamsec-deployFunctionWithExistingVpc.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  27. /package/test/integ.lamsec-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
  "lamsec-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
- "778906270efc53a4ceeddc1d26deaf9553d93d3e02a5056fe8e1078e6f902691": {
30
+ "554469df7dc68c62e314d2e15a5e504cc7c5cf9ff30ea51202e7acf77d24962e": {
31
31
  "source": {
32
32
  "path": "lamsec-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": "778906270efc53a4ceeddc1d26deaf9553d93d3e02a5056fe8e1078e6f902691.json",
38
+ "objectKey": "554469df7dc68c62e314d2e15a5e504cc7c5cf9ff30ea51202e7acf77d24962e.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -149,7 +149,7 @@
149
149
  "S3Bucket": {
150
150
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
151
151
  },
152
- "S3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
152
+ "S3Key": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"
153
153
  },
154
154
  "Environment": {
155
155
  "Variables": {
@@ -528,6 +528,12 @@
528
528
  "Ref": "VpcisolatedSubnet2Subnet39217055"
529
529
  }
530
530
  ],
531
+ "Tags": [
532
+ {
533
+ "Key": "Name",
534
+ "Value": "lamsec-deployFunctionWithVpc/Vpc"
535
+ }
536
+ ],
531
537
  "VpcEndpointType": "Interface",
532
538
  "VpcId": {
533
539
  "Ref": "Vpc8378EB38"
@@ -615,7 +621,7 @@
615
621
  "S3Bucket": {
616
622
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
617
623
  },
618
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
624
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
619
625
  },
620
626
  "Timeout": 900,
621
627
  "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
  "lamsecdeployFunctionWithVpcIntegDefaultTestDeployAssert66148FF5.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}/778906270efc53a4ceeddc1d26deaf9553d93d3e02a5056fe8e1078e6f902691.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/554469df7dc68c62e314d2e15a5e504cc7c5cf9ff30ea51202e7acf77d24962e.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
+ "/lamsec-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
200
+ {
201
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
202
+ "data": true
203
+ }
204
+ ],
199
205
  "/lamsec-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
200
206
  {
201
207
  "type": "aws:cdk:logicalId",
@@ -21,7 +21,7 @@
21
21
  "path": "lamsec-deployFunctionWithVpc/test-lambda-secretsmanager/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": {
@@ -135,19 +135,19 @@
135
135
  },
136
136
  "constructInfo": {
137
137
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
138
- "version": "2.150.0"
138
+ "version": "2.174.0"
139
139
  }
140
140
  }
141
141
  },
142
142
  "constructInfo": {
143
143
  "fqn": "aws-cdk-lib.aws_iam.Policy",
144
- "version": "2.150.0"
144
+ "version": "2.174.0"
145
145
  }
146
146
  }
147
147
  },
148
148
  "constructInfo": {
149
149
  "fqn": "aws-cdk-lib.aws_iam.Role",
150
- "version": "2.150.0"
150
+ "version": "2.174.0"
151
151
  }
152
152
  },
153
153
  "ReplaceDefaultSecurityGroup-security-group": {
@@ -175,13 +175,13 @@
175
175
  },
176
176
  "constructInfo": {
177
177
  "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup",
178
- "version": "2.150.0"
178
+ "version": "2.174.0"
179
179
  }
180
180
  }
181
181
  },
182
182
  "constructInfo": {
183
183
  "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup",
184
- "version": "2.150.0"
184
+ "version": "2.174.0"
185
185
  }
186
186
  },
187
187
  "LambdaFunction": {
@@ -197,7 +197,7 @@
197
197
  "path": "lamsec-deployFunctionWithVpc/test-lambda-secretsmanager/LambdaFunction/Code/Stage",
198
198
  "constructInfo": {
199
199
  "fqn": "aws-cdk-lib.AssetStaging",
200
- "version": "2.150.0"
200
+ "version": "2.174.0"
201
201
  }
202
202
  },
203
203
  "AssetBucket": {
@@ -205,13 +205,13 @@
205
205
  "path": "lamsec-deployFunctionWithVpc/test-lambda-secretsmanager/LambdaFunction/Code/AssetBucket",
206
206
  "constructInfo": {
207
207
  "fqn": "aws-cdk-lib.aws_s3.BucketBase",
208
- "version": "2.150.0"
208
+ "version": "2.174.0"
209
209
  }
210
210
  }
211
211
  },
212
212
  "constructInfo": {
213
213
  "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
214
- "version": "2.150.0"
214
+ "version": "2.174.0"
215
215
  }
216
216
  },
217
217
  "Resource": {
@@ -224,7 +224,7 @@
224
224
  "s3Bucket": {
225
225
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
226
226
  },
227
- "s3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
227
+ "s3Key": "a0c6248ec595d3ceec1177aa5ac5b494fdf4c66f1b88aa48086befd44f193d8c.zip"
228
228
  },
229
229
  "environment": {
230
230
  "variables": {
@@ -267,13 +267,13 @@
267
267
  },
268
268
  "constructInfo": {
269
269
  "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
270
- "version": "2.150.0"
270
+ "version": "2.174.0"
271
271
  }
272
272
  }
273
273
  },
274
274
  "constructInfo": {
275
275
  "fqn": "aws-cdk-lib.aws_lambda.Function",
276
- "version": "2.150.0"
276
+ "version": "2.174.0"
277
277
  }
278
278
  },
279
279
  "secret": {
@@ -291,19 +291,19 @@
291
291
  },
292
292
  "constructInfo": {
293
293
  "fqn": "aws-cdk-lib.aws_secretsmanager.CfnSecret",
294
- "version": "2.150.0"
294
+ "version": "2.174.0"
295
295
  }
296
296
  }
297
297
  },
298
298
  "constructInfo": {
299
299
  "fqn": "aws-cdk-lib.aws_secretsmanager.Secret",
300
- "version": "2.150.0"
300
+ "version": "2.174.0"
301
301
  }
302
302
  }
303
303
  },
304
304
  "constructInfo": {
305
305
  "fqn": "@aws-solutions-constructs/aws-lambda-secretsmanager.LambdaToSecretsmanager",
306
- "version": "2.63.0"
306
+ "version": "2.76.0"
307
307
  }
308
308
  },
309
309
  "Vpc": {
@@ -330,7 +330,7 @@
330
330
  },
331
331
  "constructInfo": {
332
332
  "fqn": "aws-cdk-lib.aws_ec2.CfnVPC",
333
- "version": "2.150.0"
333
+ "version": "2.174.0"
334
334
  }
335
335
  },
336
336
  "isolatedSubnet1": {
@@ -374,7 +374,7 @@
374
374
  },
375
375
  "constructInfo": {
376
376
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
377
- "version": "2.150.0"
377
+ "version": "2.174.0"
378
378
  }
379
379
  },
380
380
  "Acl": {
@@ -382,7 +382,7 @@
382
382
  "path": "lamsec-deployFunctionWithVpc/Vpc/isolatedSubnet1/Acl",
383
383
  "constructInfo": {
384
384
  "fqn": "aws-cdk-lib.Resource",
385
- "version": "2.150.0"
385
+ "version": "2.174.0"
386
386
  }
387
387
  },
388
388
  "RouteTable": {
@@ -404,7 +404,7 @@
404
404
  },
405
405
  "constructInfo": {
406
406
  "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
407
- "version": "2.150.0"
407
+ "version": "2.174.0"
408
408
  }
409
409
  },
410
410
  "RouteTableAssociation": {
@@ -423,13 +423,13 @@
423
423
  },
424
424
  "constructInfo": {
425
425
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
426
- "version": "2.150.0"
426
+ "version": "2.174.0"
427
427
  }
428
428
  }
429
429
  },
430
430
  "constructInfo": {
431
431
  "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
432
- "version": "2.150.0"
432
+ "version": "2.174.0"
433
433
  }
434
434
  },
435
435
  "isolatedSubnet2": {
@@ -473,7 +473,7 @@
473
473
  },
474
474
  "constructInfo": {
475
475
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet",
476
- "version": "2.150.0"
476
+ "version": "2.174.0"
477
477
  }
478
478
  },
479
479
  "Acl": {
@@ -481,7 +481,7 @@
481
481
  "path": "lamsec-deployFunctionWithVpc/Vpc/isolatedSubnet2/Acl",
482
482
  "constructInfo": {
483
483
  "fqn": "aws-cdk-lib.Resource",
484
- "version": "2.150.0"
484
+ "version": "2.174.0"
485
485
  }
486
486
  },
487
487
  "RouteTable": {
@@ -503,7 +503,7 @@
503
503
  },
504
504
  "constructInfo": {
505
505
  "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable",
506
- "version": "2.150.0"
506
+ "version": "2.174.0"
507
507
  }
508
508
  },
509
509
  "RouteTableAssociation": {
@@ -522,13 +522,13 @@
522
522
  },
523
523
  "constructInfo": {
524
524
  "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation",
525
- "version": "2.150.0"
525
+ "version": "2.174.0"
526
526
  }
527
527
  }
528
528
  },
529
529
  "constructInfo": {
530
530
  "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet",
531
- "version": "2.150.0"
531
+ "version": "2.174.0"
532
532
  }
533
533
  },
534
534
  "RestrictDefaultSecurityGroupCustomResource": {
@@ -540,13 +540,13 @@
540
540
  "path": "lamsec-deployFunctionWithVpc/Vpc/RestrictDefaultSecurityGroupCustomResource/Default",
541
541
  "constructInfo": {
542
542
  "fqn": "aws-cdk-lib.CfnResource",
543
- "version": "2.150.0"
543
+ "version": "2.174.0"
544
544
  }
545
545
  }
546
546
  },
547
547
  "constructInfo": {
548
548
  "fqn": "aws-cdk-lib.CustomResource",
549
- "version": "2.150.0"
549
+ "version": "2.174.0"
550
550
  }
551
551
  },
552
552
  "FlowLog": {
@@ -562,7 +562,7 @@
562
562
  "path": "lamsec-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/ImportIAMRole",
563
563
  "constructInfo": {
564
564
  "fqn": "aws-cdk-lib.Resource",
565
- "version": "2.150.0"
565
+ "version": "2.174.0"
566
566
  }
567
567
  },
568
568
  "Resource": {
@@ -593,7 +593,7 @@
593
593
  },
594
594
  "constructInfo": {
595
595
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
596
- "version": "2.150.0"
596
+ "version": "2.174.0"
597
597
  }
598
598
  },
599
599
  "DefaultPolicy": {
@@ -645,19 +645,19 @@
645
645
  },
646
646
  "constructInfo": {
647
647
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
648
- "version": "2.150.0"
648
+ "version": "2.174.0"
649
649
  }
650
650
  }
651
651
  },
652
652
  "constructInfo": {
653
653
  "fqn": "aws-cdk-lib.aws_iam.Policy",
654
- "version": "2.150.0"
654
+ "version": "2.174.0"
655
655
  }
656
656
  }
657
657
  },
658
658
  "constructInfo": {
659
659
  "fqn": "aws-cdk-lib.aws_iam.Role",
660
- "version": "2.150.0"
660
+ "version": "2.174.0"
661
661
  }
662
662
  },
663
663
  "LogGroup": {
@@ -681,13 +681,13 @@
681
681
  },
682
682
  "constructInfo": {
683
683
  "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
684
- "version": "2.150.0"
684
+ "version": "2.174.0"
685
685
  }
686
686
  }
687
687
  },
688
688
  "constructInfo": {
689
689
  "fqn": "aws-cdk-lib.aws_logs.LogGroup",
690
- "version": "2.150.0"
690
+ "version": "2.174.0"
691
691
  }
692
692
  },
693
693
  "FlowLog": {
@@ -721,13 +721,13 @@
721
721
  },
722
722
  "constructInfo": {
723
723
  "fqn": "aws-cdk-lib.aws_ec2.CfnFlowLog",
724
- "version": "2.150.0"
724
+ "version": "2.174.0"
725
725
  }
726
726
  }
727
727
  },
728
728
  "constructInfo": {
729
729
  "fqn": "aws-cdk-lib.aws_ec2.FlowLog",
730
- "version": "2.150.0"
730
+ "version": "2.174.0"
731
731
  }
732
732
  },
733
733
  "SECRETS_MANAGER": {
@@ -740,6 +740,12 @@
740
740
  "attributes": {
741
741
  "aws:cdk:cloudformation:type": "AWS::EC2::VPCEndpoint",
742
742
  "aws:cdk:cloudformation:props": {
743
+ "tags": [
744
+ {
745
+ "key": "Name",
746
+ "value": "lamsec-deployFunctionWithVpc/Vpc"
747
+ }
748
+ ],
743
749
  "privateDnsEnabled": true,
744
750
  "securityGroupIds": [
745
751
  {
@@ -777,19 +783,19 @@
777
783
  },
778
784
  "constructInfo": {
779
785
  "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpoint",
780
- "version": "2.150.0"
786
+ "version": "2.174.0"
781
787
  }
782
788
  }
783
789
  },
784
790
  "constructInfo": {
785
791
  "fqn": "aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint",
786
- "version": "2.150.0"
792
+ "version": "2.174.0"
787
793
  }
788
794
  }
789
795
  },
790
796
  "constructInfo": {
791
797
  "fqn": "aws-cdk-lib.aws_ec2.Vpc",
792
- "version": "2.150.0"
798
+ "version": "2.174.0"
793
799
  }
794
800
  },
795
801
  "LatestNodeRuntimeMap": {
@@ -797,7 +803,7 @@
797
803
  "path": "lamsec-deployFunctionWithVpc/LatestNodeRuntimeMap",
798
804
  "constructInfo": {
799
805
  "fqn": "aws-cdk-lib.CfnMapping",
800
- "version": "2.150.0"
806
+ "version": "2.174.0"
801
807
  }
802
808
  },
803
809
  "Custom::VpcRestrictDefaultSGCustomResourceProvider": {
@@ -809,7 +815,7 @@
809
815
  "path": "lamsec-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging",
810
816
  "constructInfo": {
811
817
  "fqn": "aws-cdk-lib.AssetStaging",
812
- "version": "2.150.0"
818
+ "version": "2.174.0"
813
819
  }
814
820
  },
815
821
  "Role": {
@@ -817,7 +823,7 @@
817
823
  "path": "lamsec-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role",
818
824
  "constructInfo": {
819
825
  "fqn": "aws-cdk-lib.CfnResource",
820
- "version": "2.150.0"
826
+ "version": "2.174.0"
821
827
  }
822
828
  },
823
829
  "Handler": {
@@ -825,13 +831,13 @@
825
831
  "path": "lamsec-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler",
826
832
  "constructInfo": {
827
833
  "fqn": "aws-cdk-lib.CfnResource",
828
- "version": "2.150.0"
834
+ "version": "2.174.0"
829
835
  }
830
836
  }
831
837
  },
832
838
  "constructInfo": {
833
839
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
834
- "version": "2.150.0"
840
+ "version": "2.174.0"
835
841
  }
836
842
  },
837
843
  "lamsec-deployFunctionWithVpc-SECRETS_MANAGER-security-group": {
@@ -887,13 +893,13 @@
887
893
  },
888
894
  "constructInfo": {
889
895
  "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup",
890
- "version": "2.150.0"
896
+ "version": "2.174.0"
891
897
  }
892
898
  }
893
899
  },
894
900
  "constructInfo": {
895
901
  "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup",
896
- "version": "2.150.0"
902
+ "version": "2.174.0"
897
903
  }
898
904
  },
899
905
  "Integ": {
@@ -909,7 +915,7 @@
909
915
  "path": "lamsec-deployFunctionWithVpc/Integ/DefaultTest/Default",
910
916
  "constructInfo": {
911
917
  "fqn": "constructs.Construct",
912
- "version": "10.3.0"
918
+ "version": "10.4.2"
913
919
  }
914
920
  },
915
921
  "DeployAssert": {
@@ -921,7 +927,7 @@
921
927
  "path": "lamsec-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/BootstrapVersion",
922
928
  "constructInfo": {
923
929
  "fqn": "aws-cdk-lib.CfnParameter",
924
- "version": "2.150.0"
930
+ "version": "2.174.0"
925
931
  }
926
932
  },
927
933
  "CheckBootstrapVersion": {
@@ -929,25 +935,25 @@
929
935
  "path": "lamsec-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
930
936
  "constructInfo": {
931
937
  "fqn": "aws-cdk-lib.CfnRule",
932
- "version": "2.150.0"
938
+ "version": "2.174.0"
933
939
  }
934
940
  }
935
941
  },
936
942
  "constructInfo": {
937
943
  "fqn": "aws-cdk-lib.Stack",
938
- "version": "2.150.0"
944
+ "version": "2.174.0"
939
945
  }
940
946
  }
941
947
  },
942
948
  "constructInfo": {
943
949
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
944
- "version": "2.150.0-alpha.0"
950
+ "version": "2.174.0-alpha.0"
945
951
  }
946
952
  }
947
953
  },
948
954
  "constructInfo": {
949
955
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
950
- "version": "2.150.0-alpha.0"
956
+ "version": "2.174.0-alpha.0"
951
957
  }
952
958
  },
953
959
  "BootstrapVersion": {
@@ -955,7 +961,7 @@
955
961
  "path": "lamsec-deployFunctionWithVpc/BootstrapVersion",
956
962
  "constructInfo": {
957
963
  "fqn": "aws-cdk-lib.CfnParameter",
958
- "version": "2.150.0"
964
+ "version": "2.174.0"
959
965
  }
960
966
  },
961
967
  "CheckBootstrapVersion": {
@@ -963,13 +969,13 @@
963
969
  "path": "lamsec-deployFunctionWithVpc/CheckBootstrapVersion",
964
970
  "constructInfo": {
965
971
  "fqn": "aws-cdk-lib.CfnRule",
966
- "version": "2.150.0"
972
+ "version": "2.174.0"
967
973
  }
968
974
  }
969
975
  },
970
976
  "constructInfo": {
971
977
  "fqn": "aws-cdk-lib.Stack",
972
- "version": "2.150.0"
978
+ "version": "2.174.0"
973
979
  }
974
980
  },
975
981
  "Tree": {
@@ -977,13 +983,13 @@
977
983
  "path": "Tree",
978
984
  "constructInfo": {
979
985
  "fqn": "constructs.Construct",
980
- "version": "10.3.0"
986
+ "version": "10.4.2"
981
987
  }
982
988
  }
983
989
  },
984
990
  "constructInfo": {
985
991
  "fqn": "aws-cdk-lib.App",
986
- "version": "2.150.0"
992
+ "version": "2.174.0"
987
993
  }
988
994
  }
989
995
  }
@@ -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))}