@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
@@ -31,10 +31,10 @@ export const evaluateTreeRule = (treeRule, options) => {
31
31
  if (!result) {
32
32
  return;
33
33
  }
34
- return group.evaluateRules(rules, {
35
- ...options,
36
- referenceRecord: { ...options.referenceRecord, ...referenceRecord },
37
- });
34
+ const treeRuleOptions = referenceRecord
35
+ ? { ...options, referenceRecord: { ...options.referenceRecord, ...referenceRecord } }
36
+ : options;
37
+ return group.evaluateRules(rules, treeRuleOptions);
38
38
  };
39
39
  export const group = {
40
40
  evaluateRules,
@@ -1,12 +1,12 @@
1
1
  import { EndpointError } from "../types";
2
2
  import { evaluateExpression } from "./evaluateExpression";
3
- export const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
4
- ...acc,
5
- [headerKey]: headerVal.map((headerValEntry) => {
3
+ export const getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => {
4
+ acc[headerKey] = headerVal.map((headerValEntry) => {
6
5
  const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
7
6
  if (typeof processedExpr !== "string") {
8
7
  throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
9
8
  }
10
9
  return processedExpr;
11
- }),
12
- }), {});
10
+ });
11
+ return acc;
12
+ }, {});
@@ -1,9 +1,9 @@
1
1
  import { EndpointError } from "../types";
2
2
  import { evaluateTemplate } from "./evaluateTemplate";
3
- export const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
4
- ...acc,
5
- [propertyKey]: group.getEndpointProperty(propertyVal, options),
6
- }), {});
3
+ export const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => {
4
+ acc[propertyKey] = group.getEndpointProperty(propertyVal, options);
5
+ return acc;
6
+ }, {});
7
7
  export const getEndpointProperty = (property, options) => {
8
8
  if (Array.isArray(property)) {
9
9
  return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
@@ -1,5 +1,5 @@
1
1
  import type { EndpointObjectHeaders, ParameterObject } from "@smithy/types";
2
- import type { FunctionArgv } from "../types/shared";
2
+ import type { Expression, FunctionArgv } from "../types/shared";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -7,7 +7,7 @@ type BddCondition = [string, FunctionArgv] | [string, FunctionArgv, string];
7
7
  /**
8
8
  * @internal
9
9
  */
10
- type BddResult = [-1] | [-1, string] | [string, Record<string, ParameterObject>, EndpointObjectHeaders];
10
+ type BddResult = [-1] | [-1, Expression] | [string, Record<string, ParameterObject>, EndpointObjectHeaders] | [string, Record<string, ParameterObject>];
11
11
  /**
12
12
  * @internal
13
13
  */
@@ -1,4 +1,4 @@
1
- import type { EndpointARN, EndpointPartition, Logger } from "@smithy/types";
1
+ import type { EndpointARN, EndpointPartition, EndpointURL, Logger } from "@smithy/types";
2
2
  export type ReferenceObject = {
3
3
  ref: string;
4
4
  };
@@ -7,9 +7,9 @@ export type FunctionObject = {
7
7
  argv: FunctionArgv;
8
8
  };
9
9
  export type FunctionArgv = Array<Expression | boolean | number>;
10
- export type FunctionReturn = string | boolean | number | EndpointARN | EndpointPartition | {
10
+ export type FunctionReturn = string | boolean | number | EndpointARN | EndpointPartition | EndpointURL | {
11
11
  [key: string]: FunctionReturn;
12
- } | null;
12
+ } | Array<FunctionReturn> | null;
13
13
  export type ConditionObject = FunctionObject & {
14
14
  assign?: string;
15
15
  };
@@ -1,15 +1,2 @@
1
- import { coalesce, ite, split } from "../lib";
2
- export declare const endpointFunctions: {
3
- booleanEquals: (value1: boolean, value2: boolean) => boolean;
4
- coalesce: typeof coalesce;
5
- getAttr: (value: import("../lib").GetAttrValue, path: string) => import("../lib").GetAttrValue;
6
- isSet: (value: unknown) => value is {};
7
- isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean;
8
- ite: typeof ite;
9
- not: (value: boolean) => boolean;
10
- parseURL: (value: string | URL | import("@smithy/types").Endpoint) => import("@smithy/types").EndpointURL | null;
11
- split: typeof split;
12
- stringEquals: (value1: string, value2: string) => boolean;
13
- substring: (input: string, start: number, stop: number, reverse: boolean) => string | null;
14
- uriEncode: (value: string) => string;
15
- };
1
+ import type { EndpointFunctions } from "../types";
2
+ export declare const endpointFunctions: EndpointFunctions;
@@ -1,8 +1,11 @@
1
1
  import type { ConditionObject, EvaluateOptions } from "../types";
2
- export declare const evaluateCondition: ({ assign, ...fnArgs }: ConditionObject, options: EvaluateOptions) => {
3
- toAssign?: {
2
+ export declare const evaluateCondition: (condition: ConditionObject, options: EvaluateOptions) => {
3
+ result: boolean;
4
+ toAssign: {
4
5
  name: string;
5
6
  value: import("../types").FunctionReturn;
6
- } | undefined;
7
+ };
8
+ } | {
7
9
  result: boolean;
10
+ toAssign?: undefined;
8
11
  };
@@ -1,8 +1,8 @@
1
1
  import type { ConditionObject, EvaluateOptions, FunctionReturn } from "../types";
2
2
  export declare const evaluateConditions: (conditions: ConditionObject[] | undefined, options: EvaluateOptions) => {
3
- result: false;
4
- referenceRecord?: undefined;
5
- } | {
6
3
  result: boolean;
7
4
  referenceRecord: Record<string, FunctionReturn>;
5
+ } | {
6
+ result: boolean;
7
+ referenceRecord?: undefined;
8
8
  };
@@ -1,2 +1,2 @@
1
1
  import type { EndpointObjectHeaders, EvaluateOptions } from "../types";
2
- export declare const getEndpointHeaders: (headers: EndpointObjectHeaders, options: EvaluateOptions) => {};
2
+ export declare const getEndpointHeaders: (headers: EndpointObjectHeaders, options: EvaluateOptions) => Record<string, string[]>;
@@ -1,8 +1,8 @@
1
1
  import type { EndpointObjectProperty } from "@smithy/types";
2
2
  import type { EndpointObjectProperties, EvaluateOptions } from "../types";
3
- export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => {};
3
+ export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
4
4
  export declare const getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
5
5
  export declare const group: {
6
6
  getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
7
- getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => {};
7
+ getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import type { EvaluateOptions, ReferenceObject } from "../types";
2
- export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointARN | {
2
+ export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointARN | import("@smithy/types").EndpointURL | {
3
3
  [key: string]: import("../types").FunctionReturn;
4
- };
4
+ } | import("../types").FunctionReturn[];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,8 +28,8 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.3.13",
32
- "@smithy/types": "^4.14.0",
31
+ "@smithy/node-config-provider": "^4.3.14",
32
+ "@smithy/types": "^4.14.1",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.2.13",
3
+ "version": "4.2.14",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/types": "^4.14.0",
30
+ "@smithy/types": "^4.14.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -30,8 +30,8 @@
30
30
  "license": "Apache-2.0",
31
31
  "sideEffects": false,
32
32
  "dependencies": {
33
- "@smithy/service-error-classification": "^4.2.13",
34
- "@smithy/types": "^4.14.0",
33
+ "@smithy/service-error-classification": "^4.3.0",
34
+ "@smithy/types": "^4.14.1",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.5.22",
3
+ "version": "4.5.24",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
6
  "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline util-stream",
@@ -28,9 +28,9 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/fetch-http-handler": "^5.3.16",
32
- "@smithy/node-http-handler": "^4.5.2",
33
- "@smithy/types": "^4.14.0",
31
+ "@smithy/fetch-http-handler": "^5.3.17",
32
+ "@smithy/node-http-handler": "^4.6.0",
33
+ "@smithy/types": "^4.14.1",
34
34
  "@smithy/util-base64": "^4.3.2",
35
35
  "@smithy/util-buffer-from": "^4.2.2",
36
36
  "@smithy/util-hex-encoding": "^4.2.2",
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "4.2.15",
3
+ "version": "4.2.16",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/types": "^4.14.0",
6
+ "@smithy/types": "^4.14.1",
7
7
  "tslib": "^2.6.2"
8
8
  },
9
9
  "scripts": {
@@ -47,7 +47,7 @@
47
47
  "directory": "packages/util-waiter"
48
48
  },
49
49
  "devDependencies": {
50
- "@smithy/abort-controller": "^4.2.13",
50
+ "@smithy/abort-controller": "^4.2.14",
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
53
53
  "premove": "4.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-xml-builder",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Build XML from JSON without C/C++ based libraries",
5
5
  "main": "./lib/fxb.cjs",
6
6
  "type": "module",
@@ -486,9 +486,13 @@ function buildEmptyObjNode(val, key, attrStr, level) {
486
486
 
487
487
  Builder.prototype.buildTextValNode = function (val, key, attrStr, level, matcher) {
488
488
  if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {
489
- return this.indentate(level) + `<![CDATA[${val}]]>` + this.newLine;
489
+ const safeVal = String(val).replace(/\]\]>/g, ']]]]><![CDATA[>');
490
+ return this.indentate(level) + `<![CDATA[${safeVal}]]>` + this.newLine;
490
491
  } else if (this.options.commentPropName !== false && key === this.options.commentPropName) {
491
- return this.indentate(level) + `<!--${val}-->` + this.newLine;
492
+ const safeVal = String(val)
493
+ .replace(/--/g, '- -') // -- is illegal anywhere in comment content
494
+ .replace(/-$/, '- '); // trailing - would form -- with the closing -->
495
+ return this.indentate(level) + `<!--${safeVal}-->` + this.newLine;
492
496
  } else if (key[0] === "?") {//PI tag
493
497
  return this.indentate(level) + '<' + key + attrStr + '?' + this.tagEndChar;
494
498
  } else {
@@ -82,12 +82,18 @@ function arrToStr(arr, options, indentation, matcher, stopNodeExpressions) {
82
82
  if (isPreviousElementTag) {
83
83
  xmlStr += indentation;
84
84
  }
85
- xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
85
+ const val = tagObj[tagName][0][options.textNodeName];
86
+ const safeVal = String(val).replace(/\]\]>/g, ']]]]><![CDATA[>');
87
+ xmlStr += `<![CDATA[${safeVal}]]>`;
86
88
  isPreviousElementTag = false;
87
89
  matcher.pop();
88
90
  continue;
89
91
  } else if (tagName === options.commentPropName) {
90
- xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
92
+ const val = tagObj[tagName][0][options.textNodeName]
93
+ const safeVal = String(val)
94
+ .replace(/--/g, '- -') // -- is illegal anywhere in comment content
95
+ .replace(/-$/, '- '); // trailing - would form -- with the closing -->
96
+ xmlStr += indentation + `<!--${safeVal}-->`;
91
97
  isPreviousElementTag = true;
92
98
  matcher.pop();
93
99
  continue;
@@ -289,4 +295,12 @@ function replaceEntitiesValue(textValue, options) {
289
295
  }
290
296
  }
291
297
  return textValue;
298
+ }
299
+
300
+ function cdataVal(val) {
301
+
302
+ }
303
+
304
+ function commentVal(val) {
305
+
292
306
  }
package/package.json CHANGED
@@ -74,15 +74,15 @@
74
74
  "constructs": "^10.5.1"
75
75
  },
76
76
  "dependencies": {
77
- "@aws-sdk/client-cloudformation": "^3.1029.0",
78
- "@aws-sdk/client-cloudwatch": "^3.1029.0",
79
- "@aws-sdk/client-ec2": "^3.1029.0",
80
- "@aws-sdk/client-iam": "^3.1029.0",
81
- "@aws-sdk/client-lambda": "^3.1029.0",
82
- "@aws-sdk/client-s3": "^3.1029.0",
83
- "@aws-sdk/client-sns": "^3.1029.0",
84
- "@aws-sdk/client-sqs": "^3.1029.0",
85
- "@aws-sdk/client-ssm": "^3.1029.0",
77
+ "@aws-sdk/client-cloudformation": "^3.1032.0",
78
+ "@aws-sdk/client-cloudwatch": "^3.1032.0",
79
+ "@aws-sdk/client-ec2": "^3.1032.0",
80
+ "@aws-sdk/client-iam": "^3.1032.0",
81
+ "@aws-sdk/client-lambda": "^3.1032.0",
82
+ "@aws-sdk/client-s3": "^3.1032.0",
83
+ "@aws-sdk/client-sns": "^3.1032.0",
84
+ "@aws-sdk/client-sqs": "^3.1032.0",
85
+ "@aws-sdk/client-ssm": "^3.1032.0",
86
86
  "immutable": "^4.3.8",
87
87
  "js-yaml": "^4.1.1",
88
88
  "jsonpath": "^1.3.0",
@@ -116,7 +116,7 @@
116
116
  "publishConfig": {
117
117
  "access": "public"
118
118
  },
119
- "version": "0.0.56",
119
+ "version": "0.0.57",
120
120
  "jest": {
121
121
  "coverageProvider": "v8",
122
122
  "maxWorkers": 4,