@aws-solutions-constructs/aws-fargate-kinesisstreams 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 (73) hide show
  1. package/.jsii +57 -18
  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
- "1c0d196ae6dc655dccac4c63426c4b830aed739665a8c4a0b9266f5c184802c4": {
17
+ "02f768757da11ec532c564045213964ec4e80d5acc5abd714397c5d23988f780": {
18
18
  "source": {
19
19
  "path": "farkin-existingStream.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": "1c0d196ae6dc655dccac4c63426c4b830aed739665a8c4a0b9266f5c184802c4.json",
25
+ "objectKey": "02f768757da11ec532c564045213964ec4e80d5acc5abd714397c5d23988f780.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -619,6 +619,12 @@
619
619
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
620
620
  }
621
621
  ],
622
+ "Tags": [
623
+ {
624
+ "Key": "Name",
625
+ "Value": "farkin-existingStream/Vpc"
626
+ }
627
+ ],
622
628
  "VpcEndpointType": "Interface",
623
629
  "VpcId": {
624
630
  "Ref": "Vpc8378EB38"
@@ -657,6 +663,12 @@
657
663
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
658
664
  }
659
665
  ],
666
+ "Tags": [
667
+ {
668
+ "Key": "Name",
669
+ "Value": "farkin-existingStream/Vpc"
670
+ }
671
+ ],
660
672
  "VpcEndpointType": "Interface",
661
673
  "VpcId": {
662
674
  "Ref": "Vpc8378EB38"
@@ -695,6 +707,12 @@
695
707
  "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
696
708
  }
697
709
  ],
710
+ "Tags": [
711
+ {
712
+ "Key": "Name",
713
+ "Value": "farkin-existingStream/Vpc"
714
+ }
715
+ ],
698
716
  "VpcEndpointType": "Interface",
699
717
  "VpcId": {
700
718
  "Ref": "Vpc8378EB38"
@@ -730,6 +748,12 @@
730
748
  ]
731
749
  ]
732
750
  },
751
+ "Tags": [
752
+ {
753
+ "Key": "Name",
754
+ "Value": "farkin-existingStream/Vpc"
755
+ }
756
+ ],
733
757
  "VpcEndpointType": "Gateway",
734
758
  "VpcId": {
735
759
  "Ref": "Vpc8378EB38"
@@ -817,7 +841,7 @@
817
841
  "S3Bucket": {
818
842
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
819
843
  },
820
- "S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
844
+ "S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
821
845
  },
822
846
  "Timeout": 900,
823
847
  "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-existingStream/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
  "farkinexistingStreamIntegDefaultTestDeployAssert24640A36.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}/1c0d196ae6dc655dccac4c63426c4b830aed739665a8c4a0b9266f5c184802c4.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/02f768757da11ec532c564045213964ec4e80d5acc5abd714397c5d23988f780.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -298,6 +298,12 @@
298
298
  "data": "LatestNodeRuntimeMap"
299
299
  }
300
300
  ],
301
+ "/farkin-existingStream/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
302
+ {
303
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
304
+ "data": true
305
+ }
306
+ ],
301
307
  "/farkin-existingStream/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
302
308
  {
303
309
  "type": "aws:cdk:logicalId",