@aws-solutions-constructs/aws-alb-lambda 2.101.0 → 2.103.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 (63) hide show
  1. package/.jsii +252 -4
  2. package/lib/index.js +1 -1
  3. package/package.json +7 -7
  4. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.assets.json +8 -8
  5. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.metadata.json +763 -0
  6. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.template.json +3 -3
  7. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets.json +1 -1
  8. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.metadata.json +14 -0
  9. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093/__entrypoint__.js +1 -0
  10. package/test/integ.alblam-privateApiExistingResources.js.snapshot/cdk.out +1 -1
  11. package/test/integ.alblam-privateApiExistingResources.js.snapshot/integ.json +2 -2
  12. package/test/integ.alblam-privateApiExistingResources.js.snapshot/manifest.json +37 -768
  13. package/test/integ.alblam-privateApiExistingResources.js.snapshot/tree.json +1 -1
  14. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.assets.json +8 -8
  15. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.metadata.json +594 -0
  16. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.template.json +3 -3
  17. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.assets.json +1 -1
  18. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.metadata.json +14 -0
  19. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093/__entrypoint__.js +1 -0
  20. package/test/integ.alblam-privateApiNewResources.js.snapshot/cdk.out +1 -1
  21. package/test/integ.alblam-privateApiNewResources.js.snapshot/integ.json +2 -2
  22. package/test/integ.alblam-privateApiNewResources.js.snapshot/manifest.json +37 -599
  23. package/test/integ.alblam-privateApiNewResources.js.snapshot/tree.json +1 -1
  24. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.assets.json +8 -8
  25. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.metadata.json +763 -0
  26. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.template.json +3 -3
  27. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.assets.json +1 -1
  28. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.metadata.json +14 -0
  29. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093/__entrypoint__.js +1 -0
  30. package/test/integ.alblam-publicApiExistingResources.js.snapshot/cdk.out +1 -1
  31. package/test/integ.alblam-publicApiExistingResources.js.snapshot/integ.json +2 -2
  32. package/test/integ.alblam-publicApiExistingResources.js.snapshot/manifest.json +37 -768
  33. package/test/integ.alblam-publicApiExistingResources.js.snapshot/tree.json +1 -1
  34. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.assets.json +8 -8
  35. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.metadata.json +759 -0
  36. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.template.json +3 -3
  37. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.assets.json +1 -1
  38. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.metadata.json +14 -0
  39. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093/__entrypoint__.js +1 -0
  40. package/test/integ.alblam-publicApiNewResources.js.snapshot/cdk.out +1 -1
  41. package/test/integ.alblam-publicApiNewResources.js.snapshot/integ.json +2 -2
  42. package/test/integ.alblam-publicApiNewResources.js.snapshot/manifest.json +37 -764
  43. package/test/integ.alblam-publicApiNewResources.js.snapshot/tree.json +1 -1
  44. package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.assets.json +8 -8
  45. package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.metadata.json +970 -0
  46. package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.template.json +3 -3
  47. package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.assets.json +1 -1
  48. package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.metadata.json +14 -0
  49. package/test/integ.alblam-twoTargets.js.snapshot/asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093/__entrypoint__.js +1 -0
  50. package/test/integ.alblam-twoTargets.js.snapshot/cdk.out +1 -1
  51. package/test/integ.alblam-twoTargets.js.snapshot/integ.json +2 -2
  52. package/test/integ.alblam-twoTargets.js.snapshot/manifest.json +37 -975
  53. package/test/integ.alblam-twoTargets.js.snapshot/tree.json +1 -1
  54. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +0 -1
  55. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +0 -1
  56. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +0 -1
  57. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +0 -1
  58. package/test/integ.alblam-twoTargets.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +0 -1
  59. /package/test/integ.alblam-privateApiExistingResources.js.snapshot/{asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200 → asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093}/index.js +0 -0
  60. /package/test/integ.alblam-privateApiNewResources.js.snapshot/{asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200 → asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093}/index.js +0 -0
  61. /package/test/integ.alblam-publicApiExistingResources.js.snapshot/{asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200 → asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093}/index.js +0 -0
  62. /package/test/integ.alblam-publicApiNewResources.js.snapshot/{asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200 → asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093}/index.js +0 -0
  63. /package/test/integ.alblam-twoTargets.js.snapshot/{asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200 → asset.02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093}/index.js +0 -0
@@ -1247,7 +1247,7 @@
1247
1247
  "S3Bucket": {
1248
1248
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
1249
1249
  },
1250
- "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
1250
+ "S3Key": "02b51ab524e7bcf8f477de3e71e5f9a72e448301b26ba62e9e75a14f9c55a093.zip"
1251
1251
  },
1252
1252
  "Timeout": 900,
1253
1253
  "MemorySize": 128,
@@ -1258,7 +1258,7 @@
1258
1258
  "Arn"
1259
1259
  ]
1260
1260
  },
1261
- "Runtime": "nodejs22.x",
1261
+ "Runtime": "nodejs24.x",
1262
1262
  "Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group"
1263
1263
  },
1264
1264
  "DependsOn": [
@@ -1323,7 +1323,7 @@
1323
1323
  "Arn"
1324
1324
  ]
1325
1325
  },
1326
- "Runtime": "nodejs22.x",
1326
+ "Runtime": "nodejs24.x",
1327
1327
  "Description": {
1328
1328
  "Fn::Join": [
1329
1329
  "",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "50.0.0",
2
+ "version": "54.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "displayName": "alblamtwoTargetsIntegDefaultTestDeployAssert4F811416 Template",
@@ -0,0 +1,14 @@
1
+ {
2
+ "/alblam-twoTargets/Integ/DefaultTest/DeployAssert/BootstrapVersion": [
3
+ {
4
+ "type": "aws:cdk:logicalId",
5
+ "data": "BootstrapVersion"
6
+ }
7
+ ],
8
+ "/alblam-twoTargets/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
9
+ {
10
+ "type": "aws:cdk:logicalId",
11
+ "data": "CheckBootstrapVersion"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1 @@
1
+ "use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__setModuleDefault=exports&&exports.__setModuleDefault||(Object.create?(function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}):function(o,v){o.default=v}),__importStar=exports&&exports.__importStar||(function(){var ownKeys=function(o){return ownKeys=Object.getOwnPropertyNames||function(o2){var ar=[];for(var k in o2)Object.prototype.hasOwnProperty.call(o2,k)&&(ar[ar.length]=k);return ar},ownKeys(o)};return function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k=ownKeys(mod),i=0;i<k.length;i++)k[i]!=="default"&&__createBinding(result,mod,k[i]);return __setModuleDefault(result,mod),result}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.external=void 0,exports.handler=handler,exports.withRetries=withRetries;const https=__importStar(require("https")),url=__importStar(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":"50.0.0"}
1
+ {"version":"54.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "50.0.0",
2
+ "version": "54.0.0",
3
3
  "testCases": {
4
4
  "alblam-twoTargets/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -9,5 +9,5 @@
9
9
  "assertionStackName": "alblamtwoTargetsIntegDefaultTestDeployAssert4F811416"
10
10
  }
11
11
  },
12
- "minimumCliVersion": "2.1105.0"
12
+ "minimumCliVersion": "2.1128.1"
13
13
  }