@cdklabs/cdk-ecs-codedeploy 0.0.223 → 0.0.225

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 (205) hide show
  1. package/.jsii +3 -3
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws-sdk/client-codedeploy/package.json +4 -4
  8. package/node_modules/@aws-sdk/client-sso/package.json +2 -2
  9. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +17 -3
  10. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  11. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +67 -0
  12. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +0 -2
  13. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +0 -2
  14. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +0 -2
  15. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +0 -2
  16. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +0 -2
  17. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +0 -2
  18. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  19. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +14 -0
  20. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +16 -0
  21. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +3 -0
  22. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +17 -3
  23. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  24. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +60 -0
  25. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +0 -2
  26. package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -2
  27. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +0 -2
  28. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +0 -2
  29. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +0 -2
  30. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +0 -2
  31. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +1 -1
  32. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +15 -1
  33. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +16 -0
  34. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +3 -0
  35. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +13 -11
  36. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  37. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +71 -0
  38. package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +2 -1
  39. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +1 -1
  40. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +15 -5
  41. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +13 -5
  42. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +16 -6
  43. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +15 -2
  44. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +11 -9
  45. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  46. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +54 -0
  47. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  48. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +36 -9
  50. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +27 -9
  51. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +39 -12
  52. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +36 -4
  53. package/node_modules/@aws-sdk/client-sts/package.json +5 -5
  54. package/node_modules/@aws-sdk/core/CHANGELOG.md +22 -0
  55. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws-sdk/AWSSDKSigV4Signer.js +55 -0
  56. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws-sdk/index.js +5 -0
  57. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.js +81 -0
  58. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws-sdk/throwAWSSDKSigningPropertyError.js +10 -0
  59. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +4 -0
  60. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getDateHeader.js +6 -0
  61. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getSkewCorrectedDate.js +5 -0
  62. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -0
  63. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/index.js +6 -0
  64. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/isClockSkewed.js +6 -0
  65. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1 -0
  66. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws-sdk/AWSSDKSigV4Signer.js +49 -0
  67. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws-sdk/index.js +2 -0
  68. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.js +77 -0
  69. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws-sdk/throwAWSSDKSigningPropertyError.js +6 -0
  70. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/index.js +1 -0
  71. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getDateHeader.js +2 -0
  72. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -0
  73. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +8 -0
  74. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/index.js +3 -0
  75. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/isClockSkewed.js +2 -0
  76. package/node_modules/@aws-sdk/core/dist-es/index.js +1 -0
  77. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws-sdk/AWSSDKSigV4Signer.d.ts +13 -0
  78. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws-sdk/index.d.ts +2 -0
  79. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.d.ts +76 -0
  80. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws-sdk/throwAWSSDKSigningPropertyError.d.ts +4 -0
  81. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/index.d.ts +1 -0
  82. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  83. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -0
  84. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +10 -0
  85. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/index.d.ts +3 -0
  86. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -0
  87. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +1 -0
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws-sdk/AWSSDKSigV4Signer.d.ts +20 -0
  89. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws-sdk/index.d.ts +2 -0
  90. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.d.ts +46 -0
  91. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws-sdk/throwAWSSDKSigningPropertyError.d.ts +4 -0
  92. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/index.d.ts +1 -0
  93. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -0
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +4 -0
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/index.d.ts +3 -0
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/isClockSkewed.d.ts +4 -0
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +1 -0
  99. package/node_modules/@aws-sdk/core/package.json +6 -2
  100. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws-sdk/AWSSDKSigV4Signer.ts +118 -0
  101. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws-sdk/index.ts +2 -0
  102. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.ts +216 -0
  103. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws-sdk/throwAWSSDKSigningPropertyError.ts +9 -0
  104. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +1 -0
  105. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getDateHeader.ts +7 -0
  106. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.spec.ts +17 -0
  107. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.ts +8 -0
  108. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.spec.ts +37 -0
  109. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts +18 -0
  110. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/index.ts +3 -0
  111. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.spec.ts +32 -0
  112. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.ts +12 -0
  113. package/node_modules/@aws-sdk/core/src/index.ts +1 -0
  114. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  115. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  116. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  117. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  118. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  119. package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
  120. package/node_modules/{@aws-sdk/middleware-sdk-sts → @smithy/core}/LICENSE +1 -1
  121. package/node_modules/@smithy/core/README.md +12 -0
  122. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
  123. package/node_modules/@smithy/core/dist-cjs/index.js +12 -0
  124. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +22 -0
  125. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +22 -0
  126. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +45 -0
  127. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
  128. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +20 -0
  129. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +28 -0
  130. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
  131. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
  132. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +32 -0
  133. package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +72 -0
  134. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
  135. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +37 -0
  136. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +14 -0
  137. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
  138. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
  139. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
  140. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +59 -0
  141. package/node_modules/@smithy/core/dist-es/getSmithyContext.js +2 -0
  142. package/node_modules/@smithy/core/dist-es/index.js +7 -0
  143. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +18 -0
  144. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +18 -0
  145. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +40 -0
  146. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/index.js +3 -0
  147. package/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js +16 -0
  148. package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +24 -0
  149. package/node_modules/@smithy/core/dist-es/middleware-http-signing/index.js +2 -0
  150. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +6 -0
  151. package/node_modules/@smithy/core/dist-es/pagination/createPaginator.js +27 -0
  152. package/node_modules/@smithy/core/dist-es/protocols/requestBuilder.js +67 -0
  153. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +13 -0
  154. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +33 -0
  155. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +10 -0
  156. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/index.js +3 -0
  157. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js +5 -0
  158. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/index.js +3 -0
  159. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +53 -0
  160. package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +5 -0
  161. package/node_modules/@smithy/core/dist-types/index.d.ts +7 -0
  162. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +18 -0
  163. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +18 -0
  164. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +32 -0
  165. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/index.d.ts +3 -0
  166. package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +9 -0
  167. package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +5 -0
  168. package/node_modules/@smithy/core/dist-types/middleware-http-signing/index.d.ts +2 -0
  169. package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +7 -0
  170. package/node_modules/@smithy/core/dist-types/pagination/createPaginator.d.ts +7 -0
  171. package/node_modules/@smithy/core/dist-types/protocols/requestBuilder.d.ts +51 -0
  172. package/node_modules/@smithy/core/dist-types/ts3.4/getSmithyContext.d.ts +5 -0
  173. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +7 -0
  174. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +18 -0
  175. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +18 -0
  176. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +32 -0
  177. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/index.d.ts +3 -0
  178. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/getHttpSigningMiddleware.d.ts +9 -0
  179. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/httpSigningMiddleware.d.ts +5 -0
  180. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/index.d.ts +2 -0
  181. package/node_modules/@smithy/core/dist-types/ts3.4/normalizeProvider.d.ts +7 -0
  182. package/node_modules/@smithy/core/dist-types/ts3.4/pagination/createPaginator.d.ts +7 -0
  183. package/node_modules/@smithy/core/dist-types/ts3.4/protocols/requestBuilder.d.ts +51 -0
  184. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +15 -0
  185. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +8 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +8 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/index.d.ts +3 -0
  188. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +8 -0
  189. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/index.d.ts +3 -0
  190. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/memoizeIdentityProvider.d.ts +30 -0
  191. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +15 -0
  192. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +8 -0
  193. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +8 -0
  194. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/index.d.ts +3 -0
  195. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +8 -0
  196. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/index.d.ts +3 -0
  197. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +30 -0
  198. package/node_modules/@smithy/core/package.json +67 -0
  199. package/package.json +5 -5
  200. package/node_modules/@aws-sdk/middleware-sdk-sts/README.md +0 -4
  201. package/node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +0 -9
  202. package/node_modules/@aws-sdk/middleware-sdk-sts/dist-es/index.js +0 -5
  203. package/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/index.d.ts +0 -37
  204. package/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/ts3.4/index.d.ts +0 -34
  205. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +0 -55
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.473.0",
4
+ "version": "3.476.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,13 +22,11 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/core": "3.468.0",
26
- "@aws-sdk/credential-provider-node": "3.470.0",
25
+ "@aws-sdk/core": "3.476.0",
26
+ "@aws-sdk/credential-provider-node": "3.476.0",
27
27
  "@aws-sdk/middleware-host-header": "3.468.0",
28
28
  "@aws-sdk/middleware-logger": "3.468.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
30
- "@aws-sdk/middleware-sdk-sts": "3.468.0",
31
- "@aws-sdk/middleware-signing": "3.468.0",
32
30
  "@aws-sdk/middleware-user-agent": "3.470.0",
33
31
  "@aws-sdk/region-config-resolver": "3.470.0",
34
32
  "@aws-sdk/types": "3.468.0",
@@ -36,6 +34,7 @@
36
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
37
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
38
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.1.0",
39
38
  "@smithy/fetch-http-handler": "^2.3.1",
40
39
  "@smithy/hash-node": "^2.0.17",
41
40
  "@smithy/invalid-dependency": "^2.0.15",
@@ -56,6 +55,7 @@
56
55
  "@smithy/util-defaults-mode-browser": "^2.0.22",
57
56
  "@smithy/util-defaults-mode-node": "^2.0.29",
58
57
  "@smithy/util-endpoints": "^1.0.7",
58
+ "@smithy/util-middleware": "^2.0.8",
59
59
  "@smithy/util-retry": "^2.0.8",
60
60
  "@smithy/util-utf8": "^2.0.2",
61
61
  "fast-xml-parser": "4.2.5",
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.476.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.475.0...v3.476.0) (2023-12-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** wrap `credentialDefaultProvider` with `normalizeProvider` ([#5592](https://github.com/aws/aws-sdk-js-v3/issues/5592)) ([9faa8ad](https://github.com/aws/aws-sdk-js-v3/commit/9faa8ad8dfd3eeb642c7a237a72c8be745ab5ba4))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.474.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.473.0...v3.474.0) (2023-12-14)
18
+
19
+
20
+ ### Features
21
+
22
+ * **core:** add `experimentalIdentityAndAuth` AWS SDK SigV4 support ([#5586](https://github.com/aws/aws-sdk-js-v3/issues/5586)) ([9a97df5](https://github.com/aws/aws-sdk-js-v3/commit/9a97df5953e722ed4887bcb65a41c019f08a5cbb))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.468.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.467.0...v3.468.0) (2023-12-06)
7
29
 
8
30
  **Note:** Version bump only for package @aws-sdk/core
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AWSSDKSigV4Signer = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
+ const utils_1 = require("../utils");
6
+ const throwAWSSDKSigningPropertyError_1 = require("./throwAWSSDKSigningPropertyError");
7
+ const validateSigningProperties = async (signingProperties) => {
8
+ var _a, _b, _c;
9
+ const context = (0, throwAWSSDKSigningPropertyError_1.throwAWSSDKSigningPropertyError)("context", signingProperties.context);
10
+ const config = (0, throwAWSSDKSigningPropertyError_1.throwAWSSDKSigningPropertyError)("config", signingProperties.config);
11
+ const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0];
12
+ const signerFunction = (0, throwAWSSDKSigningPropertyError_1.throwAWSSDKSigningPropertyError)("signer", config.signer);
13
+ const signer = await signerFunction(authScheme);
14
+ const signingRegion = signingProperties === null || signingProperties === void 0 ? void 0 : signingProperties.signingRegion;
15
+ const signingName = signingProperties === null || signingProperties === void 0 ? void 0 : signingProperties.signingName;
16
+ return {
17
+ config,
18
+ signer,
19
+ signingRegion,
20
+ signingName,
21
+ };
22
+ };
23
+ class AWSSDKSigV4Signer {
24
+ async sign(httpRequest, identity, signingProperties) {
25
+ if (!protocol_http_1.HttpRequest.isInstance(httpRequest)) {
26
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
27
+ }
28
+ const { config, signer, signingRegion, signingName } = await validateSigningProperties(signingProperties);
29
+ const signedRequest = await signer.sign(httpRequest, {
30
+ signingDate: (0, utils_1.getSkewCorrectedDate)(config.systemClockOffset),
31
+ signingRegion: signingRegion,
32
+ signingService: signingName,
33
+ });
34
+ return signedRequest;
35
+ }
36
+ errorHandler(signingProperties) {
37
+ return (error) => {
38
+ var _a;
39
+ const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : (0, utils_1.getDateHeader)(error.$response);
40
+ if (serverTime) {
41
+ const config = (0, throwAWSSDKSigningPropertyError_1.throwAWSSDKSigningPropertyError)("config", signingProperties.config);
42
+ config.systemClockOffset = (0, utils_1.getUpdatedSystemClockOffset)(serverTime, config.systemClockOffset);
43
+ }
44
+ throw error;
45
+ };
46
+ }
47
+ successHandler(httpResponse, signingProperties) {
48
+ const dateHeader = (0, utils_1.getDateHeader)(httpResponse);
49
+ if (dateHeader) {
50
+ const config = (0, throwAWSSDKSigningPropertyError_1.throwAWSSDKSigningPropertyError)("config", signingProperties.config);
51
+ config.systemClockOffset = (0, utils_1.getUpdatedSystemClockOffset)(dateHeader, config.systemClockOffset);
52
+ }
53
+ }
54
+ }
55
+ exports.AWSSDKSigV4Signer = AWSSDKSigV4Signer;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AWSSDKSigV4Signer"), exports);
5
+ tslib_1.__exportStar(require("./resolveAWSSDKSigV4Config"), exports);
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveAWSSDKSigV4Config = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const signature_v4_1 = require("@smithy/signature-v4");
6
+ const resolveAWSSDKSigV4Config = (config) => {
7
+ let normalizedCreds;
8
+ if (config.credentials) {
9
+ normalizedCreds = (0, core_1.memoizeIdentityProvider)(config.credentials, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
10
+ }
11
+ if (!normalizedCreds) {
12
+ if (config.credentialDefaultProvider) {
13
+ normalizedCreds = (0, core_1.normalizeProvider)(config.credentialDefaultProvider(config));
14
+ }
15
+ else {
16
+ normalizedCreds = async () => { throw new Error("`credentials` is missing"); };
17
+ }
18
+ }
19
+ const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
20
+ let signer;
21
+ if (config.signer) {
22
+ signer = (0, core_1.normalizeProvider)(config.signer);
23
+ }
24
+ else if (config.regionInfoProvider) {
25
+ signer = () => (0, core_1.normalizeProvider)(config.region)()
26
+ .then(async (region) => [
27
+ (await config.regionInfoProvider(region, {
28
+ useFipsEndpoint: await config.useFipsEndpoint(),
29
+ useDualstackEndpoint: await config.useDualstackEndpoint(),
30
+ })) || {},
31
+ region,
32
+ ])
33
+ .then(([regionInfo, region]) => {
34
+ const { signingRegion, signingService } = regionInfo;
35
+ config.signingRegion = config.signingRegion || signingRegion || region;
36
+ config.signingName = config.signingName || signingService || config.serviceId;
37
+ const params = {
38
+ ...config,
39
+ credentials: normalizedCreds,
40
+ region: config.signingRegion,
41
+ service: config.signingName,
42
+ sha256,
43
+ uriEscapePath: signingEscapePath,
44
+ };
45
+ const SignerCtor = config.signerConstructor || signature_v4_1.SignatureV4;
46
+ return new SignerCtor(params);
47
+ });
48
+ }
49
+ else {
50
+ signer = async (authScheme) => {
51
+ authScheme = Object.assign({}, {
52
+ name: "sigv4",
53
+ signingName: config.signingName || config.defaultSigningName,
54
+ signingRegion: await (0, core_1.normalizeProvider)(config.region)(),
55
+ properties: {},
56
+ }, authScheme);
57
+ const signingRegion = authScheme.signingRegion;
58
+ const signingService = authScheme.signingName;
59
+ config.signingRegion = config.signingRegion || signingRegion;
60
+ config.signingName = config.signingName || signingService || config.serviceId;
61
+ const params = {
62
+ ...config,
63
+ credentials: normalizedCreds,
64
+ region: config.signingRegion,
65
+ service: config.signingName,
66
+ sha256,
67
+ uriEscapePath: signingEscapePath,
68
+ };
69
+ const SignerCtor = config.signerConstructor || signature_v4_1.SignatureV4;
70
+ return new SignerCtor(params);
71
+ };
72
+ }
73
+ return {
74
+ ...config,
75
+ systemClockOffset,
76
+ signingEscapePath,
77
+ credentials: normalizedCreds,
78
+ signer,
79
+ };
80
+ };
81
+ exports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.throwAWSSDKSigningPropertyError = void 0;
4
+ const throwAWSSDKSigningPropertyError = (name, property) => {
5
+ if (!property) {
6
+ throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
7
+ }
8
+ return property;
9
+ };
10
+ exports.throwAWSSDKSigningPropertyError = throwAWSSDKSigningPropertyError;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./aws-sdk"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDateHeader = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
+ const getDateHeader = (response) => { var _a, _b, _c; return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : undefined; };
6
+ exports.getDateHeader = getDateHeader;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSkewCorrectedDate = void 0;
4
+ const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
5
+ exports.getSkewCorrectedDate = getSkewCorrectedDate;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUpdatedSystemClockOffset = void 0;
4
+ const isClockSkewed_1 = require("./isClockSkewed");
5
+ const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
6
+ const clockTimeInMs = Date.parse(clockTime);
7
+ if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) {
8
+ return clockTimeInMs - Date.now();
9
+ }
10
+ return currentSystemClockOffset;
11
+ };
12
+ exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./getDateHeader"), exports);
5
+ tslib_1.__exportStar(require("./getSkewCorrectedDate"), exports);
6
+ tslib_1.__exportStar(require("./getUpdatedSystemClockOffset"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isClockSkewed = void 0;
4
+ const getSkewCorrectedDate_1 = require("./getSkewCorrectedDate");
5
+ const isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 300000;
6
+ exports.isClockSkewed = isClockSkewed;
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./client/index"), exports);
5
+ tslib_1.__exportStar(require("./httpAuthSchemes/index"), exports);
5
6
  tslib_1.__exportStar(require("./protocols/index"), exports);
@@ -0,0 +1,49 @@
1
+ import { HttpRequest } from "@smithy/protocol-http";
2
+ import { getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
3
+ import { throwAWSSDKSigningPropertyError } from "./throwAWSSDKSigningPropertyError";
4
+ const validateSigningProperties = async (signingProperties) => {
5
+ const context = throwAWSSDKSigningPropertyError("context", signingProperties.context);
6
+ const config = throwAWSSDKSigningPropertyError("config", signingProperties.config);
7
+ const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
8
+ const signerFunction = throwAWSSDKSigningPropertyError("signer", config.signer);
9
+ const signer = await signerFunction(authScheme);
10
+ const signingRegion = signingProperties?.signingRegion;
11
+ const signingName = signingProperties?.signingName;
12
+ return {
13
+ config,
14
+ signer,
15
+ signingRegion,
16
+ signingName,
17
+ };
18
+ };
19
+ export class AWSSDKSigV4Signer {
20
+ async sign(httpRequest, identity, signingProperties) {
21
+ if (!HttpRequest.isInstance(httpRequest)) {
22
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
23
+ }
24
+ const { config, signer, signingRegion, signingName } = await validateSigningProperties(signingProperties);
25
+ const signedRequest = await signer.sign(httpRequest, {
26
+ signingDate: getSkewCorrectedDate(config.systemClockOffset),
27
+ signingRegion: signingRegion,
28
+ signingService: signingName,
29
+ });
30
+ return signedRequest;
31
+ }
32
+ errorHandler(signingProperties) {
33
+ return (error) => {
34
+ const serverTime = error.ServerTime ?? getDateHeader(error.$response);
35
+ if (serverTime) {
36
+ const config = throwAWSSDKSigningPropertyError("config", signingProperties.config);
37
+ config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
38
+ }
39
+ throw error;
40
+ };
41
+ }
42
+ successHandler(httpResponse, signingProperties) {
43
+ const dateHeader = getDateHeader(httpResponse);
44
+ if (dateHeader) {
45
+ const config = throwAWSSDKSigningPropertyError("config", signingProperties.config);
46
+ config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./AWSSDKSigV4Signer";
2
+ export * from "./resolveAWSSDKSigV4Config";
@@ -0,0 +1,77 @@
1
+ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider, normalizeProvider, } from "@smithy/core";
2
+ import { SignatureV4 } from "@smithy/signature-v4";
3
+ export const resolveAWSSDKSigV4Config = (config) => {
4
+ let normalizedCreds;
5
+ if (config.credentials) {
6
+ normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
7
+ }
8
+ if (!normalizedCreds) {
9
+ if (config.credentialDefaultProvider) {
10
+ normalizedCreds = normalizeProvider(config.credentialDefaultProvider(config));
11
+ }
12
+ else {
13
+ normalizedCreds = async () => { throw new Error("`credentials` is missing"); };
14
+ }
15
+ }
16
+ const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
17
+ let signer;
18
+ if (config.signer) {
19
+ signer = normalizeProvider(config.signer);
20
+ }
21
+ else if (config.regionInfoProvider) {
22
+ signer = () => normalizeProvider(config.region)()
23
+ .then(async (region) => [
24
+ (await config.regionInfoProvider(region, {
25
+ useFipsEndpoint: await config.useFipsEndpoint(),
26
+ useDualstackEndpoint: await config.useDualstackEndpoint(),
27
+ })) || {},
28
+ region,
29
+ ])
30
+ .then(([regionInfo, region]) => {
31
+ const { signingRegion, signingService } = regionInfo;
32
+ config.signingRegion = config.signingRegion || signingRegion || region;
33
+ config.signingName = config.signingName || signingService || config.serviceId;
34
+ const params = {
35
+ ...config,
36
+ credentials: normalizedCreds,
37
+ region: config.signingRegion,
38
+ service: config.signingName,
39
+ sha256,
40
+ uriEscapePath: signingEscapePath,
41
+ };
42
+ const SignerCtor = config.signerConstructor || SignatureV4;
43
+ return new SignerCtor(params);
44
+ });
45
+ }
46
+ else {
47
+ signer = async (authScheme) => {
48
+ authScheme = Object.assign({}, {
49
+ name: "sigv4",
50
+ signingName: config.signingName || config.defaultSigningName,
51
+ signingRegion: await normalizeProvider(config.region)(),
52
+ properties: {},
53
+ }, authScheme);
54
+ const signingRegion = authScheme.signingRegion;
55
+ const signingService = authScheme.signingName;
56
+ config.signingRegion = config.signingRegion || signingRegion;
57
+ config.signingName = config.signingName || signingService || config.serviceId;
58
+ const params = {
59
+ ...config,
60
+ credentials: normalizedCreds,
61
+ region: config.signingRegion,
62
+ service: config.signingName,
63
+ sha256,
64
+ uriEscapePath: signingEscapePath,
65
+ };
66
+ const SignerCtor = config.signerConstructor || SignatureV4;
67
+ return new SignerCtor(params);
68
+ };
69
+ }
70
+ return {
71
+ ...config,
72
+ systemClockOffset,
73
+ signingEscapePath,
74
+ credentials: normalizedCreds,
75
+ signer,
76
+ };
77
+ };
@@ -0,0 +1,6 @@
1
+ export const throwAWSSDKSigningPropertyError = (name, property) => {
2
+ if (!property) {
3
+ throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
4
+ }
5
+ return property;
6
+ };
@@ -0,0 +1 @@
1
+ export * from "./aws-sdk";
@@ -0,0 +1,2 @@
1
+ import { HttpResponse } from "@smithy/protocol-http";
2
+ export const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
@@ -0,0 +1 @@
1
+ export const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
@@ -0,0 +1,8 @@
1
+ import { isClockSkewed } from "./isClockSkewed";
2
+ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
3
+ const clockTimeInMs = Date.parse(clockTime);
4
+ if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
5
+ return clockTimeInMs - Date.now();
6
+ }
7
+ return currentSystemClockOffset;
8
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./getDateHeader";
2
+ export * from "./getSkewCorrectedDate";
3
+ export * from "./getUpdatedSystemClockOffset";
@@ -0,0 +1,2 @@
1
+ import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
2
+ export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
@@ -1,2 +1,3 @@
1
1
  export * from "./client/index";
2
+ export * from "./httpAuthSchemes/index";
2
3
  export * from "./protocols/index";
@@ -0,0 +1,13 @@
1
+ import { AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class AWSSDKSigV4Signer implements HttpSigner {
6
+ sign(httpRequest: IHttpRequest,
7
+ /**
8
+ * `identity` is bound in {@link resolveAWSSDKSigV4Config}
9
+ */
10
+ identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>;
11
+ errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never;
12
+ successHandler(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void;
13
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./AWSSDKSigV4Signer";
2
+ export * from "./resolveAWSSDKSigV4Config";
@@ -0,0 +1,76 @@
1
+ import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
2
+ import { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface AWSSDKSigV4AuthInputConfig {
7
+ /**
8
+ * The credentials used to sign requests.
9
+ */
10
+ credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
11
+ /**
12
+ * The signer to use when signing requests.
13
+ */
14
+ signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
15
+ /**
16
+ * Whether to escape request path when signing the request.
17
+ */
18
+ signingEscapePath?: boolean;
19
+ /**
20
+ * An offset value in milliseconds to apply to all signing times.
21
+ */
22
+ systemClockOffset?: number;
23
+ /**
24
+ * The region where you want to sign your request against. This
25
+ * can be different to the region in the endpoint.
26
+ */
27
+ signingRegion?: string;
28
+ /**
29
+ * The injectable SigV4-compatible signer class constructor. If not supplied,
30
+ * regular SignatureV4 constructor will be used.
31
+ *
32
+ * @internal
33
+ */
34
+ signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
35
+ }
36
+ /**
37
+ * @internal
38
+ */
39
+ export interface AWSSDKSigV4PreviouslyResolved {
40
+ credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
41
+ region: string | Provider<string>;
42
+ sha256: ChecksumConstructor | HashConstructor;
43
+ signingName?: string;
44
+ regionInfoProvider?: RegionInfoProvider;
45
+ defaultSigningName?: string;
46
+ serviceId: string;
47
+ useFipsEndpoint: Provider<boolean>;
48
+ useDualstackEndpoint: Provider<boolean>;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface AWSSDKSigV4AuthResolvedConfig {
54
+ /**
55
+ * Resolved value for input config {@link AWSSDKSigV4AuthInputConfig.credentials}
56
+ * This provider MAY memoize the loaded credentials for certain period.
57
+ * See {@link MemoizedProvider} for more information.
58
+ */
59
+ credentials: AwsCredentialIdentityProvider;
60
+ /**
61
+ * Resolved value for input config {@link AWSSDKSigV4AuthInputConfig.signer}
62
+ */
63
+ signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
64
+ /**
65
+ * Resolved value for input config {@link AWSSDKSigV4AuthInputConfig.signingEscapePath}
66
+ */
67
+ signingEscapePath: boolean;
68
+ /**
69
+ * Resolved value for input config {@link AWSSDKSigV4AuthInputConfig.systemClockOffset}
70
+ */
71
+ systemClockOffset: number;
72
+ }
73
+ /**
74
+ * @internal
75
+ */
76
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & AWSSDKSigV4AuthInputConfig & AWSSDKSigV4PreviouslyResolved) => T & AWSSDKSigV4AuthResolvedConfig;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const throwAWSSDKSigningPropertyError: <T>(name: string, property: T | undefined) => T;
@@ -0,0 +1 @@
1
+ export * from "./aws-sdk";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const getDateHeader: (response: unknown) => string | undefined;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * Returns a date that is corrected for clock skew.
5
+ *
6
+ * @param systemClockOffset The offset of the system clock in milliseconds.
7
+ */
8
+ export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * If clock is skewed, it returns the difference between serverTime and current time.
5
+ * If clock is not skewed, it returns currentSystemClockOffset.
6
+ *
7
+ * @param clockTime The string value of the server time.
8
+ * @param currentSystemClockOffset The current system clock offset.
9
+ */
10
+ export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number) => number;
@@ -0,0 +1,3 @@
1
+ export * from "./getDateHeader";
2
+ export * from "./getSkewCorrectedDate";
3
+ export * from "./getUpdatedSystemClockOffset";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * Checks if the provided date is within the skew window of 300000ms.
5
+ *
6
+ * @param clockTime - The time to check for skew in milliseconds.
7
+ * @param systemClockOffset - The offset of the system clock in milliseconds.
8
+ */
9
+ export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean;
@@ -1,2 +1,3 @@
1
1
  export * from "./client/index";
2
+ export * from "./httpAuthSchemes/index";
2
3
  export * from "./protocols/index";
@@ -0,0 +1,20 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ HttpRequest as IHttpRequest,
4
+ HttpResponse,
5
+ HttpSigner,
6
+ } from "@smithy/types";
7
+ export declare class AWSSDKSigV4Signer implements HttpSigner {
8
+ sign(
9
+ httpRequest: IHttpRequest,
10
+ identity: AwsCredentialIdentity,
11
+ signingProperties: Record<string, unknown>
12
+ ): Promise<IHttpRequest>;
13
+ errorHandler(
14
+ signingProperties: Record<string, unknown>
15
+ ): (error: Error) => never;
16
+ successHandler(
17
+ httpResponse: HttpResponse | unknown,
18
+ signingProperties: Record<string, unknown>
19
+ ): void;
20
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./AWSSDKSigV4Signer";
2
+ export * from "./resolveAWSSDKSigV4Config";