@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
@@ -10,10 +10,9 @@ export class ConfiguredRetryStrategy extends StandardRetryStrategy {
10
10
  else {
11
11
  this.computeNextBackoffDelay = computeNextBackoffDelay;
12
12
  }
13
- }
14
- async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
15
- const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
16
- token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
17
- return token;
13
+ this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => {
14
+ const nextAttempt = completedAttempt + 1;
15
+ return this.computeNextBackoffDelay(nextAttempt);
16
+ };
18
17
  }
19
18
  }
@@ -4,6 +4,9 @@ export class DefaultRetryToken {
4
4
  count;
5
5
  cost;
6
6
  longPoll;
7
+ $retryLog = {
8
+ acquisitionDelay: 0,
9
+ };
7
10
  constructor(delay, count, cost, longPoll) {
8
11
  this.delay = delay;
9
12
  this.count = count;
@@ -10,8 +10,8 @@ const refusal = {
10
10
  };
11
11
  export class StandardRetryStrategy {
12
12
  mode = RETRY_MODES.STANDARD;
13
- capacity = INITIAL_RETRY_TOKENS;
14
13
  retryBackoffStrategy;
14
+ capacity = INITIAL_RETRY_TOKENS;
15
15
  maxAttemptsProvider;
16
16
  baseDelay;
17
17
  constructor(arg1) {
@@ -47,14 +47,18 @@ export class StandardRetryStrategy {
47
47
  retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5_000));
48
48
  }
49
49
  if (!shouldRetry) {
50
- throw Object.assign(new Error("No retry token available"), {
51
- $backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0,
52
- });
50
+ const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0;
51
+ if (longPollBackoff > 0) {
52
+ await new Promise((r) => setTimeout(r, longPollBackoff));
53
+ }
53
54
  }
54
55
  else {
55
56
  const capacityCost = this.getCapacityCost(errorType);
56
57
  this.capacity -= capacityCost;
57
- return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
58
+ const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
59
+ await new Promise((r) => setTimeout(r, retryDelay));
60
+ nextToken.$retryLog.acquisitionDelay = retryDelay;
61
+ return nextToken;
58
62
  }
59
63
  }
60
64
  throw new Error("No retry token available");
@@ -1,5 +1,4 @@
1
- import { getSmithyContext } from "@smithy/core/client";
2
- import { HttpResponse } from "@smithy/core/protocols";
1
+ import { HttpResponse, getSmithyContext } from "@smithy/core/transport";
3
2
  import { operation } from "../schemas/operation";
4
3
  export const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
5
4
  const { response } = await next(args);
@@ -42,10 +41,10 @@ export const schemaDeserializationMiddleware = (config) => (next, context) => as
42
41
  }
43
42
  try {
44
43
  if (HttpResponse.isInstance(response)) {
45
- const { headers = {} } = response;
44
+ const { headers = {}, statusCode } = response;
46
45
  const headerEntries = Object.entries(headers);
47
46
  error.$metadata = {
48
- httpStatusCode: response.statusCode,
47
+ httpStatusCode: statusCode,
49
48
  requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
50
49
  extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
51
50
  cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
@@ -1,5 +1,4 @@
1
- import { getSmithyContext } from "@smithy/core/client";
2
- import { toEndpointV1 } from "@smithy/core/endpoints";
1
+ import { getSmithyContext, toEndpointV1 } from "@smithy/core/transport";
3
2
  import { operation } from "../schemas/operation";
4
3
  export const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
5
4
  const { operationSchema } = getSmithyContext(context);
@@ -1,4 +1,4 @@
1
- import { HttpResponse } from "@smithy/core/protocols";
1
+ import { HttpResponse } from "@smithy/core/transport";
2
2
  export const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
3
3
  const { response } = await next(args);
4
4
  try {
@@ -0,0 +1,9 @@
1
+ export { getSmithyContext } from "./getSmithyContext";
2
+ export { HttpRequest } from "./httpRequest";
3
+ export { HttpResponse } from "./httpResponse";
4
+ export { isValidHostLabel } from "./isValidHostLabel";
5
+ export { isValidHostname } from "./isValidHostname";
6
+ export { normalizeProvider } from "./normalizeProvider";
7
+ export { parseQueryString } from "./parseQueryString";
8
+ export { parseUrl } from "./parseUrl";
9
+ export { toEndpointV1 } from "./toEndpointV1";
@@ -1,4 +1,4 @@
1
- import { parseQueryString } from "../querystring-parser/parseQueryString";
1
+ import { parseQueryString } from "./parseQueryString";
2
2
  export const parseUrl = (url) => {
3
3
  if (typeof url === "string") {
4
4
  return parseUrl(new URL(url));
@@ -1,4 +1,4 @@
1
- import { parseUrl } from "@smithy/core/protocols";
1
+ import { parseUrl } from "./parseUrl";
2
2
  export const toEndpointV1 = (endpoint) => {
3
3
  if (typeof endpoint === "object") {
4
4
  if ("url" in endpoint) {
@@ -1,8 +1,12 @@
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
+ /**
7
+ * Backwards compatibility re-export.
8
+ * @internal
9
+ */
10
+ export { requestBuilder } from "@smithy/core/protocols";
7
11
  export * from "./setFeature";
8
- export * from "./util-identity-and-auth";
12
+ 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,9 +1,9 @@
1
- export * from "./toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
2
2
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
3
3
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
4
4
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
5
5
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
6
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
6
+ export { isValidHostLabel } from "@smithy/core/transport";
7
7
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
8
8
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
9
9
  export * from "./util-endpoints/types";
@@ -1,9 +1,9 @@
1
- export * from "./toEndpointV1";
1
+ export { toEndpointV1 } from "@smithy/core/transport";
2
2
  export { BinaryDecisionDiagram } from "./util-endpoints/bdd/BinaryDecisionDiagram";
3
3
  export { EndpointCache } from "./util-endpoints/cache/EndpointCache";
4
4
  export { decideEndpoint } from "./util-endpoints/decideEndpoint";
5
5
  export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
6
- export { isValidHostLabel } from "./util-endpoints/lib/isValidHostLabel";
6
+ export { isValidHostLabel } from "@smithy/core/transport";
7
7
  export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
8
8
  export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
9
9
  export * from "./util-endpoints/types";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @deprecated Use `toEndpointV1` from `@smithy/core/endpoints` instead.
2
+ * @deprecated Use `toEndpointV1` from `@smithy/core/transport` instead.
3
3
  * @internal
4
4
  */
5
- export { toEndpointV1 } from "../../toEndpointV1";
5
+ export { toEndpointV1 } from "@smithy/core/transport";
@@ -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,7 +1,7 @@
1
1
  import { NormalizedSchema, type TypeRegistry } from "@smithy/core/schema";
2
+ import { HttpRequest } from "@smithy/core/transport";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, Schema, SerdeFunctions } from "@smithy/types";
3
4
  import { HttpProtocol } from "./HttpProtocol";
4
- import { HttpRequest } from "./protocol-http/httpRequest";
5
5
  /**
6
6
  * Base for HTTP-binding protocols. Downstream examples
7
7
  * include AWS REST JSON and AWS REST XML.
@@ -14,14 +14,14 @@ export * from "./SerdeContext";
14
14
  export { Field } from "./protocol-http/Field";
15
15
  export { Fields, type FieldsOptions } from "./protocol-http/Fields";
16
16
  export { type HttpHandler, type HttpHandlerUserInput } from "./protocol-http/httpHandler";
17
- export { HttpRequest, type IHttpRequest } from "./protocol-http/httpRequest";
18
- export { HttpResponse } from "./protocol-http/httpResponse";
19
- export { isValidHostname } from "./protocol-http/isValidHostname";
17
+ export { HttpRequest, type IHttpRequest } from "@smithy/core/transport";
18
+ export { HttpResponse } from "@smithy/core/transport";
19
+ export { isValidHostname } from "@smithy/core/transport";
20
20
  export { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, type HttpHandlerExtensionConfiguration, type HttpHandlerExtensionConfigType, } from "./protocol-http/extensions/httpExtensionConfiguration";
21
21
  export { type FieldOptions, type FieldPosition, type HeaderBag, type HttpMessage, type HttpHandlerOptions, } from "./protocol-http/types";
22
22
  export { contentLengthMiddleware, contentLengthMiddlewareOptions, getContentLengthPlugin, } from "./middleware-content-length/contentLengthMiddleware";
23
23
  export { escapeUri } from "./util-uri-escape/escape-uri";
24
24
  export { escapeUriPath } from "./util-uri-escape/escape-uri-path";
25
25
  export { buildQueryString } from "./querystring-builder/buildQueryString";
26
- export { parseQueryString } from "./querystring-parser/parseQueryString";
27
- export { parseUrl } from "./url-parser/parseUrl";
26
+ export { parseQueryString } from "@smithy/core/transport";
27
+ export { parseUrl } from "@smithy/core/transport";
@@ -1,6 +1,5 @@
1
+ import type { HttpRequest, HttpResponse } from "@smithy/core/transport";
1
2
  import type { FetchHttpHandlerOptions, HttpHandlerOptions, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
2
- import type { HttpRequest } from "./httpRequest";
3
- import type { HttpResponse } from "./httpResponse";
4
3
  /**
5
4
  * @internal
6
5
  */
@@ -1,5 +1,5 @@
1
+ import { HttpRequest } from "@smithy/core/transport";
1
2
  import type { SerdeContext } from "@smithy/types";
2
- import { HttpRequest } from "./protocol-http/httpRequest";
3
3
  /**
4
4
  * used in code-generated serde.
5
5
  *
@@ -53,7 +53,10 @@ export interface RetryResolvedConfig {
53
53
  /**
54
54
  * @internal
55
55
  */
56
- export declare const resolveRetryConfig: <T>(input: T & PreviouslyResolved & RetryInputConfig) => T & RetryResolvedConfig;
56
+ export declare const resolveRetryConfig: <T>(input: T & PreviouslyResolved & RetryInputConfig, defaults?: {
57
+ defaultMaxAttempts?: number;
58
+ defaultBaseDelay?: number;
59
+ }) => T & RetryResolvedConfig;
57
60
  /**
58
61
  * @internal
59
62
  */
@@ -1,4 +1,4 @@
1
- import type { Provider, RetryBackoffStrategy, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types";
1
+ import type { Provider, RetryBackoffStrategy, RetryStrategyV2 } from "@smithy/types";
2
2
  import { StandardRetryStrategy } from "./StandardRetryStrategy";
3
3
  /**
4
4
  * This extension of the StandardRetryStrategy allows customizing the
@@ -28,5 +28,4 @@ export declare class ConfiguredRetryStrategy extends StandardRetryStrategy imple
28
28
  * ```
29
29
  */
30
30
  constructor(maxAttempts: number | Provider<number>, computeNextBackoffDelay?: number | RetryBackoffStrategy["computeNextBackoffDelay"]);
31
- refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<StandardRetryToken>;
32
31
  }
@@ -7,6 +7,9 @@ export declare class DefaultRetryToken implements StandardRetryToken {
7
7
  private readonly count;
8
8
  private readonly cost;
9
9
  private readonly longPoll;
10
+ $retryLog: {
11
+ acquisitionDelay: number;
12
+ };
10
13
  constructor(delay: number, count: number, cost: number | undefined, longPoll: boolean);
11
14
  getRetryCount(): number;
12
15
  getRetryDelay(): number;
@@ -21,8 +21,8 @@ export type StandardRetryStrategyOptions = {
21
21
  */
22
22
  export declare class StandardRetryStrategy implements RetryStrategyV2 {
23
23
  readonly mode: string;
24
+ protected readonly retryBackoffStrategy: StandardRetryBackoffStrategy;
24
25
  private capacity;
25
- private readonly retryBackoffStrategy;
26
26
  private readonly maxAttemptsProvider;
27
27
  private readonly baseDelay;
28
28
  constructor(maxAttempts: number);
@@ -0,0 +1,9 @@
1
+ export { getSmithyContext } from "./getSmithyContext";
2
+ export { HttpRequest, IHttpRequest } from "./httpRequest";
3
+ export { HttpResponse } from "./httpResponse";
4
+ export { isValidHostLabel } from "./isValidHostLabel";
5
+ export { isValidHostname } from "./isValidHostname";
6
+ export { normalizeProvider } from "./normalizeProvider";
7
+ export { parseQueryString } from "./parseQueryString";
8
+ export { parseUrl } from "./parseUrl";
9
+ export { toEndpointV1 } from "./toEndpointV1";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.24.4",
3
+ "version": "3.24.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
6
  "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline core",
@@ -151,6 +151,13 @@
151
151
  "node": "./dist-cjs/submodules/retry/index.js",
152
152
  "import": "./dist-es/submodules/retry/index.js",
153
153
  "require": "./dist-cjs/submodules/retry/index.js"
154
+ },
155
+ "./transport": {
156
+ "types": "./dist-types/submodules/transport/index.d.ts",
157
+ "module": "./dist-es/submodules/transport/index.js",
158
+ "node": "./dist-cjs/submodules/transport/index.js",
159
+ "import": "./dist-es/submodules/transport/index.js",
160
+ "require": "./dist-cjs/submodules/transport/index.js"
154
161
  }
155
162
  },
156
163
  "author": {
@@ -162,7 +169,7 @@
162
169
  "sideEffects": false,
163
170
  "dependencies": {
164
171
  "@aws-crypto/crc32": "5.2.0",
165
- "@smithy/types": "^4.14.2",
172
+ "@smithy/types": "^4.14.3",
166
173
  "tslib": "^2.6.2"
167
174
  },
168
175
  "engines": {
@@ -178,25 +185,27 @@
178
185
  "files": [
179
186
  "./cbor.d.ts",
180
187
  "./cbor.js",
188
+ "./checksum.d.ts",
189
+ "./checksum.js",
190
+ "./client.d.ts",
191
+ "./client.js",
192
+ "./config.d.ts",
193
+ "./config.js",
181
194
  "./endpoints.d.ts",
182
195
  "./endpoints.js",
183
196
  "./event-streams.d.ts",
184
197
  "./event-streams.js",
185
198
  "./protocols.d.ts",
186
199
  "./protocols.js",
200
+ "./retry.d.ts",
201
+ "./retry.js",
187
202
  "./schema.d.ts",
188
203
  "./schema.js",
189
204
  "./serde.d.ts",
190
205
  "./serde.js",
191
- "dist-*/**",
192
- "./client.d.ts",
193
- "./client.js",
194
- "./config.d.ts",
195
- "./config.js",
196
- "./checksum.d.ts",
197
- "./checksum.js",
198
- "./retry.d.ts",
199
- "./retry.js"
206
+ "./transport.d.ts",
207
+ "./transport.js",
208
+ "dist-*/**"
200
209
  ],
201
210
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
202
211
  "repository": {
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ export * from "./dist-types/submodules/transport/index";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ module.exports = require("./dist-cjs/submodules/transport/index.js");
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var node_url = require('node:url');
4
3
  var config = require('@smithy/core/config');
5
4
  var node_http = require('node:http');
6
5
  var protocols = require('@smithy/core/protocols');
@@ -95,14 +94,8 @@ const requestFromEcsImds = async (timeout, options) => {
95
94
  return buffer.toString();
96
95
  };
97
96
  const CMDS_IP = "169.254.170.2";
98
- const GREENGRASS_HOSTS = {
99
- localhost: true,
100
- "127.0.0.1": true,
101
- };
102
- const GREENGRASS_PROTOCOLS = {
103
- "http:": true,
104
- "https:": true,
105
- };
97
+ const GREENGRASS_HOSTS = new Set(["localhost", "127.0.0.1"]);
98
+ const GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
106
99
  const getCmdsUri = async ({ logger }) => {
107
100
  if (process.env[ENV_CMDS_RELATIVE_URI]) {
108
101
  return {
@@ -111,21 +104,29 @@ const getCmdsUri = async ({ logger }) => {
111
104
  };
112
105
  }
113
106
  if (process.env[ENV_CMDS_FULL_URI]) {
114
- const parsed = node_url.parse(process.env[ENV_CMDS_FULL_URI]);
115
- if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
107
+ let parsed;
108
+ try {
109
+ parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
110
+ }
111
+ catch {
112
+ throw new config.CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger });
113
+ }
114
+ if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
116
115
  throw new config.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
117
116
  tryNextLink: false,
118
117
  logger,
119
118
  });
120
119
  }
121
- if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
120
+ if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
122
121
  throw new config.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
123
122
  tryNextLink: false,
124
123
  logger,
125
124
  });
126
125
  }
127
126
  return {
128
- ...parsed,
127
+ protocol: parsed.protocol,
128
+ hostname: parsed.hostname,
129
+ path: parsed.pathname + parsed.search,
129
130
  port: parsed.port ? parseInt(parsed.port, 10) : undefined,
130
131
  };
131
132
  }
@@ -1,4 +1,3 @@
1
- import { parse } from "node:url";
2
1
  import { CredentialsProviderError } from "@smithy/core/config";
3
2
  import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials";
4
3
  import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit";
@@ -34,14 +33,8 @@ const requestFromEcsImds = async (timeout, options) => {
34
33
  return buffer.toString();
35
34
  };
36
35
  const CMDS_IP = "169.254.170.2";
37
- const GREENGRASS_HOSTS = {
38
- localhost: true,
39
- "127.0.0.1": true,
40
- };
41
- const GREENGRASS_PROTOCOLS = {
42
- "http:": true,
43
- "https:": true,
44
- };
36
+ const GREENGRASS_HOSTS = new Set(["localhost", "127.0.0.1"]);
37
+ const GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
45
38
  const getCmdsUri = async ({ logger }) => {
46
39
  if (process.env[ENV_CMDS_RELATIVE_URI]) {
47
40
  return {
@@ -50,21 +43,29 @@ const getCmdsUri = async ({ logger }) => {
50
43
  };
51
44
  }
52
45
  if (process.env[ENV_CMDS_FULL_URI]) {
53
- const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
54
- if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
46
+ let parsed;
47
+ try {
48
+ parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
49
+ }
50
+ catch {
51
+ throw new CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger });
52
+ }
53
+ if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
55
54
  throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
56
55
  tryNextLink: false,
57
56
  logger,
58
57
  });
59
58
  }
60
- if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
59
+ if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
61
60
  throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
62
61
  tryNextLink: false,
63
62
  logger,
64
63
  });
65
64
  }
66
65
  return {
67
- ...parsed,
66
+ protocol: parsed.protocol,
67
+ hostname: parsed.hostname,
68
+ path: parsed.pathname + parsed.search,
68
69
  port: parsed.port ? parseInt(parsed.port, 10) : undefined,
69
70
  };
70
71
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.3.4",
3
+ "version": "4.3.7",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.4",
31
- "@smithy/types": "^4.14.2",
30
+ "@smithy/core": "^3.24.6",
31
+ "@smithy/types": "^4.14.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.4.4",
3
+ "version": "5.4.6",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -27,12 +27,12 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.4",
31
- "@smithy/types": "^4.14.2",
30
+ "@smithy/core": "^3.24.6",
31
+ "@smithy/types": "^4.14.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@smithy/abort-controller": "^4.2.15",
35
+ "@smithy/abort-controller": "^4.2.16",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
38
38
  "premove": "4.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-compression",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "description": "Middleware and Plugin for request compression.",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -15,8 +15,8 @@
15
15
  "main": "./dist-cjs/index.js",
16
16
  "module": "./dist-es/index.js",
17
17
  "dependencies": {
18
- "@smithy/core": "^3.24.4",
19
- "@smithy/types": "^4.14.2",
18
+ "@smithy/core": "^3.24.6",
19
+ "@smithy/types": "^4.14.3",
20
20
  "fflate": "0.8.1",
21
21
  "tslib": "^2.6.2"
22
22
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.7.4",
3
+ "version": "4.7.6",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -26,12 +26,12 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/core": "^3.24.4",
30
- "@smithy/types": "^4.14.2",
29
+ "@smithy/core": "^3.24.6",
30
+ "@smithy/types": "^4.14.3",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^4.2.15",
34
+ "@smithy/abort-controller": "^4.2.16",
35
35
  "@types/node": "^18.11.9",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.4.4",
3
+ "version": "5.4.6",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.24.4",
29
- "@smithy/types": "^4.14.2",
28
+ "@smithy/core": "^3.24.6",
29
+ "@smithy/types": "^4.14.3",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {