@cdklabs/cdk-ssm-documents 0.0.62 → 0.0.63

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 (345) hide show
  1. package/.jsii +13 -13
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  117. package/node_modules/@aws-sdk/client-cloudwatch/package.json +8 -8
  118. package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
  119. package/node_modules/@aws-sdk/client-iam/package.json +7 -7
  120. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  121. package/node_modules/@aws-sdk/client-s3/package.json +13 -13
  122. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  123. package/node_modules/@aws-sdk/client-sqs/package.json +8 -8
  124. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  125. package/node_modules/@aws-sdk/core/package.json +4 -4
  126. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  127. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +12 -6
  128. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +12 -6
  129. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -5
  130. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  131. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  132. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +12 -1
  133. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
  134. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  135. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  136. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  137. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  138. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +3 -3
  139. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +2 -2
  140. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +4 -4
  141. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  142. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -5
  143. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +2 -2
  144. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  145. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  146. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  147. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  148. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  149. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  150. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -3
  151. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  152. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  153. package/node_modules/@nodable/entities/package.json +1 -1
  154. package/node_modules/@nodable/entities/src/EntityDecoder.js +1 -1
  155. package/node_modules/@nodable/entities/src/entities.js +0 -18
  156. package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
  157. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
  158. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
  159. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
  160. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
  161. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
  162. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
  163. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
  164. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
  165. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
  166. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
  167. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  168. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  169. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  170. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
  171. package/node_modules/@smithy/core/dist-es/index.js +6 -6
  172. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
  173. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
  174. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
  175. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
  176. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
  177. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
  178. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
  179. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
  180. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
  181. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  182. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
  183. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
  184. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
  185. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
  186. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
  187. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
  188. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
  189. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
  190. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
  191. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
  192. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
  193. package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
  194. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
  195. package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
  196. package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
  197. package/node_modules/@smithy/core/dist-types/index.d.ts +10 -6
  198. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +2 -2
  199. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +2 -2
  200. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +2 -2
  201. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.d.ts +2 -2
  202. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/lib/index.d.ts +1 -1
  203. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  204. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +5 -5
  205. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/httpHandler.d.ts +1 -2
  206. package/node_modules/@smithy/core/dist-types/submodules/protocols/requestBuilder.d.ts +1 -1
  207. package/node_modules/@smithy/core/dist-types/submodules/retry/middleware-retry/configurations.d.ts +4 -1
  208. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/ConfiguredRetryStrategy.d.ts +1 -2
  209. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/DefaultRetryToken.d.ts +3 -0
  210. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/StandardRetryStrategy.d.ts +1 -1
  211. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +9 -0
  212. package/node_modules/@smithy/core/package.json +20 -11
  213. package/node_modules/@smithy/core/transport.d.ts +5 -0
  214. package/node_modules/@smithy/core/transport.js +5 -0
  215. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
  216. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
  217. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  218. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  219. package/node_modules/@smithy/middleware-compression/package.json +3 -3
  220. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  221. package/node_modules/@smithy/signature-v4/package.json +3 -3
  222. package/node_modules/@smithy/types/dist-types/retry.d.ts +25 -0
  223. package/node_modules/@smithy/types/package.json +1 -1
  224. package/node_modules/js-yaml/README.md +4 -20
  225. package/node_modules/js-yaml/bin/js-yaml.js +53 -62
  226. package/node_modules/js-yaml/dist/js-yaml.js +2404 -3880
  227. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
  228. package/node_modules/js-yaml/dist/js-yaml.min.js +33 -2
  229. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
  230. package/node_modules/js-yaml/dist/js-yaml.mjs +2381 -3855
  231. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
  232. package/node_modules/js-yaml/index.js +32 -35
  233. package/node_modules/js-yaml/lib/common.js +28 -37
  234. package/node_modules/js-yaml/lib/dumper.js +450 -478
  235. package/node_modules/js-yaml/lib/exception.js +23 -27
  236. package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
  237. package/node_modules/js-yaml/lib/loader.js +927 -866
  238. package/node_modules/js-yaml/lib/schema/core.js +2 -4
  239. package/node_modules/js-yaml/lib/schema/default.js +2 -4
  240. package/node_modules/js-yaml/lib/schema/failsafe.js +3 -6
  241. package/node_modules/js-yaml/lib/schema/json.js +2 -4
  242. package/node_modules/js-yaml/lib/schema.js +56 -68
  243. package/node_modules/js-yaml/lib/snippet.js +47 -52
  244. package/node_modules/js-yaml/lib/type/binary.js +61 -64
  245. package/node_modules/js-yaml/lib/type/bool.js +14 -14
  246. package/node_modules/js-yaml/lib/type/float.js +47 -45
  247. package/node_modules/js-yaml/lib/type/int.js +65 -79
  248. package/node_modules/js-yaml/lib/type/map.js +4 -4
  249. package/node_modules/js-yaml/lib/type/merge.js +5 -5
  250. package/node_modules/js-yaml/lib/type/null.js +16 -16
  251. package/node_modules/js-yaml/lib/type/omap.js +22 -21
  252. package/node_modules/js-yaml/lib/type/pairs.js +24 -27
  253. package/node_modules/js-yaml/lib/type/seq.js +4 -4
  254. package/node_modules/js-yaml/lib/type/set.js +12 -12
  255. package/node_modules/js-yaml/lib/type/str.js +4 -4
  256. package/node_modules/js-yaml/lib/type/timestamp.js +53 -53
  257. package/node_modules/js-yaml/lib/type.js +30 -30
  258. package/node_modules/js-yaml/package.json +32 -21
  259. package/package.json +11 -11
  260. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
  261. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
  262. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
  263. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
  264. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
  265. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
  266. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
  267. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
  268. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
  269. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
  270. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
  271. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
  272. package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
  273. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
  274. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
  275. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
  276. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
  277. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
  278. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
  279. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
  280. package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
  281. package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
  282. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
  283. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
  284. package/node_modules/@smithy/core/dist-types/request-builder/requestBuilder.d.ts +0 -6
  285. package/node_modules/@smithy/core/dist-types/submodules/client/util-middleware/getSmithyContext.d.ts +0 -5
  286. package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/TestVectors.fixture.d.ts +0 -2
  287. package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/vectorTypes.fixture.d.ts +0 -12
  288. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
  289. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +0 -8
  290. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
  291. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  292. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
  293. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -12
  294. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +0 -12
  295. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -12
  296. package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
  297. package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +0 -14
  298. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
  299. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
  300. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
  301. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
  302. /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
  303. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
  304. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
  305. /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
  306. /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
  307. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
  308. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
  309. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
  310. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
  311. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
  312. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
  313. /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
  314. /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
  315. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
  316. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
  317. /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
  318. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
  319. /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
  320. /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
  321. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +0 -0
  322. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.d.ts +0 -0
  323. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.d.ts +0 -0
  324. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.d.ts +0 -0
  325. /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.d.ts +0 -0
  326. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.d.ts +0 -0
  327. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.d.ts +0 -0
  328. /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.d.ts +0 -0
  329. /package/node_modules/@smithy/core/dist-types/{pagination → legacy-root-exports/pagination}/createPaginator.d.ts +0 -0
  330. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.d.ts +0 -0
  331. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.d.ts +0 -0
  332. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.d.ts +0 -0
  333. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.d.ts +0 -0
  334. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.d.ts +0 -0
  335. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.d.ts +0 -0
  336. /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.d.ts +0 -0
  337. /package/node_modules/@smithy/core/dist-types/{getSmithyContext.d.ts → submodules/transport/getSmithyContext.d.ts} +0 -0
  338. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpRequest.d.ts +0 -0
  339. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpResponse.d.ts +0 -0
  340. /package/node_modules/@smithy/core/dist-types/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.d.ts +0 -0
  341. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/isValidHostname.d.ts +0 -0
  342. /package/node_modules/@smithy/core/dist-types/submodules/{client/util-middleware → transport}/normalizeProvider.d.ts +0 -0
  343. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/querystring-parser → transport}/parseQueryString.d.ts +0 -0
  344. /package/node_modules/@smithy/core/dist-types/submodules/{protocols/url-parser → transport}/parseUrl.d.ts +0 -0
  345. /package/node_modules/@smithy/core/dist-types/submodules/{endpoints → transport}/toEndpointV1.d.ts +0 -0
@@ -35,7 +35,7 @@ const THROTTLING_ERROR_CODES = [
35
35
  const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
36
36
  const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
37
37
  const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
38
- const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
38
+ const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"];
39
39
 
40
40
  const isRetryableByTrait = (error) => error?.$retryable !== undefined;
41
41
  const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
@@ -186,9 +186,6 @@ function bindRetryMiddleware(isStreamingPayload) {
186
186
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
187
187
  }
188
188
  catch (refreshError) {
189
- if (typeof refreshError.$backoff === "number") {
190
- await cooldown(refreshError.$backoff);
191
- }
192
189
  if (!lastError.$metadata) {
193
190
  lastError.$metadata = {};
194
191
  }
@@ -198,8 +195,10 @@ function bindRetryMiddleware(isStreamingPayload) {
198
195
  }
199
196
  attempts = retryToken.getRetryCount();
200
197
  const delay = retryToken.getRetryDelay();
201
- totalRetryDelay += delay;
202
- await cooldown(delay);
198
+ totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
199
+ if (delay > 0) {
200
+ await cooldown(delay);
201
+ }
203
202
  }
204
203
  }
205
204
  }
@@ -400,6 +399,9 @@ class DefaultRetryToken {
400
399
  count;
401
400
  cost;
402
401
  longPoll;
402
+ $retryLog = {
403
+ acquisitionDelay: 0,
404
+ };
403
405
  constructor(delay, count, cost, longPoll) {
404
406
  this.delay = delay;
405
407
  this.count = count;
@@ -435,8 +437,8 @@ const refusal = {
435
437
  };
436
438
  let StandardRetryStrategy$1 = class StandardRetryStrategy {
437
439
  mode = exports.RETRY_MODES.STANDARD;
438
- capacity = INITIAL_RETRY_TOKENS;
439
440
  retryBackoffStrategy;
441
+ capacity = INITIAL_RETRY_TOKENS;
440
442
  maxAttemptsProvider;
441
443
  baseDelay;
442
444
  constructor(arg1) {
@@ -472,14 +474,18 @@ let StandardRetryStrategy$1 = class StandardRetryStrategy {
472
474
  retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5_000));
473
475
  }
474
476
  if (!shouldRetry) {
475
- throw Object.assign(new Error("No retry token available"), {
476
- $backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0,
477
- });
477
+ const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0;
478
+ if (longPollBackoff > 0) {
479
+ await new Promise((r) => setTimeout(r, longPollBackoff));
480
+ }
478
481
  }
479
482
  else {
480
483
  const capacityCost = this.getCapacityCost(errorType);
481
484
  this.capacity -= capacityCost;
482
- return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
485
+ const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
486
+ await new Promise((r) => setTimeout(r, retryDelay));
487
+ nextToken.$retryLog.acquisitionDelay = retryDelay;
488
+ return nextToken;
483
489
  }
484
490
  }
485
491
  throw new Error("No retry token available");
@@ -561,11 +567,10 @@ class ConfiguredRetryStrategy extends StandardRetryStrategy$1 {
561
567
  else {
562
568
  this.computeNextBackoffDelay = computeNextBackoffDelay;
563
569
  }
564
- }
565
- async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
566
- const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
567
- token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
568
- return token;
570
+ this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => {
571
+ const nextAttempt = completedAttempt + 1;
572
+ return this.computeNextBackoffDelay(nextAttempt);
573
+ };
569
574
  }
570
575
  }
571
576
 
@@ -737,17 +742,29 @@ const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
737
742
  },
738
743
  default: DEFAULT_MAX_ATTEMPTS,
739
744
  };
740
- const resolveRetryConfig = (input) => {
745
+ const resolveRetryConfig = (input, defaults) => {
741
746
  const { retryStrategy, retryMode } = input;
742
- const maxAttempts = client.normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
747
+ const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {};
748
+ const maxAttemptsProvider = client.normalizeProvider(input.maxAttempts ?? defaultMaxAttempts);
743
749
  let controller = retryStrategy
744
750
  ? Promise.resolve(retryStrategy)
745
751
  : undefined;
746
- const getDefault = async () => (await client.normalizeProvider(retryMode)()) === exports.RETRY_MODES.ADAPTIVE
747
- ? new AdaptiveRetryStrategy$1(maxAttempts)
748
- : new StandardRetryStrategy$1(maxAttempts);
752
+ const getDefault = async () => {
753
+ const maxAttempts = await maxAttemptsProvider();
754
+ const adaptive = (await client.normalizeProvider(retryMode)()) === exports.RETRY_MODES.ADAPTIVE;
755
+ if (adaptive) {
756
+ return new AdaptiveRetryStrategy$1(maxAttemptsProvider, {
757
+ maxAttempts,
758
+ baseDelay: defaultBaseDelay,
759
+ });
760
+ }
761
+ return new StandardRetryStrategy$1({
762
+ maxAttempts,
763
+ baseDelay: defaultBaseDelay,
764
+ });
765
+ };
749
766
  return Object.assign(input, {
750
- maxAttempts,
767
+ maxAttempts: maxAttemptsProvider,
751
768
  retryStrategy: () => (controller ??= getDefault()),
752
769
  });
753
770
  };
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var client = require('@smithy/core/client');
4
- var protocols = require('@smithy/core/protocols');
5
- var endpoints = require('@smithy/core/endpoints');
3
+ var transport = require('@smithy/core/transport');
6
4
 
7
5
  const deref = (schemaRef) => {
8
6
  if (typeof schemaRef === "function") {
@@ -21,7 +19,7 @@ const operation = (namespace, name, traits, input, output) => ({
21
19
 
22
20
  const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
23
21
  const { response } = await next(args);
24
- const { operationSchema } = client.getSmithyContext(context);
22
+ const { operationSchema } = transport.getSmithyContext(context);
25
23
  const [, ns, n, t, i, o] = operationSchema ?? [];
26
24
  try {
27
25
  const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
@@ -59,11 +57,11 @@ const schemaDeserializationMiddleware = (config) => (next, context) => async (ar
59
57
  }
60
58
  }
61
59
  try {
62
- if (protocols.HttpResponse.isInstance(response)) {
63
- const { headers = {} } = response;
60
+ if (transport.HttpResponse.isInstance(response)) {
61
+ const { headers = {}, statusCode } = response;
64
62
  const headerEntries = Object.entries(headers);
65
63
  error.$metadata = {
66
- httpStatusCode: response.statusCode,
64
+ httpStatusCode: statusCode,
67
65
  requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
68
66
  extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
69
67
  cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
@@ -83,10 +81,10 @@ const findHeader = (pattern, headers) => {
83
81
  };
84
82
 
85
83
  const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
86
- const { operationSchema } = client.getSmithyContext(context);
84
+ const { operationSchema } = transport.getSmithyContext(context);
87
85
  const [, ns, n, t, i, o] = operationSchema ?? [];
88
86
  const endpoint = context.endpointV2
89
- ? async () => endpoints.toEndpointV1(context.endpointV2)
87
+ ? async () => transport.toEndpointV1(context.endpointV2)
90
88
  : config.endpoint;
91
89
  const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
92
90
  ...config,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var protocols = require('@smithy/core/protocols');
3
+ var transport = require('@smithy/core/transport');
4
4
  var endpoints = require('@smithy/core/endpoints');
5
5
 
6
6
  const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
@@ -912,7 +912,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
912
912
  }
913
913
  }
914
914
  try {
915
- if (protocols.HttpResponse.isInstance(response)) {
915
+ if (transport.HttpResponse.isInstance(response)) {
916
916
  const { headers = {} } = response;
917
917
  const headerEntries = Object.entries(headers);
918
918
  error.$metadata = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
4
  var node_fs = require('node:fs');
5
- var protocols = require('@smithy/core/protocols');
5
+ var transport = require('@smithy/core/transport');
6
6
  var endpoints = require('@smithy/core/endpoints');
7
7
  var node_stream = require('node:stream');
8
8
 
@@ -877,7 +877,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
877
877
  }
878
878
  }
879
879
  try {
880
- if (protocols.HttpResponse.isInstance(response)) {
880
+ if (transport.HttpResponse.isInstance(response)) {
881
881
  const { headers = {} } = response;
882
882
  const headerEntries = Object.entries(headers);
883
883
  error.$metadata = {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var protocols = require('@smithy/core/protocols');
3
+ var transport = require('@smithy/core/transport');
4
4
  var endpoints = require('@smithy/core/endpoints');
5
5
 
6
6
  const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
@@ -912,7 +912,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
912
912
  }
913
913
  }
914
914
  try {
915
- if (protocols.HttpResponse.isInstance(response)) {
915
+ if (transport.HttpResponse.isInstance(response)) {
916
916
  const { headers = {} } = response;
917
917
  const headerEntries = Object.entries(headers);
918
918
  error.$metadata = {
@@ -0,0 +1,184 @@
1
+ 'use strict';
2
+
3
+ var types = require('@smithy/types');
4
+
5
+ const getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
6
+
7
+ class HttpRequest {
8
+ method;
9
+ protocol;
10
+ hostname;
11
+ port;
12
+ path;
13
+ query;
14
+ headers;
15
+ username;
16
+ password;
17
+ fragment;
18
+ body;
19
+ constructor(options) {
20
+ this.method = options.method || "GET";
21
+ this.hostname = options.hostname || "localhost";
22
+ this.port = options.port;
23
+ this.query = options.query || {};
24
+ this.headers = options.headers || {};
25
+ this.body = options.body;
26
+ this.protocol = options.protocol
27
+ ? options.protocol.slice(-1) !== ":"
28
+ ? `${options.protocol}:`
29
+ : options.protocol
30
+ : "https:";
31
+ this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
32
+ this.username = options.username;
33
+ this.password = options.password;
34
+ this.fragment = options.fragment;
35
+ }
36
+ static clone(request) {
37
+ const cloned = new HttpRequest({
38
+ ...request,
39
+ headers: { ...request.headers },
40
+ });
41
+ if (cloned.query) {
42
+ cloned.query = cloneQuery(cloned.query);
43
+ }
44
+ return cloned;
45
+ }
46
+ static isInstance(request) {
47
+ if (!request) {
48
+ return false;
49
+ }
50
+ const req = request;
51
+ return ("method" in req &&
52
+ "protocol" in req &&
53
+ "hostname" in req &&
54
+ "path" in req &&
55
+ typeof req["query"] === "object" &&
56
+ typeof req["headers"] === "object");
57
+ }
58
+ clone() {
59
+ return HttpRequest.clone(this);
60
+ }
61
+ }
62
+ function cloneQuery(query) {
63
+ return Object.keys(query).reduce((carry, paramName) => {
64
+ const param = query[paramName];
65
+ return {
66
+ ...carry,
67
+ [paramName]: Array.isArray(param) ? [...param] : param,
68
+ };
69
+ }, {});
70
+ }
71
+
72
+ class HttpResponse {
73
+ statusCode;
74
+ reason;
75
+ headers;
76
+ body;
77
+ constructor(options) {
78
+ this.statusCode = options.statusCode;
79
+ this.reason = options.reason;
80
+ this.headers = options.headers || {};
81
+ this.body = options.body;
82
+ }
83
+ static isInstance(response) {
84
+ if (!response)
85
+ return false;
86
+ const resp = response;
87
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
88
+ }
89
+ }
90
+
91
+ const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
92
+ const isValidHostLabel = (value, allowSubDomains = false) => {
93
+ if (!allowSubDomains) {
94
+ return VALID_HOST_LABEL_REGEX.test(value);
95
+ }
96
+ const labels = value.split(".");
97
+ for (const label of labels) {
98
+ if (!isValidHostLabel(label)) {
99
+ return false;
100
+ }
101
+ }
102
+ return true;
103
+ };
104
+
105
+ function isValidHostname(hostname) {
106
+ const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
107
+ return hostPattern.test(hostname);
108
+ }
109
+
110
+ const normalizeProvider = (input) => {
111
+ if (typeof input === "function")
112
+ return input;
113
+ const promisified = Promise.resolve(input);
114
+ return () => promisified;
115
+ };
116
+
117
+ function parseQueryString(querystring) {
118
+ const query = {};
119
+ querystring = querystring.replace(/^\?/, "");
120
+ if (querystring) {
121
+ for (const pair of querystring.split("&")) {
122
+ let [key, value = null] = pair.split("=");
123
+ key = decodeURIComponent(key);
124
+ if (value) {
125
+ value = decodeURIComponent(value);
126
+ }
127
+ if (!(key in query)) {
128
+ query[key] = value;
129
+ }
130
+ else if (Array.isArray(query[key])) {
131
+ query[key].push(value);
132
+ }
133
+ else {
134
+ query[key] = [query[key], value];
135
+ }
136
+ }
137
+ }
138
+ return query;
139
+ }
140
+
141
+ const parseUrl = (url) => {
142
+ if (typeof url === "string") {
143
+ return parseUrl(new URL(url));
144
+ }
145
+ const { hostname, pathname, port, protocol, search } = url;
146
+ let query;
147
+ if (search) {
148
+ query = parseQueryString(search);
149
+ }
150
+ return {
151
+ hostname,
152
+ port: port ? parseInt(port) : undefined,
153
+ protocol,
154
+ path: pathname,
155
+ query,
156
+ };
157
+ };
158
+
159
+ const toEndpointV1 = (endpoint) => {
160
+ if (typeof endpoint === "object") {
161
+ if ("url" in endpoint) {
162
+ const v1Endpoint = parseUrl(endpoint.url);
163
+ if (endpoint.headers) {
164
+ v1Endpoint.headers = {};
165
+ for (const name in endpoint.headers) {
166
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
167
+ }
168
+ }
169
+ return v1Endpoint;
170
+ }
171
+ return endpoint;
172
+ }
173
+ return parseUrl(endpoint);
174
+ };
175
+
176
+ exports.HttpRequest = HttpRequest;
177
+ exports.HttpResponse = HttpResponse;
178
+ exports.getSmithyContext = getSmithyContext;
179
+ exports.isValidHostLabel = isValidHostLabel;
180
+ exports.isValidHostname = isValidHostname;
181
+ exports.normalizeProvider = normalizeProvider;
182
+ exports.parseQueryString = parseQueryString;
183
+ exports.parseUrl = parseUrl;
184
+ exports.toEndpointV1 = toEndpointV1;
@@ -1,8 +1,8 @@
1
- export * from "./getSmithyContext";
2
- export * from "./middleware-http-auth-scheme";
3
- export * from "./middleware-http-signing";
1
+ export { getSmithyContext } from "@smithy/core/transport";
2
+ export * from "./legacy-root-exports/middleware-http-auth-scheme";
3
+ export * from "./legacy-root-exports/middleware-http-signing";
4
4
  export * from "./normalizeProvider";
5
- export { createPaginator } from "./pagination/createPaginator";
6
- export * from "./request-builder/requestBuilder";
5
+ export { createPaginator } from "./legacy-root-exports/pagination/createPaginator";
6
+ export { requestBuilder } from "@smithy/core/protocols";
7
7
  export * from "./setFeature";
8
- export * from "./util-identity-and-auth";
8
+ export * from "./legacy-root-exports/util-identity-and-auth";
@@ -1,6 +1,6 @@
1
1
  export { constructStack } from "./middleware-stack/MiddlewareStack";
2
- export { getSmithyContext } from "./util-middleware/getSmithyContext";
3
- export { normalizeProvider } from "./util-middleware/normalizeProvider";
2
+ export { getSmithyContext } from "@smithy/core/transport";
3
+ export { normalizeProvider } from "@smithy/core/transport";
4
4
  export { invalidFunction } from "./invalid-dependency/invalidFunction";
5
5
  export { invalidProvider } from "./invalid-dependency/invalidProvider";
6
6
  export { createWaiter } from "./util-waiter/createWaiter";
@@ -1,4 +1,4 @@
1
- import { isValidHostLabel } from "@smithy/core/endpoints";
1
+ import { isValidHostLabel } from "@smithy/core/transport";
2
2
  const validRegions = new Set();
3
3
  export const checkRegion = (region, check = isValidHostLabel) => {
4
4
  if (!validRegions.has(region) && !check(region)) {
@@ -3,12 +3,12 @@ import { bindGetEndpointFromInstructions } from "./middleware-endpoint/adaptors/
3
3
  import { bindEndpointMiddleware } from "./middleware-endpoint/endpointMiddleware";
4
4
  import { bindGetEndpointPlugin } from "./middleware-endpoint/getEndpointPlugin";
5
5
  import { bindResolveEndpointConfig } from "./middleware-endpoint/resolveEndpointConfig";
6
- export * from "./toEndpointV1";
6
+ export { toEndpointV1 } from "@smithy/core/transport";
7
7
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
8
8
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
9
9
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
10
10
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
11
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
11
+ export { isValidHostLabel } from "@smithy/core/transport";
12
12
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
13
13
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
14
14
  export * from "./util-endpoints/types";
@@ -3,12 +3,12 @@ import { bindGetEndpointFromInstructions } from "./middleware-endpoint/adaptors/
3
3
  import { bindEndpointMiddleware } from "./middleware-endpoint/endpointMiddleware";
4
4
  import { bindGetEndpointPlugin } from "./middleware-endpoint/getEndpointPlugin";
5
5
  import { bindResolveEndpointConfig } from "./middleware-endpoint/resolveEndpointConfig";
6
- export * from "./toEndpointV1";
6
+ export { toEndpointV1 } from "@smithy/core/transport";
7
7
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
8
8
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
9
9
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
10
10
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
11
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
11
+ export { isValidHostLabel } from "@smithy/core/transport";
12
12
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
13
13
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
14
14
  export * from "./util-endpoints/types";
@@ -1 +1 @@
1
- export { toEndpointV1 } from "../../toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
@@ -1,4 +1,4 @@
1
- import { normalizeProvider } from "@smithy/core/client";
1
+ import { normalizeProvider } from "@smithy/core/transport";
2
2
  import { toEndpointV1 } from "./adaptors/toEndpointV1";
3
3
  export function bindResolveEndpointConfig(getEndpointFromConfig) {
4
4
  return (input) => {
@@ -2,7 +2,7 @@ export * from "./booleanEquals";
2
2
  export * from "./coalesce";
3
3
  export * from "./getAttr";
4
4
  export * from "./isSet";
5
- export * from "./isValidHostLabel";
5
+ export { isValidHostLabel } from "@smithy/core/transport";
6
6
  export * from "./ite";
7
7
  export * from "./not";
8
8
  export * from "./parseURL";
@@ -1,9 +1,9 @@
1
1
  import { NormalizedSchema, translateTraits } from "@smithy/core/schema";
2
2
  import { sdkStreamMixin, splitEvery, splitHeader } from "@smithy/core/serde";
3
+ import { HttpRequest } from "@smithy/core/transport";
3
4
  import { HttpProtocol } from "./HttpProtocol";
4
5
  import { collectBody } from "./collect-stream-body";
5
6
  import { extendedEncodeURIComponent } from "./extended-encode-uri-component";
6
- import { HttpRequest } from "./protocol-http/httpRequest";
7
7
  export class HttpBindingProtocol extends HttpProtocol {
8
8
  async serializeRequest(operationSchema, _input, context) {
9
9
  const input = _input && typeof _input === "object" ? _input : {};
@@ -1,7 +1,6 @@
1
1
  import { NormalizedSchema, TypeRegistry, translateTraits } from "@smithy/core/schema";
2
+ import { HttpRequest, HttpResponse } from "@smithy/core/transport";
2
3
  import { SerdeContext } from "./SerdeContext";
3
- import { HttpRequest } from "./protocol-http/httpRequest";
4
- import { HttpResponse } from "./protocol-http/httpResponse";
5
4
  export class HttpProtocol extends SerdeContext {
6
5
  options;
7
6
  compositeErrorRegistry;
@@ -1,7 +1,7 @@
1
1
  import { NormalizedSchema } from "@smithy/core/schema";
2
+ import { HttpRequest } from "@smithy/core/transport";
2
3
  import { HttpProtocol } from "./HttpProtocol";
3
4
  import { collectBody } from "./collect-stream-body";
4
- import { HttpRequest } from "./protocol-http/httpRequest";
5
5
  export class RpcProtocol extends HttpProtocol {
6
6
  async serializeRequest(operationSchema, _input, context) {
7
7
  const serializer = this.serializer;
@@ -13,13 +13,13 @@ export * from "./serde/determineTimestampFormat";
13
13
  export * from "./SerdeContext";
14
14
  export { Field } from "./protocol-http/Field";
15
15
  export { Fields } from "./protocol-http/Fields";
16
- export { HttpRequest } from "./protocol-http/httpRequest";
17
- export { HttpResponse } from "./protocol-http/httpResponse";
18
- export { isValidHostname } from "./protocol-http/isValidHostname";
16
+ export { HttpRequest } from "@smithy/core/transport";
17
+ export { HttpResponse } from "@smithy/core/transport";
18
+ export { isValidHostname } from "@smithy/core/transport";
19
19
  export { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "./protocol-http/extensions/httpExtensionConfiguration";
20
20
  export { contentLengthMiddleware, contentLengthMiddlewareOptions, getContentLengthPlugin, } from "./middleware-content-length/contentLengthMiddleware";
21
21
  export { escapeUri } from "./util-uri-escape/escape-uri";
22
22
  export { escapeUriPath } from "./util-uri-escape/escape-uri-path";
23
23
  export { buildQueryString } from "./querystring-builder/buildQueryString";
24
- export { parseQueryString } from "./querystring-parser/parseQueryString";
25
- export { parseUrl } from "./url-parser/parseUrl";
24
+ export { parseQueryString } from "@smithy/core/transport";
25
+ export { parseUrl } from "@smithy/core/transport";
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "../protocol-http/httpRequest";
1
+ import { HttpRequest } from "@smithy/core/transport";
2
2
  const CONTENT_LENGTH_HEADER = "content-length";
3
3
  export function contentLengthMiddleware(bodyLengthChecker) {
4
4
  return (next) => async (args) => {
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "./protocol-http/httpRequest";
1
+ import { HttpRequest } from "@smithy/core/transport";
2
2
  import { resolvedPath } from "./resolve-path";
3
3
  export function requestBuilder(input, context) {
4
4
  return new RequestBuilder(input, context);
@@ -2,6 +2,7 @@ import { normalizeProvider } from "@smithy/core/client";
2
2
  import { AdaptiveRetryStrategy } from "../util-retry/AdaptiveRetryStrategy";
3
3
  import { StandardRetryStrategy } from "../util-retry/StandardRetryStrategy";
4
4
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, RETRY_MODES } from "../util-retry/config";
5
+ import { Retry } from "../util-retry/retries-2026-config";
5
6
  export const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
6
7
  export const CONFIG_MAX_ATTEMPTS = "max_attempts";
7
8
  export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@@ -27,17 +28,29 @@ export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
27
28
  },
28
29
  default: DEFAULT_MAX_ATTEMPTS,
29
30
  };
30
- export const resolveRetryConfig = (input) => {
31
+ export const resolveRetryConfig = (input, defaults) => {
31
32
  const { retryStrategy, retryMode } = input;
32
- const maxAttempts = normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
33
+ const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {};
34
+ const maxAttemptsProvider = normalizeProvider(input.maxAttempts ?? defaultMaxAttempts);
33
35
  let controller = retryStrategy
34
36
  ? Promise.resolve(retryStrategy)
35
37
  : undefined;
36
- const getDefault = async () => (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE
37
- ? new AdaptiveRetryStrategy(maxAttempts)
38
- : new StandardRetryStrategy(maxAttempts);
38
+ const getDefault = async () => {
39
+ const maxAttempts = await maxAttemptsProvider();
40
+ const adaptive = (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE;
41
+ if (adaptive) {
42
+ return new AdaptiveRetryStrategy(maxAttemptsProvider, {
43
+ maxAttempts,
44
+ baseDelay: defaultBaseDelay,
45
+ });
46
+ }
47
+ return new StandardRetryStrategy({
48
+ maxAttempts,
49
+ baseDelay: defaultBaseDelay,
50
+ });
51
+ };
39
52
  return Object.assign(input, {
40
- maxAttempts,
53
+ maxAttempts: maxAttemptsProvider,
41
54
  retryStrategy: () => (controller ??= getDefault()),
42
55
  });
43
56
  };
@@ -42,9 +42,6 @@ export function bindRetryMiddleware(isStreamingPayload) {
42
42
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
43
43
  }
44
44
  catch (refreshError) {
45
- if (typeof refreshError.$backoff === "number") {
46
- await cooldown(refreshError.$backoff);
47
- }
48
45
  if (!lastError.$metadata) {
49
46
  lastError.$metadata = {};
50
47
  }
@@ -54,8 +51,10 @@ export function bindRetryMiddleware(isStreamingPayload) {
54
51
  }
55
52
  attempts = retryToken.getRetryCount();
56
53
  const delay = retryToken.getRetryDelay();
57
- totalRetryDelay += delay;
58
- await cooldown(delay);
54
+ totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
55
+ if (delay > 0) {
56
+ await cooldown(delay);
57
+ }
59
58
  }
60
59
  }
61
60
  }
@@ -25,4 +25,4 @@ export const THROTTLING_ERROR_CODES = [
25
25
  export const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
26
26
  export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
27
27
  export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
28
- export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
28
+ export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"];