@cdklabs/cdk-ssm-documents 0.0.65 → 0.0.66

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 (436) hide show
  1. package/.jsii +11 -11
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.browser.js +2 -6
  117. package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.js +6 -11
  118. package/node_modules/@aws-sdk/checksums/dist-cjs/index.js +56 -56
  119. package/node_modules/@aws-sdk/checksums/package.json +6 -6
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
  129. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
  130. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
  131. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/bdd.js +2 -5
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/endpointResolver.js +7 -11
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +222 -242
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/CloudWatchServiceException.js +4 -8
  137. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/errors.js +35 -55
  138. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.browser.js +25 -29
  139. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.js +33 -37
  140. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.native.js +4 -7
  141. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.shared.js +20 -24
  142. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/schemas/schemas_0.js +419 -275
  143. package/node_modules/@aws-sdk/client-cloudwatch/package.json +9 -9
  144. package/node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  145. package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/bdd.js +2 -5
  146. package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/endpointResolver.js +7 -11
  147. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +2875 -2885
  148. package/node_modules/@aws-sdk/client-ec2/dist-cjs/models/EC2ServiceException.js +4 -8
  149. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.browser.js +22 -26
  150. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js +30 -34
  151. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.native.js +4 -7
  152. package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js +20 -24
  153. package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +6885 -4554
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CancelCapacityReservationCommand.d.ts +16 -10
  155. package/node_modules/@aws-sdk/client-ec2/package.json +11 -11
  156. package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  157. package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/bdd.js +2 -5
  158. package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/endpointResolver.js +7 -11
  159. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +634 -654
  160. package/node_modules/@aws-sdk/client-iam/dist-cjs/models/IAMServiceException.js +4 -8
  161. package/node_modules/@aws-sdk/client-iam/dist-cjs/models/errors.js +71 -109
  162. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.browser.js +22 -26
  163. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +30 -34
  164. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.native.js +4 -7
  165. package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js +20 -24
  166. package/node_modules/@aws-sdk/client-iam/dist-cjs/schemas/schemas_0.js +1006 -665
  167. package/node_modules/@aws-sdk/client-iam/package.json +10 -10
  168. package/node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  169. package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/bdd.js +2 -5
  170. package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js +7 -11
  171. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +368 -386
  172. package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/LambdaServiceException.js +4 -8
  173. package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +229 -145
  174. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.browser.js +24 -28
  175. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js +32 -36
  176. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.native.js +4 -7
  177. package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +20 -24
  178. package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +959 -581
  179. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +2 -0
  180. package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +134 -0
  181. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +100 -31
  182. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +5 -2
  183. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateAliasCommand.d.ts +3 -0
  184. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +28 -28
  185. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +14 -14
  186. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteAliasCommand.d.ts +3 -0
  187. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +16 -16
  188. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +3 -0
  189. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteLayerVersionCommand.d.ts +6 -0
  190. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +16 -16
  191. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +3 -0
  192. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +8 -8
  193. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +8 -8
  194. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionByArnCommand.d.ts +4 -4
  195. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionCommand.d.ts +4 -4
  196. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -1
  197. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +72 -0
  198. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +21 -0
  199. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +6 -0
  200. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +16 -16
  201. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +8 -8
  202. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayerVersionsCommand.d.ts +6 -6
  203. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayersCommand.d.ts +6 -6
  204. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +8 -8
  205. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishLayerVersionCommand.d.ts +8 -8
  206. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +8 -8
  207. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +1 -1
  208. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +3 -0
  209. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +3 -0
  210. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +3 -0
  211. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +3 -0
  212. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +32 -32
  213. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +12 -12
  214. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +9 -9
  215. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +2 -0
  216. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +173 -0
  217. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +158 -158
  218. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
  219. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +2 -0
  220. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +88 -0
  221. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +33 -33
  222. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  223. package/node_modules/@aws-sdk/client-lambda/package.json +12 -12
  224. package/node_modules/@aws-sdk/client-s3/README.md +35 -0
  225. package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
  226. package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/bdd.js +2 -5
  227. package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +7 -11
  228. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +646 -535
  229. package/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +4 -8
  230. package/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +106 -52
  231. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.browser.js +29 -33
  232. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +43 -47
  233. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.native.js +4 -7
  234. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +25 -29
  235. package/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +1256 -740
  236. package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +12 -0
  237. package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectAnnotationCommand.js +23 -0
  238. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAnnotationCommand.js +28 -0
  239. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectAnnotationsCommand.js +23 -0
  240. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAnnotationCommand.js +29 -0
  241. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +27 -0
  242. package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +5 -0
  243. package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +12 -1
  244. package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +76 -4
  245. package/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListObjectAnnotationsPaginator.js +4 -0
  246. package/node_modules/@aws-sdk/client-s3/dist-es/pagination/index.js +1 -0
  247. package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +260 -100
  248. package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +42 -0
  249. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +7 -2
  250. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +1 -0
  251. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +27 -0
  252. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectAnnotationCommand.d.ts +119 -0
  253. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +11 -0
  254. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  255. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAnnotationCommand.d.ts +141 -0
  256. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectAnnotationsCommand.d.ts +138 -0
  257. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  258. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAnnotationCommand.d.ts +166 -0
  259. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RenameObjectCommand.d.ts +1 -1
  260. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +1 -2
  261. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +110 -0
  262. package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +5 -0
  263. package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +29 -2
  264. package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +76 -4
  265. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +925 -549
  266. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +380 -2
  267. package/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListObjectAnnotationsPaginator.d.ts +7 -0
  268. package/node_modules/@aws-sdk/client-s3/dist-types/pagination/index.d.ts +1 -0
  269. package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +24 -0
  270. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +98 -0
  271. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +30 -0
  272. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectAnnotationCommand.d.ts +53 -0
  273. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAnnotationCommand.d.ts +61 -0
  274. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectAnnotationsCommand.d.ts +53 -0
  275. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectAnnotationCommand.d.ts +61 -0
  276. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +1 -1
  277. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +1 -2
  278. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +49 -0
  279. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +5 -0
  280. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +18 -3
  281. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +41 -3
  282. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +138 -64
  283. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +75 -5
  284. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListObjectAnnotationsPaginator.d.ts +11 -0
  285. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/index.d.ts +1 -0
  286. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  287. package/node_modules/@aws-sdk/client-s3/package.json +20 -20
  288. package/node_modules/@aws-sdk/client-sns/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  289. package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/bdd.js +2 -5
  290. package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/endpointResolver.js +7 -11
  291. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +174 -194
  292. package/node_modules/@aws-sdk/client-sns/dist-cjs/models/SNSServiceException.js +4 -8
  293. package/node_modules/@aws-sdk/client-sns/dist-cjs/models/errors.js +69 -106
  294. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.browser.js +22 -26
  295. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.js +30 -34
  296. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.native.js +4 -7
  297. package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.shared.js +20 -24
  298. package/node_modules/@aws-sdk/client-sns/dist-cjs/schemas/schemas_0.js +331 -218
  299. package/node_modules/@aws-sdk/client-sns/package.json +9 -9
  300. package/node_modules/@aws-sdk/client-sqs/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  301. package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/bdd.js +2 -5
  302. package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/endpointResolver.js +7 -11
  303. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +118 -138
  304. package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/SQSServiceException.js +4 -8
  305. package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/errors.js +57 -88
  306. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.browser.js +24 -28
  307. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.js +31 -35
  308. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.native.js +4 -7
  309. package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.shared.js +20 -24
  310. package/node_modules/@aws-sdk/client-sqs/dist-cjs/schemas/schemas_0.js +222 -150
  311. package/node_modules/@aws-sdk/client-sqs/package.json +15 -15
  312. package/node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  313. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/bdd.js +2 -5
  314. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js +7 -11
  315. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +543 -563
  316. package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js +4 -8
  317. package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/errors.js +279 -423
  318. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js +22 -26
  319. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +30 -34
  320. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js +4 -7
  321. package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js +20 -24
  322. package/node_modules/@aws-sdk/client-ssm/dist-cjs/schemas/schemas_0.js +1693 -1109
  323. package/node_modules/@aws-sdk/client-ssm/package.json +9 -9
  324. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
  325. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
  326. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +297 -23
  327. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +327 -52
  328. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +297 -23
  329. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
  330. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
  331. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
  332. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
  333. package/node_modules/@aws-sdk/core/package.json +8 -8
  334. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
  335. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  336. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
  337. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
  338. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
  339. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
  340. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
  341. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
  342. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
  343. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  344. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
  345. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
  346. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
  347. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  348. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
  349. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  350. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
  351. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  352. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
  353. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  354. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
  355. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
  356. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  357. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
  358. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
  359. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
  360. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  361. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +18 -23
  362. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +5 -5
  363. package/node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js +11 -13
  364. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +6 -6
  365. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +1 -518
  366. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.browser.js +31 -33
  367. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +37 -39
  368. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +14 -16
  369. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +1 -1
  370. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +2 -2
  371. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +2 -2
  372. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +9 -11
  373. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-cjs/index.js +9 -11
  374. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
  375. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
  376. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
  377. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
  378. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
  379. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
  380. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
  381. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
  382. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
  383. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  384. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
  385. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  386. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
  387. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  388. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
  389. package/node_modules/@aws-sdk/nested-clients/package.json +9 -8
  390. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
  391. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
  392. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
  393. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  394. package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
  395. package/node_modules/@aws-sdk/types/package.json +4 -4
  396. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
  397. package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
  398. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
  399. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
  400. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
  401. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
  402. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/package.json +5 -4
  403. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  404. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +518 -371
  405. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1 -1
  406. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +10 -2
  407. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
  408. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
  409. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
  410. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
  411. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -2
  412. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
  413. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
  414. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +6 -0
  415. package/node_modules/@smithy/core/package.json +1 -1
  416. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  417. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  418. package/node_modules/@smithy/middleware-compression/package.json +2 -2
  419. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  420. package/node_modules/@smithy/signature-v4/package.json +2 -2
  421. package/node_modules/anynum/package.json +2 -2
  422. package/node_modules/path-expression-matcher/README.md +82 -7
  423. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
  424. package/node_modules/path-expression-matcher/lib/pem.d.cts +83 -2
  425. package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
  426. package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
  427. package/node_modules/path-expression-matcher/package.json +3 -2
  428. package/node_modules/path-expression-matcher/src/ExpressionSet.js +18 -2
  429. package/node_modules/path-expression-matcher/src/Matcher.js +93 -3
  430. package/node_modules/path-expression-matcher/src/index.d.ts +67 -1
  431. package/package.json +10 -10
  432. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
  433. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.browser.js +0 -34
  434. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.browser.js +0 -1
  435. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.browser.d.ts +0 -2
  436. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.browser.d.ts +0 -39
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.55",
3
+ "version": "3.972.57",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=20.0.0"
@@ -10,11 +10,11 @@
10
10
  "scripts": {
11
11
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
12
12
  "build:cjs": "node ../../scripts/compilation/inline",
13
- "build:es": "tsc -p tsconfig.es.json",
13
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
14
14
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
15
- "build:types": "tsc -p tsconfig.types.json",
15
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
16
16
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
17
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
17
+ "clean": "premove dist-cjs dist-es dist-types",
18
18
  "test": "yarn g:vitest run --reporter verbose",
19
19
  "test:watch": "yarn g:vitest watch",
20
20
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "^3.972.46",
35
- "@aws-sdk/credential-provider-http": "^3.972.48",
36
- "@aws-sdk/credential-provider-ini": "^3.972.53",
37
- "@aws-sdk/credential-provider-process": "^3.972.46",
38
- "@aws-sdk/credential-provider-sso": "^3.972.52",
39
- "@aws-sdk/credential-provider-web-identity": "^3.972.52",
40
- "@aws-sdk/types": "^3.973.12",
34
+ "@aws-sdk/credential-provider-env": "^3.972.48",
35
+ "@aws-sdk/credential-provider-http": "^3.972.50",
36
+ "@aws-sdk/credential-provider-ini": "^3.972.55",
37
+ "@aws-sdk/credential-provider-process": "^3.972.48",
38
+ "@aws-sdk/credential-provider-sso": "^3.972.54",
39
+ "@aws-sdk/credential-provider-web-identity": "^3.972.54",
40
+ "@aws-sdk/types": "^3.973.13",
41
41
  "@smithy/core": "^3.24.6",
42
42
  "@smithy/credential-provider-imds": "^4.3.7",
43
43
  "@smithy/types": "^4.14.3",
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
- var config = require('@smithy/core/config');
4
- var node_child_process = require('node:child_process');
5
- var node_util = require('node:util');
6
- var client = require('@aws-sdk/core/client');
1
+ const { externalDataInterceptor, CredentialsProviderError, parseKnownFiles, getProfileName } = require("@smithy/core/config");
2
+ const { exec } = require("node:child_process");
3
+ const { promisify } = require("node:util");
4
+ const { setCredentialFeature } = require("@aws-sdk/core/client");
7
5
 
8
6
  const getValidatedProcessCredentials = (profileName, data, profiles) => {
9
7
  if (data.Version !== 1) {
@@ -31,7 +29,7 @@ const getValidatedProcessCredentials = (profileName, data, profiles) => {
31
29
  ...(data.CredentialScope && { credentialScope: data.CredentialScope }),
32
30
  ...(accountId && { accountId }),
33
31
  };
34
- client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
32
+ setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
35
33
  return credentials;
36
34
  };
37
35
 
@@ -40,7 +38,7 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
40
38
  if (profiles[profileName]) {
41
39
  const credentialProcess = profile["credential_process"];
42
40
  if (credentialProcess !== undefined) {
43
- const execPromise = node_util.promisify(config.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
41
+ const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec);
44
42
  try {
45
43
  const { stdout } = await execPromise(credentialProcess);
46
44
  let data;
@@ -53,15 +51,15 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
53
51
  return getValidatedProcessCredentials(profileName, data, profiles);
54
52
  }
55
53
  catch (error) {
56
- throw new config.CredentialsProviderError(error.message, { logger });
54
+ throw new CredentialsProviderError(error.message, { logger });
57
55
  }
58
56
  }
59
57
  else {
60
- throw new config.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
58
+ throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
61
59
  }
62
60
  }
63
61
  else {
64
- throw new config.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
62
+ throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
65
63
  logger,
66
64
  });
67
65
  }
@@ -69,8 +67,8 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
69
67
 
70
68
  const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
71
69
  init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
72
- const profiles = await config.parseKnownFiles(init);
73
- return resolveProcessCredentials(config.getProfileName({
70
+ const profiles = await parseKnownFiles(init);
71
+ return resolveProcessCredentials(getProfileName({
74
72
  profile: init.profile ?? callerClientConfig?.profile,
75
73
  }), profiles, init.logger);
76
74
  };
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.46",
3
+ "version": "3.972.48",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
9
  "build:cjs": "node ../../scripts/compilation/inline",
10
- "build:es": "tsc -p tsconfig.es.json",
10
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
- "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.20",
30
- "@aws-sdk/types": "^3.973.12",
29
+ "@aws-sdk/core": "^3.974.22",
30
+ "@aws-sdk/types": "^3.973.13",
31
31
  "@smithy/core": "^3.24.6",
32
32
  "@smithy/types": "^4.14.3",
33
33
  "tslib": "^2.6.2"
@@ -1,8 +1,6 @@
1
- 'use strict';
2
-
3
- var config = require('@smithy/core/config');
4
- var client = require('@aws-sdk/core/client');
5
- var tokenProviders = require('@aws-sdk/token-providers');
1
+ const { CredentialsProviderError, getSSOTokenFromFile, getProfileName, parseKnownFiles, loadSsoSessionData } = require("@smithy/core/config");
2
+ const { setCredentialFeature } = require("@aws-sdk/core/client");
3
+ const { fromSso } = require("@aws-sdk/token-providers");
6
4
 
7
5
  const isSsoProfile = (arg) => arg &&
8
6
  (typeof arg.sso_start_url === "string" ||
@@ -17,7 +15,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
17
15
  const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
18
16
  if (ssoSession) {
19
17
  try {
20
- const _token = await tokenProviders.fromSso({
18
+ const _token = await fromSso({
21
19
  profile,
22
20
  filepath,
23
21
  configFilepath,
@@ -32,7 +30,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
32
30
  };
33
31
  }
34
32
  catch (e) {
35
- throw new config.CredentialsProviderError(e.message, {
33
+ throw new CredentialsProviderError(e.message, {
36
34
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
37
35
  logger,
38
36
  });
@@ -40,23 +38,23 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
40
38
  }
41
39
  else {
42
40
  try {
43
- token = await config.getSSOTokenFromFile(ssoStartUrl);
41
+ token = await getSSOTokenFromFile(ssoStartUrl);
44
42
  }
45
43
  catch (e) {
46
- throw new config.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
44
+ throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
47
45
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
48
46
  logger,
49
47
  });
50
48
  }
51
49
  }
52
50
  if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
53
- throw new config.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
51
+ throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
54
52
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
55
53
  logger,
56
54
  });
57
55
  }
58
56
  const { accessToken } = token;
59
- const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return require('./loadSso-BKDNrsal.js'); });
57
+ const { SSOClient, GetRoleCredentialsCommand } = require('./loadSso-BGYXHf8s.js');
60
58
  const sso = ssoClient ||
61
59
  new SSOClient(Object.assign({}, clientConfig ?? {}, {
62
60
  logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
@@ -72,14 +70,14 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
72
70
  }));
73
71
  }
74
72
  catch (e) {
75
- throw new config.CredentialsProviderError(e, {
73
+ throw new CredentialsProviderError(e, {
76
74
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
77
75
  logger,
78
76
  });
79
77
  }
80
78
  const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;
81
79
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
82
- throw new config.CredentialsProviderError("SSO returns an invalid temporary credential.", {
80
+ throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
83
81
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
84
82
  logger,
85
83
  });
@@ -93,10 +91,10 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
93
91
  ...(accountId && { accountId }),
94
92
  };
95
93
  if (ssoSession) {
96
- client.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
94
+ setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
97
95
  }
98
96
  else {
99
- client.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
97
+ setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
100
98
  }
101
99
  return credentials;
102
100
  };
@@ -104,7 +102,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
104
102
  const validateSsoProfile = (profile, logger) => {
105
103
  const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
106
104
  if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
107
- throw new config.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` +
105
+ throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` +
108
106
  `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
109
107
  }
110
108
  return profile;
@@ -114,32 +112,32 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
114
112
  init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
115
113
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
116
114
  const { ssoClient } = init;
117
- const profileName = config.getProfileName({
115
+ const profileName = getProfileName({
118
116
  profile: init.profile ?? callerClientConfig?.profile,
119
117
  });
120
118
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
121
- const profiles = await config.parseKnownFiles(init);
119
+ const profiles = await parseKnownFiles(init);
122
120
  const profile = profiles[profileName];
123
121
  if (!profile) {
124
- throw new config.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
122
+ throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
125
123
  }
126
124
  if (!isSsoProfile(profile)) {
127
- throw new config.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
125
+ throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
128
126
  logger: init.logger,
129
127
  });
130
128
  }
131
129
  if (profile?.sso_session) {
132
- const ssoSessions = await config.loadSsoSessionData(init);
130
+ const ssoSessions = await loadSsoSessionData(init);
133
131
  const session = ssoSessions[profile.sso_session];
134
132
  const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
135
133
  if (ssoRegion && ssoRegion !== session.sso_region) {
136
- throw new config.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
134
+ throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
137
135
  tryNextLink: false,
138
136
  logger: init.logger,
139
137
  });
140
138
  }
141
139
  if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
142
- throw new config.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
140
+ throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
143
141
  tryNextLink: false,
144
142
  logger: init.logger,
145
143
  });
@@ -166,7 +164,7 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
166
164
  });
167
165
  }
168
166
  else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
169
- throw new config.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " +
167
+ throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " +
170
168
  '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
171
169
  }
172
170
  else {
@@ -0,0 +1,3 @@
1
+ const { GetRoleCredentialsCommand, SSOClient } = require("@aws-sdk/nested-clients/sso");
2
+ exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
3
+ exports.SSOClient = SSOClient;
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.972.52",
3
+ "version": "3.972.54",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
9
  "build:cjs": "node ../../scripts/compilation/inline",
10
- "build:es": "tsc -p tsconfig.es.json",
10
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
- "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch",
17
17
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "^3.974.20",
32
- "@aws-sdk/nested-clients": "^3.997.20",
33
- "@aws-sdk/token-providers": "3.1066.0",
34
- "@aws-sdk/types": "^3.973.12",
31
+ "@aws-sdk/core": "^3.974.22",
32
+ "@aws-sdk/nested-clients": "^3.997.22",
33
+ "@aws-sdk/token-providers": "3.1071.0",
34
+ "@aws-sdk/types": "^3.973.13",
35
35
  "@smithy/core": "^3.24.6",
36
36
  "@smithy/types": "^4.14.3",
37
37
  "tslib": "^2.6.2"
@@ -1,33 +1,29 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fromTokenFile = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const config_1 = require("@smithy/core/config");
6
- const node_fs_1 = require("node:fs");
7
- const fromWebToken_1 = require("./fromWebToken");
1
+ const { setCredentialFeature } = require("@aws-sdk/core/client");
2
+ const { CredentialsProviderError, externalDataInterceptor } = require("@smithy/core/config");
3
+ const { readFileSync } = require("node:fs");
4
+ const { fromWebToken } = require("./fromWebToken");
8
5
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
9
6
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
10
7
  const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
11
- const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
8
+ exports.fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
12
9
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
13
10
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
14
11
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
15
12
  const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
16
13
  if (!webIdentityTokenFile || !roleArn) {
17
- throw new config_1.CredentialsProviderError("Web identity configuration not specified", {
14
+ throw new CredentialsProviderError("Web identity configuration not specified", {
18
15
  logger: init.logger,
19
16
  });
20
17
  }
21
- const credentials = await (0, fromWebToken_1.fromWebToken)({
18
+ const credentials = await fromWebToken({
22
19
  ...init,
23
- webIdentityToken: config_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
24
- (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
20
+ webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
21
+ readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
25
22
  roleArn,
26
23
  roleSessionName,
27
24
  })(awsIdentityProperties);
28
25
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
29
- (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
26
+ setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
30
27
  }
31
28
  return credentials;
32
29
  };
33
- exports.fromTokenFile = fromTokenFile;
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fromWebToken = void 0;
4
- const fromWebToken = (init) => async (awsIdentityProperties) => {
1
+ exports.fromWebToken = (init) => async (awsIdentityProperties) => {
5
2
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
6
3
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
7
4
  let { roleAssumerWithWebIdentity } = init;
8
5
  if (!roleAssumerWithWebIdentity) {
9
- const { getDefaultRoleAssumerWithWebIdentity } = await import("@aws-sdk/nested-clients/sts");
6
+ const { getDefaultRoleAssumerWithWebIdentity } = require("@aws-sdk/nested-clients/sts");
10
7
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
11
8
  ...init.clientConfig,
12
9
  credentialProviderLogger: init.logger,
@@ -26,4 +23,3 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
26
23
  DurationSeconds: durationSeconds,
27
24
  });
28
25
  };
29
- exports.fromWebToken = fromWebToken;
@@ -1,27 +1,3 @@
1
- 'use strict';
2
-
3
- var fromTokenFile = require('./fromTokenFile');
4
- var fromWebToken = require('./fromWebToken');
5
-
6
-
7
-
8
- Object.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&
9
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
10
- Object.defineProperty(exports, '__proto__', {
11
- enumerable: true,
12
- value: fromTokenFile['__proto__']
13
- });
14
-
15
- Object.keys(fromTokenFile).forEach(function (k) {
16
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];
17
- });
18
- Object.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&
19
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
20
- Object.defineProperty(exports, '__proto__', {
21
- enumerable: true,
22
- value: fromWebToken['__proto__']
23
- });
24
-
25
- Object.keys(fromWebToken).forEach(function (k) {
26
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];
27
- });
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ __exportStar(require("./fromTokenFile"), exports);
3
+ __exportStar(require("./fromWebToken"), exports);
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.52",
3
+ "version": "3.972.54",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
9
  "build:cjs": "node ../../scripts/compilation/inline",
10
- "build:es": "tsc -p tsconfig.es.json",
10
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
- "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "^3.974.20",
38
- "@aws-sdk/nested-clients": "^3.997.20",
39
- "@aws-sdk/types": "^3.973.12",
37
+ "@aws-sdk/core": "^3.974.22",
38
+ "@aws-sdk/nested-clients": "^3.997.22",
39
+ "@aws-sdk/types": "^3.973.13",
40
40
  "@smithy/core": "^3.24.6",
41
41
  "@smithy/types": "^4.14.3",
42
42
  "tslib": "^2.6.2"
@@ -1,23 +1,18 @@
1
- 'use strict';
2
-
3
- var checksums = require('@aws-sdk/checksums');
4
-
5
-
6
-
7
- exports.CONFIG_REQUEST_CHECKSUM_CALCULATION = checksums.CONFIG_REQUEST_CHECKSUM_CALCULATION;
8
- exports.CONFIG_RESPONSE_CHECKSUM_VALIDATION = checksums.CONFIG_RESPONSE_CHECKSUM_VALIDATION;
9
- exports.ChecksumAlgorithm = checksums.ChecksumAlgorithm;
10
- exports.ChecksumLocation = checksums.ChecksumLocation;
11
- exports.DEFAULT_CHECKSUM_ALGORITHM = checksums.DEFAULT_CHECKSUM_ALGORITHM;
12
- exports.DEFAULT_REQUEST_CHECKSUM_CALCULATION = checksums.DEFAULT_REQUEST_CHECKSUM_CALCULATION;
13
- exports.DEFAULT_RESPONSE_CHECKSUM_VALIDATION = checksums.DEFAULT_RESPONSE_CHECKSUM_VALIDATION;
14
- exports.ENV_REQUEST_CHECKSUM_CALCULATION = checksums.ENV_REQUEST_CHECKSUM_CALCULATION;
15
- exports.ENV_RESPONSE_CHECKSUM_VALIDATION = checksums.ENV_RESPONSE_CHECKSUM_VALIDATION;
16
- exports.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = checksums.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS;
17
- exports.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = checksums.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS;
18
- exports.RequestChecksumCalculation = checksums.RequestChecksumCalculation;
19
- exports.ResponseChecksumValidation = checksums.ResponseChecksumValidation;
20
- exports.flexibleChecksumsMiddleware = checksums.flexibleChecksumsMiddleware;
21
- exports.flexibleChecksumsMiddlewareOptions = checksums.flexibleChecksumsMiddlewareOptions;
22
- exports.getFlexibleChecksumsPlugin = checksums.getFlexibleChecksumsPlugin;
23
- exports.resolveFlexibleChecksumsConfig = checksums.resolveFlexibleChecksumsConfig;
1
+ const { CONFIG_REQUEST_CHECKSUM_CALCULATION, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ChecksumAlgorithm, ChecksumLocation, DEFAULT_CHECKSUM_ALGORITHM, DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION, ENV_REQUEST_CHECKSUM_CALCULATION, ENV_RESPONSE_CHECKSUM_VALIDATION, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, RequestChecksumCalculation, ResponseChecksumValidation, flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions, getFlexibleChecksumsPlugin, resolveFlexibleChecksumsConfig } = require("@aws-sdk/checksums");
2
+ exports.CONFIG_REQUEST_CHECKSUM_CALCULATION = CONFIG_REQUEST_CHECKSUM_CALCULATION;
3
+ exports.CONFIG_RESPONSE_CHECKSUM_VALIDATION = CONFIG_RESPONSE_CHECKSUM_VALIDATION;
4
+ exports.ChecksumAlgorithm = ChecksumAlgorithm;
5
+ exports.ChecksumLocation = ChecksumLocation;
6
+ exports.DEFAULT_CHECKSUM_ALGORITHM = DEFAULT_CHECKSUM_ALGORITHM;
7
+ exports.DEFAULT_REQUEST_CHECKSUM_CALCULATION = DEFAULT_REQUEST_CHECKSUM_CALCULATION;
8
+ exports.DEFAULT_RESPONSE_CHECKSUM_VALIDATION = DEFAULT_RESPONSE_CHECKSUM_VALIDATION;
9
+ exports.ENV_REQUEST_CHECKSUM_CALCULATION = ENV_REQUEST_CHECKSUM_CALCULATION;
10
+ exports.ENV_RESPONSE_CHECKSUM_VALIDATION = ENV_RESPONSE_CHECKSUM_VALIDATION;
11
+ exports.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS;
12
+ exports.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS;
13
+ exports.RequestChecksumCalculation = RequestChecksumCalculation;
14
+ exports.ResponseChecksumValidation = ResponseChecksumValidation;
15
+ exports.flexibleChecksumsMiddleware = flexibleChecksumsMiddleware;
16
+ exports.flexibleChecksumsMiddlewareOptions = flexibleChecksumsMiddlewareOptions;
17
+ exports.getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
18
+ exports.resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.974.30",
3
+ "version": "3.974.32",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
10
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo"
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
+ "clean": "premove dist-cjs dist-es dist-types"
11
11
  },
12
12
  "main": "./dist-cjs/index.js",
13
13
  "module": "./dist-es/index.js",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/checksums": "^3.1000.5",
22
+ "@aws-sdk/checksums": "^3.1000.7",
23
23
  "tslib": "^2.6.2"
24
24
  },
25
25
  "devDependencies": {
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
- var util = require('@aws-sdk/core/util');
4
- var endpoints = require('@smithy/core/endpoints');
5
- var protocols = require('@smithy/core/protocols');
6
- var signatureV4 = require('@smithy/signature-v4');
1
+ const { formatUrl } = require("@aws-sdk/core/util");
2
+ const { getEndpointFromInstructions, toEndpointV1 } = require("@smithy/core/endpoints");
3
+ const { HttpRequest, extendedEncodeURIComponent } = require("@smithy/core/protocols");
4
+ const { SignatureV4 } = require("@smithy/signature-v4");
7
5
 
8
6
  const version = "2016-11-15";
9
7
  function copySnapshotPresignedUrlMiddleware(options) {
@@ -11,7 +9,7 @@ function copySnapshotPresignedUrlMiddleware(options) {
11
9
  const { input } = args;
12
10
  if (!input.PresignedUrl) {
13
11
  const destinationRegion = await options.region();
14
- const endpoint = await endpoints.getEndpointFromInstructions(input, {
12
+ const endpoint = await getEndpointFromInstructions(input, {
15
13
  getEndpointParameterInstructions() {
16
14
  return {
17
15
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -24,8 +22,8 @@ function copySnapshotPresignedUrlMiddleware(options) {
24
22
  ...options,
25
23
  region: input.SourceRegion,
26
24
  });
27
- const resolvedEndpoint = typeof options.endpoint === "function" ? await options.endpoint() : endpoints.toEndpointV1(endpoint);
28
- const requestToSign = new protocols.HttpRequest({
25
+ const resolvedEndpoint = typeof options.endpoint === "function" ? await options.endpoint() : toEndpointV1(endpoint);
26
+ const requestToSign = new HttpRequest({
29
27
  ...resolvedEndpoint,
30
28
  protocol: "https",
31
29
  headers: {
@@ -41,7 +39,7 @@ function copySnapshotPresignedUrlMiddleware(options) {
41
39
  DestinationRegion: destinationRegion,
42
40
  },
43
41
  });
44
- const signer = new signatureV4.SignatureV4({
42
+ const signer = new SignatureV4({
45
43
  credentials: options.credentials,
46
44
  region: input.SourceRegion,
47
45
  service: "ec2",
@@ -56,16 +54,16 @@ function copySnapshotPresignedUrlMiddleware(options) {
56
54
  input: {
57
55
  ...args.input,
58
56
  DestinationRegion: destinationRegion,
59
- PresignedUrl: util.formatUrl(presignedRequest),
57
+ PresignedUrl: formatUrl(presignedRequest),
60
58
  },
61
59
  };
62
- if (protocols.HttpRequest.isInstance(args.request)) {
60
+ if (HttpRequest.isInstance(args.request)) {
63
61
  const { request } = args;
64
62
  if (!(request.body ?? "").includes("DestinationRegion=")) {
65
63
  request.body += `&DestinationRegion=${destinationRegion}`;
66
64
  }
67
65
  if (!(request.body ?? "").includes("PresignedUrl=")) {
68
- request.body += `&PresignedUrl=${protocols.extendedEncodeURIComponent(args.input.PresignedUrl)}`;
66
+ request.body += `&PresignedUrl=${extendedEncodeURIComponent(args.input.PresignedUrl)}`;
69
67
  }
70
68
  }
71
69
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-ec2",
3
- "version": "3.972.34",
3
+ "version": "3.972.36",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "yarn g:vitest run",
13
13
  "test:watch": "yarn g:vitest watch",
14
14
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.20",
30
- "@aws-sdk/types": "^3.973.12",
29
+ "@aws-sdk/core": "^3.974.22",
30
+ "@aws-sdk/types": "^3.973.13",
31
31
  "@smithy/core": "^3.24.6",
32
32
  "@smithy/signature-v4": "^5.4.6",
33
33
  "@smithy/types": "^4.14.3",