@cdklabs/cdk-ssm-documents 0.0.76 → 0.0.78

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 (282) hide show
  1. package/.jsii +11 -11
  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/checksums/package.json +2 -2
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  119. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +1 -1
  120. package/node_modules/@aws-sdk/client-cloudwatch/package.json +3 -3
  121. package/node_modules/@aws-sdk/client-ec2/README.md +7 -0
  122. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +105 -42
  123. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +2 -0
  124. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ValidateSecurityGroupQuotasForInterfaceCommand.js +4 -0
  125. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +1 -0
  126. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +13 -0
  127. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +79 -40
  128. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +7 -0
  129. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +3 -2
  130. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CopyVolumesCommand.d.ts +4 -0
  131. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +4 -0
  132. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -0
  133. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +1 -0
  134. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +1 -0
  135. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamInternetRegistryAssociationCommand.d.ts +1 -0
  136. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVolumeCommand.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteIpamInternetRegistryAssociationCommand.d.ts +1 -0
  138. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +2 -0
  139. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceCreditSpecificationsCommand.d.ts +2 -2
  140. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypesCommand.d.ts +3 -0
  141. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeIpamInternetRegistryAssociationsCommand.d.ts +1 -0
  142. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVolumesCommand.d.ts +2 -0
  143. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableIpamInternetRegistryAssociationCommand.d.ts +1 -0
  144. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -0
  145. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
  146. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +4 -0
  147. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +2 -0
  148. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateInterruptibleCapacityReservationAllocationCommand.d.ts +2 -1
  149. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +79 -0
  150. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +1 -0
  151. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +37 -0
  152. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +44 -1
  153. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +30 -1
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +2 -2
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +7 -2
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +7 -2
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +41 -2
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +4 -1
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +17 -0
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +6 -0
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +42 -0
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +1 -0
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +18 -0
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +7 -0
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +5 -0
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +2 -0
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +2 -2
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +10 -1
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -1
  170. package/node_modules/@aws-sdk/client-ec2/package.json +4 -4
  171. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  172. package/node_modules/@aws-sdk/client-iam/package.json +3 -3
  173. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +17 -3
  174. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
  175. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +9 -2
  176. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
  177. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
  178. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
  179. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  180. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
  181. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
  182. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
  183. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
  184. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
  185. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
  186. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +21 -5
  187. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +1 -0
  188. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  189. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +5 -0
  190. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  191. package/node_modules/@aws-sdk/client-lambda/package.json +3 -3
  192. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +38 -15
  193. package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +7 -0
  194. package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +28 -14
  195. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +3 -0
  196. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -0
  197. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  198. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  199. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +3 -0
  200. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -0
  201. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -0
  202. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +3 -0
  203. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  204. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  206. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +3 -0
  207. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -0
  208. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -0
  209. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  210. package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +15 -0
  211. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +186 -49
  212. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +43 -1
  213. package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +1 -0
  214. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +8 -0
  216. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +23 -7
  217. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +14 -1
  218. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  219. package/node_modules/@aws-sdk/client-s3/package.json +6 -6
  220. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  221. package/node_modules/@aws-sdk/client-sns/package.json +3 -3
  222. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  223. package/node_modules/@aws-sdk/client-sqs/package.json +3 -3
  224. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  225. package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
  226. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  227. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  228. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  229. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  230. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  231. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  232. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  233. package/node_modules/@aws-sdk/core/package.json +1 -1
  234. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  235. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  236. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  237. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  238. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  239. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  240. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  241. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  242. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  243. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  244. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +2 -2
  245. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  246. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  247. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  248. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  249. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  250. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  251. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  252. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  253. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  254. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  255. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  256. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
  257. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
  258. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
  259. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  260. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  261. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  262. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  263. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  264. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  265. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  266. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  267. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  268. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  269. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  270. package/node_modules/@smithy/core/errors.d.ts +5 -0
  271. package/node_modules/@smithy/core/errors.js +5 -0
  272. package/node_modules/@smithy/core/package.json +11 -2
  273. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
  274. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
  275. package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
  276. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +1 -0
  277. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  278. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  279. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
  280. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
  281. package/node_modules/@smithy/types/package.json +1 -1
  282. package/package.json +10 -10
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
- "version": "3.1121.0",
3
+ "version": "3.1131.0",
4
4
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sqs",
6
6
  "license": "Apache-2.0",
@@ -54,8 +54,8 @@
54
54
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
55
55
  },
56
56
  "dependencies": {
57
- "@aws-sdk/core": "^3.977.9",
58
- "@aws-sdk/credential-provider-node": "^3.972.81",
57
+ "@aws-sdk/core": "^3.978.0",
58
+ "@aws-sdk/credential-provider-node": "^3.972.83",
59
59
  "@aws-sdk/middleware-sdk-sqs": "^3.972.42",
60
60
  "@aws-sdk/types": "^3.974.5",
61
61
  "@smithy/core": "^3.33.3",
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1120.0";
72
+ var version = "3.1130.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
- "version": "3.1121.0",
3
+ "version": "3.1131.0",
4
4
  "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
6
6
  "license": "Apache-2.0",
@@ -48,8 +48,8 @@
48
48
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.9",
52
- "@aws-sdk/credential-provider-node": "^3.972.81",
51
+ "@aws-sdk/core": "^3.978.0",
52
+ "@aws-sdk/credential-provider-node": "^3.972.83",
53
53
  "@aws-sdk/types": "^3.974.5",
54
54
  "@smithy/core": "^3.33.3",
55
55
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -51,7 +51,12 @@ function formatUrl(request) {
51
51
  return `${protocol}//${auth}${hostname}${path}${queryString}${fragment}`;
52
52
  }
53
53
 
54
+ function hasOwn(container, key) {
55
+ return Object.prototype.hasOwnProperty.call(container, key);
56
+ }
57
+
54
58
  exports.build = build;
55
59
  exports.formatUrl = formatUrl;
60
+ exports.hasOwn = hasOwn;
56
61
  exports.parse = parse;
57
62
  exports.validate = validate;
@@ -0,0 +1,3 @@
1
+ export function hasOwn(container, key) {
2
+ return Object.prototype.hasOwnProperty.call(container, key);
3
+ }
@@ -1,2 +1,3 @@
1
1
  export { build, parse, validate } from "./util-arn-parser/arn";
2
2
  export { formatUrl } from "./util-format-url/format-url";
3
+ export { hasOwn } from "./hasOwn";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function hasOwn(container: object, key: string): boolean;
@@ -1,3 +1,4 @@
1
1
  export { build, parse, validate } from "./util-arn-parser/arn";
2
2
  export type { ARN } from "./util-arn-parser/arn";
3
3
  export { formatUrl } from "./util-format-url/format-url";
4
+ export { hasOwn } from "./hasOwn";
@@ -0,0 +1 @@
1
+ export declare function hasOwn(container: object, key: string): boolean;
@@ -1,3 +1,4 @@
1
1
  export { build, parse, validate } from "./util-arn-parser/arn";
2
2
  export { ARN } from "./util-arn-parser/arn";
3
3
  export { formatUrl } from "./util-format-url/format-url";
4
+ export { hasOwn } from "./hasOwn";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.977.9",
3
+ "version": "3.978.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
6
6
  "license": "Apache-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.70",
3
+ "version": "3.972.71",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,7 +43,7 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.977.9",
46
+ "@aws-sdk/core": "^3.978.0",
47
47
  "@aws-sdk/types": "^3.974.5",
48
48
  "@smithy/core": "^3.33.3",
49
49
  "@smithy/types": "^4.17.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.972.72",
3
+ "version": "3.972.73",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "keywords": [
6
6
  "aws",
@@ -53,7 +53,7 @@
53
53
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
54
54
  },
55
55
  "dependencies": {
56
- "@aws-sdk/core": "^3.977.9",
56
+ "@aws-sdk/core": "^3.978.0",
57
57
  "@aws-sdk/types": "^3.974.5",
58
58
  "@smithy/core": "^3.33.3",
59
59
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.15",
3
+ "version": "3.973.16",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,14 +45,14 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.9",
49
- "@aws-sdk/credential-provider-env": "^3.972.70",
50
- "@aws-sdk/credential-provider-http": "^3.972.72",
51
- "@aws-sdk/credential-provider-login": "^3.972.77",
52
- "@aws-sdk/credential-provider-process": "^3.972.70",
53
- "@aws-sdk/credential-provider-sso": "^3.973.14",
54
- "@aws-sdk/credential-provider-web-identity": "^3.972.76",
55
- "@aws-sdk/nested-clients": "^3.997.44",
48
+ "@aws-sdk/core": "^3.978.0",
49
+ "@aws-sdk/credential-provider-env": "^3.972.71",
50
+ "@aws-sdk/credential-provider-http": "^3.972.73",
51
+ "@aws-sdk/credential-provider-login": "^3.972.78",
52
+ "@aws-sdk/credential-provider-process": "^3.972.71",
53
+ "@aws-sdk/credential-provider-sso": "^3.973.15",
54
+ "@aws-sdk/credential-provider-web-identity": "^3.972.77",
55
+ "@aws-sdk/nested-clients": "^3.997.45",
56
56
  "@aws-sdk/types": "^3.974.5",
57
57
  "@smithy/core": "^3.33.3",
58
58
  "@smithy/credential-provider-imds": "^4.4.16",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.77",
3
+ "version": "3.972.78",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,8 +45,8 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.9",
49
- "@aws-sdk/nested-clients": "^3.997.44",
48
+ "@aws-sdk/core": "^3.978.0",
49
+ "@aws-sdk/nested-clients": "^3.997.45",
50
50
  "@aws-sdk/types": "^3.974.5",
51
51
  "@smithy/core": "^3.33.3",
52
52
  "@smithy/types": "^4.17.2",
@@ -52,6 +52,8 @@ function memoizeChain(providers, treatAsExpired) {
52
52
  passiveLock = chain(options)
53
53
  .then((c) => {
54
54
  credentials = c;
55
+ })
56
+ .catch(() => {
55
57
  })
56
58
  .finally(() => {
57
59
  passiveLock = undefined;
@@ -32,6 +32,8 @@ export function memoizeChain(providers, treatAsExpired) {
32
32
  passiveLock = chain(options)
33
33
  .then((c) => {
34
34
  credentials = c;
35
+ })
36
+ .catch(() => {
35
37
  })
36
38
  .finally(() => {
37
39
  passiveLock = undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.81",
3
+ "version": "3.972.83",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,12 +45,12 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/credential-provider-env": "^3.972.70",
49
- "@aws-sdk/credential-provider-http": "^3.972.72",
50
- "@aws-sdk/credential-provider-ini": "^3.973.15",
51
- "@aws-sdk/credential-provider-process": "^3.972.70",
52
- "@aws-sdk/credential-provider-sso": "^3.973.14",
53
- "@aws-sdk/credential-provider-web-identity": "^3.972.76",
48
+ "@aws-sdk/credential-provider-env": "^3.972.71",
49
+ "@aws-sdk/credential-provider-http": "^3.972.73",
50
+ "@aws-sdk/credential-provider-ini": "^3.973.16",
51
+ "@aws-sdk/credential-provider-process": "^3.972.71",
52
+ "@aws-sdk/credential-provider-sso": "^3.973.15",
53
+ "@aws-sdk/credential-provider-web-identity": "^3.972.77",
54
54
  "@aws-sdk/types": "^3.974.5",
55
55
  "@smithy/core": "^3.33.3",
56
56
  "@smithy/credential-provider-imds": "^4.4.16",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.70",
3
+ "version": "3.972.71",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,7 +43,7 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.977.9",
46
+ "@aws-sdk/core": "^3.978.0",
47
47
  "@aws-sdk/types": "^3.974.5",
48
48
  "@smithy/core": "^3.33.3",
49
49
  "@smithy/types": "^4.17.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.973.14",
3
+ "version": "3.973.15",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,9 +45,9 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.9",
49
- "@aws-sdk/nested-clients": "^3.997.44",
50
- "@aws-sdk/token-providers": "3.1116.0",
48
+ "@aws-sdk/core": "^3.978.0",
49
+ "@aws-sdk/nested-clients": "^3.997.45",
50
+ "@aws-sdk/token-providers": "3.1129.0",
51
51
  "@aws-sdk/types": "^3.974.5",
52
52
  "@smithy/core": "^3.33.3",
53
53
  "@smithy/types": "^4.17.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.76",
3
+ "version": "3.972.77",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -50,8 +50,8 @@
50
50
  "test:watch": "yarn g:vitest watch"
51
51
  },
52
52
  "dependencies": {
53
- "@aws-sdk/core": "^3.977.9",
54
- "@aws-sdk/nested-clients": "^3.997.44",
53
+ "@aws-sdk/core": "^3.978.0",
54
+ "@aws-sdk/nested-clients": "^3.997.45",
55
55
  "@aws-sdk/types": "^3.974.5",
56
56
  "@smithy/core": "^3.33.3",
57
57
  "@smithy/types": "^4.17.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-ec2",
3
- "version": "3.972.58",
3
+ "version": "3.972.59",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-ec2",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,7 +42,7 @@
42
42
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
43
43
  },
44
44
  "dependencies": {
45
- "@aws-sdk/core": "^3.977.9",
45
+ "@aws-sdk/core": "^3.978.0",
46
46
  "@aws-sdk/types": "^3.974.5",
47
47
  "@smithy/core": "^3.33.3",
48
48
  "@smithy/signature-v4": "^5.6.12",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.972.75",
3
+ "version": "3.972.76",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -94,7 +94,7 @@
94
94
  "test:types": "tsc -p tsconfig.test.json"
95
95
  },
96
96
  "dependencies": {
97
- "@aws-sdk/core": "^3.977.9",
97
+ "@aws-sdk/core": "^3.978.0",
98
98
  "@aws-sdk/signature-v4-multi-region": "^3.996.46",
99
99
  "@aws-sdk/types": "^3.974.5",
100
100
  "@smithy/core": "^3.33.3",
@@ -83,7 +83,7 @@ const commonParams = {
83
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
84
84
  };
85
85
 
86
- var version = "3.997.43";
86
+ var version = "3.997.44";
87
87
  var packageInfo = {
88
88
  version: version};
89
89
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.43";
81
+ var version = "3.997.44";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.43";
81
+ var version = "3.997.44";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.43";
81
+ var version = "3.997.44";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.43";
261
+ var version = "3.997.44";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.44",
3
+ "version": "3.997.45",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,7 +100,7 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.977.9",
103
+ "@aws-sdk/core": "^3.978.0",
104
104
  "@aws-sdk/signature-v4-multi-region": "^3.996.46",
105
105
  "@aws-sdk/types": "^3.974.5",
106
106
  "@smithy/core": "^3.33.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1116.0",
3
+ "version": "3.1129.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,8 +48,8 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.9",
52
- "@aws-sdk/nested-clients": "^3.997.44",
51
+ "@aws-sdk/core": "^3.978.0",
52
+ "@aws-sdk/nested-clients": "^3.997.45",
53
53
  "@aws-sdk/types": "^3.974.5",
54
54
  "@smithy/core": "^3.33.3",
55
55
  "@smithy/types": "^4.17.2",
@@ -0,0 +1,20 @@
1
+ class SmithyError extends Error {
2
+ name = "SmithyError";
3
+ $source = errors.$source;
4
+ }
5
+ class SmithyTypeError extends TypeError {
6
+ name = "SmithyTypeError";
7
+ $source = errors.$source;
8
+ }
9
+ class SmithyRangeError extends RangeError {
10
+ name = "SmithyRangeError";
11
+ $source = errors.$source;
12
+ }
13
+ const errors = {
14
+ $source: "smithy",
15
+ Error: SmithyError,
16
+ TypeError: SmithyTypeError,
17
+ RangeError: SmithyRangeError,
18
+ };
19
+
20
+ exports.errors = errors;
@@ -55,16 +55,17 @@ const isBrowserNetworkError = (error) => {
55
55
  const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
56
56
  THROTTLING_ERROR_CODES.includes(error.name) ||
57
57
  error.$retryable?.throttling == true;
58
- const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
59
- isClockSkewCorrectedError(error) ||
60
- (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
61
- TRANSIENT_ERROR_CODES.includes(error.name) ||
62
- NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
63
- NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
64
- TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
65
- isBrowserNetworkError(error) ||
66
- isNodeJsHttp2TransientError(error) ||
67
- (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
58
+ const isTransientError = (error, depth = 0) => error?.name !== "AbortError" &&
59
+ (isRetryableByTrait(error) ||
60
+ isClockSkewCorrectedError(error) ||
61
+ (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
62
+ TRANSIENT_ERROR_CODES.includes(error.name) ||
63
+ NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
64
+ NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
65
+ TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
66
+ isBrowserNetworkError(error) ||
67
+ isNodeJsHttp2TransientError(error) ||
68
+ (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)));
68
69
  const isServerError = (error) => {
69
70
  if (error.$metadata?.httpStatusCode !== undefined) {
70
71
  const statusCode = error.$metadata.httpStatusCode;
@@ -57,16 +57,17 @@ const isBrowserNetworkError = (error) => {
57
57
  const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
58
58
  THROTTLING_ERROR_CODES.includes(error.name) ||
59
59
  error.$retryable?.throttling == true;
60
- const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
61
- isClockSkewCorrectedError(error) ||
62
- (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
63
- TRANSIENT_ERROR_CODES.includes(error.name) ||
64
- NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
65
- NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
66
- TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
67
- isBrowserNetworkError(error) ||
68
- isNodeJsHttp2TransientError(error) ||
69
- (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
60
+ const isTransientError = (error, depth = 0) => error?.name !== "AbortError" &&
61
+ (isRetryableByTrait(error) ||
62
+ isClockSkewCorrectedError(error) ||
63
+ (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
64
+ TRANSIENT_ERROR_CODES.includes(error.name) ||
65
+ NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
66
+ NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
67
+ TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
68
+ isBrowserNetworkError(error) ||
69
+ isNodeJsHttp2TransientError(error) ||
70
+ (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)));
70
71
  const isServerError = (error) => {
71
72
  if (error.$metadata?.httpStatusCode !== undefined) {
72
73
  const statusCode = error.$metadata.httpStatusCode;
@@ -1170,6 +1170,8 @@ const getAwsChunkedEncodingStream = (readableStream, options) => {
1170
1170
  checksumLocationName !== undefined &&
1171
1171
  streamHasher !== undefined;
1172
1172
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
1173
+ Promise.resolve(digest).catch(() => {
1174
+ });
1173
1175
  const reader = readableStream.getReader();
1174
1176
  return new ReadableStream({
1175
1177
  async pull(controller) {
@@ -1352,6 +1352,8 @@ const getAwsChunkedEncodingStream$1 = (readableStream, options) => {
1352
1352
  checksumLocationName !== undefined &&
1353
1353
  streamHasher !== undefined;
1354
1354
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
1355
+ Promise.resolve(digest).catch(() => {
1356
+ });
1355
1357
  const reader = readableStream.getReader();
1356
1358
  return new ReadableStream({
1357
1359
  async pull(controller) {
@@ -1384,8 +1386,12 @@ function getAwsChunkedEncodingStream(stream, options) {
1384
1386
  checksumLocationName !== undefined &&
1385
1387
  streamHasher !== undefined;
1386
1388
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
1389
+ Promise.resolve(digest).catch(() => {
1390
+ });
1387
1391
  const awsChunkedEncodingStream = new Readable({
1388
- read: () => { },
1392
+ read() {
1393
+ readable.resume();
1394
+ },
1389
1395
  });
1390
1396
  readable.on("data", (data) => {
1391
1397
  const length = bodyLengthChecker(data) || 0;
@@ -1394,16 +1400,27 @@ function getAwsChunkedEncodingStream(stream, options) {
1394
1400
  }
1395
1401
  awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
1396
1402
  awsChunkedEncodingStream.push(data);
1397
- awsChunkedEncodingStream.push("\r\n");
1403
+ if (!awsChunkedEncodingStream.push("\r\n")) {
1404
+ readable.pause();
1405
+ }
1398
1406
  });
1407
+ readable.on("error", (err) => {
1408
+ awsChunkedEncodingStream.destroy(err);
1409
+ });
1410
+ readable.pause();
1399
1411
  readable.on("end", async () => {
1400
- awsChunkedEncodingStream.push(`0\r\n`);
1401
- if (checksumRequired) {
1402
- const checksum = base64Encoder(await digest);
1403
- awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
1404
- awsChunkedEncodingStream.push(`\r\n`);
1412
+ try {
1413
+ awsChunkedEncodingStream.push(`0\r\n`);
1414
+ if (checksumRequired) {
1415
+ const checksum = base64Encoder(await digest);
1416
+ awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
1417
+ awsChunkedEncodingStream.push(`\r\n`);
1418
+ }
1419
+ awsChunkedEncodingStream.push(null);
1420
+ }
1421
+ catch (err) {
1422
+ awsChunkedEncodingStream.destroy(err);
1405
1423
  }
1406
- awsChunkedEncodingStream.push(null);
1407
1424
  });
1408
1425
  return awsChunkedEncodingStream;
1409
1426
  }
@@ -1170,6 +1170,8 @@ const getAwsChunkedEncodingStream = (readableStream, options) => {
1170
1170
  checksumLocationName !== undefined &&
1171
1171
  streamHasher !== undefined;
1172
1172
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
1173
+ Promise.resolve(digest).catch(() => {
1174
+ });
1173
1175
  const reader = readableStream.getReader();
1174
1176
  return new ReadableStream({
1175
1177
  async pull(controller) {
@@ -0,0 +1,18 @@
1
+ export class SmithyError extends Error {
2
+ name = "SmithyError";
3
+ $source = errors.$source;
4
+ }
5
+ export class SmithyTypeError extends TypeError {
6
+ name = "SmithyTypeError";
7
+ $source = errors.$source;
8
+ }
9
+ export class SmithyRangeError extends RangeError {
10
+ name = "SmithyRangeError";
11
+ $source = errors.$source;
12
+ }
13
+ export const errors = {
14
+ $source: "smithy",
15
+ Error: SmithyError,
16
+ TypeError: SmithyTypeError,
17
+ RangeError: SmithyRangeError,
18
+ };
@@ -0,0 +1 @@
1
+ export { errors } from "./errors";