@jjrawlins/cdk-ami-builder 0.0.159 → 0.0.161

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 (251) hide show
  1. package/.jsii +12 -12
  2. package/cdkamibuilder/go.mod +2 -2
  3. package/cdkamibuilder/jsii/jsii.go +2 -2
  4. package/cdkamibuilder/version +1 -1
  5. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  6. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  7. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  8. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +27 -0
  9. package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +11 -8
  10. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +27 -0
  11. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +11 -8
  12. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  13. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  14. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  15. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  16. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityBlockExtensionHistoryCommand.d.ts +1 -0
  17. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityBlockExtensionOfferingsCommand.d.ts +1 -0
  18. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityBlockOfferingsCommand.d.ts +2 -0
  19. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  20. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  21. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  24. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  26. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  27. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  28. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  29. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  30. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  31. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  32. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  33. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  36. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  37. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockExtensionCommand.d.ts +1 -0
  38. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  39. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotInstancesCommand.d.ts +2 -2
  40. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  41. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +27 -0
  42. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +24 -0
  43. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +27 -0
  44. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +4 -0
  45. package/node_modules/@aws-sdk/client-ec2/package.json +35 -35
  46. package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +7 -0
  47. package/node_modules/@aws-sdk/client-ecs/dist-cjs/schemas/schemas_0.js +23 -14
  48. package/node_modules/@aws-sdk/client-ecs/dist-es/models/enums.js +6 -0
  49. package/node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js +15 -6
  50. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateCapacityProviderCommand.d.ts +10 -2
  51. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteCapacityProviderCommand.d.ts +5 -1
  52. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +5 -1
  53. package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateCapacityProviderCommand.d.ts +9 -1
  54. package/node_modules/@aws-sdk/client-ecs/dist-types/models/enums.d.ts +14 -0
  55. package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +28 -2
  56. package/node_modules/@aws-sdk/client-ecs/dist-types/schemas/schemas_0.d.ts +1 -0
  57. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/enums.d.ts +8 -0
  58. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +7 -0
  59. package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  60. package/node_modules/@aws-sdk/client-ecs/package.json +34 -34
  61. package/node_modules/@aws-sdk/client-kms/package.json +33 -33
  62. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +9 -0
  63. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +10 -1
  64. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +9 -0
  65. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -0
  66. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +13 -1
  67. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -0
  68. package/node_modules/@aws-sdk/client-s3/package.json +49 -49
  69. package/node_modules/@aws-sdk/client-secrets-manager/package.json +33 -33
  70. package/node_modules/@aws-sdk/client-sfn/package.json +33 -33
  71. package/node_modules/@aws-sdk/client-sns/package.json +33 -33
  72. package/node_modules/@aws-sdk/client-sqs/package.json +35 -35
  73. package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
  74. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
  75. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
  76. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  77. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
  78. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  79. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
  80. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  81. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  82. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
  83. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  84. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  85. package/node_modules/@aws-sdk/core/package.json +11 -11
  86. package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
  87. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
  88. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  89. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  90. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  91. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
  92. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
  93. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
  94. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
  95. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  96. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
  97. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  98. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
  99. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
  100. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  101. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
  102. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
  103. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  104. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  105. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  106. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  107. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
  108. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
  109. package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
  110. package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
  111. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  112. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
  113. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
  114. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
  115. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
  116. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
  117. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  118. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
  119. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
  120. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
  121. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  122. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/NodeDisableMultiregionAccessPointConfigOptions.d.ts +1 -1
  123. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/NodeUseArnRegionConfigOptions.d.ts +1 -1
  124. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketEndpointMiddleware.d.ts +2 -2
  125. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketHostname.d.ts +1 -1
  126. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketHostnameUtils.d.ts +1 -1
  127. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/configurations.d.ts +1 -1
  128. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
  129. package/node_modules/@aws-sdk/middleware-expect-continue/dist-types/index.d.ts +1 -1
  130. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  131. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js +1 -1
  132. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +30 -27
  133. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/getChecksumAlgorithmForRequest.js +0 -5
  134. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/getCrc32ChecksumAlgorithmFunction.js +1 -1
  135. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/getFlexibleChecksumsPlugin.js +1 -1
  136. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/resolveFlexibleChecksumsConfig.js +2 -1
  137. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/selectChecksumAlgorithmFunction.js +15 -8
  138. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.d.ts +1 -1
  139. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.d.ts +1 -1
  140. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/configuration.d.ts +4 -2
  141. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsInputMiddleware.d.ts +2 -2
  142. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsMiddleware.d.ts +2 -2
  143. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/flexibleChecksumsResponseMiddleware.d.ts +2 -2
  144. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getChecksum.d.ts +1 -1
  145. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getChecksumAlgorithmForRequest.d.ts +3 -2
  146. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getChecksumAlgorithmListForResponse.d.ts +1 -1
  147. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getChecksumLocationName.d.ts +1 -1
  148. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getCrc32ChecksumAlgorithmFunction.d.ts +1 -1
  149. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getFlexibleChecksumsPlugin.d.ts +5 -5
  150. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/hasHeader.d.ts +1 -1
  151. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/hasHeaderWithPrefix.d.ts +1 -1
  152. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/resolveFlexibleChecksumsConfig.d.ts +16 -2
  153. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/selectChecksumAlgorithmFunction.d.ts +3 -3
  154. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/stringHasher.d.ts +1 -1
  155. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/configuration.d.ts +2 -0
  156. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/getChecksumAlgorithmForRequest.d.ts +3 -2
  157. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/getChecksumLocationName.d.ts +1 -1
  158. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/resolveFlexibleChecksumsConfig.d.ts +11 -1
  159. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/selectChecksumAlgorithmFunction.d.ts +1 -1
  160. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/validateChecksumFromResponse.d.ts +3 -3
  161. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
  162. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
  163. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  164. package/node_modules/@aws-sdk/middleware-location-constraint/dist-types/configuration.d.ts +1 -1
  165. package/node_modules/@aws-sdk/middleware-location-constraint/dist-types/index.d.ts +2 -2
  166. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  167. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  168. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
  169. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
  170. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
  171. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
  172. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
  173. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  174. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
  175. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +0 -1
  176. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +0 -1
  177. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/bucket-endpoint-middleware.d.ts +1 -1
  178. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/check-content-length-header.d.ts +1 -1
  179. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-endpoint-middleware.d.ts +2 -2
  180. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-middleware.d.ts +1 -1
  181. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-expires-middleware.d.ts +1 -1
  182. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCache.d.ts +1 -1
  183. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +1 -1
  184. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -3
  185. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/SignatureV4S3Express.d.ts +2 -2
  186. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +2 -2
  187. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressMiddleware.d.ts +4 -4
  188. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/signS3Express.d.ts +1 -1
  189. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentity.d.ts +1 -1
  190. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +2 -2
  191. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3Configuration.d.ts +1 -1
  192. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/throw-200-exceptions.d.ts +1 -1
  193. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/validate-bucket-name.d.ts +2 -2
  194. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
  195. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-types/configurations.d.ts +1 -1
  196. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-types/queue-url.d.ts +1 -1
  197. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-types/receive-message.d.ts +2 -2
  198. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-types/send-message-batch.d.ts +2 -2
  199. package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-types/send-message.d.ts +2 -2
  200. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
  201. package/node_modules/@aws-sdk/middleware-ssec/dist-types/index.d.ts +1 -1
  202. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  203. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
  204. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  205. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  206. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  207. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  208. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
  209. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
  210. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  211. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
  212. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
  213. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
  214. package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
  215. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
  216. package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
  217. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  218. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
  219. package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
  220. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
  221. package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
  222. package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
  223. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
  224. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
  225. package/node_modules/@aws-sdk/types/package.json +2 -2
  226. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  227. package/node_modules/@aws-sdk/util-format-url/dist-types/index.d.ts +1 -1
  228. package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
  229. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
  230. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
  231. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  232. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +51 -8
  233. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +7 -2
  234. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +1 -1
  235. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +14 -0
  236. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +24 -0
  237. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +9 -0
  238. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
  239. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
  240. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
  241. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +1 -0
  242. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
  243. package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -6
  244. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
  245. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
  246. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  247. package/node_modules/@types/aws-lambda/README.md +1 -1
  248. package/node_modules/@types/aws-lambda/package.json +2 -2
  249. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.ts +40 -0
  250. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +3 -1
  251. package/package.json +15 -15
@@ -2,8 +2,8 @@
2
2
 
3
3
  var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
4
4
  var propertyProvider = require('@smithy/property-provider');
5
- var child_process = require('child_process');
6
- var util = require('util');
5
+ var node_child_process = require('node:child_process');
6
+ var node_util = require('node:util');
7
7
  var client = require('@aws-sdk/core/client');
8
8
 
9
9
  const getValidatedProcessCredentials = (profileName, data, profiles) => {
@@ -41,7 +41,7 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
41
41
  if (profiles[profileName]) {
42
42
  const credentialProcess = profile["credential_process"];
43
43
  if (credentialProcess !== undefined) {
44
- const execPromise = util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? child_process.exec);
44
+ const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
45
45
  try {
46
46
  const { stdout } = await execPromise(credentialProcess);
47
47
  let data;
@@ -1,7 +1,7 @@
1
1
  import { CredentialsProviderError } from "@smithy/property-provider";
2
2
  import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
3
- import { exec } from "child_process";
4
- import { promisify } from "util";
3
+ import { exec } from "node:child_process";
4
+ import { promisify } from "node:util";
5
5
  import { getValidatedProcessCredentials } from "./getValidatedProcessCredentials";
6
6
  export const resolveProcessCredentials = async (profileName, profiles, logger) => {
7
7
  const profile = profiles[profileName];
@@ -1,5 +1,5 @@
1
1
  import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
- import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
+ import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
- import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
2
- import { ProcessCredentials } from "./ProcessCredentials";
1
+ import type { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
2
+ import type { ProcessCredentials } from "./ProcessCredentials";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity, Logger, ParsedIniData } from "@smithy/types";
1
+ import type { AwsCredentialIdentity, Logger, ParsedIniData } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.11",
3
+ "version": "3.972.13",
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",
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.973.13",
30
- "@aws-sdk/types": "^3.973.2",
31
- "@smithy/property-provider": "^4.2.9",
32
- "@smithy/shared-ini-file-loader": "^4.4.4",
33
- "@smithy/types": "^4.12.1",
29
+ "@aws-sdk/core": "^3.973.15",
30
+ "@aws-sdk/types": "^3.973.4",
31
+ "@smithy/property-provider": "^4.2.10",
32
+ "@smithy/shared-ini-file-loader": "^4.4.5",
33
+ "@smithy/types": "^4.13.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,5 +1,5 @@
1
1
  import type { AwsIdentityProperties, CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
- import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
+ import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
3
  import type { SSOClient, SSOClientConfig } from "./loadSso";
4
4
  /**
5
5
  * @internal
@@ -1,5 +1,5 @@
1
- import { Profile } from "@smithy/types";
2
- import { SsoProfile } from "./types";
1
+ import type { Profile } from "@smithy/types";
2
+ import type { SsoProfile } from "./types";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
- import { AwsCredentialIdentity } from "@smithy/types";
2
- import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
1
+ import type { AwsCredentialIdentity } from "@smithy/types";
2
+ import type { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,4 +1,4 @@
1
- import { Profile } from "@smithy/types";
1
+ import type { Profile } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,5 +1,5 @@
1
- import { Logger } from "@smithy/types";
2
- import { SsoProfile } from "./types";
1
+ import type { Logger } from "@smithy/types";
2
+ import type { SsoProfile } from "./types";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.972.11",
3
+ "version": "3.972.13",
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",
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.973.13",
30
- "@aws-sdk/nested-clients": "^3.996.1",
31
- "@aws-sdk/token-providers": "3.997.0",
32
- "@aws-sdk/types": "^3.973.2",
33
- "@smithy/property-provider": "^4.2.9",
34
- "@smithy/shared-ini-file-loader": "^4.4.4",
35
- "@smithy/types": "^4.12.1",
29
+ "@aws-sdk/core": "^3.973.15",
30
+ "@aws-sdk/nested-clients": "^3.996.3",
31
+ "@aws-sdk/token-providers": "3.999.0",
32
+ "@aws-sdk/types": "^3.973.4",
33
+ "@smithy/property-provider": "^4.2.10",
34
+ "@smithy/shared-ini-file-loader": "^4.4.5",
35
+ "@smithy/types": "^4.13.0",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -4,7 +4,7 @@ exports.fromTokenFile = void 0;
4
4
  const client_1 = require("@aws-sdk/core/client");
5
5
  const property_provider_1 = require("@smithy/property-provider");
6
6
  const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
7
- const fs_1 = require("fs");
7
+ const node_fs_1 = require("node:fs");
8
8
  const fromWebToken_1 = require("./fromWebToken");
9
9
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
10
10
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
@@ -22,7 +22,7 @@ const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
22
22
  const credentials = await (0, fromWebToken_1.fromWebToken)({
23
23
  ...init,
24
24
  webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
25
- (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
25
+ (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
26
26
  roleArn,
27
27
  roleSessionName,
28
28
  })(awsIdentityProperties);
@@ -1,7 +1,7 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { CredentialsProviderError } from "@smithy/property-provider";
3
3
  import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
4
- import { readFileSync } from "fs";
4
+ import { readFileSync } from "node:fs";
5
5
  import { fromWebToken } from "./fromWebToken";
6
6
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
7
7
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
@@ -1,5 +1,5 @@
1
1
  import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
- import { FromWebTokenInit } from "./fromWebToken";
2
+ import type { FromWebTokenInit } from "./fromWebToken";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.11",
3
+ "version": "3.972.13",
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",
@@ -34,12 +34,12 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "^3.973.13",
38
- "@aws-sdk/nested-clients": "^3.996.1",
39
- "@aws-sdk/types": "^3.973.2",
40
- "@smithy/property-provider": "^4.2.9",
41
- "@smithy/shared-ini-file-loader": "^4.4.4",
42
- "@smithy/types": "^4.12.1",
37
+ "@aws-sdk/core": "^3.973.15",
38
+ "@aws-sdk/nested-clients": "^3.996.3",
39
+ "@aws-sdk/types": "^3.973.4",
40
+ "@smithy/property-provider": "^4.2.10",
41
+ "@smithy/shared-ini-file-loader": "^4.4.5",
42
+ "@smithy/types": "^4.13.0",
43
43
  "tslib": "^2.6.2"
44
44
  },
45
45
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
3
3
  export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
4
4
  export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  export declare const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
3
3
  export declare const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { BuildMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
2
- import { BucketEndpointResolvedConfig } from "./configurations";
1
+ import type { BuildMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
2
+ import type { BucketEndpointResolvedConfig } from "./configurations";
3
3
  /**
4
4
  * @deprecated unused as of EndpointsV2.
5
5
  * @internal
@@ -1,4 +1,4 @@
1
- import { ArnHostnameParams, BucketHostnameParams } from "./bucketHostnameUtils";
1
+ import type { ArnHostnameParams, BucketHostnameParams } from "./bucketHostnameUtils";
2
2
  /**
3
3
  * @deprecated unused as of EndpointsV2.
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { ARN } from "@aws-sdk/util-arn-parser";
1
+ import type { ARN } from "@aws-sdk/util-arn-parser";
2
2
  /**
3
3
  * @deprecated unused as of EndpointsV2.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Provider, RegionInfoProvider } from "@smithy/types";
1
+ import type { Provider, RegionInfoProvider } from "@smithy/types";
2
2
  /**
3
3
  * @deprecated unused as of EndpointsV2.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-bucket-endpoint",
3
- "version": "3.972.4",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-bucket-endpoint",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "^3.973.2",
26
+ "@aws-sdk/types": "^3.973.4",
27
27
  "@aws-sdk/util-arn-parser": "^3.972.2",
28
- "@smithy/node-config-provider": "^4.3.9",
29
- "@smithy/protocol-http": "^5.3.9",
30
- "@smithy/types": "^4.12.1",
28
+ "@smithy/node-config-provider": "^4.3.10",
29
+ "@smithy/protocol-http": "^5.3.10",
30
+ "@smithy/types": "^4.13.0",
31
31
  "@smithy/util-config-provider": "^4.2.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,4 +1,4 @@
1
- import { HttpHandler } from "@smithy/protocol-http";
1
+ import type { HttpHandler } from "@smithy/protocol-http";
2
2
  import type { BodyLengthCalculator, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types";
3
3
  interface PreviouslyResolved {
4
4
  runtime: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-expect-continue",
3
- "version": "3.972.4",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-expect-continue",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.2",
28
- "@smithy/protocol-http": "^5.3.9",
29
- "@smithy/types": "^4.12.1",
27
+ "@aws-sdk/types": "^3.973.4",
28
+ "@smithy/protocol-http": "^5.3.10",
29
+ "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -4,7 +4,7 @@ exports.getCrc32ChecksumAlgorithmFunction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const crc32_1 = require("@aws-crypto/crc32");
6
6
  const util_1 = require("@aws-crypto/util");
7
- const zlib = tslib_1.__importStar(require("zlib"));
7
+ const zlib = tslib_1.__importStar(require("node:zlib"));
8
8
  class NodeCrc32 {
9
9
  checksum = 0;
10
10
  update(data) {
@@ -67,21 +67,6 @@ const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
67
67
  default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION,
68
68
  };
69
69
 
70
- const CLIENT_SUPPORTED_ALGORITHMS = [
71
- exports.ChecksumAlgorithm.CRC32,
72
- exports.ChecksumAlgorithm.CRC32C,
73
- exports.ChecksumAlgorithm.CRC64NVME,
74
- exports.ChecksumAlgorithm.SHA1,
75
- exports.ChecksumAlgorithm.SHA256,
76
- ];
77
- const PRIORITY_ORDER_ALGORITHMS = [
78
- exports.ChecksumAlgorithm.SHA256,
79
- exports.ChecksumAlgorithm.SHA1,
80
- exports.ChecksumAlgorithm.CRC32,
81
- exports.ChecksumAlgorithm.CRC32C,
82
- exports.ChecksumAlgorithm.CRC64NVME,
83
- ];
84
-
85
70
  const getChecksumAlgorithmForRequest = (input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => {
86
71
  if (!requestAlgorithmMember) {
87
72
  return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired
@@ -92,10 +77,6 @@ const getChecksumAlgorithmForRequest = (input, { requestChecksumRequired, reques
92
77
  return undefined;
93
78
  }
94
79
  const checksumAlgorithm = input[requestAlgorithmMember];
95
- if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) {
96
- throw new Error(`The checksum algorithm "${checksumAlgorithm}" is not supported by the client.` +
97
- ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`);
98
- }
99
80
  return checksumAlgorithm;
100
81
  };
101
82
 
@@ -123,25 +104,46 @@ const hasHeaderWithPrefix = (headerPrefix, headers) => {
123
104
 
124
105
  const isStreaming = (body) => body !== undefined && typeof body !== "string" && !ArrayBuffer.isView(body) && !isArrayBuffer.isArrayBuffer(body);
125
106
 
107
+ const CLIENT_SUPPORTED_ALGORITHMS = [
108
+ exports.ChecksumAlgorithm.CRC32,
109
+ exports.ChecksumAlgorithm.CRC32C,
110
+ exports.ChecksumAlgorithm.CRC64NVME,
111
+ exports.ChecksumAlgorithm.SHA1,
112
+ exports.ChecksumAlgorithm.SHA256,
113
+ ];
114
+ const PRIORITY_ORDER_ALGORITHMS = [
115
+ exports.ChecksumAlgorithm.SHA256,
116
+ exports.ChecksumAlgorithm.SHA1,
117
+ exports.ChecksumAlgorithm.CRC32,
118
+ exports.ChecksumAlgorithm.CRC32C,
119
+ exports.ChecksumAlgorithm.CRC64NVME,
120
+ ];
121
+
126
122
  const selectChecksumAlgorithmFunction = (checksumAlgorithm, config) => {
123
+ const { checksumAlgorithms = {} } = config;
127
124
  switch (checksumAlgorithm) {
128
125
  case exports.ChecksumAlgorithm.MD5:
129
- return config.md5;
126
+ return checksumAlgorithms?.MD5 ?? config.md5;
130
127
  case exports.ChecksumAlgorithm.CRC32:
131
- return getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction();
128
+ return checksumAlgorithms?.CRC32 ?? getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction();
132
129
  case exports.ChecksumAlgorithm.CRC32C:
133
- return crc32c.AwsCrc32c;
130
+ return checksumAlgorithms?.CRC32C ?? crc32c.AwsCrc32c;
134
131
  case exports.ChecksumAlgorithm.CRC64NVME:
135
132
  if (typeof crc64Nvme.crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") {
136
- return crc64Nvme.Crc64Nvme;
133
+ return checksumAlgorithms?.CRC64NVME ?? crc64Nvme.Crc64Nvme;
137
134
  }
138
- return crc64Nvme.crc64NvmeCrtContainer.CrtCrc64Nvme;
135
+ return checksumAlgorithms?.CRC64NVME ?? crc64Nvme.crc64NvmeCrtContainer.CrtCrc64Nvme;
139
136
  case exports.ChecksumAlgorithm.SHA1:
140
- return config.sha1;
137
+ return checksumAlgorithms?.SHA1 ?? config.sha1;
141
138
  case exports.ChecksumAlgorithm.SHA256:
142
- return config.sha256;
139
+ return checksumAlgorithms?.SHA256 ?? config.sha256;
143
140
  default:
144
- throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
141
+ if (checksumAlgorithms?.[checksumAlgorithm]) {
142
+ return checksumAlgorithms[checksumAlgorithm];
143
+ }
144
+ throw new Error(`The checksum algorithm "${checksumAlgorithm}" is not supported by the client.` +
145
+ ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}, or provide an implementation to ` +
146
+ ` the client constructor checksums field.`);
145
147
  }
146
148
  };
147
149
 
@@ -416,6 +418,7 @@ const resolveFlexibleChecksumsConfig = (input) => {
416
418
  requestChecksumCalculation: utilMiddleware.normalizeProvider(requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION),
417
419
  responseChecksumValidation: utilMiddleware.normalizeProvider(responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION),
418
420
  requestStreamBufferSize: Number(requestStreamBufferSize ?? 0),
421
+ checksumAlgorithms: input.checksumAlgorithms ?? {},
419
422
  });
420
423
  };
421
424
 
@@ -1,5 +1,4 @@
1
1
  import { DEFAULT_CHECKSUM_ALGORITHM, RequestChecksumCalculation } from "./constants";
2
- import { CLIENT_SUPPORTED_ALGORITHMS } from "./types";
3
2
  export const getChecksumAlgorithmForRequest = (input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => {
4
3
  if (!requestAlgorithmMember) {
5
4
  return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired
@@ -10,9 +9,5 @@ export const getChecksumAlgorithmForRequest = (input, { requestChecksumRequired,
10
9
  return undefined;
11
10
  }
12
11
  const checksumAlgorithm = input[requestAlgorithmMember];
13
- if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) {
14
- throw new Error(`The checksum algorithm "${checksumAlgorithm}" is not supported by the client.` +
15
- ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`);
16
- }
17
12
  return checksumAlgorithm;
18
13
  };
@@ -1,6 +1,6 @@
1
1
  import { AwsCrc32 } from "@aws-crypto/crc32";
2
2
  import { numToUint8 } from "@aws-crypto/util";
3
- import * as zlib from "zlib";
3
+ import * as zlib from "node:zlib";
4
4
  class NodeCrc32 {
5
5
  checksum = 0;
6
6
  update(data) {
@@ -1,5 +1,5 @@
1
1
  import { flexibleChecksumsInputMiddleware, flexibleChecksumsInputMiddlewareOptions, } from "./flexibleChecksumsInputMiddleware";
2
- import { flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions, } from "./flexibleChecksumsMiddleware";
2
+ import { flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions } from "./flexibleChecksumsMiddleware";
3
3
  import { flexibleChecksumsResponseMiddleware, flexibleChecksumsResponseMiddlewareOptions, } from "./flexibleChecksumsResponseMiddleware";
4
4
  export const getFlexibleChecksumsPlugin = (config, middlewareConfig) => ({
5
5
  applyToStack: (clientStack) => {
@@ -1,10 +1,11 @@
1
1
  import { normalizeProvider } from "@smithy/util-middleware";
2
- import { DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION, } from "./constants";
2
+ import { DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION } from "./constants";
3
3
  export const resolveFlexibleChecksumsConfig = (input) => {
4
4
  const { requestChecksumCalculation, responseChecksumValidation, requestStreamBufferSize } = input;
5
5
  return Object.assign(input, {
6
6
  requestChecksumCalculation: normalizeProvider(requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION),
7
7
  responseChecksumValidation: normalizeProvider(responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION),
8
8
  requestStreamBufferSize: Number(requestStreamBufferSize ?? 0),
9
+ checksumAlgorithms: input.checksumAlgorithms ?? {},
9
10
  });
10
11
  };
@@ -2,24 +2,31 @@ import { AwsCrc32c } from "@aws-crypto/crc32c";
2
2
  import { Crc64Nvme, crc64NvmeCrtContainer } from "@aws-sdk/crc64-nvme";
3
3
  import { ChecksumAlgorithm } from "./constants";
4
4
  import { getCrc32ChecksumAlgorithmFunction } from "./getCrc32ChecksumAlgorithmFunction";
5
+ import { CLIENT_SUPPORTED_ALGORITHMS } from "./types";
5
6
  export const selectChecksumAlgorithmFunction = (checksumAlgorithm, config) => {
7
+ const { checksumAlgorithms = {} } = config;
6
8
  switch (checksumAlgorithm) {
7
9
  case ChecksumAlgorithm.MD5:
8
- return config.md5;
10
+ return checksumAlgorithms?.MD5 ?? config.md5;
9
11
  case ChecksumAlgorithm.CRC32:
10
- return getCrc32ChecksumAlgorithmFunction();
12
+ return checksumAlgorithms?.CRC32 ?? getCrc32ChecksumAlgorithmFunction();
11
13
  case ChecksumAlgorithm.CRC32C:
12
- return AwsCrc32c;
14
+ return checksumAlgorithms?.CRC32C ?? AwsCrc32c;
13
15
  case ChecksumAlgorithm.CRC64NVME:
14
16
  if (typeof crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") {
15
- return Crc64Nvme;
17
+ return checksumAlgorithms?.CRC64NVME ?? Crc64Nvme;
16
18
  }
17
- return crc64NvmeCrtContainer.CrtCrc64Nvme;
19
+ return checksumAlgorithms?.CRC64NVME ?? crc64NvmeCrtContainer.CrtCrc64Nvme;
18
20
  case ChecksumAlgorithm.SHA1:
19
- return config.sha1;
21
+ return checksumAlgorithms?.SHA1 ?? config.sha1;
20
22
  case ChecksumAlgorithm.SHA256:
21
- return config.sha256;
23
+ return checksumAlgorithms?.SHA256 ?? config.sha256;
22
24
  default:
23
- throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
25
+ if (checksumAlgorithms?.[checksumAlgorithm]) {
26
+ return checksumAlgorithms[checksumAlgorithm];
27
+ }
28
+ throw new Error(`The checksum algorithm "${checksumAlgorithm}" is not supported by the client.` +
29
+ ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}, or provide an implementation to ` +
30
+ ` the client constructor checksums field.`);
24
31
  }
25
32
  };
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  import { RequestChecksumCalculation } from "./constants";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  import { ResponseChecksumValidation } from "./constants";
3
3
  /**
4
4
  * @internal
@@ -1,5 +1,6 @@
1
- import { BodyLengthCalculator, ChecksumConstructor, Encoder, GetAwsChunkedEncodingStream, HashConstructor, Provider, StreamCollector, StreamHasher } from "@smithy/types";
2
- import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
1
+ import type { BodyLengthCalculator, ChecksumConstructor, Encoder, GetAwsChunkedEncodingStream, HashConstructor, Provider, StreamCollector, StreamHasher } from "@smithy/types";
2
+ import type { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
3
+ import type { FlexibleChecksumsInputConfig } from "./resolveFlexibleChecksumsConfig";
3
4
  /**
4
5
  * @internal
5
6
  */
@@ -53,4 +54,5 @@ export interface PreviouslyResolved {
53
54
  * Minimum bytes from a stream to buffer into a chunk before passing to chunked encoding.
54
55
  */
55
56
  requestStreamBufferSize: number;
57
+ checksumAlgorithms?: FlexibleChecksumsInputConfig["checksumAlgorithms"];
56
58
  }
@@ -1,5 +1,5 @@
1
- import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
- import { PreviouslyResolved } from "./configuration";
1
+ import type { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
+ import type { PreviouslyResolved } from "./configuration";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
- import { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
2
- import { PreviouslyResolved } from "./configuration";
1
+ import type { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
2
+ import type { PreviouslyResolved } from "./configuration";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
- import { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
2
- import { PreviouslyResolved } from "./configuration";
1
+ import type { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
2
+ import type { PreviouslyResolved } from "./configuration";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,4 +1,4 @@
1
- import { ChecksumConstructor, Encoder, HashConstructor } from "@smithy/types";
1
+ import type { ChecksumConstructor, Encoder, HashConstructor } from "@smithy/types";
2
2
  export interface GetChecksumDigestOptions {
3
3
  checksumAlgorithmFn: ChecksumConstructor | HashConstructor;
4
4
  base64Encoder: Encoder;
@@ -1,4 +1,5 @@
1
- import { ChecksumAlgorithm, RequestChecksumCalculation } from "./constants";
1
+ import type { ChecksumAlgorithm } from "./constants";
2
+ import { RequestChecksumCalculation } from "./constants";
2
3
  export interface GetChecksumAlgorithmForRequestOptions {
3
4
  /**
4
5
  * Indicates an operation requires a checksum in its HTTP request.
@@ -18,4 +19,4 @@ export interface GetChecksumAlgorithmForRequestOptions {
18
19
  * the priority array of location to use to populate checksum and names
19
20
  * to be used as a key at the location.
20
21
  */
21
- export declare const getChecksumAlgorithmForRequest: (input: any, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }: GetChecksumAlgorithmForRequestOptions) => ChecksumAlgorithm | undefined;
22
+ export declare const getChecksumAlgorithmForRequest: (input: any, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }: GetChecksumAlgorithmForRequestOptions) => ChecksumAlgorithm | string | undefined;
@@ -1,4 +1,4 @@
1
- import { ChecksumAlgorithm } from "./constants";
1
+ import type { ChecksumAlgorithm } from "./constants";
2
2
  /**
3
3
  * Returns the priority array of algorithm to use to verify checksum and names
4
4
  * to be used as a key in the response header.
@@ -2,4 +2,4 @@ import { ChecksumAlgorithm } from "./constants";
2
2
  /**
3
3
  * Returns location (header/trailer) name to use to populate checksum in.
4
4
  */
5
- export declare const getChecksumLocationName: (algorithm: ChecksumAlgorithm) => string;
5
+ export declare const getChecksumLocationName: (algorithm: ChecksumAlgorithm | string) => string;
@@ -1,5 +1,5 @@
1
1
  import { AwsCrc32 } from "@aws-crypto/crc32";
2
- import { Checksum } from "@smithy/types";
2
+ import type { Checksum } from "@smithy/types";
3
3
  declare class NodeCrc32 implements Checksum {
4
4
  private checksum;
5
5
  update(data: Uint8Array): void;