@cdk8s/awscdk-resolver 0.0.47 → 0.0.49

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 (83) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +35 -35
  4. package/node_modules/@aws-sdk/client-sso/package.json +31 -31
  5. package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +2 -0
  6. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +2 -0
  7. package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +4 -5
  8. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +7 -6
  9. package/node_modules/@aws-sdk/client-sts/package.json +33 -33
  10. package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
  11. package/node_modules/@aws-sdk/core/package.json +5 -5
  12. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  13. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  14. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  15. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +4 -1
  16. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +3 -0
  17. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -0
  18. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +1 -0
  19. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +1 -0
  21. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +1 -0
  22. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +1 -0
  23. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +1 -0
  24. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
  25. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  26. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +1 -0
  27. package/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +1 -0
  28. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts +1 -0
  29. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts +1 -0
  30. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  31. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +3 -1
  32. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -1
  33. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  34. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  35. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  36. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  37. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  38. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  39. package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
  40. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  41. package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
  42. package/node_modules/@aws-sdk/token-providers/package.json +29 -29
  43. package/node_modules/@aws-sdk/types/package.json +2 -2
  44. package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
  45. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  46. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  47. package/node_modules/@smithy/abort-controller/package.json +2 -2
  48. package/node_modules/@smithy/config-resolver/package.json +4 -4
  49. package/node_modules/@smithy/core/package.json +8 -8
  50. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  51. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  52. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  53. package/node_modules/@smithy/hash-node/package.json +2 -2
  54. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  55. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  56. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +8 -0
  57. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +7 -0
  58. package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
  59. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  60. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  61. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  62. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  63. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  64. package/node_modules/@smithy/property-provider/package.json +2 -2
  65. package/node_modules/@smithy/protocol-http/package.json +2 -2
  66. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  67. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  68. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  69. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  70. package/node_modules/@smithy/signature-v4/package.json +5 -5
  71. package/node_modules/@smithy/smithy-client/package.json +6 -6
  72. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +4 -0
  73. package/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +4 -0
  74. package/node_modules/@smithy/types/package.json +1 -1
  75. package/node_modules/@smithy/url-parser/package.json +3 -3
  76. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  77. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  78. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  79. package/node_modules/@smithy/util-middleware/package.json +2 -2
  80. package/node_modules/@smithy/util-retry/package.json +3 -3
  81. package/node_modules/@smithy/util-stream/package.json +5 -5
  82. package/node_modules/@smithy/util-waiter/package.json +3 -3
  83. package/package.json +5 -5
@@ -4,4 +4,5 @@ export type ProcessCredentials = {
4
4
  SecretAccessKey: string;
5
5
  SessionToken?: string;
6
6
  Expiration?: number;
7
+ CredentialScope?: string;
7
8
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
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",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.468.0",
27
+ "@aws-sdk/types": "3.485.0",
28
28
  "@smithy/property-provider": "^2.0.0",
29
29
  "@smithy/shared-ini-file-loader": "^2.0.6",
30
- "@smithy/types": "^2.7.0",
30
+ "@smithy/types": "^2.8.0",
31
31
  "tslib": "^2.5.0"
32
32
  },
33
33
  "devDependencies": {
@@ -7,6 +7,7 @@ const property_provider_1 = require("@smithy/property-provider");
7
7
  const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
8
8
  const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
9
9
  const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
10
+ var _a;
10
11
  let token;
11
12
  const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
12
13
  if (ssoSession) {
@@ -46,9 +47,10 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
46
47
  throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
47
48
  }
48
49
  const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
50
+ const credentialScope = (_a = ssoResp === null || ssoResp === void 0 ? void 0 : ssoResp.roleCredentials) === null || _a === void 0 ? void 0 : _a.credentialScope;
49
51
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
50
52
  throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
51
53
  }
52
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
54
+ return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
53
55
  };
54
56
  exports.resolveSSOCredentials = resolveSSOCredentials;
@@ -43,8 +43,9 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
43
43
  throw CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
44
44
  }
45
45
  const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
46
+ const credentialScope = ssoResp?.roleCredentials?.credentialScope;
46
47
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
47
48
  throw new CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
48
49
  }
49
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
50
+ return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
50
51
  };
@@ -1,6 +1,6 @@
1
1
  import { AwsCredentialIdentity } from "@smithy/types";
2
2
  import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
3
3
  /**
4
- * @private
4
+ * @internal
5
5
  */
6
6
  export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.484.0",
3
+ "version": "3.485.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,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/client-sso": "3.484.0",
28
- "@aws-sdk/token-providers": "3.484.0",
29
- "@aws-sdk/types": "3.468.0",
27
+ "@aws-sdk/client-sso": "3.485.0",
28
+ "@aws-sdk/token-providers": "3.485.0",
29
+ "@aws-sdk/types": "3.485.0",
30
30
  "@smithy/property-provider": "^2.0.0",
31
31
  "@smithy/shared-ini-file-loader": "^2.0.6",
32
- "@smithy/types": "^2.7.0",
32
+ "@smithy/types": "^2.8.0",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.468.0",
3
+ "version": "3.485.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",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@aws-sdk/types": "3.468.0",
35
+ "@aws-sdk/types": "3.485.0",
36
36
  "@smithy/property-provider": "^2.0.0",
37
- "@smithy/types": "^2.7.0",
37
+ "@smithy/types": "^2.8.0",
38
38
  "tslib": "^2.5.0"
39
39
  },
40
40
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.468.0",
25
- "@smithy/protocol-http": "^3.0.11",
26
- "@smithy/types": "^2.7.0",
24
+ "@aws-sdk/types": "3.485.0",
25
+ "@smithy/protocol-http": "^3.0.12",
26
+ "@smithy/types": "^2.8.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,8 +22,8 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.468.0",
26
- "@smithy/types": "^2.7.0",
25
+ "@aws-sdk/types": "3.485.0",
26
+ "@smithy/types": "^2.8.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.468.0",
25
- "@smithy/protocol-http": "^3.0.11",
26
- "@smithy/types": "^2.7.0",
24
+ "@aws-sdk/types": "3.485.0",
25
+ "@smithy/protocol-http": "^3.0.12",
26
+ "@smithy/types": "^2.8.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.468.0",
25
+ "@aws-sdk/types": "3.485.0",
26
26
  "@smithy/property-provider": "^2.0.0",
27
- "@smithy/protocol-http": "^3.0.11",
27
+ "@smithy/protocol-http": "^3.0.12",
28
28
  "@smithy/signature-v4": "^2.0.0",
29
- "@smithy/types": "^2.7.0",
30
- "@smithy/util-middleware": "^2.0.8",
29
+ "@smithy/types": "^2.8.0",
30
+ "@smithy/util-middleware": "^2.0.9",
31
31
  "tslib": "^2.5.0"
32
32
  },
33
33
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.478.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.468.0",
26
- "@aws-sdk/util-endpoints": "3.478.0",
27
- "@smithy/protocol-http": "^3.0.11",
28
- "@smithy/types": "^2.7.0",
25
+ "@aws-sdk/types": "3.485.0",
26
+ "@aws-sdk/util-endpoints": "3.485.0",
27
+ "@smithy/protocol-http": "^3.0.12",
28
+ "@smithy/types": "^2.8.0",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.484.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@smithy/node-config-provider": "^2.1.8",
25
- "@smithy/types": "^2.7.0",
24
+ "@smithy/node-config-provider": "^2.1.9",
25
+ "@smithy/types": "^2.8.0",
26
26
  "@smithy/util-config-provider": "^2.1.0",
27
- "@smithy/util-middleware": "^2.0.8",
27
+ "@smithy/util-middleware": "^2.0.9",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.484.0",
3
+ "version": "3.485.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,39 +29,39 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "3.0.0",
31
31
  "@aws-crypto/sha256-js": "3.0.0",
32
- "@aws-sdk/middleware-host-header": "3.468.0",
33
- "@aws-sdk/middleware-logger": "3.468.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.468.0",
35
- "@aws-sdk/middleware-user-agent": "3.478.0",
36
- "@aws-sdk/region-config-resolver": "3.484.0",
37
- "@aws-sdk/types": "3.468.0",
38
- "@aws-sdk/util-endpoints": "3.478.0",
39
- "@aws-sdk/util-user-agent-browser": "3.468.0",
40
- "@aws-sdk/util-user-agent-node": "3.470.0",
41
- "@smithy/config-resolver": "^2.0.22",
42
- "@smithy/fetch-http-handler": "^2.3.1",
43
- "@smithy/hash-node": "^2.0.17",
44
- "@smithy/invalid-dependency": "^2.0.15",
45
- "@smithy/middleware-content-length": "^2.0.17",
46
- "@smithy/middleware-endpoint": "^2.2.3",
47
- "@smithy/middleware-retry": "^2.0.25",
48
- "@smithy/middleware-serde": "^2.0.15",
49
- "@smithy/middleware-stack": "^2.0.9",
50
- "@smithy/node-config-provider": "^2.1.8",
51
- "@smithy/node-http-handler": "^2.2.1",
32
+ "@aws-sdk/middleware-host-header": "3.485.0",
33
+ "@aws-sdk/middleware-logger": "3.485.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.485.0",
35
+ "@aws-sdk/middleware-user-agent": "3.485.0",
36
+ "@aws-sdk/region-config-resolver": "3.485.0",
37
+ "@aws-sdk/types": "3.485.0",
38
+ "@aws-sdk/util-endpoints": "3.485.0",
39
+ "@aws-sdk/util-user-agent-browser": "3.485.0",
40
+ "@aws-sdk/util-user-agent-node": "3.485.0",
41
+ "@smithy/config-resolver": "^2.0.23",
42
+ "@smithy/fetch-http-handler": "^2.3.2",
43
+ "@smithy/hash-node": "^2.0.18",
44
+ "@smithy/invalid-dependency": "^2.0.16",
45
+ "@smithy/middleware-content-length": "^2.0.18",
46
+ "@smithy/middleware-endpoint": "^2.3.0",
47
+ "@smithy/middleware-retry": "^2.0.26",
48
+ "@smithy/middleware-serde": "^2.0.16",
49
+ "@smithy/middleware-stack": "^2.0.10",
50
+ "@smithy/node-config-provider": "^2.1.9",
51
+ "@smithy/node-http-handler": "^2.2.2",
52
52
  "@smithy/property-provider": "^2.0.0",
53
- "@smithy/protocol-http": "^3.0.11",
53
+ "@smithy/protocol-http": "^3.0.12",
54
54
  "@smithy/shared-ini-file-loader": "^2.0.6",
55
- "@smithy/smithy-client": "^2.2.0",
56
- "@smithy/types": "^2.7.0",
57
- "@smithy/url-parser": "^2.0.15",
55
+ "@smithy/smithy-client": "^2.2.1",
56
+ "@smithy/types": "^2.8.0",
57
+ "@smithy/url-parser": "^2.0.16",
58
58
  "@smithy/util-base64": "^2.0.1",
59
59
  "@smithy/util-body-length-browser": "^2.0.1",
60
60
  "@smithy/util-body-length-node": "^2.1.0",
61
- "@smithy/util-defaults-mode-browser": "^2.0.23",
62
- "@smithy/util-defaults-mode-node": "^2.0.31",
63
- "@smithy/util-endpoints": "^1.0.7",
64
- "@smithy/util-retry": "^2.0.8",
61
+ "@smithy/util-defaults-mode-browser": "^2.0.24",
62
+ "@smithy/util-defaults-mode-node": "^2.0.32",
63
+ "@smithy/util-endpoints": "^1.0.8",
64
+ "@smithy/util-retry": "^2.0.9",
65
65
  "@smithy/util-utf8": "^2.0.2",
66
66
  "tslib": "^2.5.0"
67
67
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "directory": "packages/types"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^2.7.0",
44
+ "@smithy/types": "^2.8.0",
45
45
  "tslib": "^2.5.0"
46
46
  },
47
47
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.478.0",
3
+ "version": "3.485.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.468.0",
26
- "@smithy/util-endpoints": "^1.0.7",
25
+ "@aws-sdk/types": "3.485.0",
26
+ "@smithy/util-endpoints": "^1.0.8",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.468.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,8 +22,8 @@
22
22
  "license": "Apache-2.0",
23
23
  "react-native": "dist-es/index.native.js",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.468.0",
26
- "@smithy/types": "^2.7.0",
25
+ "@aws-sdk/types": "3.485.0",
26
+ "@smithy/types": "^2.8.0",
27
27
  "bowser": "^2.11.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.470.0",
3
+ "version": "3.485.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.468.0",
24
- "@smithy/node-config-provider": "^2.1.8",
25
- "@smithy/types": "^2.7.0",
23
+ "@aws-sdk/types": "3.485.0",
24
+ "@smithy/node-config-provider": "^2.1.9",
25
+ "@smithy/types": "^2.8.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "A simple abort controller library",
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
- "@smithy/types": "^2.7.0",
27
+ "@smithy/types": "^2.8.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/node-config-provider": "^2.1.8",
27
- "@smithy/types": "^2.7.0",
26
+ "@smithy/node-config-provider": "^2.1.9",
27
+ "@smithy/types": "^2.8.0",
28
28
  "@smithy/util-config-provider": "^2.1.0",
29
- "@smithy/util-middleware": "^2.0.8",
29
+ "@smithy/util-middleware": "^2.0.9",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/middleware-endpoint": "^2.2.3",
27
- "@smithy/middleware-retry": "^2.0.25",
28
- "@smithy/middleware-serde": "^2.0.15",
29
- "@smithy/protocol-http": "^3.0.11",
30
- "@smithy/smithy-client": "^2.2.0",
31
- "@smithy/types": "^2.7.0",
32
- "@smithy/util-middleware": "^2.0.8",
26
+ "@smithy/middleware-endpoint": "^2.3.0",
27
+ "@smithy/middleware-retry": "^2.0.26",
28
+ "@smithy/middleware-serde": "^2.0.16",
29
+ "@smithy/protocol-http": "^3.0.12",
30
+ "@smithy/smithy-client": "^2.2.1",
31
+ "@smithy/types": "^2.8.0",
32
+ "@smithy/util-middleware": "^2.0.9",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
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",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@smithy/node-config-provider": "^2.1.8",
30
- "@smithy/property-provider": "^2.0.16",
31
- "@smithy/types": "^2.7.0",
32
- "@smithy/url-parser": "^2.0.15",
29
+ "@smithy/node-config-provider": "^2.1.9",
30
+ "@smithy/property-provider": "^2.0.17",
31
+ "@smithy/types": "^2.8.0",
32
+ "@smithy/url-parser": "^2.0.16",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/eventstream-codec",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@aws-crypto/crc32": "3.0.0",
26
- "@smithy/types": "^2.7.0",
26
+ "@smithy/types": "^2.8.0",
27
27
  "@smithy/util-hex-encoding": "^2.0.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
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,14 +24,14 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/protocol-http": "^3.0.11",
28
- "@smithy/querystring-builder": "^2.0.15",
29
- "@smithy/types": "^2.7.0",
27
+ "@smithy/protocol-http": "^3.0.12",
28
+ "@smithy/querystring-builder": "^2.0.16",
29
+ "@smithy/types": "^2.8.0",
30
30
  "@smithy/util-base64": "^2.0.1",
31
31
  "tslib": "^2.5.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^2.0.15",
34
+ "@smithy/abort-controller": "^2.0.16",
35
35
  "@tsconfig/recommended": "1.0.1",
36
36
  "@types/chai-as-promised": "^7.1.2",
37
37
  "chai": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -31,7 +31,7 @@
31
31
  "typedoc": "0.23.23"
32
32
  },
33
33
  "dependencies": {
34
- "@smithy/types": "^2.7.0",
34
+ "@smithy/types": "^2.8.0",
35
35
  "@smithy/util-buffer-from": "^2.0.0",
36
36
  "@smithy/util-utf8": "^2.0.2",
37
37
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.7.0",
25
+ "@smithy/types": "^2.8.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/protocol-http": "^3.0.11",
27
- "@smithy/types": "^2.7.0",
26
+ "@smithy/protocol-http": "^3.0.12",
27
+ "@smithy/types": "^2.8.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -47,7 +47,7 @@
47
47
  "directory": "packages/middleware-content-length"
48
48
  },
49
49
  "devDependencies": {
50
- "@smithy/util-test": "^0.1.11",
50
+ "@smithy/util-test": "^0.1.12",
51
51
  "@tsconfig/recommended": "1.0.1",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
@@ -10,6 +10,14 @@ const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config)
10
10
  }
11
11
  return configValue;
12
12
  };
13
+ if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
14
+ return async () => {
15
+ var _a;
16
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
17
+ const configValue = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.credentialScope) !== null && _a !== void 0 ? _a : credentials === null || credentials === void 0 ? void 0 : credentials.CredentialScope;
18
+ return configValue;
19
+ };
20
+ }
13
21
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
14
22
  return async () => {
15
23
  const endpoint = await configProvider();