@cdklabs/cdk-ssm-documents 0.0.75 → 0.0.77

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 (262) hide show
  1. package/.jsii +13 -13
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  117. package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
  118. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +1 -1
  119. package/node_modules/@aws-sdk/client-cloudwatch/package.json +2 -2
  120. package/node_modules/@aws-sdk/client-ec2/README.md +14 -0
  121. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +210 -43
  122. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +4 -0
  123. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ReplaceImageInstanceTypeSpecificationCommand.js +4 -0
  124. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ValidateSecurityGroupQuotasForInterfaceCommand.js +4 -0
  125. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +2 -0
  126. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +15 -0
  127. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +168 -41
  128. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +14 -0
  129. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +4 -2
  130. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +4 -0
  131. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -0
  132. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -1
  133. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFleetCommand.d.ts +17 -3
  134. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +1 -0
  135. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamInternetRegistryAssociationCommand.d.ts +1 -0
  136. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  137. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  138. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkInterfacePermissionCommand.d.ts +1 -2
  139. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcCommand.d.ts +1 -1
  140. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteIpamInternetRegistryAssociationCommand.d.ts +1 -0
  141. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -1
  142. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +2 -0
  143. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetsCommand.d.ts +11 -4
  144. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFlowLogsCommand.d.ts +1 -2
  145. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +12 -0
  146. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeIpamInternetRegistryAssociationsCommand.d.ts +1 -0
  147. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  148. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -1
  149. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +1 -2
  150. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
  151. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  152. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableFastLaunchCommand.d.ts +1 -2
  153. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableIpamInternetRegistryAssociationCommand.d.ts +1 -0
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -0
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportKeyPairCommand.d.ts +1 -1
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +4 -0
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +2 -0
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +108 -0
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RunInstancesCommand.d.ts +1 -1
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateInterruptibleCapacityReservationAllocationCommand.d.ts +2 -1
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +79 -0
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +2 -0
  170. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +39 -0
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +15 -1
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +86 -59
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +52 -29
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +71 -120
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +168 -242
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +240 -108
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +108 -190
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +259 -305
  179. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +341 -4
  180. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +13 -1
  181. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +34 -0
  182. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +12 -0
  183. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateNetworkInterfacePermissionCommand.d.ts +4 -2
  184. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -1
  185. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetsCommand.d.ts +2 -1
  186. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFlowLogsCommand.d.ts +1 -2
  187. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -4
  188. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeScheduledInstancesCommand.d.ts +4 -2
  189. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  190. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/EnableFastLaunchCommand.d.ts +1 -2
  191. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ImportKeyPairCommand.d.ts +1 -1
  192. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ImportSnapshotCommand.d.ts +1 -1
  193. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +42 -0
  194. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RequestSpotFleetCommand.d.ts +1 -1
  195. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
  196. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
  197. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
  198. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +42 -0
  199. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +2 -0
  200. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +20 -0
  201. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +3 -0
  202. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +15 -13
  203. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +12 -9
  204. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +15 -17
  205. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +26 -55
  206. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +49 -23
  207. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +22 -36
  208. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +54 -66
  209. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +73 -2
  210. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -1
  211. package/node_modules/@aws-sdk/client-ec2/package.json +2 -2
  212. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  213. package/node_modules/@aws-sdk/client-iam/package.json +2 -2
  214. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +17 -3
  215. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
  216. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +9 -2
  217. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
  218. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
  219. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
  220. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
  221. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
  222. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
  223. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
  224. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
  225. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
  226. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +19 -3
  227. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +1 -0
  228. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  229. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +5 -0
  230. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  231. package/node_modules/@aws-sdk/client-lambda/package.json +2 -2
  232. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  233. package/node_modules/@aws-sdk/client-s3/package.json +3 -3
  234. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  235. package/node_modules/@aws-sdk/client-sns/package.json +2 -2
  236. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  237. package/node_modules/@aws-sdk/client-sqs/package.json +2 -2
  238. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  239. package/node_modules/@aws-sdk/client-ssm/package.json +2 -2
  240. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  241. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  242. package/node_modules/@aws-sdk/credential-provider-node/package.json +1 -1
  243. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
  244. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
  245. package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
  246. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
  247. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  248. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  249. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
  250. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  251. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
  252. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
  253. package/node_modules/@smithy/types/package.json +1 -1
  254. package/node_modules/js-yaml/dist/js-yaml.js +11 -3
  255. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  256. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  257. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  258. package/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
  259. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  260. package/node_modules/js-yaml/lib/loader.js +16 -3
  261. package/node_modules/js-yaml/package.json +1 -1
  262. package/package.json +11 -11
@@ -102,6 +102,9 @@ declare const ListVersionsByFunctionCommand_base: {
102
102
  * // { // FileSystemConfig
103
103
  * // Arn: "STRING_VALUE", // required
104
104
  * // LocalMountPath: "STRING_VALUE", // required
105
+ * // S3FilesConfig: { // S3FilesConfig
106
+ * // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
107
+ * // },
105
108
  * // },
106
109
  * // ],
107
110
  * // SigningProfileVersionArn: "STRING_VALUE",
@@ -101,6 +101,9 @@ declare const PublishVersionCommand_base: {
101
101
  * // { // FileSystemConfig
102
102
  * // Arn: "STRING_VALUE", // required
103
103
  * // LocalMountPath: "STRING_VALUE", // required
104
+ * // S3FilesConfig: { // S3FilesConfig
105
+ * // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
106
+ * // },
104
107
  * // },
105
108
  * // ],
106
109
  * // SigningProfileVersionArn: "STRING_VALUE",
@@ -111,6 +111,9 @@ declare const UpdateFunctionCodeCommand_base: {
111
111
  * // { // FileSystemConfig
112
112
  * // Arn: "STRING_VALUE", // required
113
113
  * // LocalMountPath: "STRING_VALUE", // required
114
+ * // S3FilesConfig: { // S3FilesConfig
115
+ * // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
116
+ * // },
114
117
  * // },
115
118
  * // ],
116
119
  * // SigningProfileVersionArn: "STRING_VALUE",
@@ -70,6 +70,9 @@ declare const UpdateFunctionConfigurationCommand_base: {
70
70
  * { // FileSystemConfig
71
71
  * Arn: "STRING_VALUE", // required
72
72
  * LocalMountPath: "STRING_VALUE", // required
73
+ * S3FilesConfig: { // S3FilesConfig
74
+ * DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
75
+ * },
73
76
  * },
74
77
  * ],
75
78
  * ImageConfig: { // ImageConfig
@@ -167,6 +170,9 @@ declare const UpdateFunctionConfigurationCommand_base: {
167
170
  * // { // FileSystemConfig
168
171
  * // Arn: "STRING_VALUE", // required
169
172
  * // LocalMountPath: "STRING_VALUE", // required
173
+ * // S3FilesConfig: { // S3FilesConfig
174
+ * // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
175
+ * // },
170
176
  * // },
171
177
  * // ],
172
178
  * // SigningProfileVersionArn: "STRING_VALUE",
@@ -396,6 +396,19 @@ export declare const S3ObjectStorageMode: {
396
396
  * @public
397
397
  */
398
398
  export type S3ObjectStorageMode = (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
399
+ /**
400
+ * @public
401
+ * @enum
402
+ */
403
+ export declare const DirectS3Read: {
404
+ readonly AUTO: "AUTO";
405
+ readonly DISABLED: "DISABLED";
406
+ readonly ENABLED: "ENABLED";
407
+ };
408
+ /**
409
+ * @public
410
+ */
411
+ export type DirectS3Read = (typeof DirectS3Read)[keyof typeof DirectS3Read];
399
412
  /**
400
413
  * @public
401
414
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { StreamingBlobTypes } from "@smithy/types";
2
- import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
2
+ import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
3
3
  /**
4
4
  * <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
5
5
  * @public
@@ -2953,7 +2953,18 @@ export interface EphemeralStorage {
2953
2953
  Size: number | undefined;
2954
2954
  }
2955
2955
  /**
2956
- * <p>Details about the connection between a Lambda function and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 Files file system</a>.</p>
2956
+ * <p>Setting controls how your function accesses data from an Amazon S3 file system.</p>
2957
+ * @public
2958
+ */
2959
+ export interface S3FilesConfig {
2960
+ /**
2961
+ * <p>Specifies if a function reads from the file system for the lowest latency, or through Amazon S3 Files feature "direct Amazon S3 bucket reads" for the highest throughput. Valid values:</p> <ul> <li> <p> <code>AUTO</code> (default) – Direct reads are active for functions you configure with 512 MB or more of memory.</p> </li> <li> <p> <code>ENABLED</code> – Enforces all reads are directly from the Amazon S3 bucket, regardless of available memory (less than 512 MB).</p> </li> <li> <p> <code>DISABLED</code> – Routes all reads through the file system, regardless of memory configuration.</p> </li> </ul> <p>To use direct reads, you must grant the execution role the <code>s3:GetObject</code> and <code>s3:GetObjectVersion</code> permissions. If a direct read fails, Lambda automatically falls back to reading through the file system.</p>
2962
+ * @public
2963
+ */
2964
+ DirectS3Read?: DirectS3Read | undefined;
2965
+ }
2966
+ /**
2967
+ * <p>Details about the connection between a Lambda function and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 file system</a>.</p>
2957
2968
  * @public
2958
2969
  */
2959
2970
  export interface FileSystemConfig {
@@ -2967,6 +2978,11 @@ export interface FileSystemConfig {
2967
2978
  * @public
2968
2979
  */
2969
2980
  LocalMountPath: string | undefined;
2981
+ /**
2982
+ * <p>The configuration for how your function accesses data on an Amazon S3 file system. Valid only when the file system access point ARN is an Amazon S3 Files access point. If you specify a different access point type (for example, Amazon Elastic File System), the operation returns an <code>InvalidParameterException</code>.</p>
2983
+ * @public
2984
+ */
2985
+ S3FilesConfig?: S3FilesConfig | undefined;
2970
2986
  }
2971
2987
  /**
2972
2988
  * <p>Configuration values that override the container image Dockerfile settings. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms">Container image settings</a>.</p>
@@ -3525,7 +3541,7 @@ export interface FunctionConfiguration {
3525
3541
  */
3526
3542
  LastUpdateStatusReasonCode?: LastUpdateStatusReasonCode | undefined;
3527
3543
  /**
3528
- * <p>Connection settings for an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 Files file system</a>.</p>
3544
+ * <p>Connection settings for an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 file system</a>.</p>
3529
3545
  * @public
3530
3546
  */
3531
3547
  FileSystemConfigs?: FileSystemConfig[] | undefined;
@@ -288,6 +288,7 @@ export declare var ResolvedS3Object$: StaticStructureSchema;
288
288
  export declare var RetryDetails$: StaticStructureSchema;
289
289
  export declare var RuntimeVersionConfig$: StaticStructureSchema;
290
290
  export declare var RuntimeVersionError$: StaticStructureSchema;
291
+ export declare var S3FilesConfig$: StaticStructureSchema;
291
292
  export declare var ScalingConfig$: StaticStructureSchema;
292
293
  export declare var SelfManagedEventSource$: StaticStructureSchema;
293
294
  export declare var SelfManagedKafkaEventSourceConfig$: StaticStructureSchema;
@@ -203,6 +203,12 @@ export declare const S3ObjectStorageMode: {
203
203
  readonly Reference: "REFERENCE";
204
204
  };
205
205
  export type S3ObjectStorageMode = (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
206
+ export declare const DirectS3Read: {
207
+ readonly AUTO: "AUTO";
208
+ readonly DISABLED: "DISABLED";
209
+ readonly ENABLED: "ENABLED";
210
+ };
211
+ export type DirectS3Read = (typeof DirectS3Read)[keyof typeof DirectS3Read];
206
212
  export declare const LogFormat: {
207
213
  readonly Json: "JSON";
208
214
  readonly Text: "Text";
@@ -6,6 +6,7 @@ import {
6
6
  CapacityProviderScalingMode,
7
7
  CapacityProviderState,
8
8
  CodeSigningPolicy,
9
+ DirectS3Read,
9
10
  EndPointType,
10
11
  EventSourceMappingMetric,
11
12
  EventSourceMappingSystemLogLevel,
@@ -753,9 +754,13 @@ export interface Environment {
753
754
  export interface EphemeralStorage {
754
755
  Size: number | undefined;
755
756
  }
757
+ export interface S3FilesConfig {
758
+ DirectS3Read?: DirectS3Read | undefined;
759
+ }
756
760
  export interface FileSystemConfig {
757
761
  Arn: string | undefined;
758
762
  LocalMountPath: string | undefined;
763
+ S3FilesConfig?: S3FilesConfig | undefined;
759
764
  }
760
765
  export interface ImageConfig {
761
766
  EntryPoint?: string[] | undefined;
@@ -288,6 +288,7 @@ export declare var ResolvedS3Object$: StaticStructureSchema;
288
288
  export declare var RetryDetails$: StaticStructureSchema;
289
289
  export declare var RuntimeVersionConfig$: StaticStructureSchema;
290
290
  export declare var RuntimeVersionError$: StaticStructureSchema;
291
+ export declare var S3FilesConfig$: StaticStructureSchema;
291
292
  export declare var ScalingConfig$: StaticStructureSchema;
292
293
  export declare var SelfManagedEventSource$: StaticStructureSchema;
293
294
  export declare var SelfManagedKafkaEventSourceConfig$: StaticStructureSchema;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
- "version": "3.1116.0",
3
+ "version": "3.1127.0",
4
4
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",
6
6
  "license": "Apache-2.0",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@aws-sdk/core": "^3.977.9",
56
- "@aws-sdk/credential-provider-node": "^3.972.81",
56
+ "@aws-sdk/credential-provider-node": "^3.972.82",
57
57
  "@aws-sdk/types": "^3.974.5",
58
58
  "@smithy/core": "^3.33.3",
59
59
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -4743,7 +4743,7 @@ var WriteGetObjectResponse$ = [9, n0, _WGOR,
4743
4743
  class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
4744
4744
  }
4745
4745
 
4746
- var version = "3.1115.0";
4746
+ var version = "3.1126.0";
4747
4747
  var packageInfo = {
4748
4748
  version: version};
4749
4749
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
- "version": "3.1116.0",
3
+ "version": "3.1127.0",
4
4
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "dependencies": {
57
57
  "@aws-sdk/checksums": "^3.1000.29",
58
58
  "@aws-sdk/core": "^3.977.9",
59
- "@aws-sdk/credential-provider-node": "^3.972.81",
59
+ "@aws-sdk/credential-provider-node": "^3.972.82",
60
60
  "@aws-sdk/middleware-sdk-s3": "^3.972.75",
61
61
  "@aws-sdk/signature-v4-multi-region": "^3.996.46",
62
62
  "@aws-sdk/types": "^3.974.5",
@@ -67,7 +67,7 @@
67
67
  "tslib": "^2.6.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@aws-sdk/signature-v4-crt": "3.1116.0",
70
+ "@aws-sdk/signature-v4-crt": "3.1127.0",
71
71
  "@smithy/snapshot-testing": "^2.3.2",
72
72
  "@tsconfig/node20": "20.1.8",
73
73
  "@types/node": "^20.14.8",
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1115.0";
72
+ var version = "3.1126.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sns",
3
- "version": "3.1116.0",
3
+ "version": "3.1127.0",
4
4
  "description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sns",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@aws-sdk/core": "^3.977.9",
52
- "@aws-sdk/credential-provider-node": "^3.972.81",
52
+ "@aws-sdk/credential-provider-node": "^3.972.82",
53
53
  "@aws-sdk/types": "^3.974.5",
54
54
  "@smithy/core": "^3.33.3",
55
55
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1115.0";
73
+ var version = "3.1126.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
- "version": "3.1116.0",
3
+ "version": "3.1127.0",
4
4
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sqs",
6
6
  "license": "Apache-2.0",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@aws-sdk/core": "^3.977.9",
58
- "@aws-sdk/credential-provider-node": "^3.972.81",
58
+ "@aws-sdk/credential-provider-node": "^3.972.82",
59
59
  "@aws-sdk/middleware-sdk-sqs": "^3.972.42",
60
60
  "@aws-sdk/types": "^3.974.5",
61
61
  "@smithy/core": "^3.33.3",
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1115.0";
72
+ var version = "3.1126.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
- "version": "3.1116.0",
3
+ "version": "3.1127.0",
4
4
  "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@aws-sdk/core": "^3.977.9",
52
- "@aws-sdk/credential-provider-node": "^3.972.81",
52
+ "@aws-sdk/credential-provider-node": "^3.972.82",
53
53
  "@aws-sdk/types": "^3.974.5",
54
54
  "@smithy/core": "^3.33.3",
55
55
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -52,6 +52,8 @@ function memoizeChain(providers, treatAsExpired) {
52
52
  passiveLock = chain(options)
53
53
  .then((c) => {
54
54
  credentials = c;
55
+ })
56
+ .catch(() => {
55
57
  })
56
58
  .finally(() => {
57
59
  passiveLock = undefined;
@@ -32,6 +32,8 @@ export function memoizeChain(providers, treatAsExpired) {
32
32
  passiveLock = chain(options)
33
33
  .then((c) => {
34
34
  credentials = c;
35
+ })
36
+ .catch(() => {
35
37
  })
36
38
  .finally(() => {
37
39
  passiveLock = undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.81",
3
+ "version": "3.972.82",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -51,6 +51,7 @@ class FetchHttpHandler {
51
51
  const requestTimeoutInMs = requestTimeout$1 ?? this.config.requestTimeout;
52
52
  const keepAlive = this.config.keepAlive === true;
53
53
  const credentials = this.config.credentials;
54
+ const fetchFn = this.config.customFetch ?? fetch;
54
55
  if (abortSignal?.aborted) {
55
56
  const abortError = buildAbortError(abortSignal);
56
57
  return Promise.reject(abortError);
@@ -96,7 +97,7 @@ class FetchHttpHandler {
96
97
  let removeSignalEventListener = () => { };
97
98
  const fetchRequest = createRequest(url, requestOptions);
98
99
  const raceOfPromises = [
99
- fetch(fetchRequest).then((response) => {
100
+ fetchFn(fetchRequest).then((response) => {
100
101
  const fetchHeaders = response.headers;
101
102
  const transformedHeaders = {};
102
103
  for (const pair of fetchHeaders.entries()) {
@@ -34,6 +34,7 @@ export class FetchHttpHandler {
34
34
  const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
35
35
  const keepAlive = this.config.keepAlive === true;
36
36
  const credentials = this.config.credentials;
37
+ const fetchFn = this.config.customFetch ?? fetch;
37
38
  if (abortSignal?.aborted) {
38
39
  const abortError = buildAbortError(abortSignal);
39
40
  return Promise.reject(abortError);
@@ -79,7 +80,7 @@ export class FetchHttpHandler {
79
80
  let removeSignalEventListener = () => { };
80
81
  const fetchRequest = createRequest(url, requestOptions);
81
82
  const raceOfPromises = [
82
- fetch(fetchRequest).then((response) => {
83
+ fetchFn(fetchRequest).then((response) => {
83
84
  const fetchHeaders = response.headers;
84
85
  const transformedHeaders = {};
85
86
  for (const pair of fetchHeaders.entries()) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.7.2",
3
+ "version": "5.8.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
6
  "license": "Apache-2.0",
@@ -40,8 +40,8 @@
40
40
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
41
41
  },
42
42
  "dependencies": {
43
- "@smithy/core": "^3.33.2",
44
- "@smithy/types": "^4.17.2",
43
+ "@smithy/core": "^3.33.3",
44
+ "@smithy/types": "^4.18.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -491,6 +491,7 @@ class ClientHttp2SessionRef {
491
491
  destroy() {
492
492
  this.refs = 0;
493
493
  if (!this.session.destroyed) {
494
+ this.session.setTimeout(0);
494
495
  this.session.destroy();
495
496
  }
496
497
  }
@@ -608,9 +609,8 @@ class NodeHttp2ConnectionManager {
608
609
  session.on("error", ensureDestroyed);
609
610
  session.on("frameError", ensureDestroyed);
610
611
  session.on("close", ensureDestroyed);
611
- if (connectionConfiguration.requestTimeout) {
612
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
613
- }
612
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
613
+ session.setTimeout(timeout, ensureDestroyed);
614
614
  ref.retain();
615
615
  return ref;
616
616
  }
@@ -817,6 +817,9 @@ class NodeHttp2Handler {
817
817
  resolve({ response: httpResponse });
818
818
  if (useIsolatedSession) {
819
819
  session.close();
820
+ clientHttp2Stream.on("end", () => {
821
+ ref.destroy();
822
+ });
820
823
  }
821
824
  });
822
825
  clientHttp2Stream.on("close", () => {
@@ -827,7 +830,11 @@ class NodeHttp2Handler {
827
830
  this.connectionManager.release(requestContext, ref);
828
831
  }
829
832
  if (!fulfilled) {
830
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
833
+ const error = new Error("Unexpected error: http2 request did not get a response");
834
+ if (session.destroyed) {
835
+ error.name = "TimeoutError";
836
+ }
837
+ rejectWithDestroy(error);
831
838
  }
832
839
  });
833
840
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -41,6 +41,7 @@ export class ClientHttp2SessionRef {
41
41
  destroy() {
42
42
  this.refs = 0;
43
43
  if (!this.session.destroyed) {
44
+ this.session.setTimeout(0);
44
45
  this.session.destroy();
45
46
  }
46
47
  }
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
64
64
  session.on("error", ensureDestroyed);
65
65
  session.on("frameError", ensureDestroyed);
66
66
  session.on("close", ensureDestroyed);
67
- if (connectionConfiguration.requestTimeout) {
68
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
69
- }
67
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
68
+ session.setTimeout(timeout, ensureDestroyed);
70
69
  ref.retain();
71
70
  return ref;
72
71
  }
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
142
142
  resolve({ response: httpResponse });
143
143
  if (useIsolatedSession) {
144
144
  session.close();
145
+ clientHttp2Stream.on("end", () => {
146
+ ref.destroy();
147
+ });
145
148
  }
146
149
  });
147
150
  clientHttp2Stream.on("close", () => {
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
152
155
  this.connectionManager.release(requestContext, ref);
153
156
  }
154
157
  if (!fulfilled) {
155
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
158
+ const error = new Error("Unexpected error: http2 request did not get a response");
159
+ if (session.destroyed) {
160
+ error.name = "TimeoutError";
161
+ }
162
+ rejectWithDestroy(error);
156
163
  }
157
164
  });
158
165
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.11.3",
3
+ "version": "4.12.1",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@smithy/core": "^3.33.3",
43
- "@smithy/types": "^4.17.2",
43
+ "@smithy/types": "^4.18.0",
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "devDependencies": {
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
118
118
  * ```
119
119
  */
120
120
  requestInit?: (httpRequest: IHttpRequest) => RequestInit;
121
+ /**
122
+ * An optional custom fetch implementation to use in place of the
123
+ * global fetch function.
124
+ *
125
+ * @example
126
+ * ```js
127
+ * new Client({
128
+ * requestHandler: {
129
+ * customFetch: (request) => myFetchImplementation(request)
130
+ * }
131
+ * });
132
+ * ```
133
+ */
134
+ customFetch?: typeof fetch;
121
135
  }
122
136
  declare global {
123
137
  /**
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
118
118
  * ```
119
119
  */
120
120
  requestInit?: (httpRequest: IHttpRequest) => RequestInit;
121
+ /**
122
+ * An optional custom fetch implementation to use in place of the
123
+ * global fetch function.
124
+ *
125
+ * @example
126
+ * ```js
127
+ * new Client({
128
+ * requestHandler: {
129
+ * customFetch: (request) => myFetchImplementation(request)
130
+ * }
131
+ * });
132
+ * ```
133
+ */
134
+ customFetch?: typeof fetch;
121
135
  }
122
136
  declare global {
123
137
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.17.2",
3
+ "version": "4.18.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/types",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -1262,16 +1262,21 @@
1262
1262
  state.result += _result;
1263
1263
  }
1264
1264
  }
1265
+ function chargeMergeWork(state) {
1266
+ state.totalMergeKeys++;
1267
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1268
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1269
+ }
1270
+ }
1265
1271
  function mergeMappings(state, destination, source, overridableKeys) {
1266
1272
  if (!common2.isObject(source)) {
1267
1273
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1268
1274
  }
1275
+ chargeMergeWork(state);
1269
1276
  var sourceKeys = Object.keys(source);
1270
1277
  for (var index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1271
1278
  var key = sourceKeys[index];
1272
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1273
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1274
- }
1279
+ chargeMergeWork(state);
1275
1280
  if (!_hasOwnProperty.call(destination, key)) {
1276
1281
  setProperty(destination, key, source[key]);
1277
1282
  overridableKeys[key] = true;
@@ -1299,6 +1304,9 @@
1299
1304
  }
1300
1305
  if (keyTag === "tag:yaml.org,2002:merge") {
1301
1306
  if (Array.isArray(valueNode)) {
1307
+ if (valueNode.length > 100) {
1308
+ throwError(state, "abnormal merge sequence size");
1309
+ }
1302
1310
  for (var _index = 0, _quantity = valueNode.length; _index < _quantity; _index += 1) {
1303
1311
  mergeMappings(state, _result, valueNode[_index], overridableKeys);
1304
1312
  }