@cdk8s/awscdk-resolver 0.0.134 → 0.0.136

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 (170) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +9 -15
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +9 -15
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -4
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -2
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -8
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  14. package/node_modules/@aws-sdk/client-cloudformation/package.json +18 -18
  15. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -15
  16. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +9 -15
  17. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -4
  18. package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  19. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
  20. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
  21. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
  22. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +6 -8
  23. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  26. package/node_modules/@aws-sdk/client-sso/package.json +15 -15
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +9 -15
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +9 -15
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +2 -4
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +6 -8
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  38. package/node_modules/@aws-sdk/client-sso-oidc/package.json +17 -17
  39. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +9 -15
  40. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +17 -4
  41. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +9 -15
  42. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -4
  43. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -4
  44. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  45. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
  46. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
  47. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
  48. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -8
  49. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  50. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  51. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  52. package/node_modules/@aws-sdk/client-sts/package.json +17 -17
  53. package/node_modules/@aws-sdk/core/account-id-endpoint.js +6 -0
  54. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +97 -0
  55. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +15 -0
  56. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConstants.js +5 -0
  57. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +24 -0
  58. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/index.js +3 -0
  59. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +30 -0
  60. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +7 -0
  61. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -0
  62. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/index.d.ts +3 -0
  63. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +15 -0
  64. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +6 -0
  65. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +7 -0
  66. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +3 -0
  67. package/node_modules/@aws-sdk/core/package.json +18 -8
  68. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +6 -1
  69. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +3 -0
  70. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -0
  71. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +1 -0
  72. package/node_modules/@aws-sdk/credential-provider-env/package.json +1 -1
  73. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  74. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +3 -2
  75. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +4 -2
  76. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +1 -0
  77. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +1 -0
  78. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  79. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +30 -6
  80. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +29 -9
  81. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  82. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +9 -3
  83. package/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +6 -1
  84. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +1 -1
  85. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts +1 -0
  86. package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
  87. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts +1 -0
  88. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts +3 -2
  89. package/node_modules/@aws-sdk/credential-provider-process/package.json +1 -1
  90. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +11 -2
  91. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -2
  92. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  93. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  94. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  95. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  96. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  97. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  98. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -1
  99. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +2 -1
  100. package/node_modules/@smithy/core/package.json +5 -5
  101. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +2 -1
  102. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +1 -0
  103. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -0
  104. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +1 -0
  105. package/node_modules/@smithy/credential-provider-imds/package.json +1 -1
  106. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
  107. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -1
  108. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  109. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  110. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -0
  111. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +7 -0
  112. package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
  113. package/node_modules/@smithy/middleware-retry/package.json +4 -4
  114. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  115. package/node_modules/@smithy/protocol-http/package.json +1 -1
  116. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +4 -16
  117. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -2
  118. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -2
  119. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
  120. package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +3 -3
  121. package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +2 -2
  122. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
  123. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +3 -3
  124. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +2 -2
  125. package/node_modules/@smithy/signature-v4/package.json +2 -2
  126. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -0
  127. package/node_modules/@smithy/smithy-client/dist-es/command.js +1 -0
  128. package/node_modules/@smithy/smithy-client/package.json +4 -4
  129. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  130. package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
  131. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +9 -1
  132. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +9 -1
  133. package/node_modules/@smithy/util-stream/package.json +4 -4
  134. package/node_modules/fast-xml-parser/CHANGELOG.md +349 -309
  135. package/node_modules/fast-xml-parser/README.md +83 -51
  136. package/node_modules/fast-xml-parser/package.json +8 -5
  137. package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
  138. package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
  139. package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
  140. package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
  141. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
  142. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
  143. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
  144. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
  145. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +99 -0
  146. package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
  147. package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
  148. package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
  149. package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
  150. package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
  151. package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
  152. package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
  153. package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
  154. package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
  155. package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
  156. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
  157. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
  158. package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +40 -0
  159. package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
  160. package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
  161. package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
  162. package/node_modules/fast-xml-parser/src/validator.js +2 -0
  163. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +31 -9
  164. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
  165. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +25 -12
  166. package/package.json +9 -9
  167. package/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +0 -1
  168. package/node_modules/@smithy/signature-v4/dist-es/cloneRequest.js +0 -12
  169. package/node_modules/@smithy/signature-v4/dist-types/cloneRequest.d.ts +0 -6
  170. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/cloneRequest.d.ts +0 -6
@@ -1,6 +1,7 @@
1
- import { AwsCredentialIdentity } from "@smithy/types";
1
+ import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
2
2
  import { ProcessCredentials } from "./ProcessCredentials";
3
3
  export declare const getValidatedProcessCredentials: (
4
4
  profileName: string,
5
- data: ProcessCredentials
5
+ data: ProcessCredentials,
6
+ profiles: ParsedIniData
6
7
  ) => AwsCredentialIdentity;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.614.0",
3
+ "version": "3.620.1",
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",
@@ -120,14 +120,23 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
120
120
  logger
121
121
  });
122
122
  }
123
- const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = ssoResp;
123
+ const {
124
+ roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}
125
+ } = ssoResp;
124
126
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
125
127
  throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", {
126
128
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
127
129
  logger
128
130
  });
129
131
  }
130
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
132
+ return {
133
+ accessKeyId,
134
+ secretAccessKey,
135
+ sessionToken,
136
+ expiration: new Date(expiration),
137
+ ...credentialScope && { credentialScope },
138
+ ...accountId && { accountId }
139
+ };
131
140
  }, "resolveSSOCredentials");
132
141
 
133
142
  // src/validateSsoProfile.ts
@@ -57,12 +57,19 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
57
57
  logger,
58
58
  });
59
59
  }
60
- const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = ssoResp;
60
+ const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;
61
61
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
62
62
  throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
63
63
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
64
64
  logger,
65
65
  });
66
66
  }
67
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
67
+ return {
68
+ accessKeyId,
69
+ secretAccessKey,
70
+ sessionToken,
71
+ expiration: new Date(expiration),
72
+ ...(credentialScope && { credentialScope }),
73
+ ...(accountId && { accountId }),
74
+ };
68
75
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.614.0",
3
+ "version": "3.622.0",
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",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/client-sso": "3.614.0",
27
+ "@aws-sdk/client-sso": "3.622.0",
28
28
  "@aws-sdk/token-providers": "3.614.0",
29
29
  "@aws-sdk/types": "3.609.0",
30
30
  "@smithy/property-provider": "^3.1.3",
@@ -54,7 +54,7 @@
54
54
  "files": [
55
55
  "dist-*/**"
56
56
  ],
57
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/credential-provider-sso",
57
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-sso",
58
58
  "repository": {
59
59
  "type": "git",
60
60
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.609.0",
3
+ "version": "3.621.0",
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",
@@ -46,7 +46,7 @@
46
46
  "typescript": "~4.9.5"
47
47
  },
48
48
  "peerDependencies": {
49
- "@aws-sdk/client-sts": "^3.609.0"
49
+ "@aws-sdk/client-sts": "^3.621.0"
50
50
  },
51
51
  "types": "./dist-types/index.d.ts",
52
52
  "engines": {
@@ -62,7 +62,7 @@
62
62
  "files": [
63
63
  "dist-*/**"
64
64
  ],
65
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/credential-provider-web-identity",
65
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-web-identity",
66
66
  "repository": {
67
67
  "type": "git",
68
68
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.609.0",
3
+ "version": "3.620.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
@@ -22,7 +22,7 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@aws-sdk/types": "3.609.0",
25
- "@smithy/protocol-http": "^4.0.3",
25
+ "@smithy/protocol-http": "^4.1.0",
26
26
  "@smithy/types": "^3.3.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.609.0",
3
+ "version": "3.620.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
@@ -22,7 +22,7 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@aws-sdk/types": "3.609.0",
25
- "@smithy/protocol-http": "^4.0.3",
25
+ "@smithy/protocol-http": "^4.1.0",
26
26
  "@smithy/types": "^3.3.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.614.0",
3
+ "version": "3.620.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@aws-sdk/types": "3.609.0",
26
26
  "@aws-sdk/util-endpoints": "3.614.0",
27
- "@smithy/protocol-http": "^4.0.3",
27
+ "@smithy/protocol-http": "^4.1.0",
28
28
  "@smithy/types": "^3.3.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
@@ -210,6 +210,7 @@ __name(_DefaultIdentityProviderConfig, "DefaultIdentityProviderConfig");
210
210
  var DefaultIdentityProviderConfig = _DefaultIdentityProviderConfig;
211
211
 
212
212
  // src/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.ts
213
+
213
214
  var import_types = require("@smithy/types");
214
215
  var _HttpApiKeyAuthSigner = class _HttpApiKeyAuthSigner {
215
216
  async sign(httpRequest, identity, signingProperties) {
@@ -227,7 +228,7 @@ var _HttpApiKeyAuthSigner = class _HttpApiKeyAuthSigner {
227
228
  if (!identity.apiKey) {
228
229
  throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
229
230
  }
230
- const clonedRequest = httpRequest.clone();
231
+ const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
231
232
  if (signingProperties.in === import_types.HttpApiKeyAuthLocation.QUERY) {
232
233
  clonedRequest.query[signingProperties.name] = identity.apiKey;
233
234
  } else if (signingProperties.in === import_types.HttpApiKeyAuthLocation.HEADER) {
@@ -244,9 +245,10 @@ __name(_HttpApiKeyAuthSigner, "HttpApiKeyAuthSigner");
244
245
  var HttpApiKeyAuthSigner = _HttpApiKeyAuthSigner;
245
246
 
246
247
  // src/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.ts
248
+
247
249
  var _HttpBearerAuthSigner = class _HttpBearerAuthSigner {
248
250
  async sign(httpRequest, identity, signingProperties) {
249
- const clonedRequest = httpRequest.clone();
251
+ const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
250
252
  if (!identity.token) {
251
253
  throw new Error("request could not be signed with `token` since the `token` is not defined");
252
254
  }
@@ -1,3 +1,4 @@
1
+ import { HttpRequest } from "@smithy/protocol-http";
1
2
  import { HttpApiKeyAuthLocation } from "@smithy/types";
2
3
  export class HttpApiKeyAuthSigner {
3
4
  async sign(httpRequest, identity, signingProperties) {
@@ -13,7 +14,7 @@ export class HttpApiKeyAuthSigner {
13
14
  if (!identity.apiKey) {
14
15
  throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
15
16
  }
16
- const clonedRequest = httpRequest.clone();
17
+ const clonedRequest = HttpRequest.clone(httpRequest);
17
18
  if (signingProperties.in === HttpApiKeyAuthLocation.QUERY) {
18
19
  clonedRequest.query[signingProperties.name] = identity.apiKey;
19
20
  }
@@ -1,6 +1,7 @@
1
+ import { HttpRequest } from "@smithy/protocol-http";
1
2
  export class HttpBearerAuthSigner {
2
3
  async sign(httpRequest, identity, signingProperties) {
3
- const clonedRequest = httpRequest.clone();
4
+ const clonedRequest = HttpRequest.clone(httpRequest);
4
5
  if (!identity.token) {
5
6
  throw new Error("request could not be signed with `token` since the `token` is not defined");
6
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "2.2.7",
3
+ "version": "2.3.2",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
- "@smithy/middleware-endpoint": "^3.0.5",
42
- "@smithy/middleware-retry": "^3.0.10",
41
+ "@smithy/middleware-endpoint": "^3.1.0",
42
+ "@smithy/middleware-retry": "^3.0.14",
43
43
  "@smithy/middleware-serde": "^3.0.3",
44
- "@smithy/protocol-http": "^4.0.4",
45
- "@smithy/smithy-client": "^3.1.8",
44
+ "@smithy/protocol-http": "^4.1.0",
45
+ "@smithy/smithy-client": "^3.1.12",
46
46
  "@smithy/types": "^3.3.0",
47
47
  "@smithy/util-middleware": "^3.0.3",
48
48
  "tslib": "^2.6.2"
@@ -88,7 +88,8 @@ var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
88
88
  accessKeyId: creds.AccessKeyId,
89
89
  secretAccessKey: creds.SecretAccessKey,
90
90
  sessionToken: creds.Token,
91
- expiration: new Date(creds.Expiration)
91
+ expiration: new Date(creds.Expiration),
92
+ ...creds.AccountId && { accountId: creds.AccountId }
92
93
  }), "fromImdsCredentials");
93
94
 
94
95
  // src/remoteProvider/RemoteProviderInit.ts
@@ -9,4 +9,5 @@ export const fromImdsCredentials = (creds) => ({
9
9
  secretAccessKey: creds.SecretAccessKey,
10
10
  sessionToken: creds.Token,
11
11
  expiration: new Date(creds.Expiration),
12
+ ...(creds.AccountId && { accountId: creds.AccountId }),
12
13
  });
@@ -7,6 +7,7 @@ export interface ImdsCredentials {
7
7
  SecretAccessKey: string;
8
8
  Token: string;
9
9
  Expiration: string;
10
+ AccountId?: string;
10
11
  }
11
12
  /**
12
13
  * @internal
@@ -7,6 +7,7 @@ export interface ImdsCredentials {
7
7
  SecretAccessKey: string;
8
8
  Token: string;
9
9
  Expiration: string;
10
+ AccountId?: string;
10
11
  }
11
12
  /**
12
13
  * @internal
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "3.1.4",
3
+ "version": "3.2.0",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -118,7 +118,8 @@ var _FetchHttpHandler = class _FetchHttpHandler {
118
118
  if (keepAliveSupport.supported) {
119
119
  requestOptions.keepalive = keepAlive;
120
120
  }
121
- let removeSignalEventListener = null;
121
+ let removeSignalEventListener = /* @__PURE__ */ __name(() => {
122
+ }, "removeSignalEventListener");
122
123
  const fetchRequest = new Request(url, requestOptions);
123
124
  const raceOfPromises = [
124
125
  fetch(fetchRequest).then((response) => {
@@ -69,7 +69,7 @@ export class FetchHttpHandler {
69
69
  if (keepAliveSupport.supported) {
70
70
  requestOptions.keepalive = keepAlive;
71
71
  }
72
- let removeSignalEventListener = null;
72
+ let removeSignalEventListener = () => { };
73
73
  const fetchRequest = new Request(url, requestOptions);
74
74
  const raceOfPromises = [
75
75
  fetch(fetchRequest).then((response) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -24,7 +24,7 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/protocol-http": "^4.0.4",
27
+ "@smithy/protocol-http": "^4.1.0",
28
28
  "@smithy/querystring-builder": "^3.0.3",
29
29
  "@smithy/types": "^3.3.0",
30
30
  "@smithy/util-base64": "^3.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-content-length",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/protocol-http": "^4.0.4",
26
+ "@smithy/protocol-http": "^4.1.0",
27
27
  "@smithy/types": "^3.3.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -47,7 +47,7 @@
47
47
  "directory": "packages/middleware-content-length"
48
48
  },
49
49
  "devDependencies": {
50
- "@smithy/util-test": "^0.2.5",
50
+ "@smithy/util-test": "^0.2.6",
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
53
53
  "rimraf": "3.0.2",
@@ -79,6 +79,13 @@ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndp
79
79
  return configValue;
80
80
  };
81
81
  }
82
+ if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
83
+ return async () => {
84
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
85
+ const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId);
86
+ return configValue;
87
+ };
88
+ }
82
89
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
83
90
  return async () => {
84
91
  const endpoint = await configProvider();
@@ -13,6 +13,13 @@ export const createConfigValueProvider = (configKey, canonicalEndpointParamKey,
13
13
  return configValue;
14
14
  };
15
15
  }
16
+ if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
17
+ return async () => {
18
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
19
+ const configValue = credentials?.accountId ?? credentials?.AccountId;
20
+ return configValue;
21
+ };
22
+ }
16
23
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
17
24
  return async () => {
18
25
  const endpoint = await configProvider();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "3.0.10",
3
+ "version": "3.0.14",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -32,9 +32,9 @@
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
34
  "@smithy/node-config-provider": "^3.1.4",
35
- "@smithy/protocol-http": "^4.0.4",
35
+ "@smithy/protocol-http": "^4.1.0",
36
36
  "@smithy/service-error-classification": "^3.0.3",
37
- "@smithy/smithy-client": "^3.1.8",
37
+ "@smithy/smithy-client": "^3.1.12",
38
38
  "@smithy/types": "^3.3.0",
39
39
  "@smithy/util-middleware": "^3.0.3",
40
40
  "@smithy/util-retry": "^3.0.3",
@@ -42,7 +42,7 @@
42
42
  "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@smithy/util-test": "^0.2.5",
45
+ "@smithy/util-test": "^0.2.6",
46
46
  "@types/uuid": "^8.3.0",
47
47
  "concurrently": "7.0.0",
48
48
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -26,7 +26,7 @@
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
28
  "@smithy/abort-controller": "^3.1.1",
29
- "@smithy/protocol-http": "^4.0.4",
29
+ "@smithy/protocol-http": "^4.1.0",
30
30
  "@smithy/querystring-builder": "^3.0.3",
31
31
  "@smithy/types": "^3.3.0",
32
32
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline protocol-http",
@@ -307,24 +307,11 @@ var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
307
307
  return false;
308
308
  }, "hasHeader");
309
309
 
310
- // src/cloneRequest.ts
311
- var cloneRequest = /* @__PURE__ */ __name(({ headers, query, ...rest }) => ({
312
- ...rest,
313
- headers: { ...headers },
314
- query: query ? cloneQuery(query) : void 0
315
- }), "cloneRequest");
316
- var cloneQuery = /* @__PURE__ */ __name((query) => Object.keys(query).reduce((carry, paramName) => {
317
- const param = query[paramName];
318
- return {
319
- ...carry,
320
- [paramName]: Array.isArray(param) ? [...param] : param
321
- };
322
- }, {}), "cloneQuery");
323
-
324
310
  // src/moveHeadersToQuery.ts
311
+ var import_protocol_http = require("@smithy/protocol-http");
325
312
  var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {
326
313
  var _a;
327
- const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : cloneRequest(request);
314
+ const { headers, query = {} } = import_protocol_http.HttpRequest.clone(request);
328
315
  for (const name of Object.keys(headers)) {
329
316
  const lname = name.toLowerCase();
330
317
  if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname))) {
@@ -340,8 +327,9 @@ var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {
340
327
  }, "moveHeadersToQuery");
341
328
 
342
329
  // src/prepareRequest.ts
330
+
343
331
  var prepareRequest = /* @__PURE__ */ __name((request) => {
344
- request = typeof request.clone === "function" ? request.clone() : cloneRequest(request);
332
+ request = import_protocol_http.HttpRequest.clone(request);
345
333
  for (const headerName of Object.keys(request.headers)) {
346
334
  if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
347
335
  delete request.headers[headerName];
@@ -1,6 +1,6 @@
1
- import { cloneRequest } from "./cloneRequest";
1
+ import { HttpRequest } from "@smithy/protocol-http";
2
2
  export const moveHeadersToQuery = (request, options = {}) => {
3
- const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : cloneRequest(request);
3
+ const { headers, query = {} } = HttpRequest.clone(request);
4
4
  for (const name of Object.keys(headers)) {
5
5
  const lname = name.toLowerCase();
6
6
  if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) {
@@ -1,7 +1,7 @@
1
- import { cloneRequest } from "./cloneRequest";
1
+ import { HttpRequest } from "@smithy/protocol-http";
2
2
  import { GENERATED_HEADERS } from "./constants";
3
3
  export const prepareRequest = (request) => {
4
- request = typeof request.clone === "function" ? request.clone() : cloneRequest(request);
4
+ request = HttpRequest.clone(request);
5
5
  for (const headerName of Object.keys(request.headers)) {
6
6
  if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
7
7
  delete request.headers[headerName];
@@ -18,7 +18,7 @@ export interface SignatureV4Init {
18
18
  * A constructor function for a hash object that will calculate SHA-256 HMAC
19
19
  * checksums.
20
20
  */
21
- sha256?: ChecksumConstructor | HashConstructor;
21
+ sha256: ChecksumConstructor | HashConstructor;
22
22
  /**
23
23
  * Whether to uri-escape the request URI path as part of computing the
24
24
  * canonical request string. This is required for every AWS service, except
@@ -1,9 +1,9 @@
1
- import { HttpRequest, QueryParameterBag } from "@smithy/types";
1
+ import type { HttpRequest as IHttpRequest, QueryParameterBag } from "@smithy/types";
2
2
  /**
3
3
  * @private
4
4
  */
5
- export declare const moveHeadersToQuery: (request: HttpRequest, options?: {
5
+ export declare const moveHeadersToQuery: (request: IHttpRequest, options?: {
6
6
  unhoistableHeaders?: Set<string>;
7
- }) => HttpRequest & {
7
+ }) => IHttpRequest & {
8
8
  query: QueryParameterBag;
9
9
  };
@@ -1,5 +1,5 @@
1
- import { HttpRequest } from "@smithy/types";
1
+ import type { HttpRequest as IHttpRequest } from "@smithy/types";
2
2
  /**
3
3
  * @private
4
4
  */
5
- export declare const prepareRequest: (request: HttpRequest) => HttpRequest;
5
+ export declare const prepareRequest: (request: IHttpRequest) => IHttpRequest;
@@ -18,7 +18,7 @@ export interface SignatureV4Init {
18
18
  * A constructor function for a hash object that will calculate SHA-256 HMAC
19
19
  * checksums.
20
20
  */
21
- sha256?: ChecksumConstructor | HashConstructor;
21
+ sha256: ChecksumConstructor | HashConstructor;
22
22
  /**
23
23
  * Whether to uri-escape the request URI path as part of computing the
24
24
  * canonical request string. This is required for every AWS service, except
@@ -1,9 +1,9 @@
1
- import { HttpRequest, QueryParameterBag } from "@smithy/types";
1
+ import { HttpRequest as IHttpRequest, QueryParameterBag } from "@smithy/types";
2
2
  /**
3
3
  * @private
4
4
  */
5
- export declare const moveHeadersToQuery: (request: HttpRequest, options?: {
5
+ export declare const moveHeadersToQuery: (request: IHttpRequest, options?: {
6
6
  unhoistableHeaders?: Set<string>;
7
- }) => HttpRequest & {
7
+ }) => IHttpRequest & {
8
8
  query: QueryParameterBag;
9
9
  };
@@ -1,5 +1,5 @@
1
- import { HttpRequest } from "@smithy/types";
1
+ import { HttpRequest as IHttpRequest } from "@smithy/types";
2
2
  /**
3
3
  * @private
4
4
  */
5
- export declare const prepareRequest: (request: HttpRequest) => HttpRequest;
5
+ export declare const prepareRequest: (request: IHttpRequest) => IHttpRequest;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "3.1.2",
3
+ "version": "4.1.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,6 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@smithy/is-array-buffer": "^3.0.0",
28
+ "@smithy/protocol-http": "^4.1.0",
28
29
  "@smithy/types": "^3.3.0",
29
30
  "@smithy/util-hex-encoding": "^3.0.0",
30
31
  "@smithy/util-middleware": "^3.0.3",
@@ -34,7 +35,6 @@
34
35
  },
35
36
  "devDependencies": {
36
37
  "@aws-crypto/sha256-js": "5.2.0",
37
- "@smithy/protocol-http": "^4.0.3",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
40
  "rimraf": "3.0.2",
@@ -183,6 +183,7 @@ var _Command = class _Command {
183
183
  inputFilterSensitiveLog,
184
184
  outputFilterSensitiveLog,
185
185
  [import_types.SMITHY_CONTEXT_KEY]: {
186
+ commandInstance: this,
186
187
  ...smithyContext
187
188
  },
188
189
  ...additionalContext
@@ -20,6 +20,7 @@ export class Command {
20
20
  inputFilterSensitiveLog,
21
21
  outputFilterSensitiveLog,
22
22
  [SMITHY_CONTEXT_KEY]: {
23
+ commandInstance: this,
23
24
  ...smithyContext,
24
25
  },
25
26
  ...additionalContext,