@cdklabs/cdk-ecs-codedeploy 0.0.408 → 0.0.410

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 (202) hide show
  1. package/.jsii +3 -3
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws-sdk/client-codedeploy/package.json +5 -5
  8. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +2 -0
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
  12. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
  13. package/node_modules/@aws-sdk/core/package.json +1 -1
  14. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  17. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  18. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  19. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  20. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  21. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  22. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  23. package/node_modules/@aws-sdk/token-providers/README.md +9 -0
  24. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +18 -1
  25. package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +13 -0
  26. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +1 -0
  27. package/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
  28. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +1 -0
  29. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
  30. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +1 -0
  31. package/node_modules/@aws-sdk/token-providers/package.json +3 -2
  32. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  33. package/node_modules/@smithy/abort-controller/package.json +2 -2
  34. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
  35. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
  36. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +3 -2
  37. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +4 -1
  38. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +3 -2
  39. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +3 -2
  40. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +2 -0
  41. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +2 -0
  42. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +2 -0
  43. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +2 -0
  44. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +2 -0
  45. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
  46. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
  47. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +3 -2
  48. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +4 -1
  49. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +3 -2
  50. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +3 -2
  51. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +2 -0
  52. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +2 -0
  53. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +2 -0
  54. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +2 -0
  55. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +2 -0
  56. package/node_modules/@smithy/config-resolver/package.json +4 -4
  57. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -2
  58. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +625 -2
  59. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -2
  60. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +6 -0
  61. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +6 -0
  62. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +6 -0
  63. package/node_modules/@smithy/core/package.json +7 -6
  64. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  65. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
  66. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
  67. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  68. package/node_modules/@smithy/hash-node/package.json +2 -2
  69. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  70. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +2 -2
  71. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  72. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  73. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  74. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  75. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  76. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  77. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
  78. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
  79. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
  80. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
  81. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
  82. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
  83. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
  84. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
  85. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
  86. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
  87. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
  88. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
  89. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
  90. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
  91. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
  92. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
  93. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
  94. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
  95. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
  96. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
  97. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  98. package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
  99. package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +1 -1
  100. package/node_modules/@smithy/property-provider/package.json +2 -2
  101. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +3 -7
  102. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +3 -7
  103. package/node_modules/@smithy/protocol-http/package.json +2 -2
  104. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  105. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  106. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  107. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  108. package/node_modules/@smithy/signature-v4/package.json +4 -4
  109. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +32 -617
  110. package/node_modules/@smithy/smithy-client/dist-es/index.js +1 -6
  111. package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +1 -6
  112. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +1 -6
  113. package/node_modules/@smithy/smithy-client/package.json +8 -8
  114. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
  115. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
  116. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
  117. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
  118. package/node_modules/@smithy/types/dist-es/index.js +3 -0
  119. package/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
  120. package/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
  121. package/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
  122. package/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
  123. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -3
  124. package/node_modules/@smithy/types/dist-types/command.d.ts +2 -0
  125. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -2
  126. package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
  127. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
  128. package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
  129. package/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
  130. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -0
  131. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -1
  132. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -3
  133. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -2
  134. package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -2
  135. package/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
  136. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -1
  137. package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +2 -0
  138. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -1
  139. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
  140. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
  141. package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
  142. package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
  143. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -0
  144. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -1
  145. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -1
  146. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -1
  147. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -1
  148. package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
  149. package/node_modules/@smithy/types/package.json +1 -1
  150. package/node_modules/@smithy/url-parser/package.json +3 -3
  151. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  152. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  153. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  154. package/node_modules/@smithy/util-middleware/package.json +2 -2
  155. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
  156. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +1 -1
  157. package/node_modules/@smithy/util-retry/package.json +3 -3
  158. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +1 -2
  159. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -2
  160. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +6 -6
  161. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  162. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +1 -2
  163. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -2
  164. package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
  165. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +0 -3
  166. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +0 -1
  167. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +0 -1
  168. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +0 -1
  169. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +0 -1
  170. package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
  171. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -1
  172. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -1
  173. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -1
  174. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -1
  175. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -1
  176. package/node_modules/@smithy/util-stream/package.json +4 -4
  177. package/node_modules/@smithy/util-waiter/package.json +3 -3
  178. package/package.json +4 -4
  179. package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +0 -1
  180. package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +0 -1
  181. package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +0 -1
  182. package/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +0 -1
  183. package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +0 -1
  184. package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +0 -1
  185. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/date-utils.js +0 -0
  186. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/lazy-json.js +0 -0
  187. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/parse-utils.js +0 -0
  188. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/quote-header.js +0 -0
  189. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-every.js +0 -0
  190. /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-header.js +0 -0
  191. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/date-utils.d.ts +0 -0
  192. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/lazy-json.d.ts +0 -0
  193. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/parse-utils.d.ts +0 -0
  194. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/quote-header.d.ts +0 -0
  195. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-every.d.ts +0 -0
  196. /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-header.d.ts +0 -0
  197. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts +0 -0
  198. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts +0 -0
  199. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts +0 -0
  200. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts +0 -0
  201. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-every.d.ts +0 -0
  202. /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-header.d.ts +0 -0
@@ -31,12 +31,28 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/index.ts
32
32
  var index_exports = {};
33
33
  __export(index_exports, {
34
+ fromEnvSigningName: () => fromEnvSigningName,
34
35
  fromSso: () => fromSso,
35
36
  fromStatic: () => fromStatic,
36
37
  nodeProvider: () => nodeProvider
37
38
  });
38
39
  module.exports = __toCommonJS(index_exports);
39
40
 
41
+ // src/fromEnvSigningName.ts
42
+ var import_core = require("@aws-sdk/core");
43
+ var import_property_provider = require("@smithy/property-provider");
44
+ var fromEnvSigningName = /* @__PURE__ */ __name(({ logger, signingName } = {}) => async () => {
45
+ logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
46
+ if (!signingName) {
47
+ throw new import_property_provider.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger });
48
+ }
49
+ const bearerTokenKey = (0, import_core.getBearerTokenEnvKey)(signingName);
50
+ if (!(bearerTokenKey in process.env)) {
51
+ throw new import_property_provider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });
52
+ }
53
+ return { token: process.env[bearerTokenKey] };
54
+ }, "fromEnvSigningName");
55
+
40
56
  // src/fromSso.ts
41
57
 
42
58
 
@@ -72,7 +88,7 @@ var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init
72
88
  }, "getNewSsoOidcToken");
73
89
 
74
90
  // src/validateTokenExpiry.ts
75
- var import_property_provider = require("@smithy/property-provider");
91
+
76
92
  var validateTokenExpiry = /* @__PURE__ */ __name((token) => {
77
93
  if (token.expiration && token.expiration.getTime() < Date.now()) {
78
94
  throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
@@ -210,6 +226,7 @@ var nodeProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_pro
210
226
  // Annotate the CommonJS export names for ESM import in node:
211
227
 
212
228
  0 && (module.exports = {
229
+ fromEnvSigningName,
213
230
  fromSso,
214
231
  fromStatic,
215
232
  nodeProvider
@@ -0,0 +1,13 @@
1
+ import { getBearerTokenEnvKey } from "@aws-sdk/core";
2
+ import { TokenProviderError } from "@smithy/property-provider";
3
+ export const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
4
+ logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
5
+ if (!signingName) {
6
+ throw new TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger });
7
+ }
8
+ const bearerTokenKey = getBearerTokenEnvKey(signingName);
9
+ if (!(bearerTokenKey in process.env)) {
10
+ throw new TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });
11
+ }
12
+ return { token: process.env[bearerTokenKey] };
13
+ };
@@ -1,3 +1,4 @@
1
+ export * from "./fromEnvSigningName";
1
2
  export * from "./fromSso";
2
3
  export * from "./fromStatic";
3
4
  export * from "./nodeProvider";
@@ -0,0 +1,18 @@
1
+ import type { CredentialProviderOptions, TokenIdentityProvider } from "@aws-sdk/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface FromEnvSigningNameInit extends CredentialProviderOptions {
6
+ signingName?: string;
7
+ }
8
+ /**
9
+ * Creates a TokenIdentityProvider that retrieves bearer token from environment variable
10
+ *
11
+ * @param options - Configuration options for the token provider
12
+ * @param options.logger - Optional logger for debug messages
13
+ * @param options.signingName - Service signing name used to determine environment variable key
14
+ * @returns TokenIdentityProvider that provides bearer token from environment variable
15
+ *
16
+ * @public
17
+ */
18
+ export declare const fromEnvSigningName: ({ logger, signingName }?: FromEnvSigningNameInit) => TokenIdentityProvider;
@@ -1,3 +1,4 @@
1
+ export * from "./fromEnvSigningName";
1
2
  export * from "./fromSso";
2
3
  export * from "./fromStatic";
3
4
  export * from "./nodeProvider";
@@ -0,0 +1,11 @@
1
+ import {
2
+ CredentialProviderOptions,
3
+ TokenIdentityProvider,
4
+ } from "@aws-sdk/types";
5
+ export interface FromEnvSigningNameInit extends CredentialProviderOptions {
6
+ signingName?: string;
7
+ }
8
+ export declare const fromEnvSigningName: ({
9
+ logger,
10
+ signingName,
11
+ }?: FromEnvSigningNameInit) => TokenIdentityProvider;
@@ -1,3 +1,4 @@
1
+ export * from "./fromEnvSigningName";
1
2
  export * from "./fromSso";
2
3
  export * from "./fromStatic";
3
4
  export * from "./nodeProvider";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.812.0",
3
+ "version": "3.816.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/nested-clients": "3.812.0",
30
+ "@aws-sdk/core": "3.816.0",
31
+ "@aws-sdk/nested-clients": "3.816.0",
31
32
  "@aws-sdk/types": "3.804.0",
32
33
  "@smithy/property-provider": "^4.0.2",
33
34
  "@smithy/shared-ini-file-loader": "^4.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.812.0",
3
+ "version": "3.816.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.812.0",
24
+ "@aws-sdk/middleware-user-agent": "3.816.0",
25
25
  "@aws-sdk/types": "3.804.0",
26
26
  "@smithy/node-config-provider": "^4.1.1",
27
27
  "@smithy/types": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@smithy/types": "^4.2.0",
28
+ "@smithy/types": "^4.3.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -2,6 +2,7 @@ import { Endpoint, Provider, UrlParser } from "@smithy/types";
2
2
  import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig";
3
3
  /**
4
4
  * @public
5
+ * @deprecated superseded by default endpointRuleSet generation.
5
6
  */
6
7
  export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
7
8
  /**
@@ -11,12 +12,14 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
11
12
  }
12
13
  /**
13
14
  * @internal
15
+ * @deprecated superseded by default endpointRuleSet generation.
14
16
  */
15
17
  interface PreviouslyResolved {
16
18
  urlParser: UrlParser;
17
19
  }
18
20
  /**
19
21
  * @internal
22
+ * @deprecated superseded by default endpointRuleSet generation.
20
23
  */
21
24
  export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {
22
25
  /**
@@ -27,6 +30,8 @@ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {
27
30
  }
28
31
  /**
29
32
  * @internal
33
+ *
34
+ * @deprecated superseded by default endpointRuleSet generation.
30
35
  */
31
36
  export declare const resolveCustomEndpointsConfig: <T>(input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig;
32
37
  export {};
@@ -1,6 +1,7 @@
1
1
  import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
4
5
  */
5
6
  export interface EndpointsInputConfig {
6
7
  /**
@@ -19,6 +20,7 @@ export interface EndpointsInputConfig {
19
20
  }
20
21
  /**
21
22
  * @internal
23
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
22
24
  */
23
25
  interface PreviouslyResolved {
24
26
  regionInfoProvider: RegionInfoProvider;
@@ -28,6 +30,7 @@ interface PreviouslyResolved {
28
30
  }
29
31
  /**
30
32
  * @internal
33
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
31
34
  */
32
35
  export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig> {
33
36
  /**
@@ -1,8 +1,9 @@
1
1
  import { EndpointVariantTag } from "./EndpointVariantTag";
2
2
  /**
3
- * @internal
4
- *
5
3
  * Provides hostname information for specific host label.
4
+ *
5
+ * @internal
6
+ * @deprecated unused as of endpointsRuleSets.
6
7
  */
7
8
  export type EndpointVariant = {
8
9
  hostname: string;
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @internal
2
+ *
3
3
  *
4
4
  * The tag which mentions which area variant is providing information for.
5
5
  * Can be either "fips" or "dualstack".
6
+ *
7
+ * @internal
8
+ * @deprecated unused for endpointRuleSets.
6
9
  */
7
10
  export type EndpointVariantTag = "fips" | "dualstack";
@@ -1,10 +1,11 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
- * @internal
4
- *
5
3
  * The hash of partition with the information specific to that partition.
6
4
  * The information includes the list of regions belonging to that partition,
7
5
  * and the hostname to be used for the partition.
6
+ *
7
+ * @internal
8
+ * @deprecated unused for endpointRuleSets.
8
9
  */
9
10
  export type PartitionHash = Record<string, {
10
11
  regions: string[];
@@ -1,9 +1,10 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
- * @internal
4
- *
5
3
  * The hash of region with the information specific to that region.
6
4
  * The information can include hostname, signingService and signingRegion.
5
+ *
6
+ * @internal
7
+ * @deprecated unused for endpointRuleSets.
7
8
  */
8
9
  export type RegionHash = Record<string, {
9
10
  variants: EndpointVariant[];
@@ -1,6 +1,7 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated unused as of endpointsRuleSets.
4
5
  */
5
6
  export interface GetHostnameFromVariantsOptions {
6
7
  useFipsEndpoint: boolean;
@@ -8,5 +9,6 @@ export interface GetHostnameFromVariantsOptions {
8
9
  }
9
10
  /**
10
11
  * @internal
12
+ * @deprecated unused as of endpointsRuleSets.
11
13
  */
12
14
  export declare const getHostnameFromVariants: (variants: EndpointVariant[] | undefined, { useFipsEndpoint, useDualstackEndpoint }: GetHostnameFromVariantsOptions) => string | undefined;
@@ -3,6 +3,7 @@ import { PartitionHash } from "./PartitionHash";
3
3
  import { RegionHash } from "./RegionHash";
4
4
  /**
5
5
  * @internal
6
+ * @deprecated unused as of endpointsRuleSets.
6
7
  */
7
8
  export interface GetRegionInfoOptions {
8
9
  useFipsEndpoint?: boolean;
@@ -13,5 +14,6 @@ export interface GetRegionInfoOptions {
13
14
  }
14
15
  /**
15
16
  * @internal
17
+ * @deprecated unused as of endpointsRuleSets.
16
18
  */
17
19
  export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @internal
3
+ * @deprecated unused for endpointRuleSets.
3
4
  */
4
5
  export interface GetResolvedHostnameOptions {
5
6
  regionHostname?: string;
@@ -7,5 +8,6 @@ export interface GetResolvedHostnameOptions {
7
8
  }
8
9
  /**
9
10
  * @internal
11
+ * @deprecated unused for endpointRuleSets.
10
12
  */
11
13
  export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined;
@@ -1,11 +1,13 @@
1
1
  import { PartitionHash } from "./PartitionHash";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated unused for endpointRuleSets.
4
5
  */
5
6
  export interface GetResolvedPartitionOptions {
6
7
  partitionHash: PartitionHash;
7
8
  }
8
9
  /**
9
10
  * @internal
11
+ * @deprecated unused for endpointRuleSets.
10
12
  */
11
13
  export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @internal
3
+ * @deprecated unused for endpointRuleSets.
3
4
  */
4
5
  export interface GetResolvedSigningRegionOptions {
5
6
  regionRegex: string;
@@ -8,5 +9,6 @@ export interface GetResolvedSigningRegionOptions {
8
9
  }
9
10
  /**
10
11
  * @internal
12
+ * @deprecated unused for endpointRuleSets.
11
13
  */
12
14
  export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined;
@@ -2,6 +2,7 @@ import { Endpoint, Provider, UrlParser } from "@smithy/types";
2
2
  import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig";
3
3
  /**
4
4
  * @public
5
+ * @deprecated superseded by default endpointRuleSet generation.
5
6
  */
6
7
  export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
7
8
  /**
@@ -11,12 +12,14 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
11
12
  }
12
13
  /**
13
14
  * @internal
15
+ * @deprecated superseded by default endpointRuleSet generation.
14
16
  */
15
17
  interface PreviouslyResolved {
16
18
  urlParser: UrlParser;
17
19
  }
18
20
  /**
19
21
  * @internal
22
+ * @deprecated superseded by default endpointRuleSet generation.
20
23
  */
21
24
  export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {
22
25
  /**
@@ -27,6 +30,8 @@ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {
27
30
  }
28
31
  /**
29
32
  * @internal
33
+ *
34
+ * @deprecated superseded by default endpointRuleSet generation.
30
35
  */
31
36
  export declare const resolveCustomEndpointsConfig: <T>(input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig;
32
37
  export {};
@@ -1,6 +1,7 @@
1
1
  import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
4
5
  */
5
6
  export interface EndpointsInputConfig {
6
7
  /**
@@ -19,6 +20,7 @@ export interface EndpointsInputConfig {
19
20
  }
20
21
  /**
21
22
  * @internal
23
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
22
24
  */
23
25
  interface PreviouslyResolved {
24
26
  regionInfoProvider: RegionInfoProvider;
@@ -28,6 +30,7 @@ interface PreviouslyResolved {
28
30
  }
29
31
  /**
30
32
  * @internal
33
+ * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
31
34
  */
32
35
  export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig> {
33
36
  /**
@@ -1,8 +1,9 @@
1
1
  import { EndpointVariantTag } from "./EndpointVariantTag";
2
2
  /**
3
- * @internal
4
- *
5
3
  * Provides hostname information for specific host label.
4
+ *
5
+ * @internal
6
+ * @deprecated unused as of endpointsRuleSets.
6
7
  */
7
8
  export type EndpointVariant = {
8
9
  hostname: string;
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @internal
2
+ *
3
3
  *
4
4
  * The tag which mentions which area variant is providing information for.
5
5
  * Can be either "fips" or "dualstack".
6
+ *
7
+ * @internal
8
+ * @deprecated unused for endpointRuleSets.
6
9
  */
7
10
  export type EndpointVariantTag = "fips" | "dualstack";
@@ -1,10 +1,11 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
- * @internal
4
- *
5
3
  * The hash of partition with the information specific to that partition.
6
4
  * The information includes the list of regions belonging to that partition,
7
5
  * and the hostname to be used for the partition.
6
+ *
7
+ * @internal
8
+ * @deprecated unused for endpointRuleSets.
8
9
  */
9
10
  export type PartitionHash = Record<string, {
10
11
  regions: string[];
@@ -1,9 +1,10 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
- * @internal
4
- *
5
3
  * The hash of region with the information specific to that region.
6
4
  * The information can include hostname, signingService and signingRegion.
5
+ *
6
+ * @internal
7
+ * @deprecated unused for endpointRuleSets.
7
8
  */
8
9
  export type RegionHash = Record<string, {
9
10
  variants: EndpointVariant[];
@@ -1,6 +1,7 @@
1
1
  import { EndpointVariant } from "./EndpointVariant";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated unused as of endpointsRuleSets.
4
5
  */
5
6
  export interface GetHostnameFromVariantsOptions {
6
7
  useFipsEndpoint: boolean;
@@ -8,5 +9,6 @@ export interface GetHostnameFromVariantsOptions {
8
9
  }
9
10
  /**
10
11
  * @internal
12
+ * @deprecated unused as of endpointsRuleSets.
11
13
  */
12
14
  export declare const getHostnameFromVariants: (variants: EndpointVariant[] | undefined, { useFipsEndpoint, useDualstackEndpoint }: GetHostnameFromVariantsOptions) => string | undefined;
@@ -3,6 +3,7 @@ import { PartitionHash } from "./PartitionHash";
3
3
  import { RegionHash } from "./RegionHash";
4
4
  /**
5
5
  * @internal
6
+ * @deprecated unused as of endpointsRuleSets.
6
7
  */
7
8
  export interface GetRegionInfoOptions {
8
9
  useFipsEndpoint?: boolean;
@@ -13,5 +14,6 @@ export interface GetRegionInfoOptions {
13
14
  }
14
15
  /**
15
16
  * @internal
17
+ * @deprecated unused as of endpointsRuleSets.
16
18
  */
17
19
  export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @internal
3
+ * @deprecated unused for endpointRuleSets.
3
4
  */
4
5
  export interface GetResolvedHostnameOptions {
5
6
  regionHostname?: string;
@@ -7,5 +8,6 @@ export interface GetResolvedHostnameOptions {
7
8
  }
8
9
  /**
9
10
  * @internal
11
+ * @deprecated unused for endpointRuleSets.
10
12
  */
11
13
  export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined;
@@ -1,11 +1,13 @@
1
1
  import { PartitionHash } from "./PartitionHash";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated unused for endpointRuleSets.
4
5
  */
5
6
  export interface GetResolvedPartitionOptions {
6
7
  partitionHash: PartitionHash;
7
8
  }
8
9
  /**
9
10
  * @internal
11
+ * @deprecated unused for endpointRuleSets.
10
12
  */
11
13
  export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @internal
3
+ * @deprecated unused for endpointRuleSets.
3
4
  */
4
5
  export interface GetResolvedSigningRegionOptions {
5
6
  regionRegex: string;
@@ -8,5 +9,6 @@ export interface GetResolvedSigningRegionOptions {
8
9
  }
9
10
  /**
10
11
  * @internal
12
+ * @deprecated unused for endpointRuleSets.
11
13
  */
12
14
  export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline config-resolver",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/node-config-provider": "^4.1.1",
28
- "@smithy/types": "^4.2.0",
27
+ "@smithy/node-config-provider": "^4.1.2",
28
+ "@smithy/types": "^4.3.0",
29
29
  "@smithy/util-config-provider": "^4.0.0",
30
- "@smithy/util-middleware": "^4.0.2",
30
+ "@smithy/util-middleware": "^4.0.3",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -685,8 +685,9 @@ var loadSmithyRpcV2CborErrorCode = (output, data2) => {
685
685
  if (data2["__type"] !== void 0) {
686
686
  return sanitizeErrorCode(data2["__type"]);
687
687
  }
688
- if (data2.code !== void 0) {
689
- return sanitizeErrorCode(data2.code);
688
+ const codeKey = Object.keys(data2).find((key) => key.toLowerCase() === "code");
689
+ if (codeKey && data2[codeKey] !== void 0) {
690
+ return sanitizeErrorCode(data2[codeKey]);
690
691
  }
691
692
  };
692
693
  var checkCborResponse = (response) => {