@cdk8s/awscdk-resolver 0.0.539 → 0.0.540

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 (248) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +52 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +2 -2
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/bdd.js +49 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/endpointResolver.js +3 -3
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/endpoint/bdd.d.ts +2 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  10. package/node_modules/@aws-sdk/core/dist-cjs/index.js +18 -10
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
  17. package/node_modules/@aws-sdk/core/package.json +1 -1
  18. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  19. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  20. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  21. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  22. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  23. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  24. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  25. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  26. package/node_modules/@aws-sdk/middleware-sdk-s3/LICENSE +201 -0
  27. package/node_modules/@aws-sdk/middleware-sdk-s3/README.md +4 -0
  28. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +597 -0
  29. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +36 -0
  30. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +32 -0
  31. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +9 -0
  32. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +25 -0
  33. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +41 -0
  34. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +42 -0
  35. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +33 -0
  36. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +39 -0
  37. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +14 -0
  38. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +49 -0
  39. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js +41 -0
  40. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +13 -0
  41. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +38 -0
  42. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +41 -0
  43. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +7 -0
  44. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +7 -0
  45. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +1 -0
  46. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +1 -0
  47. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +17 -0
  48. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +67 -0
  49. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +25 -0
  50. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/bucket-endpoint-middleware.d.ts +13 -0
  51. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/check-content-length-header.d.ts +16 -0
  52. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +9 -0
  53. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/protocol/S3RestXmlProtocol.d.ts +20 -0
  54. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-endpoint-middleware.d.ts +10 -0
  55. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-middleware.d.ts +20 -0
  56. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-expires-middleware.d.ts +26 -0
  57. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCache.d.ts +16 -0
  58. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +16 -0
  59. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +32 -0
  60. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/SignatureV4S3Express.d.ts +17 -0
  61. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/constants.d.ts +37 -0
  62. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +27 -0
  63. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressMiddleware.d.ts +32 -0
  64. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/signS3Express.d.ts +9 -0
  65. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/index.d.ts +9 -0
  66. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentity.d.ts +6 -0
  67. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +12 -0
  68. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3Configuration.d.ts +79 -0
  69. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/throw-200-exceptions.d.ts +20 -0
  70. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/bucket-endpoint-middleware.d.ts +9 -0
  71. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/check-content-length-header.d.ts +13 -0
  72. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +9 -0
  73. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/protocol/S3RestXmlProtocol.d.ts +15 -0
  74. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-endpoint-middleware.d.ts +6 -0
  75. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-middleware.d.ts +17 -0
  76. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-expires-middleware.d.ts +14 -0
  77. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCache.d.ts +14 -0
  78. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +12 -0
  79. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +31 -0
  80. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/SignatureV4S3Express.d.ts +19 -0
  81. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/constants.d.ts +11 -0
  82. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +40 -0
  83. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressMiddleware.d.ts +27 -0
  84. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/signS3Express.d.ts +21 -0
  85. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/index.d.ts +17 -0
  86. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentity.d.ts +2 -0
  87. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +8 -0
  88. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3Configuration.d.ts +33 -0
  89. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/throw-200-exceptions.d.ts +17 -0
  90. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/validate-bucket-name.d.ts +13 -0
  91. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/validate-bucket-name.d.ts +14 -0
  92. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
  93. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  94. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
  95. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
  96. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
  97. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
  98. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
  99. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
  100. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
  101. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
  102. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
  103. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
  104. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
  105. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
  106. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
  107. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
  108. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
  109. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
  110. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
  111. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
  112. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
  113. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
  114. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
  115. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
  116. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
  117. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
  118. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
  119. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
  120. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
  121. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
  122. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  123. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
  124. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
  125. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  126. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
  127. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
  128. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
  129. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
  130. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
  131. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
  132. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  133. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
  134. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
  135. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  136. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
  137. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
  138. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
  139. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
  140. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
  141. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
  142. package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
  143. package/node_modules/@aws-sdk/signature-v4-multi-region/LICENSE +201 -0
  144. package/node_modules/@aws-sdk/signature-v4-multi-region/README.md +32 -0
  145. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
  146. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +112 -0
  147. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +2 -0
  148. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/signature-v4-crt-container.js +3 -0
  149. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +35 -0
  150. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/index.d.ts +5 -0
  151. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/signature-v4-crt-container.d.ts +28 -0
  152. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +41 -0
  153. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -0
  154. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +20 -0
  155. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
  156. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  157. package/node_modules/@aws-sdk/util-arn-parser/LICENSE +201 -0
  158. package/node_modules/@aws-sdk/util-arn-parser/README.md +4 -0
  159. package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
  160. package/node_modules/@aws-sdk/util-arn-parser/dist-es/index.js +21 -0
  161. package/node_modules/@aws-sdk/util-arn-parser/dist-types/index.d.ts +32 -0
  162. package/node_modules/@aws-sdk/util-arn-parser/dist-types/ts3.4/index.d.ts +14 -0
  163. package/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
  164. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  165. package/node_modules/@smithy/config-resolver/package.json +2 -2
  166. package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
  167. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
  168. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  169. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
  170. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
  171. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
  172. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
  173. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  174. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
  175. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
  176. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
  177. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
  178. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
  179. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
  180. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
  181. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
  182. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  183. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  184. package/node_modules/@smithy/core/package.json +2 -2
  185. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  186. package/node_modules/@smithy/middleware-retry/package.json +5 -5
  187. package/node_modules/@smithy/middleware-serde/package.json +2 -2
  188. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +188 -93
  189. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
  190. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
  191. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
  192. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +41 -40
  193. package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
  194. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
  195. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
  196. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -5
  197. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  198. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
  199. package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
  200. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
  201. package/node_modules/@smithy/service-error-classification/package.json +1 -1
  202. package/node_modules/@smithy/smithy-client/package.json +4 -4
  203. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  204. package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
  205. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +65 -53
  206. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
  207. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
  208. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
  209. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
  210. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
  211. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
  212. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
  213. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
  214. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
  215. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
  216. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
  217. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
  218. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  219. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
  220. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
  221. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  222. package/node_modules/@smithy/util-retry/package.json +2 -2
  223. package/node_modules/@smithy/util-stream/package.json +2 -2
  224. package/package.json +3 -3
  225. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/ruleset.js +0 -7
  226. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/ruleset.js +0 -4
  227. package/node_modules/@aws-sdk/client-cloudformation/dist-types/endpoint/ruleset.d.ts +0 -2
  228. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
  229. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
  230. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
  231. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
  232. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
  233. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
  234. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
  235. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
  236. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
  237. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
  238. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
@@ -0,0 +1,33 @@
1
+ import { Client, Command } from "@smithy/types";
2
+ import { S3ExpressIdentityProvider } from "./s3-express";
3
+ export interface S3InputConfig {
4
+ forcePathStyle?: boolean;
5
+ useAccelerateEndpoint?: boolean;
6
+ disableMultiregionAccessPoints?: boolean;
7
+ followRegionRedirects?: boolean;
8
+ s3ExpressIdentityProvider?: S3ExpressIdentityProvider;
9
+ bucketEndpoint?: boolean;
10
+ expectContinueHeader?: boolean | number;
11
+ }
12
+ type PlaceholderS3Client = Client<any, any, any> & any;
13
+ type PlaceholderCreateSessionCommandCtor = {
14
+ new (args: any): Command<any, any, any, any, any>;
15
+ };
16
+ export interface S3ResolvedConfig {
17
+ forcePathStyle: boolean;
18
+ useAccelerateEndpoint: boolean;
19
+ disableMultiregionAccessPoints: boolean;
20
+ followRegionRedirects: boolean;
21
+ s3ExpressIdentityProvider: S3ExpressIdentityProvider;
22
+ bucketEndpoint: boolean;
23
+ expectContinueHeader: boolean | number;
24
+ }
25
+ export declare const resolveS3Config: <T>(
26
+ input: T & S3InputConfig,
27
+ {
28
+ session,
29
+ }: {
30
+ session: [() => PlaceholderS3Client, PlaceholderCreateSessionCommandCtor];
31
+ }
32
+ ) => T & S3ResolvedConfig;
33
+ export {};
@@ -0,0 +1,17 @@
1
+ import {
2
+ DeserializeMiddleware,
3
+ Encoder,
4
+ Pluggable,
5
+ RelativeMiddlewareOptions,
6
+ } from "@smithy/types";
7
+ type PreviouslyResolved = {
8
+ utf8Encoder: Encoder;
9
+ };
10
+ export declare const throw200ExceptionsMiddleware: (
11
+ config: PreviouslyResolved
12
+ ) => DeserializeMiddleware<any, any>;
13
+ export declare const throw200ExceptionsMiddlewareOptions: RelativeMiddlewareOptions;
14
+ export declare const getThrow200ExceptionsPlugin: (
15
+ config: PreviouslyResolved
16
+ ) => Pluggable<any, any>;
17
+ export {};
@@ -0,0 +1,13 @@
1
+ import {
2
+ InitializeHandlerOptions,
3
+ InitializeMiddleware,
4
+ Pluggable,
5
+ } from "@smithy/types";
6
+ import { S3ResolvedConfig } from "./s3Configuration";
7
+ export declare function validateBucketNameMiddleware({
8
+ bucketEndpoint,
9
+ }: S3ResolvedConfig): InitializeMiddleware<any, any>;
10
+ export declare const validateBucketNameMiddlewareOptions: InitializeHandlerOptions;
11
+ export declare const getValidateBucketNamePlugin: (
12
+ options: S3ResolvedConfig
13
+ ) => Pluggable<any, any>;
@@ -0,0 +1,14 @@
1
+ import type { InitializeHandlerOptions, InitializeMiddleware, Pluggable } from "@smithy/types";
2
+ import type { S3ResolvedConfig } from "./s3Configuration";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare function validateBucketNameMiddleware({ bucketEndpoint }: S3ResolvedConfig): InitializeMiddleware<any, any>;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const validateBucketNameMiddlewareOptions: InitializeHandlerOptions;
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const getValidateBucketNamePlugin: (options: S3ResolvedConfig) => Pluggable<any, any>;
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@aws-sdk/middleware-sdk-s3",
3
+ "version": "3.972.31",
4
+ "scripts": {
5
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
+ "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3",
7
+ "build:es": "tsc -p tsconfig.es.json",
8
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
+ "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "test": "yarn g:vitest run",
13
+ "test:types": "tsc -p tsconfig.test.json",
14
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:types",
15
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
16
+ "extract:docs": "api-extractor run --local",
17
+ "test:watch": "yarn g:vitest watch",
18
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
19
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
20
+ },
21
+ "main": "./dist-cjs/index.js",
22
+ "module": "./dist-es/index.js",
23
+ "types": "./dist-types/index.d.ts",
24
+ "sideEffects": false,
25
+ "author": {
26
+ "name": "AWS SDK for JavaScript Team",
27
+ "url": "https://aws.amazon.com/javascript/"
28
+ },
29
+ "license": "Apache-2.0",
30
+ "dependencies": {
31
+ "@aws-sdk/core": "^3.974.2",
32
+ "@aws-sdk/types": "^3.973.8",
33
+ "@aws-sdk/util-arn-parser": "^3.972.3",
34
+ "@smithy/core": "^3.23.15",
35
+ "@smithy/node-config-provider": "^4.3.14",
36
+ "@smithy/protocol-http": "^5.3.14",
37
+ "@smithy/signature-v4": "^5.3.14",
38
+ "@smithy/smithy-client": "^4.12.11",
39
+ "@smithy/types": "^4.14.1",
40
+ "@smithy/util-config-provider": "^4.2.2",
41
+ "@smithy/util-middleware": "^4.2.14",
42
+ "@smithy/util-stream": "^4.5.23",
43
+ "@smithy/util-utf8": "^4.2.2",
44
+ "tslib": "^2.6.2"
45
+ },
46
+ "devDependencies": {
47
+ "@tsconfig/recommended": "1.0.1",
48
+ "concurrently": "7.0.0",
49
+ "downlevel-dts": "0.10.1",
50
+ "premove": "4.0.0",
51
+ "typescript": "~5.8.3"
52
+ },
53
+ "engines": {
54
+ "node": ">=20.0.0"
55
+ },
56
+ "typesVersions": {
57
+ "<4.5": {
58
+ "dist-types/*": [
59
+ "dist-types/ts3.4/*"
60
+ ]
61
+ }
62
+ },
63
+ "files": [
64
+ "dist-*/**"
65
+ ],
66
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
70
+ "directory": "packages-internal/middleware-sdk-s3"
71
+ }
72
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.972.31",
3
+ "version": "3.972.32",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "^3.974.1",
28
+ "@aws-sdk/core": "^3.974.2",
29
29
  "@aws-sdk/types": "^3.973.8",
30
30
  "@aws-sdk/util-endpoints": "^3.996.7",
31
31
  "@smithy/core": "^3.23.15",
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const m = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [h]],
10
+ [c, l],
11
+ ["aws.partition", l, d],
12
+ [e, [{ [m]: "UseFIPS" }, b]],
13
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
14
+ [e, [{ [m]: "UseDualStack" }, b]],
15
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
16
+ [g, [{ fn: f, argv: [i, "name"] }, "aws"]],
17
+ [g, [j, "us-east-1"]],
18
+ [g, [j, "us-east-2"]],
19
+ [g, [j, "us-west-1"]],
20
+ [g, [j, "us-west-2"]],
21
+ ],
22
+ results: [
23
+ [a],
24
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
25
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
26
+ [h, k],
27
+ ["https://cognito-identity-fips.us-east-1.amazonaws.com", k],
28
+ ["https://cognito-identity-fips.us-east-2.amazonaws.com", k],
29
+ ["https://cognito-identity-fips.us-west-1.amazonaws.com", k],
30
+ ["https://cognito-identity-fips.us-west-2.amazonaws.com", k],
31
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
32
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
33
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k],
34
+ [a, "FIPS is enabled but this partition does not support FIPS"],
35
+ ["https://cognito-identity.{Region}.amazonaws.com", k],
36
+ ["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
37
+ [a, "DualStack is enabled but this partition does not support DualStack"],
38
+ ["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k],
39
+ [a, "Invalid Configuration: Missing Region"],
40
+ ],
41
+ };
42
+ const root = 2;
43
+ const r = 100_000_000;
44
+ const nodes = new Int32Array([
45
+ -1,
46
+ 1,
47
+ -1,
48
+ 0,
49
+ 17,
50
+ 3,
51
+ 1,
52
+ 4,
53
+ r + 16,
54
+ 2,
55
+ 5,
56
+ r + 16,
57
+ 3,
58
+ 9,
59
+ 6,
60
+ 5,
61
+ 7,
62
+ r + 15,
63
+ 6,
64
+ 8,
65
+ r + 14,
66
+ 7,
67
+ r + 12,
68
+ r + 13,
69
+ 4,
70
+ 11,
71
+ 10,
72
+ 5,
73
+ r + 9,
74
+ r + 11,
75
+ 5,
76
+ 12,
77
+ r + 10,
78
+ 6,
79
+ 13,
80
+ r + 9,
81
+ 8,
82
+ r + 4,
83
+ 14,
84
+ 9,
85
+ r + 5,
86
+ 15,
87
+ 10,
88
+ r + 6,
89
+ 16,
90
+ 11,
91
+ r + 7,
92
+ r + 8,
93
+ 3,
94
+ r + 1,
95
+ 18,
96
+ 5,
97
+ r + 2,
98
+ r + 3,
99
+ ]);
100
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const m = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { fn: f, argv: [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [h]],
10
+ [c, l],
11
+ ["aws.partition", l, d],
12
+ [e, [{ [m]: "UseFIPS" }, b]],
13
+ [e, [{ [m]: "UseDualStack" }, b]],
14
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
15
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
16
+ [g, [j, "aws"]],
17
+ [g, [j, "aws-cn"]],
18
+ [g, [j, "aws-us-gov"]],
19
+ ],
20
+ results: [
21
+ [a],
22
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
23
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
24
+ [h, k],
25
+ ["https://{Region}.signin.aws.amazon.com", k],
26
+ ["https://{Region}.signin.amazonaws.cn", k],
27
+ ["https://{Region}.signin.amazonaws-us-gov.com", k],
28
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
29
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
30
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
31
+ [a, "FIPS is enabled but this partition does not support FIPS"],
32
+ ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
33
+ [a, "DualStack is enabled but this partition does not support DualStack"],
34
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
35
+ [a, "Invalid Configuration: Missing Region"],
36
+ ],
37
+ };
38
+ const root = 2;
39
+ const r = 100_000_000;
40
+ const nodes = new Int32Array([
41
+ -1,
42
+ 1,
43
+ -1,
44
+ 0,
45
+ 15,
46
+ 3,
47
+ 1,
48
+ 4,
49
+ r + 14,
50
+ 2,
51
+ 5,
52
+ r + 14,
53
+ 3,
54
+ 11,
55
+ 6,
56
+ 4,
57
+ 10,
58
+ 7,
59
+ 7,
60
+ r + 4,
61
+ 8,
62
+ 8,
63
+ r + 5,
64
+ 9,
65
+ 9,
66
+ r + 6,
67
+ r + 13,
68
+ 5,
69
+ r + 11,
70
+ r + 12,
71
+ 4,
72
+ 13,
73
+ 12,
74
+ 6,
75
+ r + 9,
76
+ r + 10,
77
+ 5,
78
+ 14,
79
+ r + 8,
80
+ 6,
81
+ r + 7,
82
+ r + 8,
83
+ 3,
84
+ r + 1,
85
+ 16,
86
+ 4,
87
+ r + 2,
88
+ r + 3,
89
+ ]);
90
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const k = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [g]],
10
+ [c, j],
11
+ ["aws.partition", j, d],
12
+ [e, [{ [k]: "UseFIPS" }, b]],
13
+ [e, [{ [k]: "UseDualStack" }, b]],
14
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
15
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
16
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
17
+ ],
18
+ results: [
19
+ [a],
20
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
21
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
22
+ [g, i],
23
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
25
+ ["https://portal.sso.{Region}.amazonaws.com", i],
26
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
27
+ [a, "FIPS is enabled but this partition does not support FIPS"],
28
+ ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
29
+ [a, "DualStack is enabled but this partition does not support DualStack"],
30
+ ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
31
+ [a, "Invalid Configuration: Missing Region"],
32
+ ],
33
+ };
34
+ const root = 2;
35
+ const r = 100_000_000;
36
+ const nodes = new Int32Array([
37
+ -1,
38
+ 1,
39
+ -1,
40
+ 0,
41
+ 13,
42
+ 3,
43
+ 1,
44
+ 4,
45
+ r + 12,
46
+ 2,
47
+ 5,
48
+ r + 12,
49
+ 3,
50
+ 8,
51
+ 6,
52
+ 4,
53
+ 7,
54
+ r + 11,
55
+ 5,
56
+ r + 9,
57
+ r + 10,
58
+ 4,
59
+ 11,
60
+ 9,
61
+ 6,
62
+ 10,
63
+ r + 8,
64
+ 7,
65
+ r + 6,
66
+ r + 7,
67
+ 5,
68
+ 12,
69
+ r + 5,
70
+ 6,
71
+ r + 4,
72
+ r + 5,
73
+ 3,
74
+ r + 1,
75
+ 14,
76
+ 4,
77
+ r + 2,
78
+ r + 3,
79
+ ]);
80
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const k = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [g]],
10
+ [c, j],
11
+ ["aws.partition", j, d],
12
+ [e, [{ [k]: "UseFIPS" }, b]],
13
+ [e, [{ [k]: "UseDualStack" }, b]],
14
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
15
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
16
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
17
+ ],
18
+ results: [
19
+ [a],
20
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
21
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
22
+ [g, i],
23
+ ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
25
+ ["https://oidc.{Region}.amazonaws.com", i],
26
+ ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
27
+ [a, "FIPS is enabled but this partition does not support FIPS"],
28
+ ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
29
+ [a, "DualStack is enabled but this partition does not support DualStack"],
30
+ ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
31
+ [a, "Invalid Configuration: Missing Region"],
32
+ ],
33
+ };
34
+ const root = 2;
35
+ const r = 100_000_000;
36
+ const nodes = new Int32Array([
37
+ -1,
38
+ 1,
39
+ -1,
40
+ 0,
41
+ 13,
42
+ 3,
43
+ 1,
44
+ 4,
45
+ r + 12,
46
+ 2,
47
+ 5,
48
+ r + 12,
49
+ 3,
50
+ 8,
51
+ 6,
52
+ 4,
53
+ 7,
54
+ r + 11,
55
+ 5,
56
+ r + 9,
57
+ r + 10,
58
+ 4,
59
+ 11,
60
+ 9,
61
+ 6,
62
+ 10,
63
+ r + 8,
64
+ 7,
65
+ r + 6,
66
+ r + 7,
67
+ 5,
68
+ 12,
69
+ r + 5,
70
+ 6,
71
+ r + 4,
72
+ r + 5,
73
+ 3,
74
+ r + 1,
75
+ 14,
76
+ 4,
77
+ r + 2,
78
+ r + 3,
79
+ ]);
80
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -43,6 +43,7 @@ class STSClient extends smithy_client_1.Client {
43
43
  httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
44
44
  identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
45
45
  "aws.auth#sigv4": config.credentials,
46
+ "aws.auth#sigv4a": config.credentials,
46
47
  }),
47
48
  }));
48
49
  this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));