@aws-solutions-constructs/aws-lambda-elasticachememcached 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 (39) hide show
  1. package/.jsii +43 -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 +35 -9
  19. package/test/integ.lammem-newResources.js.snapshot/lammemnewResourcesIntegDefaultTestDeployAssert30C906BF.assets.json +1 -1
  20. package/test/integ.lammem-newResources.js.snapshot/manifest.json +371 -3
  21. package/test/integ.lammem-newResources.js.snapshot/tree.json +1 -974
  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 +35 -9
  28. package/test/integ.lammem-withClientProps.js.snapshot/lammemwithClientPropsIntegDefaultTestDeployAssertDB086BD1.assets.json +1 -1
  29. package/test/integ.lammem-withClientProps.js.snapshot/manifest.json +372 -3
  30. package/test/integ.lammem-withClientProps.js.snapshot/tree.json +1 -974
  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
@@ -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":"40.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "testCases": {
4
4
  "lammem-withClientProps/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,33 +1,33 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.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
- "3e7674dcfa65f206ee5bc0bba8e5a4857449f0283a20b692f6795484f44f49b4": {
30
+ "fb9961126c1a0ec1aa16292506e8e4417e98e8481fddc054f8bbb2f6c3c73b8d": {
31
31
  "source": {
32
32
  "path": "lammem-withClientProps.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": "3e7674dcfa65f206ee5bc0bba8e5a4857449f0283a20b692f6795484f44f49b4.json",
38
+ "objectKey": "fb9961126c1a0ec1aa16292506e8e4417e98e8481fddc054f8bbb2f6c3c73b8d.json",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
@@ -166,9 +166,7 @@
166
166
  "ec2:CreateNetworkInterface",
167
167
  "ec2:DeleteNetworkInterface",
168
168
  "ec2:DescribeNetworkInterfaces",
169
- "ec2:UnassignPrivateIpAddresses",
170
- "xray:PutTelemetryRecords",
171
- "xray:PutTraceSegments"
169
+ "ec2:UnassignPrivateIpAddresses"
172
170
  ],
173
171
  "Effect": "Allow",
174
172
  "Resource": "*"
@@ -231,7 +229,7 @@
231
229
  "S3Bucket": {
232
230
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
233
231
  },
234
- "S3Key": "c1b23d6af38c04acb744bda25a3dc7f4394daea942c67eaff40911a707a3c37a.zip"
232
+ "S3Key": "69e370dcce5ccdf0f2e726ecb0826d434cccdb06e0814e8b0d907129183e5d36.zip"
235
233
  },
236
234
  "Environment": {
237
235
  "Variables": {
@@ -319,6 +317,34 @@
319
317
  }
320
318
  }
321
319
  },
320
+ "lammemwithClientPropsLambdaFunctioninlinePolicyAddedToExecutionRole0EA653AE3": {
321
+ "Type": "AWS::IAM::Policy",
322
+ "Properties": {
323
+ "PolicyDocument": {
324
+ "Statement": [
325
+ {
326
+ "Action": [
327
+ "xray:PutTelemetryRecords",
328
+ "xray:PutTraceSegments"
329
+ ],
330
+ "Effect": "Allow",
331
+ "Resource": "*"
332
+ }
333
+ ],
334
+ "Version": "2012-10-17"
335
+ },
336
+ "PolicyName": "lammemwithClientPropsLambdaFunctioninlinePolicyAddedToExecutionRole0EA653AE3",
337
+ "Roles": [
338
+ {
339
+ "Ref": "lammemwithClientPropsLambdaFunctionServiceRole4A4D2BF6"
340
+ }
341
+ ]
342
+ },
343
+ "DependsOn": [
344
+ "VpcisolatedSubnet1RouteTableAssociationD259E31A",
345
+ "VpcisolatedSubnet2RouteTableAssociation25A4716F"
346
+ ]
347
+ },
322
348
  "Vpc8378EB38": {
323
349
  "Type": "AWS::EC2::VPC",
324
350
  "Properties": {
@@ -664,7 +690,7 @@
664
690
  "S3Bucket": {
665
691
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
666
692
  },
667
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
693
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
668
694
  },
669
695
  "Timeout": 900,
670
696
  "MemorySize": 128,
@@ -757,10 +783,10 @@
757
783
  "value": "nodejs20.x"
758
784
  },
759
785
  "cn-north-1": {
760
- "value": "nodejs18.x"
786
+ "value": "nodejs20.x"
761
787
  },
762
788
  "cn-northwest-1": {
763
- "value": "nodejs18.x"
789
+ "value": "nodejs20.x"
764
790
  },
765
791
  "eu-central-1": {
766
792
  "value": "nodejs20.x"
@@ -811,10 +837,10 @@
811
837
  "value": "nodejs20.x"
812
838
  },
813
839
  "us-gov-east-1": {
814
- "value": "nodejs18.x"
840
+ "value": "nodejs20.x"
815
841
  },
816
842
  "us-gov-west-1": {
817
- "value": "nodejs18.x"
843
+ "value": "nodejs20.x"
818
844
  },
819
845
  "us-iso-east-1": {
820
846
  "value": "nodejs18.x"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "42.0.0",
3
3
  "artifacts": {
4
4
  "lammemwithClientPropsIntegDefaultTestDeployAssertDB086BD1.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}/3e7674dcfa65f206ee5bc0bba8e5a4857449f0283a20b692f6795484f44f49b4.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fb9961126c1a0ec1aa16292506e8e4417e98e8481fddc054f8bbb2f6c3c73b8d.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,6 +82,15 @@
82
82
  "lammem-withClientProps.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/lammem-withClientProps/lammem-withClientProps/lammem-withClientProps-cachesg": [
86
+ {
87
+ "type": "aws:cdk:analytics:construct",
88
+ "data": {
89
+ "vpc": "*",
90
+ "allowAllOutbound": true
91
+ }
92
+ }
93
+ ],
85
94
  "/lammem-withClientProps/lammem-withClientProps/lammem-withClientProps-cachesg/Resource": [
86
95
  {
87
96
  "type": "aws:cdk:logicalId",
@@ -106,36 +115,257 @@
106
115
  "data": "lammemwithClientPropslammemwithClientPropscluster6611E8C2"
107
116
  }
108
117
  ],
118
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunctionServiceRole": [
119
+ {
120
+ "type": "aws:cdk:analytics:construct",
121
+ "data": {
122
+ "assumedBy": {
123
+ "principalAccount": "*",
124
+ "assumeRoleAction": "*"
125
+ },
126
+ "inlinePolicies": "*"
127
+ }
128
+ },
129
+ {
130
+ "type": "aws:cdk:analytics:method",
131
+ "data": {
132
+ "addToPolicy": [
133
+ {}
134
+ ]
135
+ }
136
+ },
137
+ {
138
+ "type": "aws:cdk:analytics:method",
139
+ "data": {
140
+ "addToPrincipalPolicy": [
141
+ {}
142
+ ]
143
+ }
144
+ },
145
+ {
146
+ "type": "aws:cdk:analytics:method",
147
+ "data": {
148
+ "attachInlinePolicy": [
149
+ "*"
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "type": "aws:cdk:analytics:method",
155
+ "data": {
156
+ "attachInlinePolicy": [
157
+ "*"
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "type": "aws:cdk:analytics:method",
163
+ "data": {
164
+ "attachInlinePolicy": [
165
+ "*"
166
+ ]
167
+ }
168
+ },
169
+ {
170
+ "type": "aws:cdk:analytics:method",
171
+ "data": {
172
+ "attachInlinePolicy": [
173
+ "*"
174
+ ]
175
+ }
176
+ }
177
+ ],
178
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
179
+ {
180
+ "type": "aws:cdk:analytics:construct",
181
+ "data": "*"
182
+ }
183
+ ],
109
184
  "/lammem-withClientProps/lammem-withClientProps/LambdaFunctionServiceRole/Resource": [
110
185
  {
111
186
  "type": "aws:cdk:logicalId",
112
187
  "data": "lammemwithClientPropsLambdaFunctionServiceRole4A4D2BF6"
113
188
  }
114
189
  ],
190
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunctionServiceRole/DefaultPolicy": [
191
+ {
192
+ "type": "aws:cdk:analytics:construct",
193
+ "data": "*"
194
+ },
195
+ {
196
+ "type": "aws:cdk:analytics:method",
197
+ "data": {
198
+ "attachToRole": [
199
+ "*"
200
+ ]
201
+ }
202
+ },
203
+ {
204
+ "type": "aws:cdk:analytics:method",
205
+ "data": {
206
+ "attachToRole": [
207
+ "*"
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "type": "aws:cdk:analytics:method",
213
+ "data": {
214
+ "addStatements": [
215
+ {}
216
+ ]
217
+ }
218
+ }
219
+ ],
115
220
  "/lammem-withClientProps/lammem-withClientProps/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
116
221
  {
117
222
  "type": "aws:cdk:logicalId",
118
223
  "data": "lammemwithClientPropsLambdaFunctionServiceRoleDefaultPolicy50E02A22"
119
224
  }
120
225
  ],
226
+ "/lammem-withClientProps/lammem-withClientProps/ReplaceDefaultSecurityGroup-security-group": [
227
+ {
228
+ "type": "aws:cdk:analytics:construct",
229
+ "data": {
230
+ "vpc": "*",
231
+ "allowAllOutbound": true
232
+ }
233
+ }
234
+ ],
121
235
  "/lammem-withClientProps/lammem-withClientProps/ReplaceDefaultSecurityGroup-security-group/Resource": [
122
236
  {
123
237
  "type": "aws:cdk:logicalId",
124
238
  "data": "lammemwithClientPropsReplaceDefaultSecurityGroupsecuritygroup8BCBDD33"
125
239
  }
126
240
  ],
241
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunction": [
242
+ {
243
+ "type": "aws:cdk:analytics:construct",
244
+ "data": {
245
+ "role": "*",
246
+ "tracing": "Active",
247
+ "runtime": "*",
248
+ "handler": "*",
249
+ "code": "*",
250
+ "securityGroups": [
251
+ "*",
252
+ "*"
253
+ ],
254
+ "vpc": "*"
255
+ }
256
+ },
257
+ {
258
+ "type": "aws:cdk:analytics:method",
259
+ "data": {
260
+ "addEnvironment": [
261
+ "*",
262
+ "*",
263
+ {
264
+ "removeInEdge": true
265
+ }
266
+ ]
267
+ }
268
+ },
269
+ {
270
+ "type": "aws:cdk:analytics:method",
271
+ "data": {
272
+ "addEnvironment": [
273
+ "*",
274
+ "*"
275
+ ]
276
+ }
277
+ }
278
+ ],
127
279
  "/lammem-withClientProps/lammem-withClientProps/LambdaFunction/Resource": [
128
280
  {
129
281
  "type": "aws:cdk:logicalId",
130
282
  "data": "lammemwithClientPropsLambdaFunction28E6BF2F"
131
283
  }
132
284
  ],
285
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
286
+ {
287
+ "type": "aws:cdk:analytics:construct",
288
+ "data": {
289
+ "statements": "*"
290
+ }
291
+ },
292
+ {
293
+ "type": "aws:cdk:analytics:method",
294
+ "data": {
295
+ "addStatements": [
296
+ {}
297
+ ]
298
+ }
299
+ },
300
+ {
301
+ "type": "aws:cdk:analytics:method",
302
+ "data": {
303
+ "attachToRole": [
304
+ "*"
305
+ ]
306
+ }
307
+ },
308
+ {
309
+ "type": "aws:cdk:analytics:method",
310
+ "data": {
311
+ "attachToRole": [
312
+ "*"
313
+ ]
314
+ }
315
+ }
316
+ ],
317
+ "/lammem-withClientProps/lammem-withClientProps/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
318
+ {
319
+ "type": "aws:cdk:logicalId",
320
+ "data": "lammemwithClientPropsLambdaFunctioninlinePolicyAddedToExecutionRole0EA653AE3"
321
+ }
322
+ ],
323
+ "/lammem-withClientProps/Vpc": [
324
+ {
325
+ "type": "aws:cdk:analytics:construct",
326
+ "data": {
327
+ "natGateways": "*",
328
+ "subnetConfiguration": [
329
+ {
330
+ "cidrMask": "*",
331
+ "name": "*",
332
+ "subnetType": "Isolated"
333
+ }
334
+ ],
335
+ "ipAddresses": "*"
336
+ }
337
+ }
338
+ ],
133
339
  "/lammem-withClientProps/Vpc/Resource": [
134
340
  {
135
341
  "type": "aws:cdk:logicalId",
136
342
  "data": "Vpc8378EB38"
137
343
  }
138
344
  ],
345
+ "/lammem-withClientProps/Vpc/isolatedSubnet1": [
346
+ {
347
+ "type": "aws:cdk:analytics:construct",
348
+ "data": {
349
+ "availabilityZone": "*",
350
+ "vpcId": "*",
351
+ "cidrBlock": "*",
352
+ "mapPublicIpOnLaunch": false,
353
+ "ipv6CidrBlock": "*",
354
+ "assignIpv6AddressOnCreation": "*"
355
+ }
356
+ },
357
+ {
358
+ "type": "aws:cdk:analytics:construct",
359
+ "data": {
360
+ "availabilityZone": "*",
361
+ "vpcId": "*",
362
+ "cidrBlock": "*",
363
+ "mapPublicIpOnLaunch": false,
364
+ "ipv6CidrBlock": "*",
365
+ "assignIpv6AddressOnCreation": "*"
366
+ }
367
+ }
368
+ ],
139
369
  "/lammem-withClientProps/Vpc/isolatedSubnet1/Subnet": [
140
370
  {
141
371
  "type": "aws:cdk:logicalId",
@@ -154,6 +384,30 @@
154
384
  "data": "VpcisolatedSubnet1RouteTableAssociationD259E31A"
155
385
  }
156
386
  ],
387
+ "/lammem-withClientProps/Vpc/isolatedSubnet2": [
388
+ {
389
+ "type": "aws:cdk:analytics:construct",
390
+ "data": {
391
+ "availabilityZone": "*",
392
+ "vpcId": "*",
393
+ "cidrBlock": "*",
394
+ "mapPublicIpOnLaunch": false,
395
+ "ipv6CidrBlock": "*",
396
+ "assignIpv6AddressOnCreation": "*"
397
+ }
398
+ },
399
+ {
400
+ "type": "aws:cdk:analytics:construct",
401
+ "data": {
402
+ "availabilityZone": "*",
403
+ "vpcId": "*",
404
+ "cidrBlock": "*",
405
+ "mapPublicIpOnLaunch": false,
406
+ "ipv6CidrBlock": "*",
407
+ "assignIpv6AddressOnCreation": "*"
408
+ }
409
+ }
410
+ ],
157
411
  "/lammem-withClientProps/Vpc/isolatedSubnet2/Subnet": [
158
412
  {
159
413
  "type": "aws:cdk:logicalId",
@@ -172,24 +426,132 @@
172
426
  "data": "VpcisolatedSubnet2RouteTableAssociation25A4716F"
173
427
  }
174
428
  ],
429
+ "/lammem-withClientProps/Vpc/RestrictDefaultSecurityGroupCustomResource": [
430
+ {
431
+ "type": "aws:cdk:analytics:construct",
432
+ "data": "*"
433
+ }
434
+ ],
175
435
  "/lammem-withClientProps/Vpc/RestrictDefaultSecurityGroupCustomResource/Default": [
176
436
  {
177
437
  "type": "aws:cdk:logicalId",
178
438
  "data": "VpcRestrictDefaultSecurityGroupCustomResourceC73DA2BE"
179
439
  }
180
440
  ],
441
+ "/lammem-withClientProps/Vpc/FlowLog": [
442
+ {
443
+ "type": "aws:cdk:analytics:construct",
444
+ "data": {
445
+ "resourceType": "*"
446
+ }
447
+ }
448
+ ],
449
+ "/lammem-withClientProps/Vpc/FlowLog/IAMRole": [
450
+ {
451
+ "type": "aws:cdk:analytics:construct",
452
+ "data": {
453
+ "roleName": "*",
454
+ "assumedBy": {
455
+ "principalAccount": "*",
456
+ "assumeRoleAction": "*"
457
+ }
458
+ }
459
+ },
460
+ {
461
+ "type": "aws:cdk:analytics:method",
462
+ "data": {
463
+ "addToPrincipalPolicy": [
464
+ {}
465
+ ]
466
+ }
467
+ },
468
+ {
469
+ "type": "aws:cdk:analytics:method",
470
+ "data": {
471
+ "attachInlinePolicy": [
472
+ "*"
473
+ ]
474
+ }
475
+ },
476
+ {
477
+ "type": "aws:cdk:analytics:method",
478
+ "data": {
479
+ "attachInlinePolicy": [
480
+ "*"
481
+ ]
482
+ }
483
+ },
484
+ {
485
+ "type": "aws:cdk:analytics:method",
486
+ "data": {
487
+ "addToPrincipalPolicy": [
488
+ {}
489
+ ]
490
+ }
491
+ }
492
+ ],
493
+ "/lammem-withClientProps/Vpc/FlowLog/IAMRole/ImportIAMRole": [
494
+ {
495
+ "type": "aws:cdk:analytics:construct",
496
+ "data": "*"
497
+ }
498
+ ],
181
499
  "/lammem-withClientProps/Vpc/FlowLog/IAMRole/Resource": [
182
500
  {
183
501
  "type": "aws:cdk:logicalId",
184
502
  "data": "VpcFlowLogIAMRole6A475D41"
185
503
  }
186
504
  ],
505
+ "/lammem-withClientProps/Vpc/FlowLog/IAMRole/DefaultPolicy": [
506
+ {
507
+ "type": "aws:cdk:analytics:construct",
508
+ "data": "*"
509
+ },
510
+ {
511
+ "type": "aws:cdk:analytics:method",
512
+ "data": {
513
+ "attachToRole": [
514
+ "*"
515
+ ]
516
+ }
517
+ },
518
+ {
519
+ "type": "aws:cdk:analytics:method",
520
+ "data": {
521
+ "attachToRole": [
522
+ "*"
523
+ ]
524
+ }
525
+ },
526
+ {
527
+ "type": "aws:cdk:analytics:method",
528
+ "data": {
529
+ "addStatements": [
530
+ {}
531
+ ]
532
+ }
533
+ },
534
+ {
535
+ "type": "aws:cdk:analytics:method",
536
+ "data": {
537
+ "addStatements": [
538
+ {}
539
+ ]
540
+ }
541
+ }
542
+ ],
187
543
  "/lammem-withClientProps/Vpc/FlowLog/IAMRole/DefaultPolicy/Resource": [
188
544
  {
189
545
  "type": "aws:cdk:logicalId",
190
546
  "data": "VpcFlowLogIAMRoleDefaultPolicy406FB995"
191
547
  }
192
548
  ],
549
+ "/lammem-withClientProps/Vpc/FlowLog/LogGroup": [
550
+ {
551
+ "type": "aws:cdk:analytics:construct",
552
+ "data": "*"
553
+ }
554
+ ],
193
555
  "/lammem-withClientProps/Vpc/FlowLog/LogGroup/Resource": [
194
556
  {
195
557
  "type": "aws:cdk:logicalId",
@@ -208,6 +570,12 @@
208
570
  "data": "LatestNodeRuntimeMap"
209
571
  }
210
572
  ],
573
+ "/lammem-withClientProps/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
574
+ {
575
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
576
+ "data": true
577
+ }
578
+ ],
211
579
  "/lammem-withClientProps/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
212
580
  {
213
581
  "type": "aws:cdk:logicalId",
@@ -241,5 +609,6 @@
241
609
  "file": "tree.json"
242
610
  }
243
611
  }
244
- }
612
+ },
613
+ "minimumCliVersion": "2.1006.0"
245
614
  }