@aws-solutions-constructs/aws-lambda-elasticachememcached 2.79.1 → 2.80.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 (39) hide show
  1. package/.jsii +4 -43
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.lammem-existingResources.js.snapshot/asset.69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36/index.js +21 -0
  5. package/test/integ.lammem-existingResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  6. package/test/integ.lammem-existingResources.js.snapshot/cdk.out +1 -1
  7. package/test/integ.lammem-existingResources.js.snapshot/integ.json +1 -1
  8. package/test/integ.lammem-existingResources.js.snapshot/lammem-existingResources.assets.json +9 -9
  9. package/test/integ.lammem-existingResources.js.snapshot/lammem-existingResources.template.json +6 -6
  10. package/test/integ.lammem-existingResources.js.snapshot/lammemexistingResourcesIntegDefaultTestDeployAssertD269DF67.assets.json +1 -1
  11. package/test/integ.lammem-existingResources.js.snapshot/manifest.json +256 -2
  12. package/test/integ.lammem-existingResources.js.snapshot/tree.json +231 -58
  13. package/test/integ.lammem-newResources.js.snapshot/asset.69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36/index.js +21 -0
  14. package/test/integ.lammem-newResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  15. package/test/integ.lammem-newResources.js.snapshot/cdk.out +1 -1
  16. package/test/integ.lammem-newResources.js.snapshot/integ.json +1 -1
  17. package/test/integ.lammem-newResources.js.snapshot/lammem-newResources.assets.json +9 -9
  18. package/test/integ.lammem-newResources.js.snapshot/lammem-newResources.template.json +6 -6
  19. package/test/integ.lammem-newResources.js.snapshot/lammemnewResourcesIntegDefaultTestDeployAssert30C906BF.assets.json +1 -1
  20. package/test/integ.lammem-newResources.js.snapshot/manifest.json +331 -2
  21. package/test/integ.lammem-newResources.js.snapshot/tree.json +276 -58
  22. package/test/integ.lammem-withClientProps.js.snapshot/asset.69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36/index.js +21 -0
  23. package/test/integ.lammem-withClientProps.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  24. package/test/integ.lammem-withClientProps.js.snapshot/cdk.out +1 -1
  25. package/test/integ.lammem-withClientProps.js.snapshot/integ.json +1 -1
  26. package/test/integ.lammem-withClientProps.js.snapshot/lammem-withClientProps.assets.json +9 -9
  27. package/test/integ.lammem-withClientProps.js.snapshot/lammem-withClientProps.template.json +6 -6
  28. package/test/integ.lammem-withClientProps.js.snapshot/lammemwithClientPropsIntegDefaultTestDeployAssertDB086BD1.assets.json +1 -1
  29. package/test/integ.lammem-withClientProps.js.snapshot/manifest.json +332 -2
  30. package/test/integ.lammem-withClientProps.js.snapshot/tree.json +277 -58
  31. package/test/integ.lammem-existingResources.js.snapshot/asset.c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a/index.js +0 -8
  32. package/test/integ.lammem-existingResources.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  33. package/test/integ.lammem-newResources.js.snapshot/asset.c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a/index.js +0 -8
  34. package/test/integ.lammem-newResources.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  35. package/test/integ.lammem-withClientProps.js.snapshot/asset.c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a/index.js +0 -8
  36. package/test/integ.lammem-withClientProps.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  37. /package/test/integ.lammem-existingResources.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  38. /package/test/integ.lammem-newResources.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  39. /package/test/integ.lammem-withClientProps.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
package/.jsii CHANGED
@@ -8,8 +8,8 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-solutions-constructs/core": "2.79.1",
12
- "aws-cdk-lib": "^2.177.0",
11
+ "@aws-solutions-constructs/core": "2.80.0",
12
+ "aws-cdk-lib": "^2.179.0",
13
13
  "constructs": "^10.0.0"
14
14
  },
15
15
  "dependencyClosure": {
@@ -39,32 +39,6 @@
39
39
  }
40
40
  }
41
41
  },
42
- "@aws-cdk/asset-kubectl-v20": {
43
- "targets": {
44
- "dotnet": {
45
- "namespace": "Amazon.CDK.Asset.KubectlV20",
46
- "packageId": "Amazon.CDK.Asset.KubectlV20"
47
- },
48
- "go": {
49
- "moduleName": "github.com/cdklabs/awscdk-asset-kubectl-go",
50
- "packageName": "kubectlv20"
51
- },
52
- "java": {
53
- "maven": {
54
- "artifactId": "cdk-asset-kubectl-v20",
55
- "groupId": "software.amazon.awscdk"
56
- },
57
- "package": "software.amazon.awscdk.cdk.asset.kubectl.v20"
58
- },
59
- "js": {
60
- "npm": "@aws-cdk/asset-kubectl-v20"
61
- },
62
- "python": {
63
- "distName": "aws-cdk.asset-kubectl-v20",
64
- "module": "aws_cdk.asset_kubectl_v20"
65
- }
66
- }
67
- },
68
42
  "@aws-cdk/asset-node-proxy-agent-v6": {
69
43
  "targets": {
70
44
  "dotnet": {
@@ -3841,19 +3815,6 @@
3841
3815
  }
3842
3816
  }
3843
3817
  },
3844
- "aws-cdk-lib.lambda_layer_kubectl": {
3845
- "targets": {
3846
- "dotnet": {
3847
- "namespace": "Amazon.CDK.LambdaLayer.Kubectl"
3848
- },
3849
- "java": {
3850
- "package": "software.amazon.awscdk.lambdalayer.kubectl"
3851
- },
3852
- "python": {
3853
- "module": "aws_cdk.lambda_layer_kubectl"
3854
- }
3855
- }
3856
- },
3857
3818
  "aws-cdk-lib.lambda_layer_node_proxy_agent": {
3858
3819
  "targets": {
3859
3820
  "dotnet": {
@@ -4244,6 +4205,6 @@
4244
4205
  "symbolId": "lib/index:LambdaToElasticachememcachedProps"
4245
4206
  }
4246
4207
  },
4247
- "version": "2.79.1",
4248
- "fingerprint": "AgNF5cFIyW25T/j7EjjdoZiwFLb/yf9LXJj3jLvWn+E="
4208
+ "version": "2.80.0",
4209
+ "fingerprint": "xXX2ZC/bhRuOj0ueJNO5FnwtDUuCTv2QtRa6l9UMZj8="
4249
4210
  }
package/lib/index.js CHANGED
@@ -60,7 +60,7 @@ class LambdaToElasticachememcached extends constructs_1.Construct {
60
60
  }
61
61
  exports.LambdaToElasticachememcached = LambdaToElasticachememcached;
62
62
  _a = JSII_RTTI_SYMBOL_1;
63
- LambdaToElasticachememcached[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-elasticachememcached.LambdaToElasticachememcached", version: "2.79.1" };
63
+ LambdaToElasticachememcached[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-elasticachememcached.LambdaToElasticachememcached", version: "2.80.0" };
64
64
  function AddLambdaEnvironmentVariable(targetFunction, value, defaultName, clientName) {
65
65
  const variableName = clientName || defaultName;
66
66
  targetFunction.addEnvironment(variableName, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-lambda-elasticachememcached",
3
- "version": "2.79.1",
3
+ "version": "2.80.0",
4
4
  "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon Elasticache memcached cache.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -54,14 +54,14 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@aws-solutions-constructs/core": "2.79.1",
57
+ "@aws-solutions-constructs/core": "2.80.0",
58
58
  "constructs": "^10.0.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-cdk/integ-tests-alpha": "2.177.0-alpha.0",
61
+ "@aws-cdk/integ-tests-alpha": "2.179.0-alpha.0",
62
62
  "@types/node": "^10.3.0",
63
63
  "constructs": "^10.0.0",
64
- "aws-cdk-lib": "2.177.0"
64
+ "aws-cdk-lib": "2.179.0"
65
65
  },
66
66
  "jest": {
67
67
  "moduleFileExtensions": [
@@ -78,9 +78,9 @@
78
78
  ]
79
79
  },
80
80
  "peerDependencies": {
81
- "@aws-solutions-constructs/core": "2.79.1",
81
+ "@aws-solutions-constructs/core": "2.80.0",
82
82
  "constructs": "^10.0.0",
83
- "aws-cdk-lib": "^2.177.0"
83
+ "aws-cdk-lib": "^2.179.0"
84
84
  },
85
85
  "keywords": [
86
86
  "aws",
@@ -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, AWS Solutions Constructs! You've hit ${event.path}`,
20
+ };
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.external=void 0,exports.handler=handler,exports.withRetries=withRetries;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)}}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}}}async function sleep(ms){return new Promise(ok=>setTimeout(ok,ms))}
@@ -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
  "lammem-existingResources/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
- "c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a": {
17
+ "69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36": {
18
18
  "source": {
19
- "path": "asset.c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a",
19
+ "path": "asset.69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36",
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": "c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a.zip",
25
+ "objectKey": "69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36.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
- "d6b2e048facca98943f378f7dc503de2128fc6f2071971ae37604bed75677d3a": {
30
+ "a56f00b67670aa46f0d9f1b59b30cb135078ee0534cea40ebb10e94b45d220f5": {
31
31
  "source": {
32
32
  "path": "lammem-existingResources.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": "d6b2e048facca98943f378f7dc503de2128fc6f2071971ae37604bed75677d3a.json",
38
+ "objectKey": "a56f00b67670aa46f0d9f1b59b30cb135078ee0534cea40ebb10e94b45d220f5.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -346,7 +346,7 @@
346
346
  "S3Bucket": {
347
347
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
348
348
  },
349
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
349
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
350
350
  },
351
351
  "Timeout": 900,
352
352
  "MemorySize": 128,
@@ -474,7 +474,7 @@
474
474
  "S3Bucket": {
475
475
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
476
476
  },
477
- "S3Key": "c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a.zip"
477
+ "S3Key": "69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36.zip"
478
478
  },
479
479
  "Environment": {
480
480
  "Variables": {
@@ -744,10 +744,10 @@
744
744
  "value": "nodejs20.x"
745
745
  },
746
746
  "cn-north-1": {
747
- "value": "nodejs18.x"
747
+ "value": "nodejs20.x"
748
748
  },
749
749
  "cn-northwest-1": {
750
- "value": "nodejs18.x"
750
+ "value": "nodejs20.x"
751
751
  },
752
752
  "eu-central-1": {
753
753
  "value": "nodejs20.x"
@@ -798,10 +798,10 @@
798
798
  "value": "nodejs20.x"
799
799
  },
800
800
  "us-gov-east-1": {
801
- "value": "nodejs18.x"
801
+ "value": "nodejs20.x"
802
802
  },
803
803
  "us-gov-west-1": {
804
- "value": "nodejs18.x"
804
+ "value": "nodejs20.x"
805
805
  },
806
806
  "us-iso-east-1": {
807
807
  "value": "nodejs18.x"
@@ -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": "40.0.0",
3
3
  "artifacts": {
4
4
  "lammemexistingResourcesIntegDefaultTestDeployAssertD269DF67.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}/d6b2e048facca98943f378f7dc503de2128fc6f2071971ae37604bed75677d3a.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a56f00b67670aa46f0d9f1b59b30cb135078ee0534cea40ebb10e94b45d220f5.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,12 +82,54 @@
82
82
  "lammem-existingResources.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/lammem-existingResources/Vpc": [
86
+ {
87
+ "type": "aws:cdk:analytics:construct",
88
+ "data": {
89
+ "natGateways": "*",
90
+ "subnetConfiguration": [
91
+ {
92
+ "cidrMask": "*",
93
+ "name": "*",
94
+ "subnetType": "Isolated"
95
+ }
96
+ ],
97
+ "enableDnsHostnames": true,
98
+ "enableDnsSupport": true,
99
+ "ipAddresses": "*"
100
+ }
101
+ }
102
+ ],
85
103
  "/lammem-existingResources/Vpc/Resource": [
86
104
  {
87
105
  "type": "aws:cdk:logicalId",
88
106
  "data": "Vpc8378EB38"
89
107
  }
90
108
  ],
109
+ "/lammem-existingResources/Vpc/isolatedSubnet1": [
110
+ {
111
+ "type": "aws:cdk:analytics:construct",
112
+ "data": {
113
+ "availabilityZone": "*",
114
+ "vpcId": "*",
115
+ "cidrBlock": "*",
116
+ "mapPublicIpOnLaunch": false,
117
+ "ipv6CidrBlock": "*",
118
+ "assignIpv6AddressOnCreation": "*"
119
+ }
120
+ },
121
+ {
122
+ "type": "aws:cdk:analytics:construct",
123
+ "data": {
124
+ "availabilityZone": "*",
125
+ "vpcId": "*",
126
+ "cidrBlock": "*",
127
+ "mapPublicIpOnLaunch": false,
128
+ "ipv6CidrBlock": "*",
129
+ "assignIpv6AddressOnCreation": "*"
130
+ }
131
+ }
132
+ ],
91
133
  "/lammem-existingResources/Vpc/isolatedSubnet1/Subnet": [
92
134
  {
93
135
  "type": "aws:cdk:logicalId",
@@ -106,6 +148,30 @@
106
148
  "data": "VpcisolatedSubnet1RouteTableAssociationD259E31A"
107
149
  }
108
150
  ],
151
+ "/lammem-existingResources/Vpc/isolatedSubnet2": [
152
+ {
153
+ "type": "aws:cdk:analytics:construct",
154
+ "data": {
155
+ "availabilityZone": "*",
156
+ "vpcId": "*",
157
+ "cidrBlock": "*",
158
+ "mapPublicIpOnLaunch": false,
159
+ "ipv6CidrBlock": "*",
160
+ "assignIpv6AddressOnCreation": "*"
161
+ }
162
+ },
163
+ {
164
+ "type": "aws:cdk:analytics:construct",
165
+ "data": {
166
+ "availabilityZone": "*",
167
+ "vpcId": "*",
168
+ "cidrBlock": "*",
169
+ "mapPublicIpOnLaunch": false,
170
+ "ipv6CidrBlock": "*",
171
+ "assignIpv6AddressOnCreation": "*"
172
+ }
173
+ }
174
+ ],
109
175
  "/lammem-existingResources/Vpc/isolatedSubnet2/Subnet": [
110
176
  {
111
177
  "type": "aws:cdk:logicalId",
@@ -124,24 +190,132 @@
124
190
  "data": "VpcisolatedSubnet2RouteTableAssociation25A4716F"
125
191
  }
126
192
  ],
193
+ "/lammem-existingResources/Vpc/RestrictDefaultSecurityGroupCustomResource": [
194
+ {
195
+ "type": "aws:cdk:analytics:construct",
196
+ "data": "*"
197
+ }
198
+ ],
127
199
  "/lammem-existingResources/Vpc/RestrictDefaultSecurityGroupCustomResource/Default": [
128
200
  {
129
201
  "type": "aws:cdk:logicalId",
130
202
  "data": "VpcRestrictDefaultSecurityGroupCustomResourceC73DA2BE"
131
203
  }
132
204
  ],
205
+ "/lammem-existingResources/Vpc/FlowLog": [
206
+ {
207
+ "type": "aws:cdk:analytics:construct",
208
+ "data": {
209
+ "resourceType": "*"
210
+ }
211
+ }
212
+ ],
213
+ "/lammem-existingResources/Vpc/FlowLog/IAMRole": [
214
+ {
215
+ "type": "aws:cdk:analytics:construct",
216
+ "data": {
217
+ "roleName": "*",
218
+ "assumedBy": {
219
+ "principalAccount": "*",
220
+ "assumeRoleAction": "*"
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "type": "aws:cdk:analytics:method",
226
+ "data": {
227
+ "addToPrincipalPolicy": [
228
+ {}
229
+ ]
230
+ }
231
+ },
232
+ {
233
+ "type": "aws:cdk:analytics:method",
234
+ "data": {
235
+ "attachInlinePolicy": [
236
+ "*"
237
+ ]
238
+ }
239
+ },
240
+ {
241
+ "type": "aws:cdk:analytics:method",
242
+ "data": {
243
+ "attachInlinePolicy": [
244
+ "*"
245
+ ]
246
+ }
247
+ },
248
+ {
249
+ "type": "aws:cdk:analytics:method",
250
+ "data": {
251
+ "addToPrincipalPolicy": [
252
+ {}
253
+ ]
254
+ }
255
+ }
256
+ ],
257
+ "/lammem-existingResources/Vpc/FlowLog/IAMRole/ImportIAMRole": [
258
+ {
259
+ "type": "aws:cdk:analytics:construct",
260
+ "data": "*"
261
+ }
262
+ ],
133
263
  "/lammem-existingResources/Vpc/FlowLog/IAMRole/Resource": [
134
264
  {
135
265
  "type": "aws:cdk:logicalId",
136
266
  "data": "VpcFlowLogIAMRole6A475D41"
137
267
  }
138
268
  ],
269
+ "/lammem-existingResources/Vpc/FlowLog/IAMRole/DefaultPolicy": [
270
+ {
271
+ "type": "aws:cdk:analytics:construct",
272
+ "data": "*"
273
+ },
274
+ {
275
+ "type": "aws:cdk:analytics:method",
276
+ "data": {
277
+ "attachToRole": [
278
+ "*"
279
+ ]
280
+ }
281
+ },
282
+ {
283
+ "type": "aws:cdk:analytics:method",
284
+ "data": {
285
+ "attachToRole": [
286
+ "*"
287
+ ]
288
+ }
289
+ },
290
+ {
291
+ "type": "aws:cdk:analytics:method",
292
+ "data": {
293
+ "addStatements": [
294
+ {}
295
+ ]
296
+ }
297
+ },
298
+ {
299
+ "type": "aws:cdk:analytics:method",
300
+ "data": {
301
+ "addStatements": [
302
+ {}
303
+ ]
304
+ }
305
+ }
306
+ ],
139
307
  "/lammem-existingResources/Vpc/FlowLog/IAMRole/DefaultPolicy/Resource": [
140
308
  {
141
309
  "type": "aws:cdk:logicalId",
142
310
  "data": "VpcFlowLogIAMRoleDefaultPolicy406FB995"
143
311
  }
144
312
  ],
313
+ "/lammem-existingResources/Vpc/FlowLog/LogGroup": [
314
+ {
315
+ "type": "aws:cdk:analytics:construct",
316
+ "data": "*"
317
+ }
318
+ ],
145
319
  "/lammem-existingResources/Vpc/FlowLog/LogGroup/Resource": [
146
320
  {
147
321
  "type": "aws:cdk:logicalId",
@@ -160,6 +334,12 @@
160
334
  "data": "LatestNodeRuntimeMap"
161
335
  }
162
336
  ],
337
+ "/lammem-existingResources/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
338
+ {
339
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
340
+ "data": true
341
+ }
342
+ ],
163
343
  "/lammem-existingResources/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
164
344
  {
165
345
  "type": "aws:cdk:logicalId",
@@ -172,12 +352,68 @@
172
352
  "data": "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E"
173
353
  }
174
354
  ],
355
+ "/lammem-existingResources/test-sg-security-group": [
356
+ {
357
+ "type": "aws:cdk:analytics:construct",
358
+ "data": {
359
+ "vpc": "*"
360
+ }
361
+ }
362
+ ],
175
363
  "/lammem-existingResources/test-sg-security-group/Resource": [
176
364
  {
177
365
  "type": "aws:cdk:logicalId",
178
366
  "data": "testsgsecuritygroup89DCF621"
179
367
  }
180
368
  ],
369
+ "/lammem-existingResources/test-function": [
370
+ {
371
+ "type": "aws:cdk:analytics:construct",
372
+ "data": {
373
+ "runtime": "*",
374
+ "handler": "*",
375
+ "code": "*",
376
+ "vpc": "*",
377
+ "securityGroups": [
378
+ "*"
379
+ ]
380
+ }
381
+ },
382
+ {
383
+ "type": "aws:cdk:analytics:method",
384
+ "data": {
385
+ "addEnvironment": [
386
+ "*",
387
+ "*"
388
+ ]
389
+ }
390
+ }
391
+ ],
392
+ "/lammem-existingResources/test-function/ServiceRole": [
393
+ {
394
+ "type": "aws:cdk:analytics:construct",
395
+ "data": {
396
+ "assumedBy": {
397
+ "principalAccount": "*",
398
+ "assumeRoleAction": "*"
399
+ },
400
+ "managedPolicies": [
401
+ {
402
+ "managedPolicyArn": "*"
403
+ },
404
+ {
405
+ "managedPolicyArn": "*"
406
+ }
407
+ ]
408
+ }
409
+ }
410
+ ],
411
+ "/lammem-existingResources/test-function/ServiceRole/ImportServiceRole": [
412
+ {
413
+ "type": "aws:cdk:analytics:construct",
414
+ "data": "*"
415
+ }
416
+ ],
181
417
  "/lammem-existingResources/test-function/ServiceRole/Resource": [
182
418
  {
183
419
  "type": "aws:cdk:logicalId",
@@ -196,6 +432,15 @@
196
432
  "data": "ecsubnetgrouptestcache"
197
433
  }
198
434
  ],
435
+ "/lammem-existingResources/test-cache-cachesg": [
436
+ {
437
+ "type": "aws:cdk:analytics:construct",
438
+ "data": {
439
+ "vpc": "*",
440
+ "allowAllOutbound": true
441
+ }
442
+ }
443
+ ],
199
444
  "/lammem-existingResources/test-cache-cachesg/Resource": [
200
445
  {
201
446
  "type": "aws:cdk:logicalId",
@@ -208,6 +453,15 @@
208
453
  "data": "testcachecluster"
209
454
  }
210
455
  ],
456
+ "/lammem-existingResources/lammem-existingResources/lammem-existingResources-cachesg": [
457
+ {
458
+ "type": "aws:cdk:analytics:construct",
459
+ "data": {
460
+ "vpc": "*",
461
+ "allowAllOutbound": true
462
+ }
463
+ }
464
+ ],
211
465
  "/lammem-existingResources/lammem-existingResources/lammem-existingResources-cachesg/Resource": [
212
466
  {
213
467
  "type": "aws:cdk:logicalId",