@cdk8s/awscdk-resolver 0.0.538 → 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
@@ -2,9 +2,25 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
7
  const util_middleware_1 = require("@smithy/util-middleware");
8
+ const endpointResolver_1 = require("../endpoint/endpointResolver");
6
9
  const STSClient_1 = require("../STSClient");
7
- const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
10
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
11
+ if (!input) {
12
+ throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
13
+ }
14
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
15
+ const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
16
+ ?.getEndpointParameterInstructions;
17
+ if (!instructionsFn) {
18
+ throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
19
+ }
20
+ const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
21
+ return Object.assign(defaultParameters, endpointParameters);
22
+ };
23
+ const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
8
24
  return {
9
25
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
10
26
  region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
@@ -13,7 +29,7 @@ const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input
13
29
  })(),
14
30
  };
15
31
  };
16
- exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
32
+ exports.defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
17
33
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
18
34
  return {
19
35
  schemeId: "aws.auth#sigv4",
@@ -29,25 +45,90 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
29
45
  }),
30
46
  };
31
47
  }
48
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
49
+ return {
50
+ schemeId: "aws.auth#sigv4a",
51
+ signingProperties: {
52
+ name: "sts",
53
+ region: authParameters.region,
54
+ },
55
+ propertiesExtractor: (config, context) => ({
56
+ signingProperties: {
57
+ config,
58
+ context,
59
+ },
60
+ }),
61
+ };
62
+ }
32
63
  function createSmithyApiNoAuthHttpAuthOption(authParameters) {
33
64
  return {
34
65
  schemeId: "smithy.api#noAuth",
35
66
  };
36
67
  }
37
- const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
68
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
69
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
70
+ const endpoint = defaultEndpointResolver(authParameters);
71
+ const authSchemes = endpoint.properties?.authSchemes;
72
+ if (!authSchemes) {
73
+ return defaultHttpAuthSchemeResolver(authParameters);
74
+ }
75
+ const options = [];
76
+ for (const scheme of authSchemes) {
77
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
78
+ const name = resolvedName.toLowerCase();
79
+ if (resolvedName !== name) {
80
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
81
+ }
82
+ let schemeId;
83
+ if (name === "sigv4a") {
84
+ schemeId = "aws.auth#sigv4a";
85
+ const sigv4Present = authSchemes.find((s) => {
86
+ const name = s.name.toLowerCase();
87
+ return name !== "sigv4a" && name.startsWith("sigv4");
88
+ });
89
+ if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
90
+ continue;
91
+ }
92
+ }
93
+ else if (name.startsWith("sigv4")) {
94
+ schemeId = "aws.auth#sigv4";
95
+ }
96
+ else {
97
+ throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
98
+ }
99
+ const createOption = createHttpAuthOptionFunctions[schemeId];
100
+ if (!createOption) {
101
+ throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
102
+ }
103
+ const option = createOption(authParameters);
104
+ option.schemeId = schemeId;
105
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
106
+ options.push(option);
107
+ }
108
+ return options;
109
+ };
110
+ return endpointRuleSetHttpAuthSchemeProvider;
111
+ };
112
+ const _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
38
113
  const options = [];
39
114
  switch (authParameters.operation) {
40
115
  case "AssumeRoleWithWebIdentity": {
41
116
  options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
117
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
42
118
  break;
43
119
  }
44
120
  default: {
45
121
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
122
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
46
123
  }
47
124
  }
48
125
  return options;
49
126
  };
50
- exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
127
+ exports.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
128
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
129
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
130
+ "smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
131
+ });
51
132
  const resolveStsAuthConfig = (input) => Object.assign(input, {
52
133
  stsClientCtor: STSClient_1.STSClient,
53
134
  });
@@ -55,7 +136,8 @@ exports.resolveStsAuthConfig = resolveStsAuthConfig;
55
136
  const resolveHttpAuthSchemeConfig = (config) => {
56
137
  const config_0 = (0, exports.resolveStsAuthConfig)(config);
57
138
  const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config_0);
58
- return Object.assign(config_1, {
139
+ const config_2 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_1);
140
+ return Object.assign(config_2, {
59
141
  authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
60
142
  });
61
143
  };
@@ -0,0 +1,150 @@
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 q = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [l]],
10
+ [c, p],
11
+ ["aws.partition", p, d],
12
+ [e, [{ [q]: "UseFIPS" }, b]],
13
+ [e, [{ [q]: "UseDualStack" }, b]],
14
+ [f, [m, "aws-global"]],
15
+ [e, [{ [q]: "UseGlobalEndpoint" }, b]],
16
+ [f, [m, "eu-central-1"]],
17
+ [e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
18
+ [e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
19
+ [f, [m, "ap-south-1"]],
20
+ [f, [m, "eu-north-1"]],
21
+ [f, [m, "eu-west-1"]],
22
+ [f, [m, "eu-west-2"]],
23
+ [f, [m, "eu-west-3"]],
24
+ [f, [m, "sa-east-1"]],
25
+ [f, [m, h]],
26
+ [f, [m, "us-east-2"]],
27
+ [f, [m, "us-west-2"]],
28
+ [f, [m, "us-west-1"]],
29
+ [f, [m, "ca-central-1"]],
30
+ [f, [m, "ap-southeast-1"]],
31
+ [f, [m, "ap-northeast-1"]],
32
+ [f, [m, "ap-southeast-2"]],
33
+ [f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]],
34
+ ],
35
+ results: [
36
+ [a],
37
+ ["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
38
+ [k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
39
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
40
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
41
+ [l, o],
42
+ ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
43
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
44
+ ["https://sts.{Region}.amazonaws.com", o],
45
+ ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
46
+ [a, "FIPS is enabled but this partition does not support FIPS"],
47
+ ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
48
+ [a, "DualStack is enabled but this partition does not support DualStack"],
49
+ [k, o],
50
+ [a, "Invalid Configuration: Missing Region"],
51
+ ],
52
+ };
53
+ const root = 2;
54
+ const r = 100_000_000;
55
+ const nodes = new Int32Array([
56
+ -1,
57
+ 1,
58
+ -1,
59
+ 0,
60
+ 30,
61
+ 3,
62
+ 1,
63
+ 4,
64
+ r + 14,
65
+ 2,
66
+ 5,
67
+ r + 14,
68
+ 3,
69
+ 25,
70
+ 6,
71
+ 4,
72
+ 24,
73
+ 7,
74
+ 5,
75
+ r + 1,
76
+ 8,
77
+ 6,
78
+ 9,
79
+ r + 13,
80
+ 7,
81
+ r + 1,
82
+ 10,
83
+ 10,
84
+ r + 1,
85
+ 11,
86
+ 11,
87
+ r + 1,
88
+ 12,
89
+ 12,
90
+ r + 1,
91
+ 13,
92
+ 13,
93
+ r + 1,
94
+ 14,
95
+ 14,
96
+ r + 1,
97
+ 15,
98
+ 15,
99
+ r + 1,
100
+ 16,
101
+ 16,
102
+ r + 1,
103
+ 17,
104
+ 17,
105
+ r + 1,
106
+ 18,
107
+ 18,
108
+ r + 1,
109
+ 19,
110
+ 19,
111
+ r + 1,
112
+ 20,
113
+ 20,
114
+ r + 1,
115
+ 21,
116
+ 21,
117
+ r + 1,
118
+ 22,
119
+ 22,
120
+ r + 1,
121
+ 23,
122
+ 23,
123
+ r + 1,
124
+ r + 2,
125
+ 8,
126
+ r + 11,
127
+ r + 12,
128
+ 4,
129
+ 28,
130
+ 26,
131
+ 9,
132
+ 27,
133
+ r + 10,
134
+ 24,
135
+ r + 8,
136
+ r + 9,
137
+ 8,
138
+ 29,
139
+ r + 7,
140
+ 9,
141
+ r + 6,
142
+ r + 7,
143
+ 3,
144
+ r + 3,
145
+ 31,
146
+ 4,
147
+ r + 4,
148
+ r + 5,
149
+ ]);
150
+ 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", "UseGlobalEndpoint"],
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,11 @@ const getRuntimeConfig = (config) => {
43
43
  (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
44
44
  signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
45
45
  },
46
+ {
47
+ schemeId: "aws.auth#sigv4a",
48
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
49
+ signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
50
+ },
46
51
  {
47
52
  schemeId: "smithy.api#noAuth",
48
53
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
@@ -59,6 +64,7 @@ const getRuntimeConfig = (config) => {
59
64
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
60
65
  }, config),
61
66
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
67
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
62
68
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
63
69
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
64
70
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
7
  const core_1 = require("@smithy/core");
7
8
  const smithy_client_1 = require("@smithy/smithy-client");
8
9
  const url_parser_1 = require("@smithy/url-parser");
@@ -26,6 +27,11 @@ const getRuntimeConfig = (config) => {
26
27
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
27
28
  signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
28
29
  },
30
+ {
31
+ schemeId: "aws.auth#sigv4a",
32
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
33
+ signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
34
+ },
29
35
  {
30
36
  schemeId: "smithy.api#noAuth",
31
37
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
@@ -42,6 +48,7 @@ const getRuntimeConfig = (config) => {
42
48
  serviceTarget: "AWSSecurityTokenServiceV20110615",
43
49
  },
44
50
  serviceId: config?.serviceId ?? "STS",
51
+ signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
45
52
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
46
53
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
47
54
  utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
@@ -0,0 +1,97 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const m = "ref";
3
+ 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];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [h]],
7
+ [c, l],
8
+ ["aws.partition", l, d],
9
+ [e, [{ [m]: "UseFIPS" }, b]],
10
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
11
+ [e, [{ [m]: "UseDualStack" }, b]],
12
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
13
+ [g, [{ fn: f, argv: [i, "name"] }, "aws"]],
14
+ [g, [j, "us-east-1"]],
15
+ [g, [j, "us-east-2"]],
16
+ [g, [j, "us-west-1"]],
17
+ [g, [j, "us-west-2"]],
18
+ ],
19
+ results: [
20
+ [a],
21
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
22
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
23
+ [h, k],
24
+ ["https://cognito-identity-fips.us-east-1.amazonaws.com", k],
25
+ ["https://cognito-identity-fips.us-east-2.amazonaws.com", k],
26
+ ["https://cognito-identity-fips.us-west-1.amazonaws.com", k],
27
+ ["https://cognito-identity-fips.us-west-2.amazonaws.com", k],
28
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
29
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
30
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k],
31
+ [a, "FIPS is enabled but this partition does not support FIPS"],
32
+ ["https://cognito-identity.{Region}.amazonaws.com", k],
33
+ ["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
34
+ [a, "DualStack is enabled but this partition does not support DualStack"],
35
+ ["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k],
36
+ [a, "Invalid Configuration: Missing Region"],
37
+ ],
38
+ };
39
+ const root = 2;
40
+ const r = 100_000_000;
41
+ const nodes = new Int32Array([
42
+ -1,
43
+ 1,
44
+ -1,
45
+ 0,
46
+ 17,
47
+ 3,
48
+ 1,
49
+ 4,
50
+ r + 16,
51
+ 2,
52
+ 5,
53
+ r + 16,
54
+ 3,
55
+ 9,
56
+ 6,
57
+ 5,
58
+ 7,
59
+ r + 15,
60
+ 6,
61
+ 8,
62
+ r + 14,
63
+ 7,
64
+ r + 12,
65
+ r + 13,
66
+ 4,
67
+ 11,
68
+ 10,
69
+ 5,
70
+ r + 9,
71
+ r + 11,
72
+ 5,
73
+ 12,
74
+ r + 10,
75
+ 6,
76
+ 13,
77
+ r + 9,
78
+ 8,
79
+ r + 4,
80
+ 14,
81
+ 9,
82
+ r + 5,
83
+ 15,
84
+ 10,
85
+ r + 6,
86
+ 16,
87
+ 11,
88
+ r + 7,
89
+ r + 8,
90
+ 3,
91
+ r + 1,
92
+ 18,
93
+ 5,
94
+ r + 2,
95
+ r + 3,
96
+ ]);
97
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,87 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const m = "ref";
3
+ 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" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [h]],
7
+ [c, l],
8
+ ["aws.partition", l, d],
9
+ [e, [{ [m]: "UseFIPS" }, b]],
10
+ [e, [{ [m]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
13
+ [g, [j, "aws"]],
14
+ [g, [j, "aws-cn"]],
15
+ [g, [j, "aws-us-gov"]],
16
+ ],
17
+ results: [
18
+ [a],
19
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
20
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
21
+ [h, k],
22
+ ["https://{Region}.signin.aws.amazon.com", k],
23
+ ["https://{Region}.signin.amazonaws.cn", k],
24
+ ["https://{Region}.signin.amazonaws-us-gov.com", k],
25
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
26
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
27
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
28
+ [a, "FIPS is enabled but this partition does not support FIPS"],
29
+ ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
30
+ [a, "DualStack is enabled but this partition does not support DualStack"],
31
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
32
+ [a, "Invalid Configuration: Missing Region"],
33
+ ],
34
+ };
35
+ const root = 2;
36
+ const r = 100_000_000;
37
+ const nodes = new Int32Array([
38
+ -1,
39
+ 1,
40
+ -1,
41
+ 0,
42
+ 15,
43
+ 3,
44
+ 1,
45
+ 4,
46
+ r + 14,
47
+ 2,
48
+ 5,
49
+ r + 14,
50
+ 3,
51
+ 11,
52
+ 6,
53
+ 4,
54
+ 10,
55
+ 7,
56
+ 7,
57
+ r + 4,
58
+ 8,
59
+ 8,
60
+ r + 5,
61
+ 9,
62
+ 9,
63
+ r + 6,
64
+ r + 13,
65
+ 5,
66
+ r + 11,
67
+ r + 12,
68
+ 4,
69
+ 13,
70
+ 12,
71
+ 6,
72
+ r + 9,
73
+ r + 10,
74
+ 5,
75
+ 14,
76
+ r + 8,
77
+ 6,
78
+ r + 7,
79
+ r + 8,
80
+ 3,
81
+ r + 1,
82
+ 16,
83
+ 4,
84
+ r + 2,
85
+ r + 3,
86
+ ]);
87
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,77 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
14
+ ],
15
+ results: [
16
+ [a],
17
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
+ [g, i],
20
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
+ ["https://portal.sso.{Region}.amazonaws.com", i],
23
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
+ [a, "FIPS is enabled but this partition does not support FIPS"],
25
+ ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
+ [a, "DualStack is enabled but this partition does not support DualStack"],
27
+ ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
28
+ [a, "Invalid Configuration: Missing Region"],
29
+ ],
30
+ };
31
+ const root = 2;
32
+ const r = 100_000_000;
33
+ const nodes = new Int32Array([
34
+ -1,
35
+ 1,
36
+ -1,
37
+ 0,
38
+ 13,
39
+ 3,
40
+ 1,
41
+ 4,
42
+ r + 12,
43
+ 2,
44
+ 5,
45
+ r + 12,
46
+ 3,
47
+ 8,
48
+ 6,
49
+ 4,
50
+ 7,
51
+ r + 11,
52
+ 5,
53
+ r + 9,
54
+ r + 10,
55
+ 4,
56
+ 11,
57
+ 9,
58
+ 6,
59
+ 10,
60
+ r + 8,
61
+ 7,
62
+ r + 6,
63
+ r + 7,
64
+ 5,
65
+ 12,
66
+ r + 5,
67
+ 6,
68
+ r + 4,
69
+ r + 5,
70
+ 3,
71
+ r + 1,
72
+ 14,
73
+ 4,
74
+ r + 2,
75
+ r + 3,
76
+ ]);
77
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));