@cdklabs/cdk-ecs-codedeploy 0.0.166 → 0.0.167

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 (363) hide show
  1. package/.jsii +4 -4
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/abort-controller/package.json +3 -2
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js +2 -1
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +2 -1
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +2 -1
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js +2 -1
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +2 -1
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +2 -1
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +2 -1
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js +2 -1
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +2 -1
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js +2 -1
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js +2 -1
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js +2 -1
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js +2 -1
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js +2 -1
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js +2 -1
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js +2 -1
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js +2 -1
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +2 -1
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +2 -1
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +2 -1
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js +2 -1
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js +2 -1
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js +2 -1
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js +2 -1
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js +2 -1
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js +2 -1
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js +2 -1
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js +2 -1
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js +2 -1
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js +2 -1
  37. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js +2 -1
  38. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js +2 -1
  39. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js +2 -1
  40. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js +2 -1
  41. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js +2 -1
  42. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +2 -1
  43. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js +2 -1
  44. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  45. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +2 -1
  46. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js +2 -1
  47. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +2 -1
  48. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +2 -1
  49. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +2 -1
  50. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js +2 -1
  51. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js +2 -1
  52. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js +2 -1
  53. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js +2 -1
  54. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js +2 -1
  55. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +2 -2
  56. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +2 -1
  57. package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +1 -0
  58. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +1 -0
  59. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +1 -0
  60. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +1 -0
  61. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +1 -0
  62. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +1 -0
  63. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +1 -0
  64. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +1 -0
  65. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +1 -0
  66. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +1 -0
  67. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +1 -0
  68. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +1 -0
  69. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +1 -0
  70. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +1 -0
  71. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +1 -0
  72. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +1 -0
  73. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +1 -0
  74. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +1 -0
  75. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +1 -0
  76. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +1 -0
  77. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +1 -0
  78. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +1 -0
  79. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +1 -0
  80. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +1 -0
  81. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +1 -0
  82. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +1 -0
  83. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +1 -0
  84. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +1 -0
  85. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +1 -0
  86. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +1 -0
  87. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +1 -0
  88. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +1 -0
  89. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +1 -0
  90. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +1 -0
  91. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +1 -0
  92. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +1 -0
  93. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +1 -0
  94. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +1 -0
  95. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +1 -0
  96. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +1 -0
  97. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +1 -0
  98. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +1 -0
  99. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +1 -0
  100. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +1 -0
  101. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +1 -0
  102. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +1 -0
  103. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +1 -0
  104. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +1 -0
  105. package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +2 -2
  106. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/CodeDeployServiceException.js +1 -0
  107. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +3 -3
  108. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +4 -0
  109. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +4 -0
  110. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +4 -0
  111. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +4 -0
  112. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +4 -0
  113. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +4 -0
  114. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +4 -0
  115. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +4 -0
  116. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +4 -0
  117. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +4 -0
  118. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +4 -0
  119. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +4 -0
  120. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +4 -0
  121. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +4 -0
  122. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +4 -0
  123. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +4 -0
  124. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +4 -0
  125. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +4 -0
  126. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +4 -0
  127. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +4 -0
  128. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +4 -0
  129. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +4 -0
  130. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +4 -0
  131. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +4 -0
  132. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +4 -0
  133. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +4 -0
  134. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +4 -0
  135. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +4 -0
  136. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +4 -0
  137. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +4 -0
  138. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +4 -0
  139. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +4 -0
  140. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +4 -0
  141. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +4 -0
  142. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +4 -0
  143. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +4 -0
  144. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
  145. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +4 -0
  146. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +4 -0
  147. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +4 -0
  148. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +4 -0
  149. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +4 -0
  150. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +4 -0
  151. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +4 -0
  152. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  153. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +4 -0
  154. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +4 -0
  155. package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +99 -2
  156. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/CodeDeployServiceException.d.ts +1 -0
  157. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +3 -3
  158. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +1 -0
  159. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +1 -0
  160. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +1 -0
  161. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +1 -0
  162. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +1 -0
  163. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +1 -0
  164. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +1 -0
  165. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +1 -0
  166. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +1 -0
  167. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +1 -0
  168. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +1 -0
  169. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +1 -0
  170. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +1 -0
  171. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +1 -0
  172. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +1 -0
  173. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +1 -0
  174. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +1 -0
  175. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +1 -0
  176. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +1 -0
  177. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +1 -0
  178. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +1 -0
  179. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +1 -0
  180. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +1 -0
  181. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +1 -0
  182. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +1 -0
  183. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +1 -0
  184. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +1 -0
  185. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +1 -0
  186. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +1 -0
  187. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +1 -0
  188. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +1 -0
  189. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +1 -0
  190. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +1 -0
  191. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +1 -0
  192. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +1 -0
  193. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +1 -0
  194. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
  195. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +1 -0
  196. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +1 -0
  197. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +1 -0
  198. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +1 -0
  199. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +1 -0
  200. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +1 -0
  201. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
  202. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
  203. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +1 -0
  204. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +1 -0
  205. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +2 -2
  206. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/CodeDeployServiceException.d.ts +1 -0
  207. package/node_modules/@aws-sdk/client-codedeploy/package.json +29 -29
  208. package/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +2 -1
  209. package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +2 -1
  210. package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +2 -1
  211. package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +2 -1
  212. package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +2 -1
  213. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +2 -2
  214. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +2 -1
  215. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
  216. package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +1 -0
  217. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +1 -0
  218. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +1 -0
  219. package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +1 -0
  220. package/node_modules/@aws-sdk/client-sso/dist-es/index.js +2 -2
  221. package/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js +1 -0
  222. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +3 -3
  223. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +4 -0
  224. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +4 -0
  225. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +4 -0
  226. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +4 -0
  227. package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +25 -2
  228. package/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +1 -0
  229. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +3 -3
  230. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +1 -0
  231. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +1 -0
  232. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +1 -0
  233. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +1 -0
  234. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +2 -2
  235. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts +1 -0
  236. package/node_modules/@aws-sdk/client-sso/package.json +25 -25
  237. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +2 -1
  238. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +2 -1
  239. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +2 -1
  240. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +2 -1
  241. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1 -1
  242. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +2 -1
  243. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
  244. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +1 -0
  245. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +1 -0
  246. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +1 -0
  247. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +1 -1
  248. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +1 -0
  249. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +3 -3
  250. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +4 -0
  251. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +4 -0
  252. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +4 -0
  253. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +45 -1
  254. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +1 -0
  255. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +3 -3
  256. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +1 -0
  257. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +1 -0
  258. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +1 -0
  259. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +1 -1
  260. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +1 -0
  261. package/node_modules/@aws-sdk/client-sso-oidc/package.json +25 -25
  262. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +2 -1
  263. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +2 -1
  264. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +2 -1
  265. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +2 -1
  266. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +2 -1
  267. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +2 -1
  268. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +2 -1
  269. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +2 -1
  270. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +2 -1
  271. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +2 -2
  272. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +2 -1
  273. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
  274. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +1 -0
  275. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +1 -0
  276. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +1 -0
  277. package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +1 -0
  278. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +1 -0
  279. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +1 -0
  280. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +1 -0
  281. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +1 -0
  282. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +2 -2
  283. package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +1 -0
  284. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -3
  285. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +4 -0
  286. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +4 -0
  287. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -0
  288. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +4 -0
  289. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +4 -0
  290. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +4 -0
  291. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +4 -0
  292. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +4 -0
  293. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +10 -2
  294. package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +1 -0
  295. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +3 -3
  296. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +1 -0
  297. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +1 -0
  298. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +1 -0
  299. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +1 -0
  300. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +1 -0
  301. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +1 -0
  302. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -0
  303. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +1 -0
  304. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +2 -2
  305. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +1 -0
  306. package/node_modules/@aws-sdk/client-sts/package.json +28 -28
  307. package/node_modules/@aws-sdk/config-resolver/package.json +4 -4
  308. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  309. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  310. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  311. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  312. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  313. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  314. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  315. package/node_modules/@aws-sdk/fetch-http-handler/package.json +6 -5
  316. package/node_modules/@aws-sdk/hash-node/package.json +3 -2
  317. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  318. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  319. package/node_modules/@aws-sdk/middleware-endpoint/package.json +6 -5
  320. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  321. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  322. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  323. package/node_modules/@aws-sdk/middleware-retry/package.json +8 -7
  324. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
  325. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  326. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  327. package/node_modules/@aws-sdk/middleware-stack/package.json +3 -2
  328. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  329. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  330. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +12 -3
  331. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +20 -11
  332. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +16 -8
  333. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http-handler.js +12 -3
  334. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-handler.js +20 -11
  335. package/node_modules/@aws-sdk/node-http-handler/dist-es/write-request-body.js +15 -8
  336. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +3 -2
  337. package/node_modules/@aws-sdk/node-http-handler/dist-types/write-request-body.d.ts +8 -1
  338. package/node_modules/@aws-sdk/node-http-handler/package.json +6 -5
  339. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  340. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  341. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  342. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  343. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  344. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +3 -2
  345. package/node_modules/@aws-sdk/signature-v4/package.json +5 -4
  346. package/node_modules/@aws-sdk/smithy-client/dist-types/client.d.ts +1 -1
  347. package/node_modules/@aws-sdk/smithy-client/dist-types/command.d.ts +1 -1
  348. package/node_modules/@aws-sdk/smithy-client/dist-types/exceptions.d.ts +2 -2
  349. package/node_modules/@aws-sdk/smithy-client/package.json +4 -3
  350. package/node_modules/@aws-sdk/token-providers/package.json +6 -5
  351. package/node_modules/@aws-sdk/types/dist-types/response.d.ts +1 -1
  352. package/node_modules/@aws-sdk/types/package.json +2 -1
  353. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  354. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  355. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  356. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  357. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  358. package/node_modules/@aws-sdk/util-retry/README.md +20 -6
  359. package/node_modules/@aws-sdk/util-retry/package.json +4 -3
  360. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  361. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  362. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  363. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/hash-node",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,6 +9,7 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "extract:docs": "api-extractor run --local",
12
13
  "test": "jest"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
@@ -30,7 +31,7 @@
30
31
  "typescript": "~4.9.5"
31
32
  },
32
33
  "dependencies": {
33
- "@aws-sdk/types": "3.329.0",
34
+ "@aws-sdk/types": "3.338.0",
34
35
  "@aws-sdk/util-buffer-from": "3.310.0",
35
36
  "@aws-sdk/util-utf8": "3.310.0",
36
37
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/invalid-dependency",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.329.0",
23
+ "@aws-sdk/types": "3.338.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-content-length",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
24
+ "@aws-sdk/protocol-http": "3.338.0",
25
+ "@aws-sdk/types": "3.338.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,6 +9,7 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "extract:docs": "api-extractor run --local",
12
13
  "test": "jest --passWithNoTests",
13
14
  "test:integration": "jest -c jest.config.integ.js"
14
15
  },
@@ -21,10 +22,10 @@
21
22
  },
22
23
  "license": "Apache-2.0",
23
24
  "dependencies": {
24
- "@aws-sdk/middleware-serde": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
26
- "@aws-sdk/url-parser": "3.329.0",
27
- "@aws-sdk/util-middleware": "3.329.0",
25
+ "@aws-sdk/middleware-serde": "3.338.0",
26
+ "@aws-sdk/types": "3.338.0",
27
+ "@aws-sdk/url-parser": "3.338.0",
28
+ "@aws-sdk/util-middleware": "3.338.0",
28
29
  "tslib": "^2.5.0"
29
30
  },
30
31
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
24
+ "@aws-sdk/protocol-http": "3.338.0",
25
+ "@aws-sdk/types": "3.338.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,7 +22,7 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.329.0",
25
+ "@aws-sdk/types": "3.338.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
24
+ "@aws-sdk/protocol-http": "3.338.0",
25
+ "@aws-sdk/types": "3.338.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-retry",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,6 +9,7 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "extract:docs": "api-extractor run --local",
12
13
  "test": "jest",
13
14
  "test:integration": "jest -c jest.config.integ.js"
14
15
  },
@@ -21,16 +22,16 @@
21
22
  },
22
23
  "license": "Apache-2.0",
23
24
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.329.0",
25
- "@aws-sdk/service-error-classification": "3.329.0",
26
- "@aws-sdk/types": "3.329.0",
27
- "@aws-sdk/util-middleware": "3.329.0",
28
- "@aws-sdk/util-retry": "3.329.0",
25
+ "@aws-sdk/protocol-http": "3.338.0",
26
+ "@aws-sdk/service-error-classification": "3.338.0",
27
+ "@aws-sdk/types": "3.338.0",
28
+ "@aws-sdk/util-middleware": "3.338.0",
29
+ "@aws-sdk/util-retry": "3.338.0",
29
30
  "tslib": "^2.5.0",
30
31
  "uuid": "^8.3.2"
31
32
  },
32
33
  "devDependencies": {
33
- "@aws-sdk/node-config-provider": "3.329.0",
34
+ "@aws-sdk/node-config-provider": "3.338.0",
34
35
  "@tsconfig/recommended": "1.0.1",
35
36
  "@types/uuid": "^8.3.0",
36
37
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sts",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-signing": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
24
+ "@aws-sdk/middleware-signing": "3.338.0",
25
+ "@aws-sdk/types": "3.338.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-serde",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.329.0",
24
+ "@aws-sdk/types": "3.338.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/property-provider": "3.329.0",
25
- "@aws-sdk/protocol-http": "3.329.0",
26
- "@aws-sdk/signature-v4": "3.329.0",
27
- "@aws-sdk/types": "3.329.0",
28
- "@aws-sdk/util-middleware": "3.329.0",
24
+ "@aws-sdk/property-provider": "3.338.0",
25
+ "@aws-sdk/protocol-http": "3.338.0",
26
+ "@aws-sdk/signature-v4": "3.338.0",
27
+ "@aws-sdk/types": "3.338.0",
28
+ "@aws-sdk/util-middleware": "3.338.0",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-stack",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -10,6 +10,7 @@
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
+ "extract:docs": "api-extractor run --local",
13
14
  "test": "jest",
14
15
  "test:integration": "jest -c jest.config.integ.js --passWithNoTests"
15
16
  },
@@ -26,7 +27,7 @@
26
27
  "tslib": "^2.5.0"
27
28
  },
28
29
  "devDependencies": {
29
- "@aws-sdk/types": "3.329.0",
30
+ "@aws-sdk/types": "3.338.0",
30
31
  "@tsconfig/recommended": "1.0.1",
31
32
  "concurrently": "7.0.0",
32
33
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.332.0",
3
+ "version": "3.338.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.329.0",
25
- "@aws-sdk/types": "3.329.0",
26
- "@aws-sdk/util-endpoints": "3.332.0",
24
+ "@aws-sdk/protocol-http": "3.338.0",
25
+ "@aws-sdk/types": "3.338.0",
26
+ "@aws-sdk/util-endpoints": "3.338.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-config-provider",
3
- "version": "3.329.0",
3
+ "version": "3.338.0",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,9 +22,9 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/property-provider": "3.329.0",
26
- "@aws-sdk/shared-ini-file-loader": "3.329.0",
27
- "@aws-sdk/types": "3.329.0",
25
+ "@aws-sdk/property-provider": "3.338.0",
26
+ "@aws-sdk/shared-ini-file-loader": "3.338.0",
27
+ "@aws-sdk/types": "3.338.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
@@ -8,9 +8,9 @@ const https_1 = require("https");
8
8
  const constants_1 = require("./constants");
9
9
  const get_transformed_headers_1 = require("./get-transformed-headers");
10
10
  const set_connection_timeout_1 = require("./set-connection-timeout");
11
+ const set_socket_keep_alive_1 = require("./set-socket-keep-alive");
11
12
  const set_socket_timeout_1 = require("./set-socket-timeout");
12
13
  const write_request_body_1 = require("./write-request-body");
13
- const set_socket_keep_alive_1 = require("./set-socket-keep-alive");
14
14
  exports.DEFAULT_REQUEST_TIMEOUT = 0;
15
15
  class NodeHttpHandler {
16
16
  constructor(options) {
@@ -48,7 +48,16 @@ class NodeHttpHandler {
48
48
  if (!this.config) {
49
49
  this.config = await this.configProvider;
50
50
  }
51
- return new Promise((resolve, reject) => {
51
+ return new Promise((_resolve, _reject) => {
52
+ let writeRequestBodyPromise = undefined;
53
+ const resolve = async (arg) => {
54
+ await writeRequestBodyPromise;
55
+ _resolve(arg);
56
+ };
57
+ const reject = async (arg) => {
58
+ await writeRequestBodyPromise;
59
+ _reject(arg);
60
+ };
52
61
  if (!this.config) {
53
62
  throw new Error("Node HTTP request handler config is not resolved");
54
63
  }
@@ -102,7 +111,7 @@ class NodeHttpHandler {
102
111
  keepAliveMsecs: httpAgent.keepAliveMsecs,
103
112
  });
104
113
  }
105
- (0, write_request_body_1.writeRequestBody)(req, request);
114
+ writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout);
106
115
  });
107
116
  }
108
117
  }
@@ -36,14 +36,23 @@ class NodeHttp2Handler {
36
36
  }
37
37
  }
38
38
  const { requestTimeout, disableConcurrentStreams } = this.config;
39
- return new Promise((resolve, rejectOriginal) => {
39
+ return new Promise((_resolve, _reject) => {
40
40
  var _a;
41
41
  let fulfilled = false;
42
+ let writeRequestBodyPromise = undefined;
43
+ const resolve = async (arg) => {
44
+ await writeRequestBodyPromise;
45
+ _resolve(arg);
46
+ };
47
+ const reject = async (arg) => {
48
+ await writeRequestBodyPromise;
49
+ _reject(arg);
50
+ };
42
51
  if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
43
52
  fulfilled = true;
44
53
  const abortError = new Error("Request aborted");
45
54
  abortError.name = "AbortError";
46
- rejectOriginal(abortError);
55
+ reject(abortError);
47
56
  return;
48
57
  }
49
58
  const { hostname, method, port, protocol, path, query } = request;
@@ -53,12 +62,12 @@ class NodeHttp2Handler {
53
62
  requestTimeout: (_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout,
54
63
  disableConcurrentStreams: disableConcurrentStreams || false,
55
64
  });
56
- const reject = (err) => {
65
+ const rejectWithDestroy = (err) => {
57
66
  if (disableConcurrentStreams) {
58
67
  this.destroySession(session);
59
68
  }
60
69
  fulfilled = true;
61
- rejectOriginal(err);
70
+ reject(err);
62
71
  };
63
72
  const queryString = (0, querystring_builder_1.buildQueryString)(query || {});
64
73
  const req = session.request({
@@ -85,7 +94,7 @@ class NodeHttp2Handler {
85
94
  req.close();
86
95
  const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
87
96
  timeoutError.name = "TimeoutError";
88
- reject(timeoutError);
97
+ rejectWithDestroy(timeoutError);
89
98
  });
90
99
  }
91
100
  if (abortSignal) {
@@ -93,15 +102,15 @@ class NodeHttp2Handler {
93
102
  req.close();
94
103
  const abortError = new Error("Request aborted");
95
104
  abortError.name = "AbortError";
96
- reject(abortError);
105
+ rejectWithDestroy(abortError);
97
106
  };
98
107
  }
99
108
  req.on("frameError", (type, code, id) => {
100
- reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
109
+ rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
101
110
  });
102
- req.on("error", reject);
111
+ req.on("error", rejectWithDestroy);
103
112
  req.on("aborted", () => {
104
- reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
113
+ rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
105
114
  });
106
115
  req.on("close", () => {
107
116
  session.unref();
@@ -109,10 +118,10 @@ class NodeHttp2Handler {
109
118
  session.destroy();
110
119
  }
111
120
  if (!fulfilled) {
112
- reject(new Error("Unexpected error: http2 request did not get a response"));
121
+ rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
113
122
  }
114
123
  });
115
- (0, write_request_body_1.writeRequestBody)(req, request);
124
+ writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
116
125
  });
117
126
  }
118
127
  destroySession(session) {
@@ -2,16 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.writeRequestBody = void 0;
4
4
  const stream_1 = require("stream");
5
- function writeRequestBody(httpRequest, request) {
6
- const expect = request.headers["Expect"] || request.headers["expect"];
5
+ const MIN_WAIT_TIME = 1000;
6
+ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
7
+ var _a;
8
+ const headers = (_a = request.headers) !== null && _a !== void 0 ? _a : {};
9
+ const expect = headers["Expect"] || headers["expect"];
7
10
  if (expect === "100-continue") {
8
- httpRequest.on("continue", () => {
9
- writeBody(httpRequest, request.body);
10
- });
11
- }
12
- else {
13
- writeBody(httpRequest, request.body);
11
+ await Promise.race([
12
+ new Promise((resolve) => {
13
+ setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs));
14
+ }),
15
+ new Promise((resolve) => {
16
+ httpRequest.on("continue", () => {
17
+ resolve();
18
+ });
19
+ }),
20
+ ]);
14
21
  }
22
+ writeBody(httpRequest, request.body);
15
23
  }
16
24
  exports.writeRequestBody = writeRequestBody;
17
25
  function writeBody(httpRequest, body) {
@@ -5,9 +5,9 @@ import { Agent as hsAgent, request as hsRequest } from "https";
5
5
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
6
6
  import { getTransformedHeaders } from "./get-transformed-headers";
7
7
  import { setConnectionTimeout } from "./set-connection-timeout";
8
+ import { setSocketKeepAlive } from "./set-socket-keep-alive";
8
9
  import { setSocketTimeout } from "./set-socket-timeout";
9
10
  import { writeRequestBody } from "./write-request-body";
10
- import { setSocketKeepAlive } from "./set-socket-keep-alive";
11
11
  export const DEFAULT_REQUEST_TIMEOUT = 0;
12
12
  export class NodeHttpHandler {
13
13
  constructor(options) {
@@ -44,7 +44,16 @@ export class NodeHttpHandler {
44
44
  if (!this.config) {
45
45
  this.config = await this.configProvider;
46
46
  }
47
- return new Promise((resolve, reject) => {
47
+ return new Promise((_resolve, _reject) => {
48
+ let writeRequestBodyPromise = undefined;
49
+ const resolve = async (arg) => {
50
+ await writeRequestBodyPromise;
51
+ _resolve(arg);
52
+ };
53
+ const reject = async (arg) => {
54
+ await writeRequestBodyPromise;
55
+ _reject(arg);
56
+ };
48
57
  if (!this.config) {
49
58
  throw new Error("Node HTTP request handler config is not resolved");
50
59
  }
@@ -98,7 +107,7 @@ export class NodeHttpHandler {
98
107
  keepAliveMsecs: httpAgent.keepAliveMsecs,
99
108
  });
100
109
  }
101
- writeRequestBody(req, request);
110
+ writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout);
102
111
  });
103
112
  }
104
113
  }
@@ -33,13 +33,22 @@ export class NodeHttp2Handler {
33
33
  }
34
34
  }
35
35
  const { requestTimeout, disableConcurrentStreams } = this.config;
36
- return new Promise((resolve, rejectOriginal) => {
36
+ return new Promise((_resolve, _reject) => {
37
37
  let fulfilled = false;
38
+ let writeRequestBodyPromise = undefined;
39
+ const resolve = async (arg) => {
40
+ await writeRequestBodyPromise;
41
+ _resolve(arg);
42
+ };
43
+ const reject = async (arg) => {
44
+ await writeRequestBodyPromise;
45
+ _reject(arg);
46
+ };
38
47
  if (abortSignal?.aborted) {
39
48
  fulfilled = true;
40
49
  const abortError = new Error("Request aborted");
41
50
  abortError.name = "AbortError";
42
- rejectOriginal(abortError);
51
+ reject(abortError);
43
52
  return;
44
53
  }
45
54
  const { hostname, method, port, protocol, path, query } = request;
@@ -49,12 +58,12 @@ export class NodeHttp2Handler {
49
58
  requestTimeout: this.config?.sessionTimeout,
50
59
  disableConcurrentStreams: disableConcurrentStreams || false,
51
60
  });
52
- const reject = (err) => {
61
+ const rejectWithDestroy = (err) => {
53
62
  if (disableConcurrentStreams) {
54
63
  this.destroySession(session);
55
64
  }
56
65
  fulfilled = true;
57
- rejectOriginal(err);
66
+ reject(err);
58
67
  };
59
68
  const queryString = buildQueryString(query || {});
60
69
  const req = session.request({
@@ -81,7 +90,7 @@ export class NodeHttp2Handler {
81
90
  req.close();
82
91
  const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
83
92
  timeoutError.name = "TimeoutError";
84
- reject(timeoutError);
93
+ rejectWithDestroy(timeoutError);
85
94
  });
86
95
  }
87
96
  if (abortSignal) {
@@ -89,15 +98,15 @@ export class NodeHttp2Handler {
89
98
  req.close();
90
99
  const abortError = new Error("Request aborted");
91
100
  abortError.name = "AbortError";
92
- reject(abortError);
101
+ rejectWithDestroy(abortError);
93
102
  };
94
103
  }
95
104
  req.on("frameError", (type, code, id) => {
96
- reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
105
+ rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
97
106
  });
98
- req.on("error", reject);
107
+ req.on("error", rejectWithDestroy);
99
108
  req.on("aborted", () => {
100
- reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
109
+ rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
101
110
  });
102
111
  req.on("close", () => {
103
112
  session.unref();
@@ -105,10 +114,10 @@ export class NodeHttp2Handler {
105
114
  session.destroy();
106
115
  }
107
116
  if (!fulfilled) {
108
- reject(new Error("Unexpected error: http2 request did not get a response"));
117
+ rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
109
118
  }
110
119
  });
111
- writeRequestBody(req, request);
120
+ writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);
112
121
  });
113
122
  }
114
123
  destroySession(session) {
@@ -1,14 +1,21 @@
1
1
  import { Readable } from "stream";
2
- export function writeRequestBody(httpRequest, request) {
3
- const expect = request.headers["Expect"] || request.headers["expect"];
2
+ const MIN_WAIT_TIME = 1000;
3
+ export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
4
+ const headers = request.headers ?? {};
5
+ const expect = headers["Expect"] || headers["expect"];
4
6
  if (expect === "100-continue") {
5
- httpRequest.on("continue", () => {
6
- writeBody(httpRequest, request.body);
7
- });
8
- }
9
- else {
10
- writeBody(httpRequest, request.body);
7
+ await Promise.race([
8
+ new Promise((resolve) => {
9
+ setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs));
10
+ }),
11
+ new Promise((resolve) => {
12
+ httpRequest.on("continue", () => {
13
+ resolve();
14
+ });
15
+ }),
16
+ ]);
11
17
  }
18
+ writeBody(httpRequest, request.body);
12
19
  }
13
20
  function writeBody(httpRequest, body) {
14
21
  if (body instanceof Readable) {
@@ -3,5 +3,6 @@ import { ClientRequest } from "http";
3
3
  import { ClientHttp2Stream } from "http2";
4
4
  export declare function writeRequestBody(
5
5
  httpRequest: ClientRequest | ClientHttp2Stream,
6
- request: HttpRequest
7
- ): void;
6
+ request: HttpRequest,
7
+ maxContinueTimeoutMs?: number
8
+ ): Promise<void>;
@@ -3,4 +3,11 @@
3
3
  import { HttpRequest } from "@aws-sdk/types";
4
4
  import { ClientRequest } from "http";
5
5
  import { ClientHttp2Stream } from "http2";
6
- export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest): void;
6
+ /**
7
+ * This resolves when writeBody has been called.
8
+ *
9
+ * @param httpRequest - opened Node.js request.
10
+ * @param request - container with the request body.
11
+ * @param maxContinueTimeoutMs - maximum time to wait for the continue event. Minimum of 1000ms.
12
+ */
13
+ export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;