@cdklabs/cdk-construct-connect-datalake 0.0.4 → 0.0.6

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 (323) hide show
  1. package/.jsii +10 -10
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  5. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +12 -5
  6. package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +9 -7
  7. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +12 -5
  8. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +9 -7
  9. package/node_modules/@aws-sdk/client-connect/dist-types/commands/BatchGetAttachedFileMetadataCommand.d.ts +1 -1
  10. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateContactCommand.d.ts +1 -1
  11. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +2 -2
  12. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactCommand.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +2 -2
  14. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetAttachedFileCommand.d.ts +1 -1
  15. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListContactReferencesCommand.d.ts +9 -1
  16. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRulesCommand.d.ts +2 -2
  17. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListTestCaseExecutionsCommand.d.ts +2 -2
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAttachedFileUploadCommand.d.ts +1 -1
  19. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartEmailContactCommand.d.ts +1 -1
  20. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartTaskContactCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartWebRTCContactCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateContactCommand.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +20 -13
  26. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +7 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +148 -107
  28. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +57 -3
  29. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +14 -7
  30. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +1 -0
  31. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +50 -2
  32. package/node_modules/@aws-sdk/client-connect/package.json +33 -33
  33. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +3 -3
  35. package/node_modules/@aws-sdk/client-glue/package.json +33 -33
  36. package/node_modules/@aws-sdk/client-lakeformation/package.json +34 -34
  37. package/node_modules/@aws-sdk/client-ram/package.json +33 -33
  38. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
  39. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +96 -17
  40. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +6 -0
  41. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +7 -0
  42. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
  43. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +97 -16
  44. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +7 -1
  45. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +8 -1
  46. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -7
  47. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +3 -2
  48. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +10 -4
  49. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +3 -2
  50. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +3 -1
  51. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +20 -9
  52. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +11 -5
  53. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +35 -16
  54. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +11 -5
  55. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +8 -1
  56. package/node_modules/@aws-sdk/client-sts/package.json +35 -34
  57. package/node_modules/@aws-sdk/core/dist-cjs/index.js +69 -50
  58. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -0
  59. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
  60. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  61. package/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js +15 -0
  62. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
  63. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
  64. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
  65. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
  66. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
  67. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
  68. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
  69. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
  70. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  71. package/node_modules/@aws-sdk/core/dist-types/submodules/client/longPollMiddleware.d.ts +14 -0
  72. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  73. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  74. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +15 -0
  75. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  76. package/node_modules/@aws-sdk/core/package.json +11 -11
  77. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  78. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  79. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  80. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  81. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  82. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  83. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  84. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  85. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  86. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  87. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  88. package/node_modules/@aws-sdk/middleware-sdk-s3/LICENSE +201 -0
  89. package/node_modules/@aws-sdk/middleware-sdk-s3/README.md +4 -0
  90. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +597 -0
  91. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +36 -0
  92. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +32 -0
  93. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +9 -0
  94. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +25 -0
  95. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +41 -0
  96. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +42 -0
  97. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +33 -0
  98. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +39 -0
  99. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +14 -0
  100. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +49 -0
  101. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js +41 -0
  102. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +13 -0
  103. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +38 -0
  104. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +41 -0
  105. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +7 -0
  106. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +7 -0
  107. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +1 -0
  108. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +1 -0
  109. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +17 -0
  110. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +67 -0
  111. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +25 -0
  112. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/bucket-endpoint-middleware.d.ts +13 -0
  113. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/check-content-length-header.d.ts +16 -0
  114. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +9 -0
  115. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/protocol/S3RestXmlProtocol.d.ts +20 -0
  116. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-endpoint-middleware.d.ts +10 -0
  117. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-middleware.d.ts +20 -0
  118. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-expires-middleware.d.ts +26 -0
  119. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCache.d.ts +16 -0
  120. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +16 -0
  121. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +32 -0
  122. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/SignatureV4S3Express.d.ts +17 -0
  123. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/constants.d.ts +37 -0
  124. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +27 -0
  125. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressMiddleware.d.ts +32 -0
  126. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/signS3Express.d.ts +9 -0
  127. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/index.d.ts +9 -0
  128. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentity.d.ts +6 -0
  129. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +12 -0
  130. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3Configuration.d.ts +79 -0
  131. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/throw-200-exceptions.d.ts +20 -0
  132. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/bucket-endpoint-middleware.d.ts +9 -0
  133. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/check-content-length-header.d.ts +13 -0
  134. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +9 -0
  135. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/protocol/S3RestXmlProtocol.d.ts +15 -0
  136. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-endpoint-middleware.d.ts +6 -0
  137. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-middleware.d.ts +17 -0
  138. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-expires-middleware.d.ts +14 -0
  139. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCache.d.ts +14 -0
  140. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +12 -0
  141. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +31 -0
  142. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/SignatureV4S3Express.d.ts +19 -0
  143. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/constants.d.ts +11 -0
  144. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +40 -0
  145. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressMiddleware.d.ts +27 -0
  146. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/signS3Express.d.ts +21 -0
  147. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/index.d.ts +17 -0
  148. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentity.d.ts +2 -0
  149. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +8 -0
  150. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3Configuration.d.ts +33 -0
  151. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/throw-200-exceptions.d.ts +17 -0
  152. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/validate-bucket-name.d.ts +13 -0
  153. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/validate-bucket-name.d.ts +14 -0
  154. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
  155. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
  156. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  157. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  158. package/node_modules/@aws-sdk/signature-v4-multi-region/LICENSE +201 -0
  159. package/node_modules/@aws-sdk/signature-v4-multi-region/README.md +32 -0
  160. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
  161. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +112 -0
  162. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +2 -0
  163. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/signature-v4-crt-container.js +3 -0
  164. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +35 -0
  165. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/index.d.ts +5 -0
  166. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/signature-v4-crt-container.d.ts +28 -0
  167. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +41 -0
  168. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -0
  169. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +20 -0
  170. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
  171. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  172. package/node_modules/@aws-sdk/types/package.json +2 -2
  173. package/node_modules/@aws-sdk/util-arn-parser/LICENSE +201 -0
  174. package/node_modules/@aws-sdk/util-arn-parser/README.md +4 -0
  175. package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
  176. package/node_modules/@aws-sdk/util-arn-parser/dist-es/index.js +21 -0
  177. package/node_modules/@aws-sdk/util-arn-parser/dist-types/index.d.ts +32 -0
  178. package/node_modules/@aws-sdk/util-arn-parser/dist-types/ts3.4/index.d.ts +14 -0
  179. package/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
  180. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  181. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  182. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  183. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  184. package/node_modules/@smithy/config-resolver/package.json +5 -5
  185. package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
  186. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
  187. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  188. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
  189. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
  190. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
  191. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
  192. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  193. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
  194. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
  195. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
  196. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
  197. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
  198. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
  199. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
  200. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
  201. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  202. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  203. package/node_modules/@smithy/core/package.json +7 -7
  204. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  205. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  206. package/node_modules/@smithy/hash-node/package.json +2 -2
  207. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  208. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  209. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  210. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  211. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  212. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  213. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  214. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +191 -96
  215. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
  216. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
  217. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
  218. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +44 -43
  219. package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
  220. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
  221. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
  222. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -6
  223. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  224. package/node_modules/@smithy/property-provider/package.json +2 -2
  225. package/node_modules/@smithy/protocol-http/package.json +2 -2
  226. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  227. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  228. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
  229. package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
  230. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
  231. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  232. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  233. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -5
  234. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
  235. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
  236. package/node_modules/@smithy/signature-v4/package.json +4 -4
  237. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
  238. package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
  239. package/node_modules/@smithy/smithy-client/package.json +7 -7
  240. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
  241. package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
  242. package/node_modules/@smithy/types/package.json +1 -1
  243. package/node_modules/@smithy/url-parser/package.json +3 -3
  244. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  245. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  246. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +212 -111
  247. package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
  248. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +42 -0
  249. package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
  250. package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
  251. package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
  252. package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
  253. package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
  254. package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
  255. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  256. package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
  257. package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
  258. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
  259. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
  260. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
  261. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
  262. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +22 -5
  263. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
  264. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
  265. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
  266. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
  267. package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
  268. package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +22 -0
  269. package/node_modules/@smithy/util-endpoints/dist-types/decideEndpoint.d.ts +7 -0
  270. package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +2 -0
  271. package/node_modules/@smithy/util-endpoints/dist-types/lib/coalesce.d.ts +7 -0
  272. package/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +3 -0
  273. package/node_modules/@smithy/util-endpoints/dist-types/lib/ite.d.ts +6 -0
  274. package/node_modules/@smithy/util-endpoints/dist-types/lib/split.d.ts +11 -0
  275. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
  276. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -11
  277. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
  278. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
  279. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  280. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
  281. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +3 -1
  282. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  283. package/node_modules/@smithy/util-middleware/package.json +2 -2
  284. package/node_modules/@smithy/util-retry/dist-cjs/index.js +6 -0
  285. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +3 -0
  286. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +3 -0
  287. package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +5 -0
  288. package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +5 -0
  289. package/node_modules/@smithy/util-retry/package.json +3 -3
  290. package/node_modules/@smithy/util-stream/package.json +4 -4
  291. package/node_modules/@smithy/util-waiter/package.json +3 -3
  292. package/node_modules/call-bind/CHANGELOG.md +9 -0
  293. package/node_modules/call-bind/README.md +1 -1
  294. package/node_modules/call-bind/index.js +2 -2
  295. package/node_modules/call-bind/package.json +11 -11
  296. package/node_modules/call-bind/test/index.js +9 -1
  297. package/node_modules/fast-xml-builder/package.json +1 -1
  298. package/node_modules/fast-xml-builder/src/fxb.js +6 -2
  299. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
  300. package/node_modules/hasown/CHANGELOG.md +11 -0
  301. package/node_modules/hasown/eslint.config.mjs +6 -0
  302. package/node_modules/hasown/index.d.ts +1 -0
  303. package/node_modules/hasown/package.json +14 -14
  304. package/node_modules/path-expression-matcher/README.md +214 -62
  305. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
  306. package/node_modules/path-expression-matcher/lib/pem.d.cts +111 -0
  307. package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
  308. package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
  309. package/node_modules/path-expression-matcher/package.json +1 -1
  310. package/node_modules/path-expression-matcher/src/Expression.js +2 -2
  311. package/node_modules/path-expression-matcher/src/ExpressionSet.js +209 -0
  312. package/node_modules/path-expression-matcher/src/Matcher.js +235 -177
  313. package/node_modules/path-expression-matcher/src/index.d.ts +199 -194
  314. package/node_modules/path-expression-matcher/src/index.js +3 -2
  315. package/node_modules/strnum/package.json +1 -1
  316. package/package.json +13 -13
  317. package/node_modules/hasown/.eslintrc +0 -5
  318. package/node_modules/strnum/.github/SECURITY.md +0 -5
  319. package/node_modules/strnum/.vscode/launch.json +0 -25
  320. package/node_modules/strnum/algo.stflow +0 -84
  321. package/node_modules/strnum/tests/infinity_test.js +0 -18
  322. package/node_modules/strnum/tests/strnum_test.js +0 -175
  323. package/node_modules/strnum/tests/temp.js +0 -8
@@ -1,4 +1,7 @@
1
1
  import {
2
+ AwsSdkSigV4AAuthInputConfig,
3
+ AwsSdkSigV4AAuthResolvedConfig,
4
+ AwsSdkSigV4APreviouslyResolved,
2
5
  AwsSdkSigV4AuthInputConfig,
3
6
  AwsSdkSigV4AuthResolvedConfig,
4
7
  AwsSdkSigV4PreviouslyResolved,
@@ -12,8 +15,14 @@ import {
12
15
  HttpAuthSchemeProvider,
13
16
  Provider,
14
17
  } from "@smithy/types";
18
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
15
19
  import { STSClientResolvedConfig } from "../STSClient";
16
- export interface STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
20
+ interface _STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
21
+ region?: string;
22
+ }
23
+ export interface STSHttpAuthSchemeParameters
24
+ extends _STSHttpAuthSchemeParameters,
25
+ EndpointParameters {
17
26
  region?: string;
18
27
  }
19
28
  export interface STSHttpAuthSchemeParametersProvider
@@ -23,11 +32,7 @@ export interface STSHttpAuthSchemeParametersProvider
23
32
  STSHttpAuthSchemeParameters,
24
33
  object
25
34
  > {}
26
- export declare const defaultSTSHttpAuthSchemeParametersProvider: (
27
- config: STSClientResolvedConfig,
28
- context: HandlerExecutionContext,
29
- input: object
30
- ) => Promise<STSHttpAuthSchemeParameters>;
35
+ export declare const defaultSTSHttpAuthSchemeParametersProvider: STSHttpAuthSchemeParametersProvider;
31
36
  export interface STSHttpAuthSchemeProvider
32
37
  extends HttpAuthSchemeProvider<STSHttpAuthSchemeParameters> {}
33
38
  export declare const defaultSTSHttpAuthSchemeProvider: STSHttpAuthSchemeProvider;
@@ -40,18 +45,24 @@ export declare const resolveStsAuthConfig: <T>(
40
45
  ) => T & StsAuthResolvedConfig;
41
46
  export interface HttpAuthSchemeInputConfig
42
47
  extends StsAuthInputConfig,
43
- AwsSdkSigV4AuthInputConfig {
48
+ AwsSdkSigV4AuthInputConfig,
49
+ AwsSdkSigV4AAuthInputConfig {
44
50
  authSchemePreference?: string[] | Provider<string[]>;
45
51
  httpAuthSchemes?: HttpAuthScheme[];
46
52
  httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
47
53
  }
48
54
  export interface HttpAuthSchemeResolvedConfig
49
55
  extends StsAuthResolvedConfig,
50
- AwsSdkSigV4AuthResolvedConfig {
56
+ AwsSdkSigV4AuthResolvedConfig,
57
+ AwsSdkSigV4AAuthResolvedConfig {
51
58
  readonly authSchemePreference: Provider<string[]>;
52
59
  readonly httpAuthSchemes: HttpAuthScheme[];
53
60
  readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
54
61
  }
55
62
  export declare const resolveHttpAuthSchemeConfig: <T>(
56
- config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
63
+ config: T &
64
+ HttpAuthSchemeInputConfig &
65
+ AwsSdkSigV4PreviouslyResolved &
66
+ AwsSdkSigV4APreviouslyResolved
57
67
  ) => T & HttpAuthSchemeResolvedConfig;
68
+ export {};
@@ -72,7 +72,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
72
72
  ))
73
73
  | undefined;
74
74
  endpointProvider: (
75
- params: import("./endpoint/EndpointParameters").EndpointParameters,
75
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
76
76
  context?: {
77
77
  logger?: import("@smithy/types").Logger;
78
78
  }
@@ -118,10 +118,16 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
118
118
  signingEscapePath?: boolean;
119
119
  systemClockOffset?: number;
120
120
  signingRegion?: string;
121
- signerConstructor?: new (
122
- options: import("@smithy/signature-v4").SignatureV4Init &
123
- import("@smithy/signature-v4").SignatureV4CryptoInit
124
- ) => import("@smithy/types").RequestSigner;
121
+ signerConstructor:
122
+ | (new (
123
+ options: import("@smithy/signature-v4").SignatureV4Init &
124
+ import("@smithy/signature-v4").SignatureV4CryptoInit
125
+ ) => import("@smithy/types").RequestSigner)
126
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
127
+ sigv4aSigningRegionSet?:
128
+ | string[]
129
+ | undefined
130
+ | import("@smithy/types").Provider<string[] | undefined>;
125
131
  useGlobalEndpoint?:
126
132
  | boolean
127
133
  | undefined
@@ -1,3 +1,4 @@
1
+ import { AwsSdkSigV4ASigner } from "@aws-sdk/core/httpAuthSchemes";
1
2
  import { NoAuthSigner } from "@smithy/core";
2
3
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
3
4
  import { IdentityProviderConfig } from "@smithy/types";
@@ -19,17 +20,30 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
19
20
  ) => Promise<import("@smithy/types").UserAgent>;
20
21
  httpAuthSchemes:
21
22
  | import("@smithy/types").HttpAuthScheme[]
22
- | {
23
- schemeId: string;
24
- identityProvider: (
25
- ipc: IdentityProviderConfig
26
- ) =>
27
- | import("@smithy/types").IdentityProvider<
28
- import("@smithy/types").Identity
29
- >
30
- | (() => Promise<{}>);
31
- signer: NoAuthSigner;
32
- }[];
23
+ | (
24
+ | {
25
+ schemeId: string;
26
+ identityProvider: (
27
+ ipc: IdentityProviderConfig
28
+ ) =>
29
+ | import("@smithy/types").IdentityProvider<
30
+ import("@smithy/types").Identity
31
+ >
32
+ | undefined;
33
+ signer: AwsSdkSigV4ASigner;
34
+ }
35
+ | {
36
+ schemeId: string;
37
+ identityProvider: (
38
+ ipc: IdentityProviderConfig
39
+ ) =>
40
+ | import("@smithy/types").IdentityProvider<
41
+ import("@smithy/types").Identity
42
+ >
43
+ | (() => Promise<{}>);
44
+ signer: NoAuthSigner;
45
+ }
46
+ )[];
33
47
  maxAttempts: number | import("@smithy/types").Provider<number>;
34
48
  region: string | import("@smithy/types").Provider<string>;
35
49
  requestHandler:
@@ -37,6 +51,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
37
51
  | import("@smithy/protocol-http").HttpHandler<any>;
38
52
  retryMode: string | import("@smithy/types").Provider<string>;
39
53
  sha256: import("@smithy/types").HashConstructor;
54
+ sigv4aSigningRegionSet:
55
+ | string[]
56
+ | import("@smithy/types").Provider<string[] | undefined>;
40
57
  streamCollector: import("@smithy/types").StreamCollector;
41
58
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
42
59
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -83,7 +100,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
83
100
  ))
84
101
  | undefined;
85
102
  endpointProvider: (
86
- params: import("./endpoint/EndpointParameters").EndpointParameters,
103
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
87
104
  context?: {
88
105
  logger?: import("@smithy/types").Logger;
89
106
  }
@@ -102,10 +119,12 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
102
119
  signingEscapePath?: boolean;
103
120
  systemClockOffset?: number;
104
121
  signingRegion?: string;
105
- signerConstructor?: new (
106
- options: import("@smithy/signature-v4").SignatureV4Init &
107
- import("@smithy/signature-v4").SignatureV4CryptoInit
108
- ) => import("@smithy/types").RequestSigner;
122
+ signerConstructor:
123
+ | (new (
124
+ options: import("@smithy/signature-v4").SignatureV4Init &
125
+ import("@smithy/signature-v4").SignatureV4CryptoInit
126
+ ) => import("@smithy/types").RequestSigner)
127
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
109
128
  useGlobalEndpoint?:
110
129
  | boolean
111
130
  | undefined
@@ -76,7 +76,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
76
76
  ))
77
77
  | undefined;
78
78
  endpointProvider: (
79
- params: import("./endpoint/EndpointParameters").EndpointParameters,
79
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
80
80
  context?: {
81
81
  logger?: import("@smithy/types").Logger;
82
82
  }
@@ -122,10 +122,16 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
122
122
  signingEscapePath?: boolean;
123
123
  systemClockOffset?: number;
124
124
  signingRegion?: string;
125
- signerConstructor?: new (
126
- options: import("@smithy/signature-v4").SignatureV4Init &
127
- import("@smithy/signature-v4").SignatureV4CryptoInit
128
- ) => import("@smithy/types").RequestSigner;
125
+ signerConstructor:
126
+ | (new (
127
+ options: import("@smithy/signature-v4").SignatureV4Init &
128
+ import("@smithy/signature-v4").SignatureV4CryptoInit
129
+ ) => import("@smithy/types").RequestSigner)
130
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
131
+ sigv4aSigningRegionSet?:
132
+ | string[]
133
+ | undefined
134
+ | import("@smithy/types").Provider<string[] | undefined>;
129
135
  useGlobalEndpoint?:
130
136
  | boolean
131
137
  | undefined
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
3
4
  import { NoAuthSigner } from "@smithy/core";
4
5
  import { IdentityProviderConfig } from "@smithy/types";
5
6
  import { STSClientConfig } from "./STSClient";
@@ -9,7 +10,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
9
10
  base64Encoder: (_input: Uint8Array | string) => string;
10
11
  disableHostPrefix: boolean;
11
12
  endpointProvider: (
12
- params: import("./endpoint/EndpointParameters").EndpointParameters,
13
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
13
14
  context?: {
14
15
  logger?: import("@smithy/types").Logger;
15
16
  }
@@ -52,6 +53,12 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
52
53
  defaultNamespace?: string;
53
54
  };
54
55
  serviceId: string;
56
+ signerConstructor:
57
+ | (new (
58
+ options: import("@smithy/signature-v4").SignatureV4Init &
59
+ import("@smithy/signature-v4").SignatureV4CryptoInit
60
+ ) => import("@smithy/types").RequestSigner)
61
+ | typeof SignatureV4MultiRegion;
55
62
  urlParser: import("@smithy/types").UrlParser;
56
63
  utf8Decoder: import("@smithy/types").Decoder;
57
64
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.1024.0",
4
+ "version": "3.1032.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -27,46 +27,47 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.973.26",
31
- "@aws-sdk/credential-provider-node": "^3.972.29",
32
- "@aws-sdk/middleware-host-header": "^3.972.8",
33
- "@aws-sdk/middleware-logger": "^3.972.8",
34
- "@aws-sdk/middleware-recursion-detection": "^3.972.9",
35
- "@aws-sdk/middleware-user-agent": "^3.972.28",
36
- "@aws-sdk/region-config-resolver": "^3.972.10",
37
- "@aws-sdk/types": "^3.973.6",
38
- "@aws-sdk/util-endpoints": "^3.996.5",
39
- "@aws-sdk/util-user-agent-browser": "^3.972.8",
40
- "@aws-sdk/util-user-agent-node": "^3.973.14",
41
- "@smithy/config-resolver": "^4.4.13",
42
- "@smithy/core": "^3.23.13",
43
- "@smithy/fetch-http-handler": "^5.3.15",
44
- "@smithy/hash-node": "^4.2.12",
45
- "@smithy/invalid-dependency": "^4.2.12",
46
- "@smithy/middleware-content-length": "^4.2.12",
47
- "@smithy/middleware-endpoint": "^4.4.28",
48
- "@smithy/middleware-retry": "^4.4.46",
49
- "@smithy/middleware-serde": "^4.2.16",
50
- "@smithy/middleware-stack": "^4.2.12",
51
- "@smithy/node-config-provider": "^4.3.12",
52
- "@smithy/node-http-handler": "^4.5.1",
53
- "@smithy/protocol-http": "^5.3.12",
54
- "@smithy/smithy-client": "^4.12.8",
55
- "@smithy/types": "^4.13.1",
56
- "@smithy/url-parser": "^4.2.12",
30
+ "@aws-sdk/core": "^3.974.1",
31
+ "@aws-sdk/credential-provider-node": "^3.972.32",
32
+ "@aws-sdk/middleware-host-header": "^3.972.10",
33
+ "@aws-sdk/middleware-logger": "^3.972.10",
34
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.31",
36
+ "@aws-sdk/region-config-resolver": "^3.972.12",
37
+ "@aws-sdk/signature-v4-multi-region": "^3.996.18",
38
+ "@aws-sdk/types": "^3.973.8",
39
+ "@aws-sdk/util-endpoints": "^3.996.7",
40
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
41
+ "@aws-sdk/util-user-agent-node": "^3.973.17",
42
+ "@smithy/config-resolver": "^4.4.16",
43
+ "@smithy/core": "^3.23.15",
44
+ "@smithy/fetch-http-handler": "^5.3.17",
45
+ "@smithy/hash-node": "^4.2.14",
46
+ "@smithy/invalid-dependency": "^4.2.14",
47
+ "@smithy/middleware-content-length": "^4.2.14",
48
+ "@smithy/middleware-endpoint": "^4.4.30",
49
+ "@smithy/middleware-retry": "^4.5.3",
50
+ "@smithy/middleware-serde": "^4.2.18",
51
+ "@smithy/middleware-stack": "^4.2.14",
52
+ "@smithy/node-config-provider": "^4.3.14",
53
+ "@smithy/node-http-handler": "^4.5.3",
54
+ "@smithy/protocol-http": "^5.3.14",
55
+ "@smithy/smithy-client": "^4.12.11",
56
+ "@smithy/types": "^4.14.1",
57
+ "@smithy/url-parser": "^4.2.14",
57
58
  "@smithy/util-base64": "^4.3.2",
58
59
  "@smithy/util-body-length-browser": "^4.2.2",
59
60
  "@smithy/util-body-length-node": "^4.2.3",
60
- "@smithy/util-defaults-mode-browser": "^4.3.44",
61
- "@smithy/util-defaults-mode-node": "^4.2.48",
62
- "@smithy/util-endpoints": "^3.3.3",
63
- "@smithy/util-middleware": "^4.2.12",
64
- "@smithy/util-retry": "^4.2.13",
61
+ "@smithy/util-defaults-mode-browser": "^4.3.47",
62
+ "@smithy/util-defaults-mode-node": "^4.2.52",
63
+ "@smithy/util-endpoints": "^3.4.1",
64
+ "@smithy/util-middleware": "^4.2.14",
65
+ "@smithy/util-retry": "^4.3.2",
65
66
  "@smithy/util-utf8": "^4.2.2",
66
67
  "tslib": "^2.6.2"
67
68
  },
68
69
  "devDependencies": {
69
- "@smithy/snapshot-testing": "^2.0.4",
70
+ "@smithy/snapshot-testing": "^2.0.6",
70
71
  "@tsconfig/node20": "20.1.8",
71
72
  "@types/node": "^20.14.8",
72
73
  "concurrently": "7.0.0",
@@ -30,6 +30,22 @@ More information can be found at: https://a.co/c895JFp`);
30
30
  }
31
31
  };
32
32
 
33
+ const longPollMiddleware = () => (next, context) => async (args) => {
34
+ context.__retryLongPoll = true;
35
+ return next(args);
36
+ };
37
+ const longPollMiddlewareOptions = {
38
+ name: "longPollMiddleware",
39
+ tags: ["RETRY"],
40
+ step: "initialize",
41
+ override: true,
42
+ };
43
+ const getLongPollPlugin = (options) => ({
44
+ applyToStack: (clientStack) => {
45
+ clientStack.add(longPollMiddleware(), longPollMiddlewareOptions);
46
+ },
47
+ });
48
+
33
49
  function setCredentialFeature(credentials, feature, value) {
34
50
  if (!credentials.$source) {
35
51
  credentials.$source = {};
@@ -434,12 +450,11 @@ class ProtocolLib {
434
450
  if (msg) {
435
451
  error.message = msg;
436
452
  }
437
- error.Error = {
438
- ...error.Error,
439
- Type: error.Error?.Type,
440
- Code: error.Error?.Code,
441
- Message: error.Error?.message ?? error.Error?.Message ?? msg,
442
- };
453
+ const errorObj = error.Error ?? {};
454
+ errorObj.Type = error.Error?.Type;
455
+ errorObj.Code = error.Error?.Code;
456
+ errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
457
+ error.Error = errorObj;
443
458
  const reqId = error.$metadata.requestId;
444
459
  if (reqId) {
445
460
  error.RequestId = reqId;
@@ -452,14 +467,16 @@ class ProtocolLib {
452
467
  const queryErrorHeader = response.headers?.["x-amzn-query-error"];
453
468
  if (output !== undefined && queryErrorHeader != null) {
454
469
  const [Code, Type] = queryErrorHeader.split(";");
455
- const entries = Object.entries(output);
470
+ const keys = Object.keys(output);
456
471
  const Error = {
457
472
  Code,
458
473
  Type,
459
474
  };
460
- Object.assign(output, Error);
461
- for (const [k, v] of entries) {
462
- Error[k === "message" ? "Message" : k] = v;
475
+ output.Code = Code;
476
+ output.Type = Type;
477
+ for (let i = 0; i < keys.length; i++) {
478
+ const k = keys[i];
479
+ Error[k === "message" ? "Message" : k] = output[k];
463
480
  }
464
481
  delete Error.__type;
465
482
  output.Error = Error;
@@ -598,7 +615,10 @@ class UnionSerde {
598
615
  constructor(from, to) {
599
616
  this.from = from;
600
617
  this.to = to;
601
- this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
618
+ const keys = Object.keys(this.from);
619
+ const set = new Set(keys);
620
+ set.delete("__type");
621
+ this.keys = set;
602
622
  }
603
623
  mark(key) {
604
624
  this.keys.delete(key);
@@ -656,24 +676,24 @@ const parseJsonErrorBody = async (errorBody, context) => {
656
676
  value.message = value.message ?? value.Message;
657
677
  return value;
658
678
  };
679
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
680
+ const sanitizeErrorCode = (rawValue) => {
681
+ let cleanValue = rawValue;
682
+ if (typeof cleanValue === "number") {
683
+ cleanValue = cleanValue.toString();
684
+ }
685
+ if (cleanValue.indexOf(",") >= 0) {
686
+ cleanValue = cleanValue.split(",")[0];
687
+ }
688
+ if (cleanValue.indexOf(":") >= 0) {
689
+ cleanValue = cleanValue.split(":")[0];
690
+ }
691
+ if (cleanValue.indexOf("#") >= 0) {
692
+ cleanValue = cleanValue.split("#")[1];
693
+ }
694
+ return cleanValue;
695
+ };
659
696
  const loadRestJsonErrorCode = (output, data) => {
660
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
661
- const sanitizeErrorCode = (rawValue) => {
662
- let cleanValue = rawValue;
663
- if (typeof cleanValue === "number") {
664
- cleanValue = cleanValue.toString();
665
- }
666
- if (cleanValue.indexOf(",") >= 0) {
667
- cleanValue = cleanValue.split(",")[0];
668
- }
669
- if (cleanValue.indexOf(":") >= 0) {
670
- cleanValue = cleanValue.split(":")[0];
671
- }
672
- if (cleanValue.indexOf("#") >= 0) {
673
- cleanValue = cleanValue.split("#")[1];
674
- }
675
- return cleanValue;
676
- };
677
697
  const headerKey = findKey(output.headers, "x-amzn-errortype");
678
698
  if (headerKey !== undefined) {
679
699
  return sanitizeErrorCode(output.headers[headerKey]);
@@ -890,12 +910,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
890
910
  this.rootSchema = schema.NormalizedSchema.of(schema$1);
891
911
  this.buffer = this._write(this.rootSchema, value);
892
912
  }
893
- writeDiscriminatedDocument(schema$1, value) {
894
- this.write(schema$1, value);
895
- if (typeof this.buffer === "object") {
896
- this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
897
- }
898
- }
899
913
  flush() {
900
914
  const { rootSchema, useReplacer } = this;
901
915
  this.rootSchema = undefined;
@@ -909,6 +923,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
909
923
  }
910
924
  return this.buffer;
911
925
  }
926
+ writeDiscriminatedDocument(schema$1, value) {
927
+ this.write(schema$1, value);
928
+ if (typeof this.buffer === "object") {
929
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
930
+ }
931
+ }
912
932
  _write(schema$1, value, container) {
913
933
  const isObject = value !== null && typeof value === "object";
914
934
  const ns = schema.NormalizedSchema.of(schema$1);
@@ -921,6 +941,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
921
941
  if (jsonName) {
922
942
  nameMap = {};
923
943
  }
944
+ let outCount = 0;
924
945
  for (const [memberName, memberSchema] of ns.structIterator()) {
925
946
  const serializableValue = this._write(memberSchema, record[memberName], ns);
926
947
  if (serializableValue !== undefined) {
@@ -930,9 +951,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
930
951
  nameMap[memberName] = targetKey;
931
952
  }
932
953
  out[targetKey] = serializableValue;
954
+ outCount++;
933
955
  }
934
956
  }
935
- if (ns.isUnionSchema() && Object.keys(out).length === 0) {
957
+ if (ns.isUnionSchema() && outCount === 0) {
936
958
  const { $unknown } = record;
937
959
  if (Array.isArray($unknown)) {
938
960
  const [k, v] = $unknown;
@@ -1098,10 +1120,8 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
1098
1120
  if (!request.path.endsWith("/")) {
1099
1121
  request.path += "/";
1100
1122
  }
1101
- Object.assign(request.headers, {
1102
- "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
1103
- "x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
1104
- });
1123
+ request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
1124
+ request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
1105
1125
  if (this.awsQueryCompatible) {
1106
1126
  request.headers["x-amzn-query-mode"] = "true";
1107
1127
  }
@@ -1125,9 +1145,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
1125
1145
  const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1126
1146
  const exception = new ErrorCtor(message);
1127
1147
  const output = {};
1148
+ const errorDeserializer = this.codec.createDeserializer();
1128
1149
  for (const [name, member] of ns.structIterator()) {
1129
1150
  if (dataObject[name] != null) {
1130
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[name]);
1151
+ output[name] = errorDeserializer.readObject(member, dataObject[name]);
1131
1152
  }
1132
1153
  }
1133
1154
  if (this.awsQueryCompatible) {
@@ -1248,9 +1269,10 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
1248
1269
  const exception = new ErrorCtor(message);
1249
1270
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1250
1271
  const output = {};
1272
+ const errorDeserializer = this.codec.createDeserializer();
1251
1273
  for (const [name, member] of ns.structIterator()) {
1252
1274
  const target = member.getMergedTraits().jsonName ?? name;
1253
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
1275
+ output[name] = errorDeserializer.readObject(member, dataObject[target]);
1254
1276
  }
1255
1277
  throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1256
1278
  $fault: ns.getMergedTraits().error,
@@ -1641,9 +1663,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
1641
1663
  if (!request.path.endsWith("/")) {
1642
1664
  request.path += "/";
1643
1665
  }
1644
- Object.assign(request.headers, {
1645
- "content-type": `application/x-www-form-urlencoded`,
1646
- });
1666
+ request.headers["content-type"] = "application/x-www-form-urlencoded";
1647
1667
  if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1648
1668
  request.body = "";
1649
1669
  }
@@ -1676,11 +1696,8 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
1676
1696
  if (bytes.byteLength > 0) {
1677
1697
  Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1678
1698
  }
1679
- const output = {
1680
- $metadata: this.deserializeMetadata(response),
1681
- ...dataObject,
1682
- };
1683
- return output;
1699
+ dataObject.$metadata = this.deserializeMetadata(response);
1700
+ return dataObject;
1684
1701
  }
1685
1702
  useNestedResult() {
1686
1703
  return true;
@@ -2180,10 +2197,11 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
2180
2197
  const exception = new ErrorCtor(message);
2181
2198
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
2182
2199
  const output = {};
2200
+ const errorDeserializer = this.codec.createDeserializer();
2183
2201
  for (const [name, member] of ns.structIterator()) {
2184
2202
  const target = member.getMergedTraits().xmlName ?? name;
2185
2203
  const value = dataObject.Error?.[target] ?? dataObject[target];
2186
- output[name] = this.codec.createDeserializer().readSchema(member, value);
2204
+ output[name] = errorDeserializer.readSchema(member, value);
2187
2205
  }
2188
2206
  throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
2189
2207
  $fault: ns.getMergedTraits().error,
@@ -2229,6 +2247,7 @@ exports._toStr = _toStr;
2229
2247
  exports.awsExpectUnion = awsExpectUnion;
2230
2248
  exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
2231
2249
  exports.getBearerTokenEnvKey = getBearerTokenEnvKey;
2250
+ exports.getLongPollPlugin = getLongPollPlugin;
2232
2251
  exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
2233
2252
  exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
2234
2253
  exports.parseJsonBody = parseJsonBody;
@@ -16,6 +16,22 @@ More information can be found at: https://a.co/c895JFp`);
16
16
  }
17
17
  };
18
18
 
19
+ const longPollMiddleware = () => (next, context) => async (args) => {
20
+ context.__retryLongPoll = true;
21
+ return next(args);
22
+ };
23
+ const longPollMiddlewareOptions = {
24
+ name: "longPollMiddleware",
25
+ tags: ["RETRY"],
26
+ step: "initialize",
27
+ override: true,
28
+ };
29
+ const getLongPollPlugin = (options) => ({
30
+ applyToStack: (clientStack) => {
31
+ clientStack.add(longPollMiddleware(), longPollMiddlewareOptions);
32
+ },
33
+ });
34
+
19
35
  function setCredentialFeature(credentials, feature, value) {
20
36
  if (!credentials.$source) {
21
37
  credentials.$source = {};
@@ -45,6 +61,7 @@ function setTokenFeature(token, feature, value) {
45
61
  }
46
62
 
47
63
  exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
64
+ exports.getLongPollPlugin = getLongPollPlugin;
48
65
  exports.setCredentialFeature = setCredentialFeature;
49
66
  exports.setFeature = setFeature;
50
67
  exports.setTokenFeature = setTokenFeature;