@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
@@ -0,0 +1,16 @@
1
+ import type { S3ExpressIdentityCacheEntry } from "./S3ExpressIdentityCacheEntry";
2
+ /**
3
+ * @internal
4
+ *
5
+ * Stores identities by key.
6
+ */
7
+ export declare class S3ExpressIdentityCache {
8
+ private data;
9
+ private lastPurgeTime;
10
+ static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS: number;
11
+ constructor(data?: Record<string, S3ExpressIdentityCacheEntry>);
12
+ get(key: string): undefined | S3ExpressIdentityCacheEntry;
13
+ set(key: string, entry: S3ExpressIdentityCacheEntry): S3ExpressIdentityCacheEntry;
14
+ delete(key: string): void;
15
+ purgeExpired(): Promise<void>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class S3ExpressIdentityCacheEntry {
6
+ private _identity;
7
+ isRefreshing: boolean;
8
+ accessed: number;
9
+ /**
10
+ * @param identity - stored identity.
11
+ * @param accessed - timestamp of last access in epoch ms.
12
+ * @param isRefreshing - this key is currently in the process of being refreshed (background).
13
+ */
14
+ constructor(_identity: Promise<S3ExpressIdentity>, isRefreshing?: boolean, accessed?: number);
15
+ get identity(): Promise<S3ExpressIdentity>;
16
+ }
@@ -0,0 +1,32 @@
1
+ import type { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import type { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
3
+ import type { S3ExpressIdentityProvider } from "../interfaces/S3ExpressIdentityProvider";
4
+ import { S3ExpressIdentityCache } from "./S3ExpressIdentityCache";
5
+ /**
6
+ * @internal
7
+ *
8
+ * This should match S3::CreateSessionCommandOutput::SessionCredentials
9
+ * but it is not imported since that would create a circular dependency.
10
+ */
11
+ type Credentials = {
12
+ AccessKeyId: string | undefined;
13
+ SecretAccessKey: string | undefined;
14
+ SessionToken: string | undefined;
15
+ Expiration: Date | undefined;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare class S3ExpressIdentityProviderImpl implements S3ExpressIdentityProvider {
21
+ private createSessionFn;
22
+ private cache;
23
+ static REFRESH_WINDOW_MS: number;
24
+ constructor(createSessionFn: (key: string) => Promise<{
25
+ Credentials: Credentials;
26
+ }>, cache?: S3ExpressIdentityCache);
27
+ getS3ExpressIdentity(awsIdentity: AwsCredentialIdentity, identityProperties: {
28
+ Bucket: string;
29
+ } & Record<string, string>): Promise<S3ExpressIdentity>;
30
+ private getIdentity;
31
+ }
32
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { SignatureV4 } from "@smithy/signature-v4";
3
+ import type { HttpRequest as IHttpRequest, RequestPresigningArguments, RequestSigningArguments } from "@smithy/types";
4
+ export declare class SignatureV4S3Express extends SignatureV4 {
5
+ /**
6
+ * Signs with alternate provided credentials instead of those provided in the
7
+ * constructor.
8
+ *
9
+ * Additionally omits the credential sessionToken and assigns it to the
10
+ * alternate header field for S3 Express.
11
+ */
12
+ signWithCredentials(requestToSign: IHttpRequest, credentials: AwsCredentialIdentity, options?: RequestSigningArguments): Promise<IHttpRequest>;
13
+ /**
14
+ * Similar to {@link SignatureV4S3Express#signWithCredentials} but for presigning.
15
+ */
16
+ presignWithCredentials(requestToSign: IHttpRequest, credentials: AwsCredentialIdentity, options?: RequestPresigningArguments): Promise<IHttpRequest>;
17
+ }
@@ -0,0 +1,37 @@
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
+ /**
3
+ * @internal
4
+ *
5
+ * @deprecated will be replaced by backend.
6
+ *
7
+ * TODO(s3-express): non-beta value, backend == S3Express.
8
+ */
9
+ export declare const S3_EXPRESS_BUCKET_TYPE = "Directory";
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare const S3_EXPRESS_BACKEND = "S3Express";
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express";
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const SESSION_TOKEN_HEADER: string;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";
30
+ /**
31
+ * @internal
32
+ */
33
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth";
34
+ /**
35
+ * @internal
36
+ */
37
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -0,0 +1,27 @@
1
+ import type { IHttpRequest } from "@smithy/protocol-http";
2
+ import type { AuthScheme, AwsCredentialIdentity, FinalizeRequestMiddleware, Pluggable, RequestSigner } from "@smithy/types";
3
+ interface SigningProperties {
4
+ signingRegion: string;
5
+ signingDate: Date;
6
+ signingService: string;
7
+ }
8
+ interface PreviouslyResolved {
9
+ signer: (authScheme?: AuthScheme | undefined) => Promise<RequestSigner & {
10
+ signWithCredentials(req: IHttpRequest, identity: AwsCredentialIdentity, opts?: Partial<SigningProperties>): Promise<IHttpRequest>;
11
+ }>;
12
+ }
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare const s3ExpressHttpSigningMiddlewareOptions: import("@smithy/types").FinalizeRequestHandlerOptions & import("@smithy/types").RelativeLocation & Omit<import("@smithy/types").HandlerOptions, "step">;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const s3ExpressHttpSigningMiddleware: <Input extends object, Output extends object>(config: PreviouslyResolved) => FinalizeRequestMiddleware<any, any>;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const getS3ExpressHttpSigningPlugin: (config: {
25
+ signer: (authScheme?: AuthScheme | undefined) => Promise<RequestSigner>;
26
+ }) => Pluggable<any, any>;
27
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import type { BuildHandlerOptions, BuildMiddleware, Logger, MemoizedProvider, Pluggable } from "@smithy/types";
3
+ import type { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
4
+ import type { S3ExpressIdentityProvider } from "../interfaces/S3ExpressIdentityProvider";
5
+ declare module "@smithy/types" {
6
+ interface HandlerExecutionContext {
7
+ /**
8
+ * Reserved key, only when using S3.
9
+ */
10
+ s3ExpressIdentity?: S3ExpressIdentity;
11
+ }
12
+ }
13
+ /**
14
+ * @internal
15
+ */
16
+ export interface S3ExpressResolvedConfig {
17
+ logger?: Logger;
18
+ s3ExpressIdentityProvider: S3ExpressIdentityProvider;
19
+ credentials: MemoizedProvider<AwsCredentialIdentity>;
20
+ }
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const s3ExpressMiddleware: (options: S3ExpressResolvedConfig) => BuildMiddleware<any, any>;
25
+ /**
26
+ * @internal
27
+ */
28
+ export declare const s3ExpressMiddlewareOptions: BuildHandlerOptions;
29
+ /**
30
+ * @internal
31
+ */
32
+ export declare const getS3ExpressPlugin: (options: S3ExpressResolvedConfig) => Pluggable<any, any>;
@@ -0,0 +1,9 @@
1
+ import type { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
2
+ import type { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
3
+ export declare const signS3Express: (s3ExpressIdentity: S3ExpressIdentity, signingOptions: {
4
+ signingDate: Date;
5
+ signingRegion: string;
6
+ signingService: string;
7
+ }, request: IHttpRequest, sigV4MultiRegionSigner: {
8
+ signWithCredentials(req: IHttpRequest, identity: AwsCredentialIdentity, opts?: Partial<typeof signingOptions>): Promise<IHttpRequest>;
9
+ }) => Promise<IHttpRequest>;
@@ -0,0 +1,9 @@
1
+ export { S3ExpressIdentityCache } from "./classes/S3ExpressIdentityCache";
2
+ export { S3ExpressIdentityCacheEntry } from "./classes/S3ExpressIdentityCacheEntry";
3
+ export { S3ExpressIdentityProviderImpl } from "./classes/S3ExpressIdentityProviderImpl";
4
+ export { SignatureV4S3Express } from "./classes/SignatureV4S3Express";
5
+ export { NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS } from "./constants";
6
+ export { getS3ExpressPlugin, s3ExpressMiddleware, s3ExpressMiddlewareOptions } from "./functions/s3ExpressMiddleware";
7
+ export { getS3ExpressHttpSigningPlugin, s3ExpressHttpSigningMiddleware, s3ExpressHttpSigningMiddlewareOptions, } from "./functions/s3ExpressHttpSigningMiddleware";
8
+ export { S3ExpressIdentity } from "./interfaces/S3ExpressIdentity";
9
+ export { S3ExpressIdentityProvider } from "./interfaces/S3ExpressIdentityProvider";
@@ -0,0 +1,6 @@
1
+ import type { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface S3ExpressIdentity extends AwsCredentialIdentity {
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import type { S3ExpressIdentity } from "./S3ExpressIdentity";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface S3ExpressIdentityProvider {
7
+ /**
8
+ * @param awsIdentity - pre-existing credentials.
9
+ * @param identityProperties - unknown.
10
+ */
11
+ getS3ExpressIdentity(awsIdentity: AwsCredentialIdentity, identityProperties: Record<string, string>): Promise<S3ExpressIdentity>;
12
+ }
@@ -0,0 +1,79 @@
1
+ import type { Client, Command } from "@smithy/types";
2
+ import type { S3ExpressIdentityProvider } from "./s3-express";
3
+ /**
4
+ * All endpoint parameters with built-in bindings of AWS::S3::*
5
+ * @public
6
+ */
7
+ export interface S3InputConfig {
8
+ /**
9
+ * Whether to force path style URLs for S3 objects
10
+ * (e.g., https://s3.amazonaws.com/<bucketName>/<key> instead of https://<bucketName>.s3.amazonaws.com/<key>
11
+ */
12
+ forcePathStyle?: boolean;
13
+ /**
14
+ * Whether to use the S3 Transfer Acceleration endpoint by default
15
+ */
16
+ useAccelerateEndpoint?: boolean;
17
+ /**
18
+ * Whether multi-region access points (MRAP) should be disabled.
19
+ */
20
+ disableMultiregionAccessPoints?: boolean;
21
+ /**
22
+ * This feature was previously called the S3 Global Client.
23
+ * This can result in additional latency as failed requests are retried
24
+ * with a corrected region when receiving a permanent redirect error with status 301.
25
+ * This feature should only be used as a last resort if you do not know the region of your bucket(s) ahead of time.
26
+ */
27
+ followRegionRedirects?: boolean;
28
+ /**
29
+ * Identity provider for an S3 feature.
30
+ */
31
+ s3ExpressIdentityProvider?: S3ExpressIdentityProvider;
32
+ /**
33
+ * Whether to use the bucket name as the endpoint for this client.
34
+ */
35
+ bucketEndpoint?: boolean;
36
+ /**
37
+ * This field configures the SDK's behavior around setting the `expect: 100-continue` header.
38
+ *
39
+ * Default: 2_097_152 (2 MB)
40
+ *
41
+ * When given as a boolean - always send or omit the header.
42
+ * When given as a number - minimum byte threshold of the payload before setting the header.
43
+ * Unmeasurable payload sizes (streams) will set the header too.
44
+ *
45
+ * The `expect: 100-continue` header is used to allow the server a chance to validate the PUT request
46
+ * headers before the client begins to send the object payload. This avoids wasteful data transmission for a
47
+ * request that is rejected.
48
+ *
49
+ * However, there is a trade-off where the request will take longer to complete.
50
+ */
51
+ expectContinueHeader?: boolean | number;
52
+ }
53
+ /**
54
+ * This is a placeholder for the actual
55
+ * S3Client type from \@aws-sdk/client-s3. It is not explicitly
56
+ * imported to avoid a circular dependency.
57
+ * @internal
58
+ */
59
+ type PlaceholderS3Client = Client<any, any, any> & any;
60
+ /**
61
+ * Placeholder for the constructor for CreateSessionCommand.
62
+ * @internal
63
+ */
64
+ type PlaceholderCreateSessionCommandCtor = {
65
+ new (args: any): Command<any, any, any, any, any>;
66
+ };
67
+ export interface S3ResolvedConfig {
68
+ forcePathStyle: boolean;
69
+ useAccelerateEndpoint: boolean;
70
+ disableMultiregionAccessPoints: boolean;
71
+ followRegionRedirects: boolean;
72
+ s3ExpressIdentityProvider: S3ExpressIdentityProvider;
73
+ bucketEndpoint: boolean;
74
+ expectContinueHeader: boolean | number;
75
+ }
76
+ export declare const resolveS3Config: <T>(input: T & S3InputConfig, { session, }: {
77
+ session: [() => PlaceholderS3Client, PlaceholderCreateSessionCommandCtor];
78
+ }) => T & S3ResolvedConfig;
79
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { DeserializeMiddleware, Encoder, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
2
+ type PreviouslyResolved = {
3
+ utf8Encoder: Encoder;
4
+ };
5
+ /**
6
+ * In case of an internal error/terminated connection, S3 operations may return 200 errors. CopyObject, UploadPartCopy,
7
+ * CompleteMultipartUpload may return empty payload or payload with only xml Preamble.
8
+ * @internal
9
+ */
10
+ export declare const throw200ExceptionsMiddleware: (config: PreviouslyResolved) => DeserializeMiddleware<any, any>;
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const throw200ExceptionsMiddlewareOptions: RelativeMiddlewareOptions;
15
+ /**
16
+ *
17
+ * @internal
18
+ */
19
+ export declare const getThrow200ExceptionsPlugin: (config: PreviouslyResolved) => Pluggable<any, any>;
20
+ export {};
@@ -0,0 +1,9 @@
1
+ import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
+ interface PreviouslyResolved {
3
+ bucketEndpoint?: boolean;
4
+ }
5
+ export declare function bucketEndpointMiddleware(
6
+ options: PreviouslyResolved
7
+ ): SerializeMiddleware<any, any>;
8
+ export declare const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import {
2
+ FinalizeRequestHandlerOptions,
3
+ FinalizeRequestMiddleware,
4
+ Pluggable,
5
+ } from "@smithy/types";
6
+ export declare function checkContentLengthHeader(): FinalizeRequestMiddleware<
7
+ any,
8
+ any
9
+ >;
10
+ export declare const checkContentLengthHeaderMiddlewareOptions: FinalizeRequestHandlerOptions;
11
+ export declare const getCheckContentLengthHeaderPlugin: (
12
+ unused: any
13
+ ) => Pluggable<any, any>;
@@ -0,0 +1,9 @@
1
+ export * from "./check-content-length-header";
2
+ export * from "./region-redirect-endpoint-middleware";
3
+ export * from "./region-redirect-middleware";
4
+ export * from "./s3-expires-middleware";
5
+ export * from "./s3-express/index";
6
+ export * from "./s3Configuration";
7
+ export * from "./throw-200-exceptions";
8
+ export * from "./validate-bucket-name";
9
+ export { S3RestXmlProtocol } from "./protocol/S3RestXmlProtocol";
@@ -0,0 +1,15 @@
1
+ import { AwsRestXmlProtocol } from "@aws-sdk/core/protocols";
2
+ import {
3
+ EndpointBearer,
4
+ HandlerExecutionContext,
5
+ HttpRequest,
6
+ OperationSchema,
7
+ SerdeFunctions,
8
+ } from "@smithy/types";
9
+ export declare class S3RestXmlProtocol extends AwsRestXmlProtocol {
10
+ serializeRequest<Input extends object>(
11
+ operationSchema: OperationSchema,
12
+ input: Input,
13
+ context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
14
+ ): Promise<HttpRequest>;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
+ import { PreviouslyResolved } from "./region-redirect-middleware";
3
+ export declare const regionRedirectEndpointMiddleware: (
4
+ config: PreviouslyResolved
5
+ ) => SerializeMiddleware<any, any>;
6
+ export declare const regionRedirectEndpointMiddlewareOptions: RelativeMiddlewareOptions;
@@ -0,0 +1,17 @@
1
+ import {
2
+ InitializeHandlerOptions,
3
+ InitializeMiddleware,
4
+ Pluggable,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface PreviouslyResolved {
8
+ region: Provider<string>;
9
+ followRegionRedirects: boolean;
10
+ }
11
+ export declare function regionRedirectMiddleware(
12
+ clientConfig: PreviouslyResolved
13
+ ): InitializeMiddleware<any, any>;
14
+ export declare const regionRedirectMiddlewareOptions: InitializeHandlerOptions;
15
+ export declare const getRegionRedirectMiddlewarePlugin: (
16
+ clientConfig: PreviouslyResolved
17
+ ) => Pluggable<any, any>;
@@ -0,0 +1,14 @@
1
+ import {
2
+ DeserializeMiddleware,
3
+ Pluggable,
4
+ RelativeMiddlewareOptions,
5
+ } from "@smithy/types";
6
+ interface PreviouslyResolved {}
7
+ export declare const s3ExpiresMiddleware: (
8
+ config: PreviouslyResolved
9
+ ) => DeserializeMiddleware<any, any>;
10
+ export declare const s3ExpiresMiddlewareOptions: RelativeMiddlewareOptions;
11
+ export declare const getS3ExpiresMiddlewarePlugin: (
12
+ clientConfig: PreviouslyResolved
13
+ ) => Pluggable<any, any>;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ import { S3ExpressIdentityCacheEntry } from "./S3ExpressIdentityCacheEntry";
2
+ export declare class S3ExpressIdentityCache {
3
+ private data;
4
+ private lastPurgeTime;
5
+ static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS: number;
6
+ constructor(data?: Record<string, S3ExpressIdentityCacheEntry>);
7
+ get(key: string): undefined | S3ExpressIdentityCacheEntry;
8
+ set(
9
+ key: string,
10
+ entry: S3ExpressIdentityCacheEntry
11
+ ): S3ExpressIdentityCacheEntry;
12
+ delete(key: string): void;
13
+ purgeExpired(): Promise<void>;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
2
+ export declare class S3ExpressIdentityCacheEntry {
3
+ private _identity;
4
+ isRefreshing: boolean;
5
+ accessed: number;
6
+ constructor(
7
+ _identity: Promise<S3ExpressIdentity>,
8
+ isRefreshing?: boolean,
9
+ accessed?: number
10
+ );
11
+ readonly identity: Promise<S3ExpressIdentity>;
12
+ }
@@ -0,0 +1,31 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
3
+ import { S3ExpressIdentityProvider } from "../interfaces/S3ExpressIdentityProvider";
4
+ import { S3ExpressIdentityCache } from "./S3ExpressIdentityCache";
5
+ type Credentials = {
6
+ AccessKeyId: string | undefined;
7
+ SecretAccessKey: string | undefined;
8
+ SessionToken: string | undefined;
9
+ Expiration: Date | undefined;
10
+ };
11
+ export declare class S3ExpressIdentityProviderImpl
12
+ implements S3ExpressIdentityProvider
13
+ {
14
+ private createSessionFn;
15
+ private cache;
16
+ static REFRESH_WINDOW_MS: number;
17
+ constructor(
18
+ createSessionFn: (key: string) => Promise<{
19
+ Credentials: Credentials;
20
+ }>,
21
+ cache?: S3ExpressIdentityCache
22
+ );
23
+ getS3ExpressIdentity(
24
+ awsIdentity: AwsCredentialIdentity,
25
+ identityProperties: {
26
+ Bucket: string;
27
+ } & Record<string, string>
28
+ ): Promise<S3ExpressIdentity>;
29
+ private getIdentity;
30
+ }
31
+ export {};
@@ -0,0 +1,19 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { SignatureV4 } from "@smithy/signature-v4";
3
+ import {
4
+ HttpRequest as IHttpRequest,
5
+ RequestPresigningArguments,
6
+ RequestSigningArguments,
7
+ } from "@smithy/types";
8
+ export declare class SignatureV4S3Express extends SignatureV4 {
9
+ signWithCredentials(
10
+ requestToSign: IHttpRequest,
11
+ credentials: AwsCredentialIdentity,
12
+ options?: RequestSigningArguments
13
+ ): Promise<IHttpRequest>;
14
+ presignWithCredentials(
15
+ requestToSign: IHttpRequest,
16
+ credentials: AwsCredentialIdentity,
17
+ options?: RequestPresigningArguments
18
+ ): Promise<IHttpRequest>;
19
+ }
@@ -0,0 +1,11 @@
1
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
+ export declare const S3_EXPRESS_BUCKET_TYPE = "Directory";
3
+ export declare const S3_EXPRESS_BACKEND = "S3Express";
4
+ export declare const S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express";
5
+ export declare const SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
6
+ export declare const SESSION_TOKEN_HEADER: string;
7
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME =
8
+ "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";
9
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME =
10
+ "s3_disable_express_session_auth";
11
+ export declare const NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -0,0 +1,40 @@
1
+ import { IHttpRequest } from "@smithy/protocol-http";
2
+ import {
3
+ AuthScheme,
4
+ AwsCredentialIdentity,
5
+ FinalizeRequestMiddleware,
6
+ Pluggable,
7
+ RequestSigner,
8
+ } from "@smithy/types";
9
+ interface SigningProperties {
10
+ signingRegion: string;
11
+ signingDate: Date;
12
+ signingService: string;
13
+ }
14
+ interface PreviouslyResolved {
15
+ signer: (authScheme?: AuthScheme | undefined) => Promise<
16
+ RequestSigner & {
17
+ signWithCredentials(
18
+ req: IHttpRequest,
19
+ identity: AwsCredentialIdentity,
20
+ opts?: Partial<SigningProperties>
21
+ ): Promise<IHttpRequest>;
22
+ }
23
+ >;
24
+ }
25
+ export declare const s3ExpressHttpSigningMiddlewareOptions: import("@smithy/types").FinalizeRequestHandlerOptions &
26
+ import("@smithy/types").RelativeLocation &
27
+ Pick<
28
+ import("@smithy/types").HandlerOptions,
29
+ Exclude<keyof import("@smithy/types").HandlerOptions, "step">
30
+ >;
31
+ export declare const s3ExpressHttpSigningMiddleware: <
32
+ Input extends object,
33
+ Output extends object
34
+ >(
35
+ config: PreviouslyResolved
36
+ ) => FinalizeRequestMiddleware<any, any>;
37
+ export declare const getS3ExpressHttpSigningPlugin: (config: {
38
+ signer: (authScheme?: AuthScheme | undefined) => Promise<RequestSigner>;
39
+ }) => Pluggable<any, any>;
40
+ export {};
@@ -0,0 +1,27 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import {
3
+ BuildHandlerOptions,
4
+ BuildMiddleware,
5
+ Logger,
6
+ MemoizedProvider,
7
+ Pluggable,
8
+ } from "@smithy/types";
9
+ import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
10
+ import { S3ExpressIdentityProvider } from "../interfaces/S3ExpressIdentityProvider";
11
+ declare module "@smithy/types" {
12
+ interface HandlerExecutionContext {
13
+ s3ExpressIdentity?: S3ExpressIdentity;
14
+ }
15
+ }
16
+ export interface S3ExpressResolvedConfig {
17
+ logger?: Logger;
18
+ s3ExpressIdentityProvider: S3ExpressIdentityProvider;
19
+ credentials: MemoizedProvider<AwsCredentialIdentity>;
20
+ }
21
+ export declare const s3ExpressMiddleware: (
22
+ options: S3ExpressResolvedConfig
23
+ ) => BuildMiddleware<any, any>;
24
+ export declare const s3ExpressMiddlewareOptions: BuildHandlerOptions;
25
+ export declare const getS3ExpressPlugin: (
26
+ options: S3ExpressResolvedConfig
27
+ ) => Pluggable<any, any>;
@@ -0,0 +1,21 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ HttpRequest as IHttpRequest,
4
+ } from "@smithy/types";
5
+ import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
6
+ export declare const signS3Express: (
7
+ s3ExpressIdentity: S3ExpressIdentity,
8
+ signingOptions: {
9
+ signingDate: Date;
10
+ signingRegion: string;
11
+ signingService: string;
12
+ },
13
+ request: IHttpRequest,
14
+ sigV4MultiRegionSigner: {
15
+ signWithCredentials(
16
+ req: IHttpRequest,
17
+ identity: AwsCredentialIdentity,
18
+ opts?: Partial<typeof signingOptions>
19
+ ): Promise<IHttpRequest>;
20
+ }
21
+ ) => Promise<IHttpRequest>;
@@ -0,0 +1,17 @@
1
+ export { S3ExpressIdentityCache } from "./classes/S3ExpressIdentityCache";
2
+ export { S3ExpressIdentityCacheEntry } from "./classes/S3ExpressIdentityCacheEntry";
3
+ export { S3ExpressIdentityProviderImpl } from "./classes/S3ExpressIdentityProviderImpl";
4
+ export { SignatureV4S3Express } from "./classes/SignatureV4S3Express";
5
+ export { NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS } from "./constants";
6
+ export {
7
+ getS3ExpressPlugin,
8
+ s3ExpressMiddleware,
9
+ s3ExpressMiddlewareOptions,
10
+ } from "./functions/s3ExpressMiddleware";
11
+ export {
12
+ getS3ExpressHttpSigningPlugin,
13
+ s3ExpressHttpSigningMiddleware,
14
+ s3ExpressHttpSigningMiddlewareOptions,
15
+ } from "./functions/s3ExpressHttpSigningMiddleware";
16
+ export { S3ExpressIdentity } from "./interfaces/S3ExpressIdentity";
17
+ export { S3ExpressIdentityProvider } from "./interfaces/S3ExpressIdentityProvider";
@@ -0,0 +1,2 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ export interface S3ExpressIdentity extends AwsCredentialIdentity {}
@@ -0,0 +1,8 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { S3ExpressIdentity } from "./S3ExpressIdentity";
3
+ export interface S3ExpressIdentityProvider {
4
+ getS3ExpressIdentity(
5
+ awsIdentity: AwsCredentialIdentity,
6
+ identityProperties: Record<string, string>
7
+ ): Promise<S3ExpressIdentity>;
8
+ }