@cdklabs/cdk-ecs-codedeploy 0.0.446 → 0.0.447

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 (589) hide show
  1. package/.jsii +3 -3
  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/lambda-invoke-store/README.md +25 -1
  7. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +12 -0
  8. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +12 -0
  9. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +6 -0
  10. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +4188 -578
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commandBuilder.js +6 -0
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +2 -14
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +2 -14
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +2 -14
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +2 -14
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +2 -14
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +2 -14
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +2 -14
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +2 -14
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +2 -14
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +2 -14
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +2 -14
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +2 -14
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +2 -14
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +2 -14
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +2 -14
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +2 -14
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +2 -14
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +2 -14
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +2 -14
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +2 -14
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +2 -14
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +2 -14
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +2 -14
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +2 -14
  37. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +2 -14
  38. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +2 -14
  39. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +2 -14
  40. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +2 -14
  41. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +2 -14
  42. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +2 -14
  43. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +2 -14
  44. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +2 -14
  45. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +2 -14
  46. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +2 -14
  47. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +2 -14
  48. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +2 -14
  49. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  50. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +2 -14
  51. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +2 -14
  52. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +2 -14
  53. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +2 -14
  54. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +2 -14
  55. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +2 -14
  56. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +2 -14
  57. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +2 -14
  58. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +2 -14
  59. package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +2 -14
  60. package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +1 -0
  61. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.browser.js +0 -2
  62. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +1 -2
  63. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.native.js +0 -2
  64. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +2 -0
  65. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commandBuilder.d.ts +18 -0
  66. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +3 -8
  67. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +3 -8
  68. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +3 -8
  69. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +3 -8
  70. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +3 -8
  71. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +3 -8
  72. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +3 -8
  73. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +3 -8
  74. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +3 -8
  75. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +3 -8
  76. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +3 -8
  77. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +3 -8
  78. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +3 -8
  79. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +3 -8
  80. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +3 -8
  81. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +3 -8
  82. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +3 -8
  83. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +3 -8
  84. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +3 -8
  85. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +3 -8
  86. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +3 -8
  87. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +3 -8
  88. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +3 -8
  89. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +3 -8
  90. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +3 -8
  91. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +3 -8
  92. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +3 -8
  93. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +3 -8
  94. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +3 -8
  95. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +3 -8
  96. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +3 -8
  97. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +3 -8
  98. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +3 -8
  99. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +3 -8
  100. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +3 -8
  101. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +3 -8
  102. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  103. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +3 -8
  104. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +3 -8
  105. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +3 -8
  106. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +3 -8
  107. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +3 -8
  108. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +3 -8
  109. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +3 -8
  110. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  111. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +3 -8
  112. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +3 -8
  113. package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +1 -0
  114. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -2
  115. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +2 -2
  116. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
  117. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +1 -0
  118. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  119. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +7 -16
  120. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +7 -16
  121. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +7 -16
  122. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +7 -16
  123. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +7 -16
  124. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +7 -16
  125. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +7 -16
  126. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +7 -16
  127. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +7 -16
  128. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +7 -16
  129. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +7 -16
  130. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +7 -16
  131. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +7 -16
  132. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +7 -16
  133. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +7 -16
  134. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +7 -16
  135. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +7 -16
  136. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +7 -16
  137. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +7 -16
  138. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +7 -16
  139. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +7 -16
  140. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +7 -16
  141. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +7 -16
  142. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +7 -16
  143. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +7 -16
  144. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +7 -16
  145. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +7 -16
  146. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +7 -16
  147. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +7 -16
  148. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +7 -16
  149. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +7 -16
  150. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +7 -16
  151. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +7 -16
  152. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +7 -16
  153. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +7 -16
  154. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +7 -16
  155. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  156. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +7 -16
  157. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +7 -16
  158. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +7 -16
  159. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +7 -16
  160. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +7 -16
  161. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +7 -16
  162. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  163. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  164. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +7 -16
  165. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +7 -16
  166. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +1 -0
  167. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  168. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  169. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  170. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  171. package/node_modules/@aws-sdk/client-codedeploy/package.json +8 -10
  172. package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
  173. package/node_modules/@aws-sdk/core/client.d.ts +1 -3
  174. package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
  175. package/node_modules/@aws-sdk/core/package.json +10 -17
  176. package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
  177. package/node_modules/@aws-sdk/core/util.d.ts +1 -3
  178. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  179. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
  180. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
  181. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  182. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  183. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  184. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  185. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  186. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
  187. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
  188. package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
  189. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +13 -25
  190. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +13 -17
  191. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +12 -15
  192. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +12 -15
  193. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -25
  194. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
  195. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
  196. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
  197. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +1 -0
  198. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
  199. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
  200. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
  201. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
  202. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +8 -0
  203. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
  204. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +1 -0
  205. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
  206. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
  207. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
  208. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  209. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js +6 -0
  210. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
  211. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js +1 -0
  212. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
  213. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
  214. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
  215. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
  216. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
  217. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
  218. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +1 -0
  219. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
  220. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
  221. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
  222. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  223. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js +6 -0
  224. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
  225. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
  226. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -0
  227. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
  228. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
  229. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
  230. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  231. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
  232. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
  233. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +1 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/index.d.ts +1 -0
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -0
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +1 -0
  264. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
  265. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -2
  266. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
  267. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  268. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
  269. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
  270. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
  271. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
  272. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +8 -2
  273. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +8 -2
  274. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +8 -2
  275. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  276. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
  277. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  278. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
  279. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +8 -2
  280. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +8 -2
  281. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +8 -2
  282. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  283. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
  284. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  285. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
  286. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +8 -2
  287. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +8 -2
  288. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +8 -2
  289. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  290. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
  291. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  292. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
  293. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +8 -2
  294. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +8 -2
  295. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +8 -2
  296. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  297. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
  298. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
  299. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
  300. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
  301. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -2
  302. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +8 -2
  303. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -2
  304. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  305. package/node_modules/@aws-sdk/nested-clients/package.json +8 -10
  306. package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
  307. package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
  308. package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
  309. package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
  310. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  311. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  312. package/node_modules/@aws-sdk/types/package.json +2 -2
  313. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
  314. package/node_modules/@aws-sdk/xml-builder/package.json +3 -4
  315. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +4 -1
  316. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +8 -2
  317. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +4 -1
  318. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +18 -0
  319. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +108 -63
  320. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +11 -8
  321. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -8
  322. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +31 -27
  323. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +4 -1
  324. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +4 -1
  325. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -0
  326. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js +17 -0
  327. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js +6 -1
  328. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js +92 -0
  329. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js +3 -0
  330. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +3 -56
  331. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js +5 -3
  332. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js +7 -6
  333. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +31 -27
  334. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +5 -0
  335. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +5 -0
  336. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -0
  337. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
  338. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/command.d.ts +5 -6
  339. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
  340. package/node_modules/@smithy/core/dist-types/submodules/config/defaults-mode/constants.d.ts +12 -0
  341. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +4 -5
  342. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +4 -5
  343. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +3 -4
  344. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +1 -2
  345. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +1 -2
  346. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +22 -14
  347. package/node_modules/@smithy/core/package.json +2 -3
  348. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  349. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  350. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  351. package/node_modules/@smithy/signature-v4/package.json +3 -4
  352. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  353. package/node_modules/@smithy/types/package.json +1 -1
  354. package/package.json +2 -2
  355. package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -100
  356. package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
  357. package/node_modules/@aws-crypto/crc32/README.md +0 -16
  358. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.d.ts +0 -7
  359. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +0 -31
  360. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js.map +0 -1
  361. package/node_modules/@aws-crypto/crc32/build/main/index.d.ts +0 -7
  362. package/node_modules/@aws-crypto/crc32/build/main/index.js +0 -108
  363. package/node_modules/@aws-crypto/crc32/build/main/index.js.map +0 -1
  364. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.d.ts +0 -7
  365. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js +0 -28
  366. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js.map +0 -1
  367. package/node_modules/@aws-crypto/crc32/build/module/index.d.ts +0 -7
  368. package/node_modules/@aws-crypto/crc32/build/module/index.js +0 -103
  369. package/node_modules/@aws-crypto/crc32/build/module/index.js.map +0 -1
  370. package/node_modules/@aws-crypto/crc32/package.json +0 -32
  371. package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
  372. package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
  373. package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -9
  374. package/node_modules/@aws-crypto/crc32/tsconfig.module.json +0 -7
  375. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
  376. package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
  377. package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
  378. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.d.ts +0 -10
  379. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
  380. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js.map +0 -1
  381. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.d.ts +0 -8
  382. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
  383. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js.map +0 -1
  384. package/node_modules/@aws-crypto/sha256-browser/build/main/index.d.ts +0 -2
  385. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
  386. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js.map +0 -1
  387. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.d.ts +0 -2
  388. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
  389. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js.map +0 -1
  390. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.d.ts +0 -10
  391. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
  392. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js.map +0 -1
  393. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.d.ts +0 -10
  394. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
  395. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js.map +0 -1
  396. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.d.ts +0 -8
  397. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
  398. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js.map +0 -1
  399. package/node_modules/@aws-crypto/sha256-browser/build/module/index.d.ts +0 -2
  400. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
  401. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js.map +0 -1
  402. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.d.ts +0 -2
  403. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
  404. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js.map +0 -1
  405. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.d.ts +0 -10
  406. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
  407. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js.map +0 -1
  408. package/node_modules/@aws-crypto/sha256-browser/package.json +0 -33
  409. package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
  410. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
  411. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
  412. package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
  413. package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
  414. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
  415. package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
  416. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
  417. package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
  418. package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
  419. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.d.ts +0 -17
  420. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
  421. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js.map +0 -1
  422. package/node_modules/@aws-crypto/sha256-js/build/main/constants.d.ts +0 -20
  423. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
  424. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js.map +0 -1
  425. package/node_modules/@aws-crypto/sha256-js/build/main/index.d.ts +0 -1
  426. package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
  427. package/node_modules/@aws-crypto/sha256-js/build/main/index.js.map +0 -1
  428. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.d.ts +0 -12
  429. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
  430. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js.map +0 -1
  431. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.d.ts +0 -5
  432. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
  433. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js.map +0 -1
  434. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.d.ts +0 -17
  435. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
  436. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js.map +0 -1
  437. package/node_modules/@aws-crypto/sha256-js/build/module/constants.d.ts +0 -20
  438. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
  439. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js.map +0 -1
  440. package/node_modules/@aws-crypto/sha256-js/build/module/index.d.ts +0 -1
  441. package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
  442. package/node_modules/@aws-crypto/sha256-js/build/module/index.js.map +0 -1
  443. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.d.ts +0 -12
  444. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
  445. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js.map +0 -1
  446. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.d.ts +0 -5
  447. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
  448. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js.map +0 -1
  449. package/node_modules/@aws-crypto/sha256-js/package.json +0 -32
  450. package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
  451. package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
  452. package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
  453. package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
  454. package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
  455. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
  456. package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
  457. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
  458. package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
  459. package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
  460. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.d.ts +0 -1
  461. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
  462. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js.map +0 -1
  463. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.d.ts +0 -4
  464. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
  465. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js.map +0 -1
  466. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.d.ts +0 -1
  467. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
  468. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js.map +0 -1
  469. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.d.ts +0 -4
  470. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
  471. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js.map +0 -1
  472. package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -28
  473. package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
  474. package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
  475. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
  476. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
  477. package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
  478. package/node_modules/@aws-crypto/util/LICENSE +0 -201
  479. package/node_modules/@aws-crypto/util/README.md +0 -16
  480. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.d.ts +0 -2
  481. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
  482. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js.map +0 -1
  483. package/node_modules/@aws-crypto/util/build/main/index.d.ts +0 -4
  484. package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
  485. package/node_modules/@aws-crypto/util/build/main/index.js.map +0 -1
  486. package/node_modules/@aws-crypto/util/build/main/isEmptyData.d.ts +0 -2
  487. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
  488. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js.map +0 -1
  489. package/node_modules/@aws-crypto/util/build/main/numToUint8.d.ts +0 -1
  490. package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
  491. package/node_modules/@aws-crypto/util/build/main/numToUint8.js.map +0 -1
  492. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.d.ts +0 -1
  493. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
  494. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js.map +0 -1
  495. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.d.ts +0 -2
  496. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
  497. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js.map +0 -1
  498. package/node_modules/@aws-crypto/util/build/module/index.d.ts +0 -4
  499. package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
  500. package/node_modules/@aws-crypto/util/build/module/index.js.map +0 -1
  501. package/node_modules/@aws-crypto/util/build/module/isEmptyData.d.ts +0 -2
  502. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
  503. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js.map +0 -1
  504. package/node_modules/@aws-crypto/util/build/module/numToUint8.d.ts +0 -1
  505. package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
  506. package/node_modules/@aws-crypto/util/build/module/numToUint8.js.map +0 -1
  507. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.d.ts +0 -1
  508. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
  509. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js.map +0 -1
  510. package/node_modules/@aws-crypto/util/package.json +0 -32
  511. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
  512. package/node_modules/@aws-crypto/util/src/index.ts +0 -7
  513. package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
  514. package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
  515. package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
  516. package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
  517. package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
  518. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  519. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/bdd.js +0 -46
  520. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +0 -14
  521. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +0 -8
  522. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/errors.js +0 -1321
  523. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.browser.js +0 -32
  524. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +0 -45
  525. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.native.js +0 -12
  526. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +0 -39
  527. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/schemas/schemas_0.js +0 -2398
  528. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
  529. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
  530. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
  531. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
  532. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
  533. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
  534. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
  535. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
  536. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
  537. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
  538. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  539. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  540. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
  541. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  542. package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
  543. package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
  544. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -54
  545. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
  546. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -234
  547. package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  548. package/node_modules/@smithy/is-array-buffer/README.md +0 -10
  549. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
  550. package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
  551. package/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +0 -4
  552. package/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +0 -4
  553. package/node_modules/@smithy/is-array-buffer/package.json +0 -60
  554. package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  555. package/node_modules/@smithy/util-buffer-from/README.md +0 -10
  556. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
  557. package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
  558. package/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +0 -13
  559. package/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +0 -13
  560. package/node_modules/@smithy/util-buffer-from/package.json +0 -61
  561. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  562. package/node_modules/@smithy/util-utf8/README.md +0 -4
  563. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  564. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  565. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  566. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  567. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  568. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  569. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  570. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  571. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  572. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  573. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  574. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  575. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
  576. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
  577. package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
  578. package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
  579. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
  580. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
  581. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
  582. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
  583. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
  584. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
  585. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
  586. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
  587. package/node_modules/@smithy/util-utf8/package.json +0 -66
  588. /package/node_modules/@smithy/{core/dist-es/submodules/endpoints/middleware-endpoint/types.js → types/dist-es/endpoints/EndpointParameterInstructions.js} +0 -0
  589. /package/node_modules/@smithy/{core/dist-types/submodules/endpoints/middleware-endpoint/types.d.ts → types/dist-types/endpoints/EndpointParameterInstructions.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- const { Crc32 } = require("@aws-crypto/crc32");
1
+ const { Crc32 } = require("@smithy/core/checksum");
2
2
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
3
  const { Readable } = require("node:stream");
4
4
 
@@ -245,13 +245,14 @@ function splitMessage({ byteLength, byteOffset, buffer }) {
245
245
  const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
246
246
  const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
247
247
  const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
248
- const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
249
- if (expectedPreludeChecksum !== checksummer.digest()) {
250
- throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
248
+ const checksummer = new Crc32();
249
+ checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
250
+ if (expectedPreludeChecksum !== checksummer.digestSync()) {
251
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
251
252
  }
252
253
  checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
253
- if (expectedMessageChecksum !== checksummer.digest()) {
254
- throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
254
+ if (expectedMessageChecksum !== checksummer.digestSync()) {
255
+ throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
255
256
  }
256
257
  return {
257
258
  headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
@@ -307,10 +308,12 @@ class EventStreamCodec {
307
308
  const checksum = new Crc32();
308
309
  view.setUint32(0, length, false);
309
310
  view.setUint32(4, headers.byteLength, false);
310
- view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
311
+ checksum.update(out.subarray(0, 8));
312
+ view.setUint32(8, checksum.digestSync(), false);
311
313
  out.set(headers, 12);
312
314
  out.set(body, headers.byteLength + 12);
313
- view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
315
+ checksum.update(out.subarray(8, length - 4));
316
+ view.setUint32(length - 4, checksum.digestSync(), false);
314
317
  return out;
315
318
  }
316
319
  decode(message) {
@@ -2,7 +2,7 @@ const { createHmac, createHash, getRandomValues } = require("node:crypto");
2
2
  const { ReadStream, lstatSync, fstatSync } = require("node:fs");
3
3
  const { HttpResponse } = require("@smithy/core/transport");
4
4
  const { toEndpointV1 } = require("@smithy/core/endpoints");
5
- const { Duplex, Readable, Writable, PassThrough } = require("node:stream");
5
+ const { Readable, Writable, PassThrough } = require("node:stream");
6
6
 
7
7
  const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) ||
8
8
  Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
@@ -987,62 +987,66 @@ function castSourceData(toCast, encoding) {
987
987
  return fromArrayBuffer(toCast);
988
988
  }
989
989
 
990
- let ChecksumStream$1 = class ChecksumStream extends Duplex {
990
+ let ChecksumStream$1 = class ChecksumStream extends Readable {
991
991
  expectedChecksum;
992
992
  checksumSourceLocation;
993
993
  checksum;
994
994
  source;
995
995
  base64Encoder;
996
- pendingCallback = null;
997
996
  constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
998
997
  super();
999
- if (typeof source.pipe === "function") {
1000
- this.source = source;
1001
- }
1002
- else {
998
+ if (typeof source.pipe !== "function") {
1003
999
  throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`);
1004
1000
  }
1001
+ this.source = source;
1005
1002
  this.base64Encoder = base64Encoder ?? toBase64$1;
1006
1003
  this.expectedChecksum = expectedChecksum;
1007
1004
  this.checksum = checksum;
1008
1005
  this.checksumSourceLocation = checksumSourceLocation;
1009
- this.source.pipe(this);
1006
+ this.source.on("data", this.onSourceData);
1007
+ this.source.on("end", this.onSourceEnd);
1008
+ this.source.on("error", this.onSourceError);
1009
+ this.source.pause();
1010
1010
  }
1011
- _read(size) {
1012
- if (this.pendingCallback) {
1013
- const callback = this.pendingCallback;
1014
- this.pendingCallback = null;
1015
- callback();
1011
+ onSourceData = (chunk) => {
1012
+ if (this.destroyed) {
1013
+ return;
1016
1014
  }
1017
- }
1018
- _write(chunk, encoding, callback) {
1019
1015
  try {
1020
1016
  this.checksum.update(chunk);
1021
- const canPushMore = this.push(chunk);
1022
- if (!canPushMore) {
1023
- this.pendingCallback = callback;
1024
- return;
1025
- }
1026
1017
  }
1027
1018
  catch (e) {
1028
- return callback(e);
1019
+ this.destroy(e);
1020
+ return;
1021
+ }
1022
+ if (!this.push(chunk)) {
1023
+ this.source.pause();
1024
+ }
1025
+ };
1026
+ onSourceEnd = async () => {
1027
+ if (this.destroyed) {
1028
+ return;
1029
1029
  }
1030
- return callback();
1031
- }
1032
- async _final(callback) {
1033
1030
  try {
1034
1031
  const digest = await this.checksum.digest();
1035
1032
  const received = this.base64Encoder(digest);
1036
1033
  if (this.expectedChecksum !== received) {
1037
- return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
1034
+ this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
1038
1035
  ` in response header "${this.checksumSourceLocation}".`));
1036
+ return;
1039
1037
  }
1040
1038
  }
1041
1039
  catch (e) {
1042
- return callback(e);
1040
+ this.destroy(e);
1041
+ return;
1043
1042
  }
1044
1043
  this.push(null);
1045
- return callback();
1044
+ };
1045
+ onSourceError = (error) => {
1046
+ this.destroy(error);
1047
+ };
1048
+ _read(size) {
1049
+ this.source.resume();
1046
1050
  }
1047
1051
  _destroy(error, callback) {
1048
1052
  this.source?.destroy();
@@ -15,8 +15,11 @@ export class Crc32Js {
15
15
  this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff];
16
16
  }
17
17
  }
18
+ digestSync() {
19
+ return (this.checksum ^ ONES) >>> 0;
20
+ }
18
21
  async digest() {
19
- const value = (this.checksum ^ ONES) >>> 0;
22
+ const value = this.digestSync();
20
23
  const out = new Uint8Array(4);
21
24
  new DataView(out.buffer).setUint32(0, value, false);
22
25
  return out;
@@ -9,9 +9,12 @@ function buildNativeClass(nativeCrc32) {
9
9
  update(data) {
10
10
  this.value = nativeCrc32(data, this.value);
11
11
  }
12
+ digestSync() {
13
+ return this.value >>> 0;
14
+ }
12
15
  async digest() {
13
16
  const out = new Uint8Array(4);
14
- new DataView(out.buffer).setUint32(0, this.value >>> 0, false);
17
+ new DataView(out.buffer).setUint32(0, this.digestSync(), false);
15
18
  return out;
16
19
  }
17
20
  reset() {
@@ -24,3 +24,4 @@ export { map, convertMap, take, } from "./smithy-client/object-mapping";
24
24
  export { schemaLogFilter } from "./smithy-client/schemaLogFilter";
25
25
  export { serializeFloat, serializeDateTime } from "./smithy-client/ser-utils";
26
26
  export { _json } from "./smithy-client/serde-json";
27
+ export { makeBuilder } from "./smithy-client/client-command-builder";
@@ -0,0 +1,17 @@
1
+ import { Command } from "./command";
2
+ export function makeBuilder(common, service, name, ep) {
3
+ return function makeCommand(added, plugins, op, $, smithyContext = {}) {
4
+ const epMerged = Object.assign({}, common, added);
5
+ return Command.classBuilder()
6
+ .ep(epMerged)
7
+ .m(function (CommandCtor, clientStack, config, options) {
8
+ const list = plugins.call(this, CommandCtor, clientStack, config, options);
9
+ list.unshift(ep(config, CommandCtor.getEndpointParameterInstructions()));
10
+ return list;
11
+ })
12
+ .s(service, op, smithyContext)
13
+ .n(name, op.charAt(0).toUpperCase() + op.slice(1) + "Command")
14
+ .sc($)
15
+ .build();
16
+ };
17
+ }
@@ -1,9 +1,14 @@
1
+ import { getInstanceMetadataRegion } from "./getInstanceMetadataRegion";
1
2
  export const REGION_ENV_NAME = "AWS_REGION";
2
3
  export const REGION_INI_NAME = "region";
3
4
  export const NODE_REGION_CONFIG_OPTIONS = {
4
5
  environmentVariableSelector: (env) => env[REGION_ENV_NAME],
5
6
  configFileSelector: (profile) => profile[REGION_INI_NAME],
6
- default: () => {
7
+ default: async () => {
8
+ const region = await getInstanceMetadataRegion();
9
+ if (region) {
10
+ return region;
11
+ }
7
12
  throw new Error("Region is missing");
8
13
  },
9
14
  };
@@ -0,0 +1,92 @@
1
+ import { ENV_IMDS_DISABLED, IMDS_REGION_PATH, IMDS_TOKEN_PATH, X_AWS_EC2_METADATA_TOKEN, X_AWS_EC2_METADATA_TOKEN_TTL, } from "../../defaults-mode/constants";
2
+ const TIMEOUT_MS = 1000;
3
+ const NEG_CACHE_TTL_MS = 60_000;
4
+ let negativeCacheUntil = 0;
5
+ export const getInstanceMetadataRegion = async () => {
6
+ if (process.env[ENV_IMDS_DISABLED]) {
7
+ return undefined;
8
+ }
9
+ if (Date.now() < negativeCacheUntil) {
10
+ return undefined;
11
+ }
12
+ try {
13
+ const endpoint = resolveImdsEndpoint();
14
+ const token = (await imdsRequest({
15
+ ...endpoint,
16
+ path: IMDS_TOKEN_PATH,
17
+ method: "PUT",
18
+ headers: {
19
+ [X_AWS_EC2_METADATA_TOKEN_TTL]: "21600",
20
+ },
21
+ })).toString();
22
+ const region = (await imdsRequest({
23
+ ...endpoint,
24
+ path: IMDS_REGION_PATH,
25
+ method: "GET",
26
+ headers: {
27
+ [X_AWS_EC2_METADATA_TOKEN]: token,
28
+ },
29
+ }))
30
+ .toString()
31
+ .trim();
32
+ return region || cacheNegativeAndReturnUndefined();
33
+ }
34
+ catch {
35
+ return cacheNegativeAndReturnUndefined();
36
+ }
37
+ };
38
+ const cacheNegativeAndReturnUndefined = () => {
39
+ negativeCacheUntil = Date.now() + NEG_CACHE_TTL_MS;
40
+ return undefined;
41
+ };
42
+ const resolveImdsEndpoint = () => {
43
+ const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
44
+ if (envEndpoint) {
45
+ const url = new URL(envEndpoint);
46
+ return {
47
+ hostname: url.hostname.replace(/^\[(.+)]$/, "$1"),
48
+ port: url.port ? Number(url.port) : undefined,
49
+ };
50
+ }
51
+ if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === "IPv6") {
52
+ return { hostname: "fd00:ec2::254" };
53
+ }
54
+ return { hostname: "169.254.169.254" };
55
+ };
56
+ const imdsRequest = async (options) => {
57
+ const { request } = await import("node:http");
58
+ return new Promise((resolve, reject) => {
59
+ const req = request({
60
+ hostname: options.hostname,
61
+ port: options.port,
62
+ path: options.path,
63
+ method: options.method,
64
+ headers: options.headers,
65
+ timeout: TIMEOUT_MS,
66
+ signal: AbortSignal.timeout(TIMEOUT_MS),
67
+ });
68
+ req.on("error", (err) => {
69
+ reject(err);
70
+ req.destroy();
71
+ });
72
+ req.on("timeout", () => {
73
+ reject(new Error("TimeoutError from instance metadata service"));
74
+ req.destroy();
75
+ });
76
+ req.on("response", (res) => {
77
+ const { statusCode = 400 } = res;
78
+ if (statusCode < 200 || statusCode >= 300) {
79
+ reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
80
+ req.destroy();
81
+ return;
82
+ }
83
+ const chunks = [];
84
+ res.on("data", (chunk) => chunks.push(chunk));
85
+ res.on("end", () => {
86
+ resolve(Buffer.concat(chunks));
87
+ req.destroy();
88
+ });
89
+ });
90
+ req.end();
91
+ });
92
+ };
@@ -4,3 +4,6 @@ export const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
4
4
  export const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
5
5
  export const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
6
6
  export const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
7
+ export const IMDS_TOKEN_PATH = "/latest/api/token";
8
+ export const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
9
+ export const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
@@ -1,7 +1,8 @@
1
1
  import { NODE_REGION_CONFIG_OPTIONS } from "../config-resolver/regionConfig/config";
2
+ import { getInstanceMetadataRegion } from "../config-resolver/regionConfig/getInstanceMetadataRegion";
2
3
  import { loadConfig } from "../node-config-provider/configLoader";
3
4
  import { memoize } from "../property-provider/memoize";
4
- import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS, ENV_IMDS_DISABLED, IMDS_REGION_PATH, } from "./constants";
5
+ import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS } from "./constants";
5
6
  import { NODE_DEFAULTS_MODE_CONFIG_OPTIONS } from "./defaultsModeConfig";
6
7
  export const resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => memoize(async () => {
7
8
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
@@ -40,59 +41,5 @@ const inferPhysicalRegion = async () => {
40
41
  if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
41
42
  return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
42
43
  }
43
- if (!process.env[ENV_IMDS_DISABLED]) {
44
- try {
45
- const endpoint = await getImdsEndpoint();
46
- return (await imdsHttpGet({ hostname: endpoint.hostname, path: IMDS_REGION_PATH })).toString();
47
- }
48
- catch (e) {
49
- }
50
- }
51
- };
52
- const getImdsEndpoint = async () => {
53
- const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
54
- if (envEndpoint) {
55
- const url = new URL(envEndpoint);
56
- return { hostname: url.hostname, path: url.pathname };
57
- }
58
- const envMode = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE;
59
- if (envMode === "IPv6") {
60
- return { hostname: "fd00:ec2::254", path: "/" };
61
- }
62
- return { hostname: "169.254.169.254", path: "/" };
63
- };
64
- const imdsHttpGet = async ({ hostname, path }) => {
65
- const { request } = await import("node:http");
66
- return new Promise((resolve, reject) => {
67
- const req = request({
68
- method: "GET",
69
- hostname: hostname.replace(/^\[(.+)]$/, "$1"),
70
- path,
71
- timeout: 1000,
72
- signal: AbortSignal.timeout(1000),
73
- });
74
- req.on("error", (err) => {
75
- reject(err);
76
- req.destroy();
77
- });
78
- req.on("timeout", () => {
79
- reject(new Error("TimeoutError from instance metadata service"));
80
- req.destroy();
81
- });
82
- req.on("response", (res) => {
83
- const { statusCode = 400 } = res;
84
- if (statusCode < 200 || 300 <= statusCode) {
85
- reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
86
- req.destroy();
87
- return;
88
- }
89
- const chunks = [];
90
- res.on("data", (chunk) => chunks.push(chunk));
91
- res.on("end", () => {
92
- resolve(Buffer.concat(chunks));
93
- req.destroy();
94
- });
95
- });
96
- req.end();
97
- });
44
+ return getInstanceMetadataRegion();
98
45
  };
@@ -1,4 +1,4 @@
1
- import { Crc32 } from "@aws-crypto/crc32";
1
+ import { Crc32 } from "@smithy/core/checksum";
2
2
  import { HeaderMarshaller } from "./HeaderMarshaller";
3
3
  import { splitMessage } from "./splitMessage";
4
4
  export class EventStreamCodec {
@@ -49,10 +49,12 @@ export class EventStreamCodec {
49
49
  const checksum = new Crc32();
50
50
  view.setUint32(0, length, false);
51
51
  view.setUint32(4, headers.byteLength, false);
52
- view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
52
+ checksum.update(out.subarray(0, 8));
53
+ view.setUint32(8, checksum.digestSync(), false);
53
54
  out.set(headers, 12);
54
55
  out.set(body, headers.byteLength + 12);
55
- view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
56
+ checksum.update(out.subarray(8, length - 4));
57
+ view.setUint32(length - 4, checksum.digestSync(), false);
56
58
  return out;
57
59
  }
58
60
  decode(message) {
@@ -1,4 +1,4 @@
1
- import { Crc32 } from "@aws-crypto/crc32";
1
+ import { Crc32 } from "@smithy/core/checksum";
2
2
  const PRELUDE_MEMBER_LENGTH = 4;
3
3
  const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
4
4
  const CHECKSUM_LENGTH = 4;
@@ -15,13 +15,14 @@ export function splitMessage({ byteLength, byteOffset, buffer }) {
15
15
  const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
16
16
  const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
17
17
  const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
18
- const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
19
- if (expectedPreludeChecksum !== checksummer.digest()) {
20
- throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
18
+ const checksummer = new Crc32();
19
+ checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
20
+ if (expectedPreludeChecksum !== checksummer.digestSync()) {
21
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
21
22
  }
22
23
  checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
23
- if (expectedMessageChecksum !== checksummer.digest()) {
24
- throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
24
+ if (expectedMessageChecksum !== checksummer.digestSync()) {
25
+ throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
25
26
  }
26
27
  return {
27
28
  headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
@@ -1,61 +1,65 @@
1
- import { Duplex } from "node:stream";
1
+ import { Readable } from "node:stream";
2
2
  import { toBase64 } from "../../util-base64/toBase64";
3
- export class ChecksumStream extends Duplex {
3
+ export class ChecksumStream extends Readable {
4
4
  expectedChecksum;
5
5
  checksumSourceLocation;
6
6
  checksum;
7
7
  source;
8
8
  base64Encoder;
9
- pendingCallback = null;
10
9
  constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
11
10
  super();
12
- if (typeof source.pipe === "function") {
13
- this.source = source;
14
- }
15
- else {
11
+ if (typeof source.pipe !== "function") {
16
12
  throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`);
17
13
  }
14
+ this.source = source;
18
15
  this.base64Encoder = base64Encoder ?? toBase64;
19
16
  this.expectedChecksum = expectedChecksum;
20
17
  this.checksum = checksum;
21
18
  this.checksumSourceLocation = checksumSourceLocation;
22
- this.source.pipe(this);
19
+ this.source.on("data", this.onSourceData);
20
+ this.source.on("end", this.onSourceEnd);
21
+ this.source.on("error", this.onSourceError);
22
+ this.source.pause();
23
23
  }
24
- _read(size) {
25
- if (this.pendingCallback) {
26
- const callback = this.pendingCallback;
27
- this.pendingCallback = null;
28
- callback();
24
+ onSourceData = (chunk) => {
25
+ if (this.destroyed) {
26
+ return;
29
27
  }
30
- }
31
- _write(chunk, encoding, callback) {
32
28
  try {
33
29
  this.checksum.update(chunk);
34
- const canPushMore = this.push(chunk);
35
- if (!canPushMore) {
36
- this.pendingCallback = callback;
37
- return;
38
- }
39
30
  }
40
31
  catch (e) {
41
- return callback(e);
32
+ this.destroy(e);
33
+ return;
34
+ }
35
+ if (!this.push(chunk)) {
36
+ this.source.pause();
37
+ }
38
+ };
39
+ onSourceEnd = async () => {
40
+ if (this.destroyed) {
41
+ return;
42
42
  }
43
- return callback();
44
- }
45
- async _final(callback) {
46
43
  try {
47
44
  const digest = await this.checksum.digest();
48
45
  const received = this.base64Encoder(digest);
49
46
  if (this.expectedChecksum !== received) {
50
- return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
47
+ this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
51
48
  ` in response header "${this.checksumSourceLocation}".`));
49
+ return;
52
50
  }
53
51
  }
54
52
  catch (e) {
55
- return callback(e);
53
+ this.destroy(e);
54
+ return;
56
55
  }
57
56
  this.push(null);
58
- return callback();
57
+ };
58
+ onSourceError = (error) => {
59
+ this.destroy(error);
60
+ };
61
+ _read(size) {
62
+ this.source.resume();
59
63
  }
60
64
  _destroy(error, callback) {
61
65
  this.source?.destroy();
@@ -8,6 +8,11 @@ export declare class Crc32Js implements Checksum {
8
8
  readonly digestLength = 4;
9
9
  private checksum;
10
10
  update(data: Uint8Array): void;
11
+ /**
12
+ * Used by EventStreamCodec.
13
+ * @internal
14
+ */
15
+ digestSync(): number;
11
16
  digest(): Promise<Uint8Array>;
12
17
  reset(): void;
13
18
  }
@@ -6,6 +6,11 @@ import type { Checksum } from "@smithy/types";
6
6
  */
7
7
  export interface Crc32Node extends Checksum {
8
8
  readonly digestLength: 4;
9
+ /**
10
+ * Used by EventStreamCodec.
11
+ * @internal
12
+ */
13
+ digestSync(): number;
9
14
  }
10
15
  /**
11
16
  * @public
@@ -24,3 +24,4 @@ export { map, convertMap, take, type ObjectMappingInstructions, type SourceMappi
24
24
  export { schemaLogFilter } from "./smithy-client/schemaLogFilter";
25
25
  export { serializeFloat, serializeDateTime } from "./smithy-client/ser-utils";
26
26
  export { _json } from "./smithy-client/serde-json";
27
+ export { makeBuilder } from "./smithy-client/client-command-builder";
@@ -0,0 +1,22 @@
1
+ import type { EndpointParameterInstructions, Logger, MetadataBearer, OptionalParameter, Pluggable, RequestHandler, StaticOperationSchema } from "@smithy/types";
2
+ import { type CommandImpl } from "./command";
3
+ /**
4
+ * Higher order factory for Command builders specific to a client.
5
+ * Produces a command factory that creates Command classes with
6
+ * pre-configured endpoint params, middleware, and schema.
7
+ *
8
+ * @param common - common endpoint params.
9
+ * @param service - service shape name.
10
+ * @param name - SDK Client Name.
11
+ * @param ep - endpoint plugin provider.
12
+ *
13
+ * @internal
14
+ */
15
+ export declare function makeBuilder<C extends {
16
+ logger?: Logger;
17
+ requestHandler: RequestHandler<any, any, any>;
18
+ }, SI extends object, SO extends MetadataBearer>(common: EndpointParameterInstructions, service: string, name: string, ep: (config: any, instructions: any) => Pluggable<any, any>): <I extends SI, O extends SO>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[], op: string, $: StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
19
+ new (input: I): CommandImpl<I, O, C, SI, SO>;
20
+ new (...[input]: OptionalParameter<I>): CommandImpl<I, O, C, SI, SO>;
21
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
22
+ };
@@ -1,5 +1,4 @@
1
- import { type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
2
- type EndpointParameterInstructions = Record<string, unknown>;
1
+ import { type EndpointParameterInstructions, type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
3
2
  /**
4
3
  * @public
5
4
  */
@@ -12,7 +11,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
12
11
  * @internal
13
12
  */
14
13
  static classBuilder<I extends SI, O extends SO, C extends {
15
- logger: Logger;
14
+ logger?: Logger;
16
15
  requestHandler: RequestHandler<any, any, any>;
17
16
  }, SI extends object = any, SO extends MetadataBearer = any>(): ClassBuilder<I, O, C, SI, SO>;
18
17
  abstract resolveMiddleware(stack: IMiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedClientConfiguration, options: any): Handler<Input, Output>;
@@ -20,7 +19,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
20
19
  * @internal
21
20
  */
22
21
  resolveMiddlewareWithContext(clientStack: IMiddlewareStack<any, any>, configuration: {
23
- logger: Logger;
22
+ logger?: Logger;
24
23
  requestHandler: RequestHandler<any, any, any>;
25
24
  }, options: any, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }: ResolveMiddlewareContextArgs): import("@smithy/types").InitializeHandler<any, Output>;
26
25
  }
@@ -41,7 +40,7 @@ type ResolveMiddlewareContextArgs = {
41
40
  * @internal
42
41
  */
43
42
  declare class ClassBuilder<I extends SI, O extends SO, C extends {
44
- logger: Logger;
43
+ logger?: Logger;
45
44
  requestHandler: RequestHandler<any, any, any>;
46
45
  }, SI extends object = any, SO extends MetadataBearer = any> {
47
46
  private _init;
@@ -110,7 +109,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
110
109
  * @public
111
110
  */
112
111
  export interface CommandImpl<I extends SI, O extends SO, C extends {
113
- logger: Logger;
112
+ logger?: Logger;
114
113
  requestHandler: RequestHandler<any, any, any>;
115
114
  }, SI extends object = any, SO extends MetadataBearer = any> extends Command<I, O, C, SI, SO> {
116
115
  readonly input: I;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns the region of the host from the EC2 Instance Metadata Service (IMDSv2),
3
+ * or undefined if unavailable.
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const getInstanceMetadataRegion: () => Promise<string | undefined>;
@@ -22,3 +22,15 @@ export declare const DEFAULTS_MODE_OPTIONS: string[];
22
22
  * @internal
23
23
  */
24
24
  export declare const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
25
+ /**
26
+ * @internal
27
+ */
28
+ export declare const IMDS_TOKEN_PATH = "/latest/api/token";
29
+ /**
30
+ * @internal
31
+ */
32
+ export declare const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
33
+ /**
34
+ * @internal
35
+ */
36
+ export declare const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";