@cdklabs/cdk-ecs-codedeploy 0.0.198 → 0.0.199

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 (122) 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/dist-cjs/protocols/Aws_json1_1.js +11 -17
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +1 -7
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +1 -1
  10. package/node_modules/@aws-sdk/client-codedeploy/package.json +29 -29
  11. package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +2 -8
  12. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -7
  13. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +1 -1
  14. package/node_modules/@aws-sdk/client-sso/package.json +25 -25
  15. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -7
  16. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -7
  17. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +1 -1
  18. package/node_modules/@aws-sdk/client-sso-oidc/package.json +25 -25
  19. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -7
  20. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +1 -7
  21. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-sts/package.json +28 -28
  23. package/node_modules/@aws-sdk/config-resolver/package.json +4 -4
  24. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  25. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  26. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  27. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  28. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  29. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  30. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  31. package/node_modules/@aws-sdk/eventstream-codec/package.json +2 -2
  32. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  33. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  34. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  35. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  36. package/node_modules/@aws-sdk/middleware-endpoint/package.json +5 -5
  37. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  38. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  39. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  40. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  41. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
  42. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  43. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  44. package/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  45. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  46. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  47. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  48. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  49. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  50. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  51. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  52. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  53. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  54. package/node_modules/@aws-sdk/signature-v4/package.json +5 -5
  55. package/node_modules/@aws-sdk/smithy-client/dist-cjs/collect-stream-body.js +15 -0
  56. package/node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +1 -0
  57. package/node_modules/@aws-sdk/smithy-client/dist-es/collect-stream-body.js +11 -0
  58. package/node_modules/@aws-sdk/smithy-client/dist-es/index.js +1 -0
  59. package/node_modules/@aws-sdk/smithy-client/dist-types/collect-stream-body.d.ts +10 -0
  60. package/node_modules/@aws-sdk/smithy-client/dist-types/index.d.ts +1 -0
  61. package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts +8 -0
  62. package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/index.d.ts +1 -0
  63. package/node_modules/@aws-sdk/smithy-client/package.json +5 -3
  64. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  65. package/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js +2 -0
  66. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js +2 -0
  67. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js +2 -0
  68. package/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -0
  69. package/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +1 -0
  70. package/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js +1 -0
  71. package/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js +1 -0
  72. package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
  73. package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +22 -0
  74. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts +6 -0
  75. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts +9 -0
  76. package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
  77. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +7 -0
  78. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +1 -0
  79. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +2 -0
  80. package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
  81. package/node_modules/@aws-sdk/types/package.json +7 -1
  82. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  83. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  84. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  85. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  86. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  87. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  88. package/node_modules/@aws-sdk/util-stream/LICENSE +201 -0
  89. package/node_modules/@aws-sdk/util-stream/README.md +12 -0
  90. package/node_modules/@aws-sdk/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +22 -0
  91. package/node_modules/@aws-sdk/util-stream/dist-cjs/blob/transforms.js +20 -0
  92. package/node_modules/@aws-sdk/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +31 -0
  93. package/node_modules/@aws-sdk/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +30 -0
  94. package/node_modules/@aws-sdk/util-stream/dist-cjs/index.js +6 -0
  95. package/node_modules/@aws-sdk/util-stream/dist-cjs/sdk-stream-mixin.browser.js +69 -0
  96. package/node_modules/@aws-sdk/util-stream/dist-cjs/sdk-stream-mixin.js +50 -0
  97. package/node_modules/@aws-sdk/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +18 -0
  98. package/node_modules/@aws-sdk/util-stream/dist-es/blob/transforms.js +15 -0
  99. package/node_modules/@aws-sdk/util-stream/dist-es/getAwsChunkedEncodingStream.browser.js +27 -0
  100. package/node_modules/@aws-sdk/util-stream/dist-es/getAwsChunkedEncodingStream.js +26 -0
  101. package/node_modules/@aws-sdk/util-stream/dist-es/index.js +3 -0
  102. package/node_modules/@aws-sdk/util-stream/dist-es/sdk-stream-mixin.browser.js +64 -0
  103. package/node_modules/@aws-sdk/util-stream/dist-es/sdk-stream-mixin.js +45 -0
  104. package/node_modules/@aws-sdk/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +21 -0
  105. package/node_modules/@aws-sdk/util-stream/dist-types/blob/transforms.d.ts +9 -0
  106. package/node_modules/@aws-sdk/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +5 -0
  107. package/node_modules/@aws-sdk/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -0
  108. package/node_modules/@aws-sdk/util-stream/dist-types/index.d.ts +3 -0
  109. package/node_modules/@aws-sdk/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +7 -0
  110. package/node_modules/@aws-sdk/util-stream/dist-types/sdk-stream-mixin.d.ts +8 -0
  111. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +5 -0
  112. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/blob/transforms.d.ts +9 -0
  113. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts +2 -0
  114. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +3 -0
  115. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/index.d.ts +3 -0
  116. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts +4 -0
  117. package/node_modules/@aws-sdk/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +3 -0
  118. package/node_modules/@aws-sdk/util-stream/package.json +72 -0
  119. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  120. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  121. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  122. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-serde",
3
- "version": "3.347.0",
3
+ "version": "3.357.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
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.347.0",
24
+ "@aws-sdk/types": "3.357.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.354.0",
3
+ "version": "3.357.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,11 +21,11 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/property-provider": "3.353.0",
25
- "@aws-sdk/protocol-http": "3.347.0",
26
- "@aws-sdk/signature-v4": "3.354.0",
27
- "@aws-sdk/types": "3.347.0",
28
- "@aws-sdk/util-middleware": "3.347.0",
24
+ "@aws-sdk/property-provider": "3.357.0",
25
+ "@aws-sdk/protocol-http": "3.357.0",
26
+ "@aws-sdk/signature-v4": "3.357.0",
27
+ "@aws-sdk/types": "3.357.0",
28
+ "@aws-sdk/util-middleware": "3.357.0",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-stack",
3
- "version": "3.347.0",
3
+ "version": "3.357.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'",
@@ -27,7 +27,7 @@
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/types": "3.347.0",
30
+ "@aws-sdk/types": "3.357.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "concurrently": "7.0.0",
33
33
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.352.0",
3
+ "version": "3.357.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,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.347.0",
25
- "@aws-sdk/types": "3.347.0",
26
- "@aws-sdk/util-endpoints": "3.352.0",
24
+ "@aws-sdk/protocol-http": "3.357.0",
25
+ "@aws-sdk/types": "3.357.0",
26
+ "@aws-sdk/util-endpoints": "3.357.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-config-provider",
3
- "version": "3.354.0",
3
+ "version": "3.357.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.353.0",
26
- "@aws-sdk/shared-ini-file-loader": "3.354.0",
27
- "@aws-sdk/types": "3.347.0",
25
+ "@aws-sdk/property-provider": "3.357.0",
26
+ "@aws-sdk/shared-ini-file-loader": "3.357.0",
27
+ "@aws-sdk/types": "3.357.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-http-handler",
3
- "version": "3.350.0",
3
+ "version": "3.357.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'",
@@ -23,10 +23,10 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "types": "./dist-types/index.d.ts",
25
25
  "dependencies": {
26
- "@aws-sdk/abort-controller": "3.347.0",
27
- "@aws-sdk/protocol-http": "3.347.0",
28
- "@aws-sdk/querystring-builder": "3.347.0",
29
- "@aws-sdk/types": "3.347.0",
26
+ "@aws-sdk/abort-controller": "3.357.0",
27
+ "@aws-sdk/protocol-http": "3.357.0",
28
+ "@aws-sdk/querystring-builder": "3.357.0",
29
+ "@aws-sdk/types": "3.357.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/property-provider",
3
- "version": "3.353.0",
3
+ "version": "3.357.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.347.0",
23
+ "@aws-sdk/types": "3.357.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/protocol-http",
3
- "version": "3.347.0",
3
+ "version": "3.357.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
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.347.0",
24
+ "@aws-sdk/types": "3.357.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-builder",
3
- "version": "3.347.0",
3
+ "version": "3.357.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.347.0",
23
+ "@aws-sdk/types": "3.357.0",
24
24
  "@aws-sdk/util-uri-escape": "3.310.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-parser",
3
- "version": "3.347.0",
3
+ "version": "3.357.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.347.0",
23
+ "@aws-sdk/types": "3.357.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/service-error-classification",
3
- "version": "3.347.0",
3
+ "version": "3.357.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
  "devDependencies": {
23
- "@aws-sdk/types": "3.347.0",
23
+ "@aws-sdk/types": "3.357.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aws-sdk/shared-ini-file-loader",
3
- "version": "3.354.0",
3
+ "version": "3.357.0",
4
4
  "dependencies": {
5
- "@aws-sdk/types": "3.347.0",
5
+ "@aws-sdk/types": "3.357.0",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4",
3
- "version": "3.354.0",
3
+ "version": "3.357.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,18 +22,18 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/eventstream-codec": "3.347.0",
25
+ "@aws-sdk/eventstream-codec": "3.357.0",
26
26
  "@aws-sdk/is-array-buffer": "3.310.0",
27
- "@aws-sdk/types": "3.347.0",
27
+ "@aws-sdk/types": "3.357.0",
28
28
  "@aws-sdk/util-hex-encoding": "3.310.0",
29
- "@aws-sdk/util-middleware": "3.347.0",
29
+ "@aws-sdk/util-middleware": "3.357.0",
30
30
  "@aws-sdk/util-uri-escape": "3.310.0",
31
31
  "@aws-sdk/util-utf8": "3.310.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@aws-crypto/sha256-js": "3.0.0",
36
- "@aws-sdk/protocol-http": "3.347.0",
36
+ "@aws-sdk/protocol-http": "3.357.0",
37
37
  "@tsconfig/recommended": "1.0.1",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectBody = void 0;
4
+ const util_stream_1 = require("@aws-sdk/util-stream");
5
+ const collectBody = async (streamBody = new Uint8Array(), context) => {
6
+ if (streamBody instanceof Uint8Array) {
7
+ return util_stream_1.Uint8ArrayBlobAdapter.mutate(streamBody);
8
+ }
9
+ if (!streamBody) {
10
+ return util_stream_1.Uint8ArrayBlobAdapter.mutate(new Uint8Array());
11
+ }
12
+ const fromContext = context.streamCollector(streamBody);
13
+ return util_stream_1.Uint8ArrayBlobAdapter.mutate(await fromContext);
14
+ };
15
+ exports.collectBody = collectBody;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./NoOpLogger"), exports);
5
5
  tslib_1.__exportStar(require("./client"), exports);
6
+ tslib_1.__exportStar(require("./collect-stream-body"), exports);
6
7
  tslib_1.__exportStar(require("./command"), exports);
7
8
  tslib_1.__exportStar(require("./constants"), exports);
8
9
  tslib_1.__exportStar(require("./create-aggregated-client"), exports);
@@ -0,0 +1,11 @@
1
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
2
+ export const collectBody = async (streamBody = new Uint8Array(), context) => {
3
+ if (streamBody instanceof Uint8Array) {
4
+ return Uint8ArrayBlobAdapter.mutate(streamBody);
5
+ }
6
+ if (!streamBody) {
7
+ return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
8
+ }
9
+ const fromContext = context.streamCollector(streamBody);
10
+ return Uint8ArrayBlobAdapter.mutate(await fromContext);
11
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./NoOpLogger";
2
2
  export * from "./client";
3
+ export * from "./collect-stream-body";
3
4
  export * from "./command";
4
5
  export * from "./constants";
5
6
  export * from "./create-aggregated-client";
@@ -0,0 +1,10 @@
1
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
2
+ import { SerdeContext } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ *
6
+ * Collect low-level response body stream to Uint8Array.
7
+ */
8
+ export declare const collectBody: (streamBody: any, context: {
9
+ streamCollector: SerdeContext["streamCollector"];
10
+ }) => Promise<Uint8ArrayBlobAdapter>;
@@ -1,5 +1,6 @@
1
1
  export * from "./NoOpLogger";
2
2
  export * from "./client";
3
+ export * from "./collect-stream-body";
3
4
  export * from "./command";
4
5
  export * from "./constants";
5
6
  export * from "./create-aggregated-client";
@@ -0,0 +1,8 @@
1
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
2
+ import { SerdeContext } from "@smithy/types";
3
+ export declare const collectBody: (
4
+ streamBody: any,
5
+ context: {
6
+ streamCollector: SerdeContext["streamCollector"];
7
+ }
8
+ ) => Promise<Uint8ArrayBlobAdapter>;
@@ -1,5 +1,6 @@
1
1
  export * from "./NoOpLogger";
2
2
  export * from "./client";
3
+ export * from "./collect-stream-body";
3
4
  export * from "./command";
4
5
  export * from "./constants";
5
6
  export * from "./create-aggregated-client";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/smithy-client",
3
- "version": "3.347.0",
3
+ "version": "3.357.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,8 +21,10 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-stack": "3.347.0",
25
- "@aws-sdk/types": "3.347.0",
24
+ "@aws-sdk/middleware-stack": "3.357.0",
25
+ "@aws-sdk/types": "3.357.0",
26
+ "@aws-sdk/util-stream": "3.357.0",
27
+ "@smithy/types": "^1.0.0",
26
28
  "tslib": "^2.5.0"
27
29
  },
28
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.354.0",
3
+ "version": "3.357.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso-oidc": "3.354.0",
30
- "@aws-sdk/property-provider": "3.353.0",
31
- "@aws-sdk/shared-ini-file-loader": "3.354.0",
32
- "@aws-sdk/types": "3.347.0",
29
+ "@aws-sdk/client-sso-oidc": "3.357.0",
30
+ "@aws-sdk/property-provider": "3.357.0",
31
+ "@aws-sdk/shared-ini-file-loader": "3.357.0",
32
+ "@aws-sdk/types": "3.357.0",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./abort"), exports);
5
5
  tslib_1.__exportStar(require("./auth"), exports);
6
+ tslib_1.__exportStar(require("./blob/blob-types"), exports);
6
7
  tslib_1.__exportStar(require("./checksum"), exports);
7
8
  tslib_1.__exportStar(require("./client"), exports);
8
9
  tslib_1.__exportStar(require("./command"), exports);
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -0,0 +1,22 @@
1
+ import { RuntimeBlobTypes } from "./runtime-blob-types.node";
2
+ /**
3
+ * @public
4
+ *
5
+ * A union of types that can be used as inputs for the service model
6
+ * "blob" type when it represents the request's entire payload or body.
7
+ *
8
+ * For example, in Lambda::invoke, the payload is modeled as a blob type
9
+ * and this union applies to it.
10
+ * In contrast, in Lambda::createFunction the Zip file option is a blob type,
11
+ * but is not the (entire) payload and this union does not apply.
12
+ *
13
+ * Note: not all types are signable by the standard SignatureV4 signer when
14
+ * used as the request body. For example, in Node.js a Readable stream
15
+ * is not signable by the default signer.
16
+ * They are included in the union because it may work in some cases,
17
+ * but the expected types are primarily string and Uint8Array.
18
+ *
19
+ * Additional details may be found in the internal
20
+ * function "getPayloadHash" in the SignatureV4 module.
21
+ */
22
+ export type BlobTypes = string | ArrayBuffer | ArrayBufferView | Uint8Array | RuntimeBlobTypes;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @public
3
+ *
4
+ * Additional blob types for the browser environment.
5
+ */
6
+ export type RuntimeBlobTypes = Blob | ReadableStream;
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { Readable } from "stream";
4
+ /**
5
+ * @public
6
+ *
7
+ * Additional blob types for the Node.js environment.
8
+ */
9
+ export type RuntimeBlobTypes = Readable | Buffer;
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -0,0 +1,7 @@
1
+ import { RuntimeBlobTypes } from "./runtime-blob-types.node";
2
+ export type BlobTypes =
3
+ | string
4
+ | ArrayBuffer
5
+ | ArrayBufferView
6
+ | Uint8Array
7
+ | RuntimeBlobTypes;
@@ -0,0 +1 @@
1
+ export type RuntimeBlobTypes = Blob | ReadableStream;
@@ -0,0 +1,2 @@
1
+ import { Readable } from "stream";
2
+ export type RuntimeBlobTypes = Readable | Buffer;
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.347.0",
3
+ "version": "3.357.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -53,5 +53,11 @@
53
53
  },
54
54
  "typedoc": {
55
55
  "entryPoint": "src/index.ts"
56
+ },
57
+ "browser": {
58
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
59
+ },
60
+ "react-native": {
61
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
56
62
  }
57
63
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/url-parser",
3
- "version": "3.347.0",
3
+ "version": "3.357.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/querystring-parser": "3.347.0",
24
- "@aws-sdk/types": "3.347.0",
23
+ "@aws-sdk/querystring-parser": "3.357.0",
24
+ "@aws-sdk/types": "3.357.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-browser",
3
- "version": "3.353.0",
3
+ "version": "3.357.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",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/property-provider": "3.353.0",
23
- "@aws-sdk/types": "3.347.0",
22
+ "@aws-sdk/property-provider": "3.357.0",
23
+ "@aws-sdk/types": "3.357.0",
24
24
  "bowser": "^2.11.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/smithy-client": "3.347.0",
28
+ "@aws-sdk/smithy-client": "3.357.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "@types/node": "^14.14.31",
31
31
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-node",
3
- "version": "3.354.0",
3
+ "version": "3.357.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",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/config-resolver": "3.354.0",
23
- "@aws-sdk/credential-provider-imds": "3.354.0",
24
- "@aws-sdk/node-config-provider": "3.354.0",
25
- "@aws-sdk/property-provider": "3.353.0",
26
- "@aws-sdk/types": "3.347.0",
22
+ "@aws-sdk/config-resolver": "3.357.0",
23
+ "@aws-sdk/credential-provider-imds": "3.357.0",
24
+ "@aws-sdk/node-config-provider": "3.357.0",
25
+ "@aws-sdk/property-provider": "3.357.0",
26
+ "@aws-sdk/types": "3.357.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/smithy-client": "3.347.0",
30
+ "@aws-sdk/smithy-client": "3.357.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.352.0",
3
+ "version": "3.357.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.347.0",
25
+ "@aws-sdk/types": "3.357.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-middleware",
3
- "version": "3.347.0",
3
+ "version": "3.357.0",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/types": "3.347.0",
30
+ "@aws-sdk/types": "3.357.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",