@aws-solutions-constructs/aws-fargate-kinesisstreams 2.75.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 (73) hide show
  1. package/.jsii +91 -13
  2. package/lib/index.js +1 -1
  3. package/package.json +7 -6
  4. package/test/integ.farkin-existingFargateService.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  5. package/test/integ.farkin-existingFargateService.js.snapshot/cdk.out +1 -1
  6. package/test/integ.farkin-existingFargateService.js.snapshot/farkin-existingFargateService.assets.json +6 -6
  7. package/test/integ.farkin-existingFargateService.js.snapshot/farkin-existingFargateService.template.json +25 -1
  8. package/test/integ.farkin-existingFargateService.js.snapshot/farkinexistingFargateServiceIntegDefaultTestDeployAssertF1F4EC2C.assets.json +1 -1
  9. package/test/integ.farkin-existingFargateService.js.snapshot/integ.json +1 -1
  10. package/test/integ.farkin-existingFargateService.js.snapshot/manifest.json +8 -2
  11. package/test/integ.farkin-existingFargateService.js.snapshot/tree.json +118 -94
  12. package/test/integ.farkin-existingStream.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  13. package/test/integ.farkin-existingStream.js.snapshot/cdk.out +1 -1
  14. package/test/integ.farkin-existingStream.js.snapshot/farkin-existingStream.assets.json +6 -6
  15. package/test/integ.farkin-existingStream.js.snapshot/farkin-existingStream.template.json +25 -1
  16. package/test/integ.farkin-existingStream.js.snapshot/farkinexistingStreamIntegDefaultTestDeployAssert24640A36.assets.json +1 -1
  17. package/test/integ.farkin-existingStream.js.snapshot/integ.json +1 -1
  18. package/test/integ.farkin-existingStream.js.snapshot/manifest.json +8 -2
  19. package/test/integ.farkin-existingStream.js.snapshot/tree.json +118 -94
  20. package/test/integ.farkin-existingVpc.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  21. package/test/integ.farkin-existingVpc.js.snapshot/cdk.out +1 -1
  22. package/test/integ.farkin-existingVpc.js.snapshot/farkin-existingVpc.assets.json +6 -6
  23. package/test/integ.farkin-existingVpc.js.snapshot/farkin-existingVpc.template.json +25 -1
  24. package/test/integ.farkin-existingVpc.js.snapshot/farkinexistingVpcIntegDefaultTestDeployAssert8065A04A.assets.json +1 -1
  25. package/test/integ.farkin-existingVpc.js.snapshot/integ.json +1 -1
  26. package/test/integ.farkin-existingVpc.js.snapshot/manifest.json +8 -2
  27. package/test/integ.farkin-existingVpc.js.snapshot/tree.json +118 -94
  28. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  29. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/cdk.out +1 -1
  30. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/farkin-fargateServiceFromProps.assets.json +6 -6
  31. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/farkin-fargateServiceFromProps.template.json +25 -1
  32. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/farkinfargateServiceFromPropsIntegDefaultTestDeployAssert5047AEA2.assets.json +1 -1
  33. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/integ.json +1 -1
  34. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/manifest.json +8 -2
  35. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/tree.json +118 -94
  36. package/test/integ.farkin-noArguments.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  37. package/test/integ.farkin-noArguments.js.snapshot/cdk.out +1 -1
  38. package/test/integ.farkin-noArguments.js.snapshot/farkin-noArguments.assets.json +6 -6
  39. package/test/integ.farkin-noArguments.js.snapshot/farkin-noArguments.template.json +25 -1
  40. package/test/integ.farkin-noArguments.js.snapshot/farkinnoArgumentsIntegDefaultTestDeployAssert5E204AE6.assets.json +1 -1
  41. package/test/integ.farkin-noArguments.js.snapshot/integ.json +1 -1
  42. package/test/integ.farkin-noArguments.js.snapshot/manifest.json +8 -2
  43. package/test/integ.farkin-noArguments.js.snapshot/tree.json +118 -94
  44. package/test/integ.farkin-streamFromProps.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  45. package/test/integ.farkin-streamFromProps.js.snapshot/cdk.out +1 -1
  46. package/test/integ.farkin-streamFromProps.js.snapshot/farkin-streamFromProps.assets.json +6 -6
  47. package/test/integ.farkin-streamFromProps.js.snapshot/farkin-streamFromProps.template.json +25 -1
  48. package/test/integ.farkin-streamFromProps.js.snapshot/farkinstreamFromPropsIntegDefaultTestDeployAssertF891650B.assets.json +1 -1
  49. package/test/integ.farkin-streamFromProps.js.snapshot/integ.json +1 -1
  50. package/test/integ.farkin-streamFromProps.js.snapshot/manifest.json +8 -2
  51. package/test/integ.farkin-streamFromProps.js.snapshot/tree.json +118 -94
  52. package/test/integ.farkin-vpcFromProps.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  53. package/test/integ.farkin-vpcFromProps.js.snapshot/cdk.out +1 -1
  54. package/test/integ.farkin-vpcFromProps.js.snapshot/farkin-vpcFromProps.assets.json +6 -6
  55. package/test/integ.farkin-vpcFromProps.js.snapshot/farkin-vpcFromProps.template.json +25 -1
  56. package/test/integ.farkin-vpcFromProps.js.snapshot/farkinvpcFromPropsIntegDefaultTestDeployAssert05CE38D4.assets.json +1 -1
  57. package/test/integ.farkin-vpcFromProps.js.snapshot/integ.json +1 -1
  58. package/test/integ.farkin-vpcFromProps.js.snapshot/manifest.json +8 -2
  59. package/test/integ.farkin-vpcFromProps.js.snapshot/tree.json +118 -94
  60. package/test/integ.farkin-existingFargateService.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  61. package/test/integ.farkin-existingStream.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  62. package/test/integ.farkin-existingVpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  63. package/test/integ.farkin-fargateServiceFromProps.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  64. package/test/integ.farkin-noArguments.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  65. package/test/integ.farkin-streamFromProps.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  66. package/test/integ.farkin-vpcFromProps.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
  67. /package/test/integ.farkin-existingFargateService.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  68. /package/test/integ.farkin-existingStream.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  69. /package/test/integ.farkin-existingVpc.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  70. /package/test/integ.farkin-fargateServiceFromProps.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  71. /package/test/integ.farkin-noArguments.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  72. /package/test/integ.farkin-streamFromProps.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
  73. /package/test/integ.farkin-vpcFromProps.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
@@ -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,20 +1,20 @@
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
- "7e7bd0a42766266a48a4fdb48fc7bfae175179befff26b0248213d00b4ff40f6": {
17
+ "ea5d2f3a7d0af442a5bfc3f377b8ae7dee5d0b0861222520354c01f08b6e6a8d": {
18
18
  "source": {
19
19
  "path": "farkin-existingVpc.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "7e7bd0a42766266a48a4fdb48fc7bfae175179befff26b0248213d00b4ff40f6.json",
25
+ "objectKey": "ea5d2f3a7d0af442a5bfc3f377b8ae7dee5d0b0861222520354c01f08b6e6a8d.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -578,6 +578,12 @@
578
578
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
579
579
  }
580
580
  ],
581
+ "Tags": [
582
+ {
583
+ "Key": "Name",
584
+ "Value": "farkin-existingVpc/Vpc"
585
+ }
586
+ ],
581
587
  "VpcEndpointType": "Interface",
582
588
  "VpcId": {
583
589
  "Ref": "Vpc8378EB38"
@@ -616,6 +622,12 @@
616
622
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
617
623
  }
618
624
  ],
625
+ "Tags": [
626
+ {
627
+ "Key": "Name",
628
+ "Value": "farkin-existingVpc/Vpc"
629
+ }
630
+ ],
619
631
  "VpcEndpointType": "Interface",
620
632
  "VpcId": {
621
633
  "Ref": "Vpc8378EB38"
@@ -654,6 +666,12 @@
654
666
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
655
667
  }
656
668
  ],
669
+ "Tags": [
670
+ {
671
+ "Key": "Name",
672
+ "Value": "farkin-existingVpc/Vpc"
673
+ }
674
+ ],
657
675
  "VpcEndpointType": "Interface",
658
676
  "VpcId": {
659
677
  "Ref": "Vpc8378EB38"
@@ -689,6 +707,12 @@
689
707
  ]
690
708
  ]
691
709
  },
710
+ "Tags": [
711
+ {
712
+ "Key": "Name",
713
+ "Value": "farkin-existingVpc/Vpc"
714
+ }
715
+ ],
692
716
  "VpcEndpointType": "Gateway",
693
717
  "VpcId": {
694
718
  "Ref": "Vpc8378EB38"
@@ -776,7 +800,7 @@
776
800
  "S3Bucket": {
777
801
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
778
802
  },
779
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
803
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
780
804
  },
781
805
  "Timeout": 900,
782
806
  "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
  "testCases": {
4
4
  "farkin-existingVpc/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "39.0.0",
3
3
  "artifacts": {
4
4
  "farkinexistingVpcIntegDefaultTestDeployAssert8065A04A.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}/7e7bd0a42766266a48a4fdb48fc7bfae175179befff26b0248213d00b4ff40f6.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ea5d2f3a7d0af442a5bfc3f377b8ae7dee5d0b0861222520354c01f08b6e6a8d.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -280,6 +280,12 @@
280
280
  "data": "LatestNodeRuntimeMap"
281
281
  }
282
282
  ],
283
+ "/farkin-existingVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
284
+ {
285
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
286
+ "data": true
287
+ }
288
+ ],
283
289
  "/farkin-existingVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
284
290
  {
285
291
  "type": "aws:cdk:logicalId",