@cdklabs/cdk-ssm-documents 0.0.56 → 0.0.57

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 (274) 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/package.json +34 -34
  117. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +2 -2
  118. package/node_modules/@aws-sdk/client-cloudwatch/package.json +36 -36
  119. package/node_modules/@aws-sdk/client-ec2/package.json +36 -36
  120. package/node_modules/@aws-sdk/client-iam/package.json +35 -35
  121. package/node_modules/@aws-sdk/client-lambda/package.json +38 -38
  122. package/node_modules/@aws-sdk/client-s3/package.json +50 -50
  123. package/node_modules/@aws-sdk/client-sns/package.json +33 -33
  124. package/node_modules/@aws-sdk/client-sqs/package.json +36 -36
  125. package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
  126. package/node_modules/@aws-sdk/core/dist-cjs/index.js +52 -50
  127. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
  128. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
  129. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
  130. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
  131. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
  132. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
  133. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
  134. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
  135. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
  136. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  138. package/node_modules/@aws-sdk/core/package.json +11 -11
  139. package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
  140. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  141. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  142. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  143. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  144. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  145. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  146. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  147. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  148. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
  149. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  150. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
  151. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  152. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  153. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  154. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  155. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
  156. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
  157. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
  158. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  159. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
  160. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  161. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  162. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  163. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  164. package/node_modules/@aws-sdk/types/package.json +2 -2
  165. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  166. package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
  167. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  168. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  169. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  170. package/node_modules/@smithy/config-resolver/package.json +5 -5
  171. package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
  172. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
  173. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  174. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
  175. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
  176. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
  177. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
  178. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  179. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
  180. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
  181. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
  182. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
  183. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
  184. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
  185. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
  186. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
  187. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  188. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  189. package/node_modules/@smithy/core/package.json +7 -7
  190. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  191. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  192. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  193. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  194. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  195. package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
  196. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  197. package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
  198. package/node_modules/@smithy/hash-node/package.json +2 -2
  199. package/node_modules/@smithy/hash-stream-node/package.json +2 -2
  200. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  201. package/node_modules/@smithy/md5-js/package.json +2 -2
  202. package/node_modules/@smithy/middleware-compression/package.json +6 -6
  203. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  204. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  205. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  206. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  207. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  208. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  209. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +191 -96
  210. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
  211. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
  212. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
  213. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +44 -43
  214. package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
  215. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
  216. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
  217. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -6
  218. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  219. package/node_modules/@smithy/property-provider/package.json +2 -2
  220. package/node_modules/@smithy/protocol-http/package.json +2 -2
  221. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  222. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  223. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
  224. package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
  225. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
  226. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  227. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  228. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -5
  229. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
  230. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
  231. package/node_modules/@smithy/signature-v4/package.json +4 -4
  232. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
  233. package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
  234. package/node_modules/@smithy/smithy-client/package.json +7 -7
  235. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
  236. package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
  237. package/node_modules/@smithy/types/package.json +1 -1
  238. package/node_modules/@smithy/url-parser/package.json +3 -3
  239. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  240. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  241. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +79 -71
  242. package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +4 -3
  243. package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
  244. package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
  245. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
  246. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
  247. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
  248. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
  249. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
  250. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
  251. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
  252. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
  253. package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +2 -2
  254. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
  255. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
  256. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
  257. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
  258. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  259. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
  260. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
  261. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  262. package/node_modules/@smithy/util-middleware/package.json +2 -2
  263. package/node_modules/@smithy/util-retry/package.json +3 -3
  264. package/node_modules/@smithy/util-stream/package.json +4 -4
  265. package/node_modules/@smithy/util-waiter/package.json +3 -3
  266. package/node_modules/fast-xml-builder/package.json +1 -1
  267. package/node_modules/fast-xml-builder/src/fxb.js +6 -2
  268. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
  269. package/package.json +10 -10
  270. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/CHANGELOG.md +0 -0
  271. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/LICENSE +0 -0
  272. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/README.md +0 -0
  273. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/package.json +0 -0
  274. /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/strnum.js +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.1029.0",
4
+ "version": "3.1032.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -30,62 +30,62 @@
30
30
  "@aws-crypto/sha1-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-browser": "5.2.0",
32
32
  "@aws-crypto/sha256-js": "5.2.0",
33
- "@aws-sdk/core": "^3.973.27",
34
- "@aws-sdk/credential-provider-node": "^3.972.30",
35
- "@aws-sdk/middleware-bucket-endpoint": "^3.972.9",
36
- "@aws-sdk/middleware-expect-continue": "^3.972.9",
37
- "@aws-sdk/middleware-flexible-checksums": "^3.974.7",
38
- "@aws-sdk/middleware-host-header": "^3.972.9",
39
- "@aws-sdk/middleware-location-constraint": "^3.972.9",
40
- "@aws-sdk/middleware-logger": "^3.972.9",
41
- "@aws-sdk/middleware-recursion-detection": "^3.972.10",
42
- "@aws-sdk/middleware-sdk-s3": "^3.972.28",
43
- "@aws-sdk/middleware-ssec": "^3.972.9",
44
- "@aws-sdk/middleware-user-agent": "^3.972.29",
45
- "@aws-sdk/region-config-resolver": "^3.972.11",
46
- "@aws-sdk/signature-v4-multi-region": "^3.996.16",
47
- "@aws-sdk/types": "^3.973.7",
48
- "@aws-sdk/util-endpoints": "^3.996.6",
49
- "@aws-sdk/util-user-agent-browser": "^3.972.9",
50
- "@aws-sdk/util-user-agent-node": "^3.973.15",
51
- "@smithy/config-resolver": "^4.4.14",
52
- "@smithy/core": "^3.23.14",
53
- "@smithy/eventstream-serde-browser": "^4.2.13",
54
- "@smithy/eventstream-serde-config-resolver": "^4.3.13",
55
- "@smithy/eventstream-serde-node": "^4.2.13",
56
- "@smithy/fetch-http-handler": "^5.3.16",
57
- "@smithy/hash-blob-browser": "^4.2.14",
58
- "@smithy/hash-node": "^4.2.13",
59
- "@smithy/hash-stream-node": "^4.2.13",
60
- "@smithy/invalid-dependency": "^4.2.13",
61
- "@smithy/md5-js": "^4.2.13",
62
- "@smithy/middleware-content-length": "^4.2.13",
63
- "@smithy/middleware-endpoint": "^4.4.29",
64
- "@smithy/middleware-retry": "^4.5.0",
65
- "@smithy/middleware-serde": "^4.2.17",
66
- "@smithy/middleware-stack": "^4.2.13",
67
- "@smithy/node-config-provider": "^4.3.13",
68
- "@smithy/node-http-handler": "^4.5.2",
69
- "@smithy/protocol-http": "^5.3.13",
70
- "@smithy/smithy-client": "^4.12.9",
71
- "@smithy/types": "^4.14.0",
72
- "@smithy/url-parser": "^4.2.13",
33
+ "@aws-sdk/core": "^3.974.1",
34
+ "@aws-sdk/credential-provider-node": "^3.972.32",
35
+ "@aws-sdk/middleware-bucket-endpoint": "^3.972.10",
36
+ "@aws-sdk/middleware-expect-continue": "^3.972.10",
37
+ "@aws-sdk/middleware-flexible-checksums": "^3.974.9",
38
+ "@aws-sdk/middleware-host-header": "^3.972.10",
39
+ "@aws-sdk/middleware-location-constraint": "^3.972.10",
40
+ "@aws-sdk/middleware-logger": "^3.972.10",
41
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
42
+ "@aws-sdk/middleware-sdk-s3": "^3.972.30",
43
+ "@aws-sdk/middleware-ssec": "^3.972.10",
44
+ "@aws-sdk/middleware-user-agent": "^3.972.31",
45
+ "@aws-sdk/region-config-resolver": "^3.972.12",
46
+ "@aws-sdk/signature-v4-multi-region": "^3.996.18",
47
+ "@aws-sdk/types": "^3.973.8",
48
+ "@aws-sdk/util-endpoints": "^3.996.7",
49
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
50
+ "@aws-sdk/util-user-agent-node": "^3.973.17",
51
+ "@smithy/config-resolver": "^4.4.16",
52
+ "@smithy/core": "^3.23.15",
53
+ "@smithy/eventstream-serde-browser": "^4.2.14",
54
+ "@smithy/eventstream-serde-config-resolver": "^4.3.14",
55
+ "@smithy/eventstream-serde-node": "^4.2.14",
56
+ "@smithy/fetch-http-handler": "^5.3.17",
57
+ "@smithy/hash-blob-browser": "^4.2.15",
58
+ "@smithy/hash-node": "^4.2.14",
59
+ "@smithy/hash-stream-node": "^4.2.14",
60
+ "@smithy/invalid-dependency": "^4.2.14",
61
+ "@smithy/md5-js": "^4.2.14",
62
+ "@smithy/middleware-content-length": "^4.2.14",
63
+ "@smithy/middleware-endpoint": "^4.4.30",
64
+ "@smithy/middleware-retry": "^4.5.3",
65
+ "@smithy/middleware-serde": "^4.2.18",
66
+ "@smithy/middleware-stack": "^4.2.14",
67
+ "@smithy/node-config-provider": "^4.3.14",
68
+ "@smithy/node-http-handler": "^4.5.3",
69
+ "@smithy/protocol-http": "^5.3.14",
70
+ "@smithy/smithy-client": "^4.12.11",
71
+ "@smithy/types": "^4.14.1",
72
+ "@smithy/url-parser": "^4.2.14",
73
73
  "@smithy/util-base64": "^4.3.2",
74
74
  "@smithy/util-body-length-browser": "^4.2.2",
75
75
  "@smithy/util-body-length-node": "^4.2.3",
76
- "@smithy/util-defaults-mode-browser": "^4.3.45",
77
- "@smithy/util-defaults-mode-node": "^4.2.49",
78
- "@smithy/util-endpoints": "^3.3.4",
79
- "@smithy/util-middleware": "^4.2.13",
80
- "@smithy/util-retry": "^4.3.0",
81
- "@smithy/util-stream": "^4.5.22",
76
+ "@smithy/util-defaults-mode-browser": "^4.3.47",
77
+ "@smithy/util-defaults-mode-node": "^4.2.52",
78
+ "@smithy/util-endpoints": "^3.4.1",
79
+ "@smithy/util-middleware": "^4.2.14",
80
+ "@smithy/util-retry": "^4.3.2",
81
+ "@smithy/util-stream": "^4.5.23",
82
82
  "@smithy/util-utf8": "^4.2.2",
83
- "@smithy/util-waiter": "^4.2.15",
83
+ "@smithy/util-waiter": "^4.2.16",
84
84
  "tslib": "^2.6.2"
85
85
  },
86
86
  "devDependencies": {
87
- "@aws-sdk/signature-v4-crt": "3.1029.0",
88
- "@smithy/snapshot-testing": "^2.0.5",
87
+ "@aws-sdk/signature-v4-crt": "3.1032.0",
88
+ "@smithy/snapshot-testing": "^2.0.6",
89
89
  "@tsconfig/node20": "20.1.8",
90
90
  "@types/node": "^20.14.8",
91
91
  "concurrently": "7.0.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sns",
3
3
  "description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
4
- "version": "3.1029.0",
4
+ "version": "3.1032.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sns",
@@ -23,41 +23,41 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.27",
27
- "@aws-sdk/credential-provider-node": "^3.972.30",
28
- "@aws-sdk/middleware-host-header": "^3.972.9",
29
- "@aws-sdk/middleware-logger": "^3.972.9",
30
- "@aws-sdk/middleware-recursion-detection": "^3.972.10",
31
- "@aws-sdk/middleware-user-agent": "^3.972.29",
32
- "@aws-sdk/region-config-resolver": "^3.972.11",
33
- "@aws-sdk/types": "^3.973.7",
34
- "@aws-sdk/util-endpoints": "^3.996.6",
35
- "@aws-sdk/util-user-agent-browser": "^3.972.9",
36
- "@aws-sdk/util-user-agent-node": "^3.973.15",
37
- "@smithy/config-resolver": "^4.4.14",
38
- "@smithy/core": "^3.23.14",
39
- "@smithy/fetch-http-handler": "^5.3.16",
40
- "@smithy/hash-node": "^4.2.13",
41
- "@smithy/invalid-dependency": "^4.2.13",
42
- "@smithy/middleware-content-length": "^4.2.13",
43
- "@smithy/middleware-endpoint": "^4.4.29",
44
- "@smithy/middleware-retry": "^4.5.0",
45
- "@smithy/middleware-serde": "^4.2.17",
46
- "@smithy/middleware-stack": "^4.2.13",
47
- "@smithy/node-config-provider": "^4.3.13",
48
- "@smithy/node-http-handler": "^4.5.2",
49
- "@smithy/protocol-http": "^5.3.13",
50
- "@smithy/smithy-client": "^4.12.9",
51
- "@smithy/types": "^4.14.0",
52
- "@smithy/url-parser": "^4.2.13",
26
+ "@aws-sdk/core": "^3.974.1",
27
+ "@aws-sdk/credential-provider-node": "^3.972.32",
28
+ "@aws-sdk/middleware-host-header": "^3.972.10",
29
+ "@aws-sdk/middleware-logger": "^3.972.10",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.31",
32
+ "@aws-sdk/region-config-resolver": "^3.972.12",
33
+ "@aws-sdk/types": "^3.973.8",
34
+ "@aws-sdk/util-endpoints": "^3.996.7",
35
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.17",
37
+ "@smithy/config-resolver": "^4.4.16",
38
+ "@smithy/core": "^3.23.15",
39
+ "@smithy/fetch-http-handler": "^5.3.17",
40
+ "@smithy/hash-node": "^4.2.14",
41
+ "@smithy/invalid-dependency": "^4.2.14",
42
+ "@smithy/middleware-content-length": "^4.2.14",
43
+ "@smithy/middleware-endpoint": "^4.4.30",
44
+ "@smithy/middleware-retry": "^4.5.3",
45
+ "@smithy/middleware-serde": "^4.2.18",
46
+ "@smithy/middleware-stack": "^4.2.14",
47
+ "@smithy/node-config-provider": "^4.3.14",
48
+ "@smithy/node-http-handler": "^4.5.3",
49
+ "@smithy/protocol-http": "^5.3.14",
50
+ "@smithy/smithy-client": "^4.12.11",
51
+ "@smithy/types": "^4.14.1",
52
+ "@smithy/url-parser": "^4.2.14",
53
53
  "@smithy/util-base64": "^4.3.2",
54
54
  "@smithy/util-body-length-browser": "^4.2.2",
55
55
  "@smithy/util-body-length-node": "^4.2.3",
56
- "@smithy/util-defaults-mode-browser": "^4.3.45",
57
- "@smithy/util-defaults-mode-node": "^4.2.49",
58
- "@smithy/util-endpoints": "^3.3.4",
59
- "@smithy/util-middleware": "^4.2.13",
60
- "@smithy/util-retry": "^4.3.0",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.47",
57
+ "@smithy/util-defaults-mode-node": "^4.2.52",
58
+ "@smithy/util-endpoints": "^3.4.1",
59
+ "@smithy/util-middleware": "^4.2.14",
60
+ "@smithy/util-retry": "^4.3.2",
61
61
  "@smithy/util-utf8": "^4.2.2",
62
62
  "tslib": "^2.6.2"
63
63
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
3
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
4
- "version": "3.1029.0",
4
+ "version": "3.1032.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sqs",
@@ -29,48 +29,48 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "^3.973.27",
33
- "@aws-sdk/credential-provider-node": "^3.972.30",
34
- "@aws-sdk/middleware-host-header": "^3.972.9",
35
- "@aws-sdk/middleware-logger": "^3.972.9",
36
- "@aws-sdk/middleware-recursion-detection": "^3.972.10",
37
- "@aws-sdk/middleware-sdk-sqs": "^3.972.19",
38
- "@aws-sdk/middleware-user-agent": "^3.972.29",
39
- "@aws-sdk/region-config-resolver": "^3.972.11",
40
- "@aws-sdk/types": "^3.973.7",
41
- "@aws-sdk/util-endpoints": "^3.996.6",
42
- "@aws-sdk/util-user-agent-browser": "^3.972.9",
43
- "@aws-sdk/util-user-agent-node": "^3.973.15",
44
- "@smithy/config-resolver": "^4.4.14",
45
- "@smithy/core": "^3.23.14",
46
- "@smithy/fetch-http-handler": "^5.3.16",
47
- "@smithy/hash-node": "^4.2.13",
48
- "@smithy/invalid-dependency": "^4.2.13",
49
- "@smithy/md5-js": "^4.2.13",
50
- "@smithy/middleware-content-length": "^4.2.13",
51
- "@smithy/middleware-endpoint": "^4.4.29",
52
- "@smithy/middleware-retry": "^4.5.0",
53
- "@smithy/middleware-serde": "^4.2.17",
54
- "@smithy/middleware-stack": "^4.2.13",
55
- "@smithy/node-config-provider": "^4.3.13",
56
- "@smithy/node-http-handler": "^4.5.2",
57
- "@smithy/protocol-http": "^5.3.13",
58
- "@smithy/smithy-client": "^4.12.9",
59
- "@smithy/types": "^4.14.0",
60
- "@smithy/url-parser": "^4.2.13",
32
+ "@aws-sdk/core": "^3.974.1",
33
+ "@aws-sdk/credential-provider-node": "^3.972.32",
34
+ "@aws-sdk/middleware-host-header": "^3.972.10",
35
+ "@aws-sdk/middleware-logger": "^3.972.10",
36
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
37
+ "@aws-sdk/middleware-sdk-sqs": "^3.972.20",
38
+ "@aws-sdk/middleware-user-agent": "^3.972.31",
39
+ "@aws-sdk/region-config-resolver": "^3.972.12",
40
+ "@aws-sdk/types": "^3.973.8",
41
+ "@aws-sdk/util-endpoints": "^3.996.7",
42
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
43
+ "@aws-sdk/util-user-agent-node": "^3.973.17",
44
+ "@smithy/config-resolver": "^4.4.16",
45
+ "@smithy/core": "^3.23.15",
46
+ "@smithy/fetch-http-handler": "^5.3.17",
47
+ "@smithy/hash-node": "^4.2.14",
48
+ "@smithy/invalid-dependency": "^4.2.14",
49
+ "@smithy/md5-js": "^4.2.14",
50
+ "@smithy/middleware-content-length": "^4.2.14",
51
+ "@smithy/middleware-endpoint": "^4.4.30",
52
+ "@smithy/middleware-retry": "^4.5.3",
53
+ "@smithy/middleware-serde": "^4.2.18",
54
+ "@smithy/middleware-stack": "^4.2.14",
55
+ "@smithy/node-config-provider": "^4.3.14",
56
+ "@smithy/node-http-handler": "^4.5.3",
57
+ "@smithy/protocol-http": "^5.3.14",
58
+ "@smithy/smithy-client": "^4.12.11",
59
+ "@smithy/types": "^4.14.1",
60
+ "@smithy/url-parser": "^4.2.14",
61
61
  "@smithy/util-base64": "^4.3.2",
62
62
  "@smithy/util-body-length-browser": "^4.2.2",
63
63
  "@smithy/util-body-length-node": "^4.2.3",
64
- "@smithy/util-defaults-mode-browser": "^4.3.45",
65
- "@smithy/util-defaults-mode-node": "^4.2.49",
66
- "@smithy/util-endpoints": "^3.3.4",
67
- "@smithy/util-middleware": "^4.2.13",
68
- "@smithy/util-retry": "^4.3.0",
64
+ "@smithy/util-defaults-mode-browser": "^4.3.47",
65
+ "@smithy/util-defaults-mode-node": "^4.2.52",
66
+ "@smithy/util-endpoints": "^3.4.1",
67
+ "@smithy/util-middleware": "^4.2.14",
68
+ "@smithy/util-retry": "^4.3.2",
69
69
  "@smithy/util-utf8": "^4.2.2",
70
70
  "tslib": "^2.6.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@smithy/snapshot-testing": "^2.0.5",
73
+ "@smithy/snapshot-testing": "^2.0.6",
74
74
  "@tsconfig/node20": "20.1.8",
75
75
  "@types/node": "^20.14.8",
76
76
  "concurrently": "7.0.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
3
  "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
4
- "version": "3.1029.0",
4
+ "version": "3.1032.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ssm",
@@ -23,43 +23,43 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.27",
27
- "@aws-sdk/credential-provider-node": "^3.972.30",
28
- "@aws-sdk/middleware-host-header": "^3.972.9",
29
- "@aws-sdk/middleware-logger": "^3.972.9",
30
- "@aws-sdk/middleware-recursion-detection": "^3.972.10",
31
- "@aws-sdk/middleware-user-agent": "^3.972.29",
32
- "@aws-sdk/region-config-resolver": "^3.972.11",
33
- "@aws-sdk/types": "^3.973.7",
34
- "@aws-sdk/util-endpoints": "^3.996.6",
35
- "@aws-sdk/util-user-agent-browser": "^3.972.9",
36
- "@aws-sdk/util-user-agent-node": "^3.973.15",
37
- "@smithy/config-resolver": "^4.4.14",
38
- "@smithy/core": "^3.23.14",
39
- "@smithy/fetch-http-handler": "^5.3.16",
40
- "@smithy/hash-node": "^4.2.13",
41
- "@smithy/invalid-dependency": "^4.2.13",
42
- "@smithy/middleware-content-length": "^4.2.13",
43
- "@smithy/middleware-endpoint": "^4.4.29",
44
- "@smithy/middleware-retry": "^4.5.0",
45
- "@smithy/middleware-serde": "^4.2.17",
46
- "@smithy/middleware-stack": "^4.2.13",
47
- "@smithy/node-config-provider": "^4.3.13",
48
- "@smithy/node-http-handler": "^4.5.2",
49
- "@smithy/protocol-http": "^5.3.13",
50
- "@smithy/smithy-client": "^4.12.9",
51
- "@smithy/types": "^4.14.0",
52
- "@smithy/url-parser": "^4.2.13",
26
+ "@aws-sdk/core": "^3.974.1",
27
+ "@aws-sdk/credential-provider-node": "^3.972.32",
28
+ "@aws-sdk/middleware-host-header": "^3.972.10",
29
+ "@aws-sdk/middleware-logger": "^3.972.10",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.31",
32
+ "@aws-sdk/region-config-resolver": "^3.972.12",
33
+ "@aws-sdk/types": "^3.973.8",
34
+ "@aws-sdk/util-endpoints": "^3.996.7",
35
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.17",
37
+ "@smithy/config-resolver": "^4.4.16",
38
+ "@smithy/core": "^3.23.15",
39
+ "@smithy/fetch-http-handler": "^5.3.17",
40
+ "@smithy/hash-node": "^4.2.14",
41
+ "@smithy/invalid-dependency": "^4.2.14",
42
+ "@smithy/middleware-content-length": "^4.2.14",
43
+ "@smithy/middleware-endpoint": "^4.4.30",
44
+ "@smithy/middleware-retry": "^4.5.3",
45
+ "@smithy/middleware-serde": "^4.2.18",
46
+ "@smithy/middleware-stack": "^4.2.14",
47
+ "@smithy/node-config-provider": "^4.3.14",
48
+ "@smithy/node-http-handler": "^4.5.3",
49
+ "@smithy/protocol-http": "^5.3.14",
50
+ "@smithy/smithy-client": "^4.12.11",
51
+ "@smithy/types": "^4.14.1",
52
+ "@smithy/url-parser": "^4.2.14",
53
53
  "@smithy/util-base64": "^4.3.2",
54
54
  "@smithy/util-body-length-browser": "^4.2.2",
55
55
  "@smithy/util-body-length-node": "^4.2.3",
56
- "@smithy/util-defaults-mode-browser": "^4.3.45",
57
- "@smithy/util-defaults-mode-node": "^4.2.49",
58
- "@smithy/util-endpoints": "^3.3.4",
59
- "@smithy/util-middleware": "^4.2.13",
60
- "@smithy/util-retry": "^4.3.0",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.47",
57
+ "@smithy/util-defaults-mode-node": "^4.2.52",
58
+ "@smithy/util-endpoints": "^3.4.1",
59
+ "@smithy/util-middleware": "^4.2.14",
60
+ "@smithy/util-retry": "^4.3.2",
61
61
  "@smithy/util-utf8": "^4.2.2",
62
- "@smithy/util-waiter": "^4.2.15",
62
+ "@smithy/util-waiter": "^4.2.16",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {
@@ -450,12 +450,11 @@ class ProtocolLib {
450
450
  if (msg) {
451
451
  error.message = msg;
452
452
  }
453
- error.Error = {
454
- ...error.Error,
455
- Type: error.Error?.Type,
456
- Code: error.Error?.Code,
457
- Message: error.Error?.message ?? error.Error?.Message ?? msg,
458
- };
453
+ const errorObj = error.Error ?? {};
454
+ errorObj.Type = error.Error?.Type;
455
+ errorObj.Code = error.Error?.Code;
456
+ errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
457
+ error.Error = errorObj;
459
458
  const reqId = error.$metadata.requestId;
460
459
  if (reqId) {
461
460
  error.RequestId = reqId;
@@ -468,14 +467,16 @@ class ProtocolLib {
468
467
  const queryErrorHeader = response.headers?.["x-amzn-query-error"];
469
468
  if (output !== undefined && queryErrorHeader != null) {
470
469
  const [Code, Type] = queryErrorHeader.split(";");
471
- const entries = Object.entries(output);
470
+ const keys = Object.keys(output);
472
471
  const Error = {
473
472
  Code,
474
473
  Type,
475
474
  };
476
- Object.assign(output, Error);
477
- for (const [k, v] of entries) {
478
- Error[k === "message" ? "Message" : k] = v;
475
+ output.Code = Code;
476
+ output.Type = Type;
477
+ for (let i = 0; i < keys.length; i++) {
478
+ const k = keys[i];
479
+ Error[k === "message" ? "Message" : k] = output[k];
479
480
  }
480
481
  delete Error.__type;
481
482
  output.Error = Error;
@@ -614,7 +615,10 @@ class UnionSerde {
614
615
  constructor(from, to) {
615
616
  this.from = from;
616
617
  this.to = to;
617
- this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
618
+ const keys = Object.keys(this.from);
619
+ const set = new Set(keys);
620
+ set.delete("__type");
621
+ this.keys = set;
618
622
  }
619
623
  mark(key) {
620
624
  this.keys.delete(key);
@@ -672,24 +676,24 @@ const parseJsonErrorBody = async (errorBody, context) => {
672
676
  value.message = value.message ?? value.Message;
673
677
  return value;
674
678
  };
679
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
680
+ const sanitizeErrorCode = (rawValue) => {
681
+ let cleanValue = rawValue;
682
+ if (typeof cleanValue === "number") {
683
+ cleanValue = cleanValue.toString();
684
+ }
685
+ if (cleanValue.indexOf(",") >= 0) {
686
+ cleanValue = cleanValue.split(",")[0];
687
+ }
688
+ if (cleanValue.indexOf(":") >= 0) {
689
+ cleanValue = cleanValue.split(":")[0];
690
+ }
691
+ if (cleanValue.indexOf("#") >= 0) {
692
+ cleanValue = cleanValue.split("#")[1];
693
+ }
694
+ return cleanValue;
695
+ };
675
696
  const loadRestJsonErrorCode = (output, data) => {
676
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
677
- const sanitizeErrorCode = (rawValue) => {
678
- let cleanValue = rawValue;
679
- if (typeof cleanValue === "number") {
680
- cleanValue = cleanValue.toString();
681
- }
682
- if (cleanValue.indexOf(",") >= 0) {
683
- cleanValue = cleanValue.split(",")[0];
684
- }
685
- if (cleanValue.indexOf(":") >= 0) {
686
- cleanValue = cleanValue.split(":")[0];
687
- }
688
- if (cleanValue.indexOf("#") >= 0) {
689
- cleanValue = cleanValue.split("#")[1];
690
- }
691
- return cleanValue;
692
- };
693
697
  const headerKey = findKey(output.headers, "x-amzn-errortype");
694
698
  if (headerKey !== undefined) {
695
699
  return sanitizeErrorCode(output.headers[headerKey]);
@@ -906,12 +910,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
906
910
  this.rootSchema = schema.NormalizedSchema.of(schema$1);
907
911
  this.buffer = this._write(this.rootSchema, value);
908
912
  }
909
- writeDiscriminatedDocument(schema$1, value) {
910
- this.write(schema$1, value);
911
- if (typeof this.buffer === "object") {
912
- this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
913
- }
914
- }
915
913
  flush() {
916
914
  const { rootSchema, useReplacer } = this;
917
915
  this.rootSchema = undefined;
@@ -925,6 +923,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
925
923
  }
926
924
  return this.buffer;
927
925
  }
926
+ writeDiscriminatedDocument(schema$1, value) {
927
+ this.write(schema$1, value);
928
+ if (typeof this.buffer === "object") {
929
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
930
+ }
931
+ }
928
932
  _write(schema$1, value, container) {
929
933
  const isObject = value !== null && typeof value === "object";
930
934
  const ns = schema.NormalizedSchema.of(schema$1);
@@ -937,6 +941,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
937
941
  if (jsonName) {
938
942
  nameMap = {};
939
943
  }
944
+ let outCount = 0;
940
945
  for (const [memberName, memberSchema] of ns.structIterator()) {
941
946
  const serializableValue = this._write(memberSchema, record[memberName], ns);
942
947
  if (serializableValue !== undefined) {
@@ -946,9 +951,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
946
951
  nameMap[memberName] = targetKey;
947
952
  }
948
953
  out[targetKey] = serializableValue;
954
+ outCount++;
949
955
  }
950
956
  }
951
- if (ns.isUnionSchema() && Object.keys(out).length === 0) {
957
+ if (ns.isUnionSchema() && outCount === 0) {
952
958
  const { $unknown } = record;
953
959
  if (Array.isArray($unknown)) {
954
960
  const [k, v] = $unknown;
@@ -1114,10 +1120,8 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
1114
1120
  if (!request.path.endsWith("/")) {
1115
1121
  request.path += "/";
1116
1122
  }
1117
- Object.assign(request.headers, {
1118
- "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
1119
- "x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
1120
- });
1123
+ request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
1124
+ request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
1121
1125
  if (this.awsQueryCompatible) {
1122
1126
  request.headers["x-amzn-query-mode"] = "true";
1123
1127
  }
@@ -1141,9 +1145,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
1141
1145
  const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1142
1146
  const exception = new ErrorCtor(message);
1143
1147
  const output = {};
1148
+ const errorDeserializer = this.codec.createDeserializer();
1144
1149
  for (const [name, member] of ns.structIterator()) {
1145
1150
  if (dataObject[name] != null) {
1146
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[name]);
1151
+ output[name] = errorDeserializer.readObject(member, dataObject[name]);
1147
1152
  }
1148
1153
  }
1149
1154
  if (this.awsQueryCompatible) {
@@ -1264,9 +1269,10 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
1264
1269
  const exception = new ErrorCtor(message);
1265
1270
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1266
1271
  const output = {};
1272
+ const errorDeserializer = this.codec.createDeserializer();
1267
1273
  for (const [name, member] of ns.structIterator()) {
1268
1274
  const target = member.getMergedTraits().jsonName ?? name;
1269
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
1275
+ output[name] = errorDeserializer.readObject(member, dataObject[target]);
1270
1276
  }
1271
1277
  throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1272
1278
  $fault: ns.getMergedTraits().error,
@@ -1657,9 +1663,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
1657
1663
  if (!request.path.endsWith("/")) {
1658
1664
  request.path += "/";
1659
1665
  }
1660
- Object.assign(request.headers, {
1661
- "content-type": `application/x-www-form-urlencoded`,
1662
- });
1666
+ request.headers["content-type"] = "application/x-www-form-urlencoded";
1663
1667
  if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1664
1668
  request.body = "";
1665
1669
  }
@@ -1692,11 +1696,8 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
1692
1696
  if (bytes.byteLength > 0) {
1693
1697
  Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1694
1698
  }
1695
- const output = {
1696
- $metadata: this.deserializeMetadata(response),
1697
- ...dataObject,
1698
- };
1699
- return output;
1699
+ dataObject.$metadata = this.deserializeMetadata(response);
1700
+ return dataObject;
1700
1701
  }
1701
1702
  useNestedResult() {
1702
1703
  return true;
@@ -2196,10 +2197,11 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
2196
2197
  const exception = new ErrorCtor(message);
2197
2198
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
2198
2199
  const output = {};
2200
+ const errorDeserializer = this.codec.createDeserializer();
2199
2201
  for (const [name, member] of ns.structIterator()) {
2200
2202
  const target = member.getMergedTraits().xmlName ?? name;
2201
2203
  const value = dataObject.Error?.[target] ?? dataObject[target];
2202
- output[name] = this.codec.createDeserializer().readSchema(member, value);
2204
+ output[name] = errorDeserializer.readSchema(member, value);
2203
2205
  }
2204
2206
  throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
2205
2207
  $fault: ns.getMergedTraits().error,