@cdklabs/cdk-ssm-documents 0.0.53 → 0.0.54

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 (446) hide show
  1. package/.jsii +12 -12
  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/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +4 -3
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +2 -2
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +1 -1
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +1 -1
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  129. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  130. package/node_modules/@aws-sdk/client-cloudformation/package.json +7 -7
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.js +4 -3
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.shared.js +2 -2
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/runtimeConfig.js +2 -1
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/runtimeConfig.shared.js +1 -1
  137. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  138. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +1 -1
  140. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +1 -1
  141. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  142. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  143. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  144. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  145. package/node_modules/@aws-sdk/client-cloudwatch/package.json +7 -7
  146. package/node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  147. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js +4 -3
  148. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js +2 -2
  149. package/node_modules/@aws-sdk/client-ec2/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  150. package/node_modules/@aws-sdk/client-ec2/dist-es/runtimeConfig.js +2 -1
  151. package/node_modules/@aws-sdk/client-ec2/dist-es/runtimeConfig.shared.js +1 -1
  152. package/node_modules/@aws-sdk/client-ec2/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  153. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +1 -1
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +1 -1
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +1 -1
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  160. package/node_modules/@aws-sdk/client-ec2/package.json +7 -7
  161. package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  162. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +4 -3
  163. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js +2 -2
  164. package/node_modules/@aws-sdk/client-iam/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  165. package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.js +2 -1
  166. package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.shared.js +1 -1
  167. package/node_modules/@aws-sdk/client-iam/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  168. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +1 -1
  169. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -1
  170. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +1 -1
  171. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  172. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  173. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  174. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  175. package/node_modules/@aws-sdk/client-iam/package.json +7 -7
  176. package/node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  177. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js +4 -3
  178. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +2 -2
  179. package/node_modules/@aws-sdk/client-lambda/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  180. package/node_modules/@aws-sdk/client-lambda/dist-es/runtimeConfig.js +2 -1
  181. package/node_modules/@aws-sdk/client-lambda/dist-es/runtimeConfig.shared.js +1 -1
  182. package/node_modules/@aws-sdk/client-lambda/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  183. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +1 -1
  184. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +1 -1
  185. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +1 -1
  186. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  187. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  188. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  189. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  190. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  191. package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +3 -3
  192. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +5 -4
  193. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +5 -5
  194. package/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  195. package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +2 -1
  196. package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js +3 -3
  197. package/node_modules/@aws-sdk/client-s3/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  198. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +1 -1
  199. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +1 -1
  200. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +1 -1
  201. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -2
  202. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  203. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  204. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  206. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  207. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  208. package/node_modules/@aws-sdk/client-sns/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  209. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.js +4 -3
  210. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.shared.js +2 -2
  211. package/node_modules/@aws-sdk/client-sns/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  212. package/node_modules/@aws-sdk/client-sns/dist-es/runtimeConfig.js +2 -1
  213. package/node_modules/@aws-sdk/client-sns/dist-es/runtimeConfig.shared.js +1 -1
  214. package/node_modules/@aws-sdk/client-sns/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +1 -1
  216. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +1 -1
  217. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +1 -1
  218. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  219. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  220. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  221. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  222. package/node_modules/@aws-sdk/client-sns/package.json +7 -7
  223. package/node_modules/@aws-sdk/client-sqs/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  224. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.js +4 -3
  225. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.shared.js +2 -2
  226. package/node_modules/@aws-sdk/client-sqs/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  227. package/node_modules/@aws-sdk/client-sqs/dist-es/runtimeConfig.js +2 -1
  228. package/node_modules/@aws-sdk/client-sqs/dist-es/runtimeConfig.shared.js +1 -1
  229. package/node_modules/@aws-sdk/client-sqs/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  230. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +1 -1
  231. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +1 -1
  232. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +1 -1
  233. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  234. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  235. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  236. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  237. package/node_modules/@aws-sdk/client-sqs/package.json +7 -7
  238. package/node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
  239. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +4 -3
  240. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js +2 -2
  241. package/node_modules/@aws-sdk/client-ssm/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  242. package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +2 -1
  243. package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.shared.js +1 -1
  244. package/node_modules/@aws-sdk/client-ssm/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  245. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +1 -1
  246. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +1 -1
  247. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +1 -1
  248. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  249. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  250. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  251. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  252. package/node_modules/@aws-sdk/client-ssm/package.json +7 -7
  253. package/node_modules/@aws-sdk/core/dist-cjs/index.js +54 -21
  254. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +54 -21
  255. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +24 -6
  256. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +6 -5
  257. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
  258. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
  259. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +6 -4
  260. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +6 -4
  261. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -2
  262. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +9 -3
  263. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +13 -0
  264. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -1
  265. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -1
  266. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -1
  267. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -1
  268. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -1
  269. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
  270. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
  271. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -0
  272. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -0
  273. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -0
  274. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -0
  275. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -0
  276. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -0
  277. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -1
  278. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
  279. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
  280. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +6 -1
  281. package/node_modules/@aws-sdk/core/package.json +2 -2
  282. package/node_modules/@aws-sdk/credential-provider-env/README.md +12 -3
  283. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  284. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  285. package/node_modules/@aws-sdk/credential-provider-ini/README.md +12 -3
  286. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  287. package/node_modules/@aws-sdk/credential-provider-login/README.md +12 -3
  288. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  289. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  290. package/node_modules/@aws-sdk/credential-provider-process/README.md +12 -3
  291. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  292. package/node_modules/@aws-sdk/credential-provider-sso/README.md +12 -3
  293. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  294. package/node_modules/@aws-sdk/credential-provider-web-identity/README.md +12 -3
  295. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  296. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  297. package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +10 -3
  298. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +1 -1
  299. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +27 -0
  300. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +1 -0
  301. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +25 -0
  302. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +1 -0
  303. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/protocol/S3RestXmlProtocol.d.ts +20 -0
  304. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +1 -0
  305. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/protocol/S3RestXmlProtocol.d.ts +15 -0
  306. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  307. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  308. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +2 -2
  309. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.js +4 -3
  310. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +4 -4
  311. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +2 -2
  312. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +4 -3
  313. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +4 -4
  314. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +2 -2
  315. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +4 -3
  316. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +4 -4
  317. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +2 -2
  318. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +4 -3
  319. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +4 -4
  320. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +2 -2
  321. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +7 -6
  322. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +4 -4
  323. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
  324. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  325. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +1 -1
  326. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
  327. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  328. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +1 -1
  329. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
  330. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  331. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +1 -1
  332. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
  333. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  334. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +1 -1
  335. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +1 -1
  336. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  337. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +1 -1
  338. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
  339. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
  340. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
  341. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
  342. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -1
  343. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
  344. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
  345. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
  346. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
  347. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -1
  348. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
  349. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
  350. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
  351. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
  352. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -1
  353. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
  354. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
  355. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
  356. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
  357. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -1
  358. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
  359. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
  360. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
  361. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
  362. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -1
  363. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
  364. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
  365. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
  366. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
  367. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -1
  368. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
  369. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -2
  370. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -2
  371. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -2
  372. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -1
  373. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
  374. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -2
  375. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -2
  376. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -2
  377. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -1
  378. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
  379. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
  380. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
  381. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
  382. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -1
  383. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
  384. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -2
  385. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -1
  386. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -2
  387. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -1
  388. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  389. package/node_modules/@aws-sdk/region-config-resolver/README.md +11 -4
  390. package/node_modules/@aws-sdk/region-config-resolver/package.json +1 -1
  391. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  392. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  393. package/node_modules/@aws-sdk/util-user-agent-node/README.md +10 -3
  394. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  395. package/node_modules/@aws-sdk/xml-builder/README.md +10 -3
  396. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  397. package/node_modules/@smithy/core/README.md +12 -1
  398. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +8 -17
  399. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -8
  400. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +7 -9
  401. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  402. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  403. package/node_modules/@smithy/core/package.json +2 -2
  404. package/node_modules/@smithy/middleware-compression/README.md +9 -4
  405. package/node_modules/@smithy/middleware-compression/package.json +2 -2
  406. package/node_modules/@smithy/middleware-endpoint/README.md +10 -3
  407. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  408. package/node_modules/@smithy/middleware-retry/README.md +13 -0
  409. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  410. package/node_modules/@smithy/middleware-serde/README.md +13 -0
  411. package/node_modules/@smithy/middleware-serde/package.json +2 -2
  412. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  413. package/node_modules/@smithy/smithy-client/README.md +10 -3
  414. package/node_modules/@smithy/smithy-client/package.json +4 -4
  415. package/node_modules/@smithy/util-defaults-mode-browser/README.md +10 -3
  416. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  417. package/node_modules/@smithy/util-defaults-mode-node/README.md +10 -3
  418. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  419. package/node_modules/@smithy/util-stream/package.json +2 -2
  420. package/node_modules/@smithy/util-waiter/README.md +10 -3
  421. package/node_modules/@smithy/util-waiter/package.json +2 -2
  422. package/package.json +10 -10
  423. package/node_modules/@smithy/abort-controller/LICENSE +0 -201
  424. package/node_modules/@smithy/abort-controller/README.md +0 -4
  425. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -32
  426. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -7
  427. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -20
  428. package/node_modules/@smithy/abort-controller/dist-es/index.js +0 -2
  429. package/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -16
  430. package/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +0 -21
  431. package/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -9
  432. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -16
  433. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +0 -21
  434. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -9
  435. package/node_modules/@smithy/abort-controller/package.json +0 -63
  436. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/.github/SECURITY.md +0 -0
  437. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/.vscode/launch.json +0 -0
  438. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/CHANGELOG.md +0 -0
  439. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/LICENSE +0 -0
  440. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/README.md +0 -0
  441. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/algo.stflow +0 -0
  442. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/package.json +0 -0
  443. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/strnum.js +0 -0
  444. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/tests/infinity_test.js +0 -0
  445. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/tests/strnum_test.js +0 -0
  446. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/tests/temp.js +0 -0
@@ -2,6 +2,7 @@ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
2
  import { decorateServiceException } from "@smithy/smithy-client";
3
3
  export class ProtocolLib {
4
4
  queryCompat;
5
+ errorRegistry;
5
6
  constructor(queryCompat = false) {
6
7
  this.queryCompat = queryCompat;
7
8
  }
@@ -37,30 +38,47 @@ export class ProtocolLib {
37
38
  }
38
39
  }
39
40
  async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
40
- let namespace = defaultNamespace;
41
41
  let errorName = errorIdentifier;
42
42
  if (errorIdentifier.includes("#")) {
43
- [namespace, errorName] = errorIdentifier.split("#");
43
+ [, errorName] = errorIdentifier.split("#");
44
44
  }
45
45
  const errorMetadata = {
46
46
  $metadata: metadata,
47
47
  $fault: response.statusCode < 500 ? "client" : "server",
48
48
  };
49
- const registry = TypeRegistry.for(namespace);
49
+ if (!this.errorRegistry) {
50
+ throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
51
+ }
50
52
  try {
51
- const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
53
+ const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ??
54
+ this.errorRegistry.getSchema(errorIdentifier);
52
55
  return { errorSchema, errorMetadata };
53
56
  }
54
57
  catch (e) {
55
58
  dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
56
- const synthetic = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
59
+ const synthetic = this.errorRegistry;
57
60
  const baseExceptionSchema = synthetic.getBaseException();
58
61
  if (baseExceptionSchema) {
59
62
  const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
60
63
  throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
61
64
  }
62
- throw this.decorateServiceException(Object.assign(new Error(errorName), errorMetadata), dataObject);
65
+ const d = dataObject;
66
+ const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message;
67
+ throw this.decorateServiceException(Object.assign(new Error(message), {
68
+ name: errorName,
69
+ }, errorMetadata), dataObject);
70
+ }
71
+ }
72
+ compose(composite, errorIdentifier, defaultNamespace) {
73
+ let namespace = defaultNamespace;
74
+ if (errorIdentifier.includes("#")) {
75
+ [namespace] = errorIdentifier.split("#");
63
76
  }
77
+ const staticRegistry = TypeRegistry.for(namespace);
78
+ const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
79
+ composite.copyFrom(staticRegistry);
80
+ composite.copyFrom(defaultSyntheticRegistry);
81
+ this.errorRegistry = composite;
64
82
  }
65
83
  decorateServiceException(exception, additions = {}) {
66
84
  if (this.queryCompat) {
@@ -1,11 +1,11 @@
1
1
  import { loadSmithyRpcV2CborErrorCode, SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
2
- import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  export class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
5
5
  awsQueryCompatible;
6
6
  mixin;
7
- constructor({ defaultNamespace, awsQueryCompatible, }) {
8
- super({ defaultNamespace });
7
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
8
+ super({ defaultNamespace, errorTypeRegistries });
9
9
  this.awsQueryCompatible = !!awsQueryCompatible;
10
10
  this.mixin = new ProtocolLib(this.awsQueryCompatible);
11
11
  }
@@ -27,10 +27,11 @@ export class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
27
27
  }
28
28
  return loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
29
29
  })();
30
+ this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
30
31
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
31
32
  const ns = NormalizedSchema.of(errorSchema);
32
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
33
- const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
33
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
34
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
34
35
  const exception = new ErrorCtor(message);
35
36
  const output = {};
36
37
  for (const [name, member] of ns.structIterator()) {
@@ -1,8 +1,9 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
2
  export class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
3
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
3
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
4
4
  super({
5
5
  defaultNamespace,
6
+ errorTypeRegistries,
6
7
  serviceTarget,
7
8
  awsQueryCompatible,
8
9
  jsonCodec,
@@ -1,8 +1,9 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
2
  export class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
3
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
3
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
4
4
  super({
5
5
  defaultNamespace,
6
+ errorTypeRegistries,
6
7
  serviceTarget,
7
8
  awsQueryCompatible,
8
9
  jsonCodec,
@@ -1,5 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
- import { deref, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
+ import { deref, NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { JsonCodec } from "./JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
@@ -10,9 +10,10 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
10
10
  codec;
11
11
  mixin;
12
12
  awsQueryCompatible;
13
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
13
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
14
14
  super({
15
15
  defaultNamespace,
16
+ errorTypeRegistries,
16
17
  });
17
18
  this.serviceTarget = serviceTarget;
18
19
  this.codec =
@@ -54,10 +55,11 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
54
55
  this.mixin.setQueryCompatError(dataObject, response);
55
56
  }
56
57
  const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
58
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
57
59
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
58
60
  const ns = NormalizedSchema.of(errorSchema);
59
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
60
- const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
61
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
62
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
61
63
  const exception = new ErrorCtor(message);
62
64
  const output = {};
63
65
  for (const [name, member] of ns.structIterator()) {
@@ -1,5 +1,5 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
- import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { JsonCodec } from "./JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
@@ -8,9 +8,10 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
8
8
  deserializer;
9
9
  codec;
10
10
  mixin = new ProtocolLib();
11
- constructor({ defaultNamespace }) {
11
+ constructor({ defaultNamespace, errorTypeRegistries, }) {
12
12
  super({
13
13
  defaultNamespace,
14
+ errorTypeRegistries,
14
15
  });
15
16
  const settings = {
16
17
  timestampFormat: {
@@ -60,10 +61,11 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
60
61
  }
61
62
  async handleError(operationSchema, context, response, dataObject, metadata) {
62
63
  const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
64
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
63
65
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
64
66
  const ns = NormalizedSchema.of(errorSchema);
65
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
66
- const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
67
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
68
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
67
69
  const exception = new ErrorCtor(message);
68
70
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
69
71
  const output = {};
@@ -1,5 +1,5 @@
1
1
  import { collectBody, RpcProtocol } from "@smithy/core/protocols";
2
- import { deref, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
+ import { deref, NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
5
5
  import { QueryShapeSerializer } from "./QueryShapeSerializer";
@@ -11,6 +11,7 @@ export class AwsQueryProtocol extends RpcProtocol {
11
11
  constructor(options) {
12
12
  super({
13
13
  defaultNamespace: options.defaultNamespace,
14
+ errorTypeRegistries: options.errorTypeRegistries,
14
15
  });
15
16
  this.options = options;
16
17
  const settings = {
@@ -87,6 +88,7 @@ export class AwsQueryProtocol extends RpcProtocol {
87
88
  }
88
89
  async handleError(operationSchema, context, response, dataObject, metadata) {
89
90
  const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
91
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
90
92
  const errorData = this.loadQueryError(dataObject) ?? {};
91
93
  const message = this.loadQueryErrorMessage(dataObject);
92
94
  errorData.message = message;
@@ -97,7 +99,7 @@ export class AwsQueryProtocol extends RpcProtocol {
97
99
  };
98
100
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
99
101
  const ns = NormalizedSchema.of(errorSchema);
100
- const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
102
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
101
103
  const exception = new ErrorCtor(message);
102
104
  const output = {
103
105
  Type: errorData.Error.Type,
@@ -1,5 +1,5 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
- import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { loadRestXmlErrorCode } from "./parseXmlBody";
5
5
  import { XmlCodec } from "./XmlCodec";
@@ -22,6 +22,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
22
22
  this.codec = new XmlCodec(settings);
23
23
  this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
24
24
  this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
25
+ this.compositeErrorRegistry;
25
26
  }
26
27
  getPayloadCodec() {
27
28
  return this.codec;
@@ -51,6 +52,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
51
52
  }
52
53
  async handleError(operationSchema, context, response, dataObject, metadata) {
53
54
  const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
55
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
54
56
  if (dataObject.Error && typeof dataObject.Error === "object") {
55
57
  for (const key of Object.keys(dataObject.Error)) {
56
58
  dataObject[key] = dataObject.Error[key];
@@ -64,8 +66,12 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
64
66
  }
65
67
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
66
68
  const ns = NormalizedSchema.of(errorSchema);
67
- const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
68
- const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
69
+ const message = dataObject.Error?.message ??
70
+ dataObject.Error?.Message ??
71
+ dataObject.message ??
72
+ dataObject.Message ??
73
+ "UnknownError";
74
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
69
75
  const exception = new ErrorCtor(message);
70
76
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
71
77
  const output = {};
@@ -14,6 +14,7 @@ type ErrorMetadataBearer = MetadataBearer & {
14
14
  */
15
15
  export declare class ProtocolLib {
16
16
  private queryCompat;
17
+ private errorRegistry?;
17
18
  constructor(queryCompat?: boolean);
18
19
  /**
19
20
  * This is only for REST protocols.
@@ -34,6 +35,18 @@ export declare class ProtocolLib {
34
35
  errorSchema: StaticErrorSchema;
35
36
  errorMetadata: ErrorMetadataBearer;
36
37
  }>;
38
+ /**
39
+ * This method exists because in older clients, no `errorTypeRegistries` array is provided to the Protocol
40
+ * implementation. This means that the TypeRegistry queried by the error's namespace or the service's defaultNamespace
41
+ * must be composed into the possibly-empty local compositeErrorRegistry.
42
+ *
43
+ *
44
+ * @param composite - TypeRegistry instance local to instances of HttpProtocol. In newer clients, this instance directly
45
+ * receives the error registries exported by the client.
46
+ * @param errorIdentifier - parsed from the response, used to look up the error schema within the registry.
47
+ * @param defaultNamespace - property of the Protocol implementation pointing to a specific service.
48
+ */
49
+ compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
37
50
  /**
38
51
  * Assigns additions onto exception if not already present.
39
52
  */
@@ -1,4 +1,5 @@
1
1
  import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
2
+ import type { TypeRegistry } from "@smithy/core/schema";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
3
4
  /**
4
5
  * Extends the Smithy implementation to add AwsQueryCompatibility support.
@@ -8,8 +9,9 @@ import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse
8
9
  export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
9
10
  private readonly awsQueryCompatible;
10
11
  private readonly mixin;
11
- constructor({ defaultNamespace, awsQueryCompatible, }: {
12
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }: {
12
13
  defaultNamespace: string;
14
+ errorTypeRegistries?: TypeRegistry[];
13
15
  awsQueryCompatible?: boolean;
14
16
  });
15
17
  /**
@@ -1,3 +1,4 @@
1
+ import type { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
3
  import type { JsonCodec } from "./JsonCodec";
3
4
  /**
@@ -5,8 +6,9 @@ import type { JsonCodec } from "./JsonCodec";
5
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
6
7
  */
7
8
  export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
8
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
9
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
9
10
  defaultNamespace: string;
11
+ errorTypeRegistries?: TypeRegistry[];
10
12
  serviceTarget: string;
11
13
  awsQueryCompatible?: boolean;
12
14
  jsonCodec?: JsonCodec;
@@ -1,3 +1,4 @@
1
+ import type { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
3
  import type { JsonCodec } from "./JsonCodec";
3
4
  /**
@@ -5,8 +6,9 @@ import type { JsonCodec } from "./JsonCodec";
5
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
6
7
  */
7
8
  export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
8
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
9
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
9
10
  defaultNamespace: string;
11
+ errorTypeRegistries?: TypeRegistry[];
10
12
  serviceTarget: string;
11
13
  awsQueryCompatible?: boolean;
12
14
  jsonCodec?: JsonCodec;
@@ -1,4 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
+ import type { TypeRegistry } from "@smithy/core/schema";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
4
  import { JsonCodec } from "./JsonCodec";
4
5
  /**
@@ -11,8 +12,9 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
11
12
  private readonly codec;
12
13
  private readonly mixin;
13
14
  private readonly awsQueryCompatible;
14
- protected constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
15
+ protected constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
15
16
  defaultNamespace: string;
17
+ errorTypeRegistries?: TypeRegistry[];
16
18
  serviceTarget: string;
17
19
  awsQueryCompatible?: boolean;
18
20
  jsonCodec?: JsonCodec;
@@ -1,4 +1,5 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
+ import type { TypeRegistry } from "@smithy/core/schema";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
4
  import { JsonCodec } from "./JsonCodec";
4
5
  /**
@@ -9,8 +10,9 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
9
10
  protected deserializer: ShapeDeserializer<string | Uint8Array>;
10
11
  private readonly codec;
11
12
  private readonly mixin;
12
- constructor({ defaultNamespace }: {
13
+ constructor({ defaultNamespace, errorTypeRegistries, }: {
13
14
  defaultNamespace: string;
15
+ errorTypeRegistries?: TypeRegistry[];
14
16
  });
15
17
  getShapeId(): string;
16
18
  getPayloadCodec(): JsonCodec;
@@ -1,3 +1,4 @@
1
+ import type { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsQueryProtocol } from "./AwsQueryProtocol";
2
3
  /**
3
4
  * @public
@@ -7,11 +8,13 @@ export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
7
8
  defaultNamespace: string;
8
9
  xmlNamespace: string;
9
10
  version: string;
11
+ errorTypeRegistries?: TypeRegistry[];
10
12
  };
11
13
  constructor(options: {
12
14
  defaultNamespace: string;
13
15
  xmlNamespace: string;
14
16
  version: string;
17
+ errorTypeRegistries?: TypeRegistry[];
15
18
  });
16
19
  /**
17
20
  * @override
@@ -1,4 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
+ import type { TypeRegistry } from "@smithy/core/schema";
2
3
  import type { Codec, EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
3
4
  import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
4
5
  import { QueryShapeSerializer } from "./QueryShapeSerializer";
@@ -10,6 +11,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
10
11
  defaultNamespace: string;
11
12
  xmlNamespace: string;
12
13
  version: string;
14
+ errorTypeRegistries?: TypeRegistry[];
13
15
  };
14
16
  protected serializer: QueryShapeSerializer;
15
17
  protected deserializer: XmlShapeDeserializer;
@@ -18,6 +20,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
18
20
  defaultNamespace: string;
19
21
  xmlNamespace: string;
20
22
  version: string;
23
+ errorTypeRegistries?: TypeRegistry[];
21
24
  });
22
25
  getShapeId(): string;
23
26
  setSerdeContext(serdeContext: SerdeFunctions): void;
@@ -1,4 +1,5 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
+ import type { TypeRegistry } from "@smithy/core/schema";
2
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
4
  import { XmlCodec } from "./XmlCodec";
4
5
  /**
@@ -12,6 +13,7 @@ export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
12
13
  constructor(options: {
13
14
  defaultNamespace: string;
14
15
  xmlNamespace: string;
16
+ errorTypeRegistries?: TypeRegistry[];
15
17
  });
16
18
  getPayloadCodec(): XmlCodec;
17
19
  getShapeId(): string;
@@ -11,6 +11,7 @@ type ErrorMetadataBearer = MetadataBearer & {
11
11
  };
12
12
  export declare class ProtocolLib {
13
13
  private queryCompat;
14
+ private errorRegistry?;
14
15
  constructor(queryCompat?: boolean);
15
16
  resolveRestContentType(
16
17
  defaultContentType: string,
@@ -30,6 +31,11 @@ export declare class ProtocolLib {
30
31
  errorSchema: StaticErrorSchema;
31
32
  errorMetadata: ErrorMetadataBearer;
32
33
  }>;
34
+ compose(
35
+ composite: TypeRegistry,
36
+ errorIdentifier: string,
37
+ defaultNamespace: string
38
+ ): void;
33
39
  decorateServiceException<E extends SDKBaseServiceException>(
34
40
  exception: E,
35
41
  additions?: Record<string, any>
@@ -1,4 +1,5 @@
1
1
  import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
2
+ import { TypeRegistry } from "@smithy/core/schema";
2
3
  import {
3
4
  EndpointBearer,
4
5
  HandlerExecutionContext,
@@ -13,9 +14,11 @@ export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol
13
14
  private readonly mixin;
14
15
  constructor({
15
16
  defaultNamespace,
17
+ errorTypeRegistries,
16
18
  awsQueryCompatible,
17
19
  }: {
18
20
  defaultNamespace: string;
21
+ errorTypeRegistries?: TypeRegistry[];
19
22
  awsQueryCompatible?: boolean;
20
23
  });
21
24
  serializeRequest<Input extends object>(
@@ -1,13 +1,16 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
3
  import { JsonCodec } from "./JsonCodec";
3
4
  export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
4
5
  constructor({
5
6
  defaultNamespace,
7
+ errorTypeRegistries,
6
8
  serviceTarget,
7
9
  awsQueryCompatible,
8
10
  jsonCodec,
9
11
  }: {
10
12
  defaultNamespace: string;
13
+ errorTypeRegistries?: TypeRegistry[];
11
14
  serviceTarget: string;
12
15
  awsQueryCompatible?: boolean;
13
16
  jsonCodec?: JsonCodec;
@@ -1,13 +1,16 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
3
  import { JsonCodec } from "./JsonCodec";
3
4
  export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
4
5
  constructor({
5
6
  defaultNamespace,
7
+ errorTypeRegistries,
6
8
  serviceTarget,
7
9
  awsQueryCompatible,
8
10
  jsonCodec,
9
11
  }: {
10
12
  defaultNamespace: string;
13
+ errorTypeRegistries?: TypeRegistry[];
11
14
  serviceTarget: string;
12
15
  awsQueryCompatible?: boolean;
13
16
  jsonCodec?: JsonCodec;
@@ -1,4 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
+ import { TypeRegistry } from "@smithy/core/schema";
2
3
  import {
3
4
  EndpointBearer,
4
5
  HandlerExecutionContext,
@@ -20,11 +21,13 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
20
21
  private readonly awsQueryCompatible;
21
22
  protected constructor({
22
23
  defaultNamespace,
24
+ errorTypeRegistries,
23
25
  serviceTarget,
24
26
  awsQueryCompatible,
25
27
  jsonCodec,
26
28
  }: {
27
29
  defaultNamespace: string;
30
+ errorTypeRegistries?: TypeRegistry[];
28
31
  serviceTarget: string;
29
32
  awsQueryCompatible?: boolean;
30
33
  jsonCodec?: JsonCodec;
@@ -1,4 +1,5 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
+ import { TypeRegistry } from "@smithy/core/schema";
2
3
  import {
3
4
  EndpointBearer,
4
5
  HandlerExecutionContext,
@@ -17,7 +18,13 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
17
18
  protected deserializer: ShapeDeserializer<string | Uint8Array>;
18
19
  private readonly codec;
19
20
  private readonly mixin;
20
- constructor({ defaultNamespace }: { defaultNamespace: string });
21
+ constructor({
22
+ defaultNamespace,
23
+ errorTypeRegistries,
24
+ }: {
25
+ defaultNamespace: string;
26
+ errorTypeRegistries?: TypeRegistry[];
27
+ });
21
28
  getShapeId(): string;
22
29
  getPayloadCodec(): JsonCodec;
23
30
  setSerdeContext(serdeContext: SerdeFunctions): void;
@@ -1,14 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import { AwsQueryProtocol } from "./AwsQueryProtocol";
2
3
  export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
3
4
  options: {
4
5
  defaultNamespace: string;
5
6
  xmlNamespace: string;
6
7
  version: string;
8
+ errorTypeRegistries?: TypeRegistry[];
7
9
  };
8
10
  constructor(options: {
9
11
  defaultNamespace: string;
10
12
  xmlNamespace: string;
11
13
  version: string;
14
+ errorTypeRegistries?: TypeRegistry[];
12
15
  });
13
16
  getShapeId(): string;
14
17
  protected useNestedResult(): boolean;
@@ -1,4 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
+ import { TypeRegistry } from "@smithy/core/schema";
2
3
  import {
3
4
  Codec,
4
5
  EndpointBearer,
@@ -17,6 +18,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
17
18
  defaultNamespace: string;
18
19
  xmlNamespace: string;
19
20
  version: string;
21
+ errorTypeRegistries?: TypeRegistry[];
20
22
  };
21
23
  protected serializer: QueryShapeSerializer;
22
24
  protected deserializer: XmlShapeDeserializer;
@@ -25,6 +27,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
25
27
  defaultNamespace: string;
26
28
  xmlNamespace: string;
27
29
  version: string;
30
+ errorTypeRegistries?: TypeRegistry[];
28
31
  });
29
32
  getShapeId(): string;
30
33
  setSerdeContext(serdeContext: SerdeFunctions): void;
@@ -1,4 +1,5 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
+ import { TypeRegistry } from "@smithy/core/schema";
2
3
  import {
3
4
  EndpointBearer,
4
5
  HandlerExecutionContext,
@@ -17,7 +18,11 @@ export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
17
18
  protected serializer: ShapeSerializer<string | Uint8Array>;
18
19
  protected deserializer: ShapeDeserializer<string | Uint8Array>;
19
20
  private readonly mixin;
20
- constructor(options: { defaultNamespace: string; xmlNamespace: string });
21
+ constructor(options: {
22
+ defaultNamespace: string;
23
+ xmlNamespace: string;
24
+ errorTypeRegistries?: TypeRegistry[];
25
+ });
21
26
  getPayloadCodec(): XmlCodec;
22
27
  getShapeId(): string;
23
28
  serializeRequest<Input extends object>(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.973.23",
3
+ "version": "3.973.25",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
@@ -82,7 +82,7 @@
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
84
  "@aws-sdk/types": "^3.973.6",
85
- "@aws-sdk/xml-builder": "^3.972.15",
85
+ "@aws-sdk/xml-builder": "^3.972.16",
86
86
  "@smithy/core": "^3.23.12",
87
87
  "@smithy/node-config-provider": "^4.3.12",
88
88
  "@smithy/property-provider": "^4.2.12",
@@ -3,9 +3,18 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-env/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-env)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-env.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-env)
5
5
 
6
- > An internal package
6
+ ### :warning: Internal API :warning:
7
7
 
8
- ## Usage
8
+ > This is an internal package.
9
+ > That means this is used as a dependency for other, public packages, but
10
+ > should not be taken directly as a dependency in your application's `package.json`.
9
11
 
10
- You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers)
12
+ > If you are updating the version of this package, for example to bring in a
13
+ > bug-fix, you should do so by updating your application lockfile with
14
+ > e.g. `npm up @scope/package` or equivalent command in another
15
+ > package manager, rather than taking a direct dependency.
16
+
17
+ ---
18
+
19
+ Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers)
11
20
  instead.