@cdklabs/cdk-ecs-codedeploy 0.0.102 → 0.0.103

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 (90) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  7. package/node_modules/@aws-sdk/client-codedeploy/package.json +30 -30
  8. package/node_modules/@aws-sdk/client-sso/package.json +26 -26
  9. package/node_modules/@aws-sdk/client-sso-oidc/package.json +26 -26
  10. package/node_modules/@aws-sdk/client-sts/package.json +29 -29
  11. package/node_modules/@aws-sdk/config-resolver/package.json +5 -5
  12. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js +1 -3
  15. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +1 -3
  16. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  17. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  18. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  19. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  20. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  21. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  22. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  23. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  24. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  25. package/node_modules/@aws-sdk/middleware-endpoint/package.json +7 -7
  26. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  27. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  29. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  30. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +6 -6
  31. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  32. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  33. package/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  34. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  35. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  36. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +11 -6
  37. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-manager.js +92 -0
  38. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-pool.js +36 -0
  39. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +14 -37
  40. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http-handler.js +8 -5
  41. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
  42. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
  43. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-handler.js +14 -37
  44. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http-handler.d.ts +16 -0
  45. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-connection-manager.d.ts +22 -0
  46. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
  47. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-handler.d.ts +9 -16
  48. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -0
  49. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +24 -0
  50. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +14 -0
  51. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -3
  52. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  53. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  54. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  55. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  56. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  57. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  58. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  59. package/node_modules/@aws-sdk/signature-v4/package.json +4 -4
  60. package/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  61. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  62. package/node_modules/@aws-sdk/types/dist-cjs/connection/config.js +2 -0
  63. package/node_modules/@aws-sdk/types/dist-cjs/connection/manager.js +2 -0
  64. package/node_modules/@aws-sdk/types/dist-cjs/connection/pool.js +2 -0
  65. package/node_modules/@aws-sdk/types/dist-cjs/transfer.js +7 -0
  66. package/node_modules/@aws-sdk/types/dist-es/connection/config.js +1 -0
  67. package/node_modules/@aws-sdk/types/dist-es/connection/manager.js +1 -0
  68. package/node_modules/@aws-sdk/types/dist-es/connection/pool.js +1 -0
  69. package/node_modules/@aws-sdk/types/dist-es/transfer.js +6 -1
  70. package/node_modules/@aws-sdk/types/dist-types/connection/config.d.ts +7 -0
  71. package/node_modules/@aws-sdk/types/dist-types/connection/manager.d.ts +28 -0
  72. package/node_modules/@aws-sdk/types/dist-types/connection/pool.d.ts +24 -0
  73. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +5 -0
  74. package/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +9 -1
  75. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/config.d.ts +3 -0
  76. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/manager.d.ts +14 -0
  77. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/pool.d.ts +9 -0
  78. package/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +1 -0
  79. package/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +9 -1
  80. package/node_modules/@aws-sdk/types/package.json +1 -1
  81. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  82. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  83. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  84. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  85. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  86. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  87. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  88. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  89. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  90. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=14.0.0"
@@ -27,15 +27,15 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/credential-provider-env": "3.295.0",
31
- "@aws-sdk/credential-provider-imds": "3.295.0",
32
- "@aws-sdk/credential-provider-ini": "3.295.0",
33
- "@aws-sdk/credential-provider-process": "3.295.0",
34
- "@aws-sdk/credential-provider-sso": "3.295.0",
35
- "@aws-sdk/credential-provider-web-identity": "3.295.0",
36
- "@aws-sdk/property-provider": "3.295.0",
37
- "@aws-sdk/shared-ini-file-loader": "3.295.0",
38
- "@aws-sdk/types": "3.295.0",
30
+ "@aws-sdk/credential-provider-env": "3.296.0",
31
+ "@aws-sdk/credential-provider-imds": "3.296.0",
32
+ "@aws-sdk/credential-provider-ini": "3.296.0",
33
+ "@aws-sdk/credential-provider-process": "3.296.0",
34
+ "@aws-sdk/credential-provider-sso": "3.296.0",
35
+ "@aws-sdk/credential-provider-web-identity": "3.296.0",
36
+ "@aws-sdk/property-provider": "3.296.0",
37
+ "@aws-sdk/shared-ini-file-loader": "3.296.0",
38
+ "@aws-sdk/types": "3.296.0",
39
39
  "tslib": "^2.5.0"
40
40
  },
41
41
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/property-provider": "3.295.0",
28
- "@aws-sdk/shared-ini-file-loader": "3.295.0",
29
- "@aws-sdk/types": "3.295.0",
27
+ "@aws-sdk/property-provider": "3.296.0",
28
+ "@aws-sdk/shared-ini-file-loader": "3.296.0",
29
+ "@aws-sdk/types": "3.296.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,11 +24,11 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/client-sso": "3.295.0",
28
- "@aws-sdk/property-provider": "3.295.0",
29
- "@aws-sdk/shared-ini-file-loader": "3.295.0",
30
- "@aws-sdk/token-providers": "3.295.0",
31
- "@aws-sdk/types": "3.295.0",
27
+ "@aws-sdk/client-sso": "3.296.0",
28
+ "@aws-sdk/property-provider": "3.296.0",
29
+ "@aws-sdk/shared-ini-file-loader": "3.296.0",
30
+ "@aws-sdk/token-providers": "3.296.0",
31
+ "@aws-sdk/types": "3.296.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@aws-sdk/property-provider": "3.295.0",
36
- "@aws-sdk/types": "3.295.0",
35
+ "@aws-sdk/property-provider": "3.296.0",
36
+ "@aws-sdk/types": "3.296.0",
37
37
  "tslib": "^2.5.0"
38
38
  },
39
39
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/fetch-http-handler",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -21,14 +21,14 @@
21
21
  "module": "./dist-es/index.js",
22
22
  "types": "./dist-types/index.d.ts",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.295.0",
25
- "@aws-sdk/querystring-builder": "3.295.0",
26
- "@aws-sdk/types": "3.295.0",
24
+ "@aws-sdk/protocol-http": "3.296.0",
25
+ "@aws-sdk/querystring-builder": "3.296.0",
26
+ "@aws-sdk/types": "3.296.0",
27
27
  "@aws-sdk/util-base64": "3.295.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@aws-sdk/abort-controller": "3.295.0",
31
+ "@aws-sdk/abort-controller": "3.296.0",
32
32
  "@tsconfig/recommended": "1.0.1",
33
33
  "concurrently": "7.0.0",
34
34
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/hash-node",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -30,7 +30,7 @@
30
30
  "typescript": "~4.9.5"
31
31
  },
32
32
  "dependencies": {
33
- "@aws-sdk/types": "3.295.0",
33
+ "@aws-sdk/types": "3.296.0",
34
34
  "@aws-sdk/util-buffer-from": "3.295.0",
35
35
  "@aws-sdk/util-utf8": "3.295.0",
36
36
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/invalid-dependency",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-content-length",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/protocol-http": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/middleware-serde": "3.295.0",
24
- "@aws-sdk/protocol-http": "3.295.0",
25
- "@aws-sdk/signature-v4": "3.295.0",
26
- "@aws-sdk/types": "3.295.0",
27
- "@aws-sdk/url-parser": "3.295.0",
23
+ "@aws-sdk/middleware-serde": "3.296.0",
24
+ "@aws-sdk/protocol-http": "3.296.0",
25
+ "@aws-sdk/signature-v4": "3.296.0",
26
+ "@aws-sdk/types": "3.296.0",
27
+ "@aws-sdk/url-parser": "3.296.0",
28
28
  "@aws-sdk/util-config-provider": "3.295.0",
29
- "@aws-sdk/util-middleware": "3.295.0",
29
+ "@aws-sdk/util-middleware": "3.296.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/protocol-http": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "module": "./dist-es/index.js",
22
22
  "types": "./dist-types/index.d.ts",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.295.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/protocol-http": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-retry",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,16 +20,16 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.295.0",
24
- "@aws-sdk/service-error-classification": "3.295.0",
25
- "@aws-sdk/types": "3.295.0",
26
- "@aws-sdk/util-middleware": "3.295.0",
27
- "@aws-sdk/util-retry": "3.295.0",
23
+ "@aws-sdk/protocol-http": "3.296.0",
24
+ "@aws-sdk/service-error-classification": "3.296.0",
25
+ "@aws-sdk/types": "3.296.0",
26
+ "@aws-sdk/util-middleware": "3.296.0",
27
+ "@aws-sdk/util-retry": "3.296.0",
28
28
  "tslib": "^2.5.0",
29
29
  "uuid": "^8.3.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@aws-sdk/node-config-provider": "3.295.0",
32
+ "@aws-sdk/node-config-provider": "3.296.0",
33
33
  "@tsconfig/recommended": "1.0.1",
34
34
  "@types/uuid": "^8.3.0",
35
35
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sts",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/middleware-signing": "3.295.0",
24
- "@aws-sdk/property-provider": "3.295.0",
25
- "@aws-sdk/protocol-http": "3.295.0",
26
- "@aws-sdk/signature-v4": "3.295.0",
27
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/middleware-signing": "3.296.0",
24
+ "@aws-sdk/property-provider": "3.296.0",
25
+ "@aws-sdk/protocol-http": "3.296.0",
26
+ "@aws-sdk/signature-v4": "3.296.0",
27
+ "@aws-sdk/types": "3.296.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-serde",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/property-provider": "3.295.0",
24
- "@aws-sdk/protocol-http": "3.295.0",
25
- "@aws-sdk/signature-v4": "3.295.0",
26
- "@aws-sdk/types": "3.295.0",
27
- "@aws-sdk/util-middleware": "3.295.0",
23
+ "@aws-sdk/property-provider": "3.296.0",
24
+ "@aws-sdk/protocol-http": "3.296.0",
25
+ "@aws-sdk/signature-v4": "3.296.0",
26
+ "@aws-sdk/types": "3.296.0",
27
+ "@aws-sdk/util-middleware": "3.296.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-stack",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -25,7 +25,7 @@
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/types": "3.295.0",
28
+ "@aws-sdk/types": "3.296.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "concurrently": "7.0.0",
31
31
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
25
- "@aws-sdk/util-endpoints": "3.295.0",
23
+ "@aws-sdk/protocol-http": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
+ "@aws-sdk/util-endpoints": "3.296.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@aws-sdk/middleware-stack": "3.295.0",
29
+ "@aws-sdk/middleware-stack": "3.296.0",
30
30
  "@tsconfig/recommended": "1.0.1",
31
31
  "concurrently": "7.0.0",
32
32
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-config-provider",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,9 +22,9 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/property-provider": "3.295.0",
26
- "@aws-sdk/shared-ini-file-loader": "3.295.0",
27
- "@aws-sdk/types": "3.295.0",
25
+ "@aws-sdk/property-provider": "3.296.0",
26
+ "@aws-sdk/shared-ini-file-loader": "3.296.0",
27
+ "@aws-sdk/types": "3.296.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeHttpHandler = void 0;
3
+ exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const querystring_builder_1 = require("@aws-sdk/querystring-builder");
6
6
  const http_1 = require("http");
7
7
  const https_1 = require("https");
8
8
  const constants_1 = require("./constants");
9
9
  const get_transformed_headers_1 = require("./get-transformed-headers");
10
- const set_connection_timeout_1 = require("./set-connection-timeout");
11
- const set_socket_timeout_1 = require("./set-socket-timeout");
12
10
  const write_request_body_1 = require("./write-request-body");
11
+ exports.DEFAULT_REQUEST_TIMEOUT = 0;
13
12
  class NodeHttpHandler {
14
13
  constructor(options) {
15
14
  this.metadata = { handlerProtocol: "http/1.1" };
@@ -27,12 +26,14 @@ class NodeHttpHandler {
27
26
  });
28
27
  }
29
28
  resolveDefaultConfig(options) {
30
- const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {};
29
+ var _a, _b;
30
+ const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {};
31
31
  const keepAlive = true;
32
32
  const maxSockets = 50;
33
33
  return {
34
34
  connectionTimeout,
35
35
  socketTimeout,
36
+ requestTimeout: (_b = (_a = requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : connectionTimeout) !== null && _a !== void 0 ? _a : socketTimeout) !== null && _b !== void 0 ? _b : exports.DEFAULT_REQUEST_TIMEOUT,
36
37
  httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }),
37
38
  httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }),
38
39
  };
@@ -47,6 +48,7 @@ class NodeHttpHandler {
47
48
  this.config = await this.configProvider;
48
49
  }
49
50
  return new Promise((resolve, reject) => {
51
+ var _a, _b;
50
52
  if (!this.config) {
51
53
  throw new Error("Node HTTP request handler config is not resolved");
52
54
  }
@@ -83,8 +85,11 @@ class NodeHttpHandler {
83
85
  reject(err);
84
86
  }
85
87
  });
86
- (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout);
87
- (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout);
88
+ const timeout = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.requestTimeout) !== null && _b !== void 0 ? _b : exports.DEFAULT_REQUEST_TIMEOUT;
89
+ req.setTimeout(timeout, () => {
90
+ req.destroy();
91
+ reject(Object.assign(new Error(`Connection timed out after ${timeout} ms`), { name: "TimeoutError" }));
92
+ });
88
93
  if (abortSignal) {
89
94
  abortSignal.onabort = () => {
90
95
  req.abort();
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeHttp2ConnectionManager = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const http2_1 = tslib_1.__importDefault(require("http2"));
6
+ const node_http2_connection_pool_1 = require("./node-http2-connection-pool");
7
+ class NodeHttp2ConnectionManager {
8
+ constructor(config) {
9
+ this.sessionCache = new Map();
10
+ this.config = config;
11
+ if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
12
+ throw new RangeError("maxConcurrency must be greater than zero.");
13
+ }
14
+ }
15
+ lease(requestContext, connectionConfiguration) {
16
+ const url = this.getUrlString(requestContext);
17
+ const existingPool = this.sessionCache.get(url);
18
+ if (existingPool) {
19
+ const existingSession = existingPool.poll();
20
+ if (existingSession && !this.config.disableConcurrency) {
21
+ return existingSession;
22
+ }
23
+ }
24
+ const session = http2_1.default.connect(url);
25
+ if (this.config.maxConcurrency) {
26
+ session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {
27
+ if (err) {
28
+ throw new Error("Fail to set maxConcurrentStreams to " +
29
+ this.config.maxConcurrency +
30
+ "when creating new session for " +
31
+ requestContext.destination.toString());
32
+ }
33
+ });
34
+ }
35
+ session.unref();
36
+ const destroySessionCb = () => {
37
+ session.destroy();
38
+ this.deleteSession(url, session);
39
+ };
40
+ session.on("goaway", destroySessionCb);
41
+ session.on("error", destroySessionCb);
42
+ session.on("frameError", destroySessionCb);
43
+ session.on("close", () => this.deleteSession(url, session));
44
+ if (connectionConfiguration.requestTimeout) {
45
+ session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);
46
+ }
47
+ const connectionPool = this.sessionCache.get(url) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool();
48
+ connectionPool.offerLast(session);
49
+ this.sessionCache.set(url, connectionPool);
50
+ return session;
51
+ }
52
+ deleteSession(authority, session) {
53
+ const existingConnectionPool = this.sessionCache.get(authority);
54
+ if (!existingConnectionPool) {
55
+ return;
56
+ }
57
+ if (!existingConnectionPool.contains(session)) {
58
+ return;
59
+ }
60
+ existingConnectionPool.remove(session);
61
+ this.sessionCache.set(authority, existingConnectionPool);
62
+ }
63
+ release(requestContext, session) {
64
+ var _a;
65
+ const cacheKey = this.getUrlString(requestContext);
66
+ (_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session);
67
+ }
68
+ destroy() {
69
+ for (const [key, connectionPool] of this.sessionCache) {
70
+ for (const session of connectionPool) {
71
+ if (!session.destroyed) {
72
+ session.destroy();
73
+ }
74
+ connectionPool.remove(session);
75
+ }
76
+ this.sessionCache.delete(key);
77
+ }
78
+ }
79
+ setMaxConcurrentStreams(maxConcurrentStreams) {
80
+ if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
81
+ throw new RangeError("maxConcurrentStreams must be greater than zero.");
82
+ }
83
+ this.config.maxConcurrency = maxConcurrentStreams;
84
+ }
85
+ setDisableConcurrentStreams(disableConcurrentStreams) {
86
+ this.config.disableConcurrency = disableConcurrentStreams;
87
+ }
88
+ getUrlString(request) {
89
+ return request.destination.toString();
90
+ }
91
+ }
92
+ exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeHttp2ConnectionPool = void 0;
4
+ class NodeHttp2ConnectionPool {
5
+ constructor(sessions) {
6
+ this.sessions = [];
7
+ this.sessions = sessions !== null && sessions !== void 0 ? sessions : [];
8
+ }
9
+ poll() {
10
+ if (this.sessions.length > 0) {
11
+ return this.sessions.shift();
12
+ }
13
+ }
14
+ offerLast(session) {
15
+ this.sessions.push(session);
16
+ }
17
+ contains(session) {
18
+ return this.sessions.includes(session);
19
+ }
20
+ remove(session) {
21
+ this.sessions = this.sessions.filter((s) => s !== session);
22
+ }
23
+ [Symbol.iterator]() {
24
+ return this.sessions[Symbol.iterator]();
25
+ }
26
+ destroy(connection) {
27
+ for (const session of this.sessions) {
28
+ if (session === connection) {
29
+ if (!session.destroyed) {
30
+ session.destroy();
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool;