@cdklabs/cdk-ecs-codedeploy 0.0.355 → 0.0.357

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 (99) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +8 -6
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +8 -6
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +18 -0
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +1 -0
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +1 -0
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +1 -0
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  16. package/node_modules/@aws-sdk/client-codedeploy/package.json +14 -14
  17. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +8 -6
  18. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +8 -6
  19. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +18 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
  23. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +1 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  27. package/node_modules/@aws-sdk/client-sso/package.json +11 -11
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +8 -6
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +8 -6
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +18 -0
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -0
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -0
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +1 -0
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +1 -0
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  38. package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
  39. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +8 -6
  40. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +8 -6
  41. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +18 -0
  42. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -0
  44. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +1 -0
  46. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  47. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  48. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  49. package/node_modules/@aws-sdk/client-sts/package.json +13 -13
  50. package/node_modules/@aws-sdk/core/package.json +2 -2
  51. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  52. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  53. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -8
  54. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +7 -7
  55. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  56. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  57. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +8 -2
  58. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +4 -2
  59. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -3
  60. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +5 -3
  61. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  62. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -2
  63. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +4 -2
  64. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -3
  65. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +5 -3
  66. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  67. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +4 -8
  68. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +4 -8
  69. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  70. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  71. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  72. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  73. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  74. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  75. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +10 -10
  76. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -10
  77. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  78. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
  79. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
  80. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
  81. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
  82. package/node_modules/@aws-sdk/types/package.json +1 -1
  83. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  84. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  85. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  86. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -0
  87. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +3 -0
  88. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts +8 -1
  89. package/node_modules/@smithy/middleware-endpoint/dist-types/types.d.ts +8 -1
  90. package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
  91. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  92. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -3
  93. package/node_modules/@smithy/smithy-client/dist-es/lazy-json.js +2 -2
  94. package/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts +9 -6
  95. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts +9 -6
  96. package/node_modules/@smithy/smithy-client/package.json +2 -2
  97. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  98. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  99. package/package.json +3 -3
@@ -1,6 +1,5 @@
1
- import type { CredentialProviderOptions } from "@aws-sdk/types";
1
+ import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
2
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@smithy/types";
4
3
  /**
5
4
  * @internal
6
5
  */
@@ -12,4 +11,4 @@ export interface FromProcessInit extends SourceProfileInit, CredentialProviderOp
12
11
  * Creates a credential provider that will read from a credential_process specified
13
12
  * in ini files.
14
13
  */
15
- export declare const fromProcess: (init?: FromProcessInit) => AwsCredentialIdentityProvider;
14
+ export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,9 +1,11 @@
1
- import { CredentialProviderOptions } from "@aws-sdk/types";
1
+ import {
2
+ CredentialProviderOptions,
3
+ RuntimeConfigAwsCredentialIdentityProvider,
4
+ } from "@aws-sdk/types";
2
5
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@smithy/types";
4
6
  export interface FromProcessInit
5
7
  extends SourceProfileInit,
6
8
  CredentialProviderOptions {}
7
9
  export declare const fromProcess: (
8
10
  init?: FromProcessInit
9
- ) => AwsCredentialIdentityProvider;
11
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.713.0",
3
+ "version": "3.714.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",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.713.0",
29
- "@aws-sdk/types": "3.713.0",
28
+ "@aws-sdk/core": "3.714.0",
29
+ "@aws-sdk/types": "3.714.0",
30
30
  "@smithy/property-provider": "^3.1.11",
31
31
  "@smithy/shared-ini-file-loader": "^3.1.12",
32
32
  "@smithy/types": "^3.7.2",
@@ -165,12 +165,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
165
165
  }, "validateSsoProfile");
166
166
 
167
167
  // src/fromSSO.ts
168
- var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
168
+ var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
169
169
  var _a;
170
170
  (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO");
171
171
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
172
172
  const { ssoClient } = init;
173
- const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
173
+ const profileName = (0, import_shared_ini_file_loader.getProfileName)({
174
+ profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
175
+ });
174
176
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
175
177
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
176
178
  const profile = profiles[profileName];
@@ -3,11 +3,13 @@ import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/sha
3
3
  import { isSsoProfile } from "./isSsoProfile";
4
4
  import { resolveSSOCredentials } from "./resolveSSOCredentials";
5
5
  import { validateSsoProfile } from "./validateSsoProfile";
6
- export const fromSSO = (init = {}) => async () => {
6
+ export const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
7
7
  init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
8
8
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
9
9
  const { ssoClient } = init;
10
- const profileName = getProfileName(init);
10
+ const profileName = getProfileName({
11
+ profile: init.profile ?? callerClientConfig?.profile,
12
+ });
11
13
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
12
14
  const profiles = await parseKnownFiles(init);
13
15
  const profile = profiles[profileName];
@@ -1,6 +1,5 @@
1
- import type { CredentialProviderOptions } from "@aws-sdk/types";
1
+ import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
2
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@smithy/types";
4
3
  import type { SSOClient, SSOClientConfig } from "./loadSso";
5
4
  /**
6
5
  * @internal
@@ -66,4 +65,4 @@ export interface FromSSOInit extends SourceProfileInit, CredentialProviderOption
66
65
  * sso_start_url = https://www.....com/start
67
66
  * ```
68
67
  */
69
- export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => AwsCredentialIdentityProvider;
68
+ export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,6 +1,8 @@
1
- import { CredentialProviderOptions } from "@aws-sdk/types";
1
+ import {
2
+ CredentialProviderOptions,
3
+ RuntimeConfigAwsCredentialIdentityProvider,
4
+ } from "@aws-sdk/types";
2
5
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@smithy/types";
4
6
  import { SSOClient, SSOClientConfig } from "./loadSso";
5
7
  export interface SsoCredentialsParameters {
6
8
  ssoStartUrl: string;
@@ -17,4 +19,4 @@ export interface FromSSOInit
17
19
  }
18
20
  export declare const fromSSO: (
19
21
  init?: FromSSOInit & Partial<SsoCredentialsParameters>
20
- ) => AwsCredentialIdentityProvider;
22
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.713.0",
3
+ "version": "3.714.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",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso": "3.713.0",
29
- "@aws-sdk/core": "3.713.0",
30
- "@aws-sdk/token-providers": "3.713.0",
31
- "@aws-sdk/types": "3.713.0",
28
+ "@aws-sdk/client-sso": "3.714.0",
29
+ "@aws-sdk/core": "3.714.0",
30
+ "@aws-sdk/token-providers": "3.714.0",
31
+ "@aws-sdk/types": "3.714.0",
32
32
  "@smithy/property-provider": "^3.1.11",
33
33
  "@smithy/shared-ini-file-loader": "^3.1.12",
34
34
  "@smithy/types": "^3.7.2",
@@ -33,14 +33,10 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
33
33
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
34
34
  ...init.clientConfig,
35
35
  credentialProviderLogger: init.logger,
36
- ...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
37
- ? {
38
- parentClientConfig: {
39
- region: awsIdentityProperties?.callerClientConfig?.region,
40
- ...init.parentClientConfig,
41
- },
42
- }
43
- : {}),
36
+ parentClientConfig: {
37
+ ...awsIdentityProperties?.callerClientConfig,
38
+ ...init.parentClientConfig,
39
+ },
44
40
  }, init.clientPlugins);
45
41
  }
46
42
  return roleAssumerWithWebIdentity({
@@ -7,14 +7,10 @@ export const fromWebToken = (init) => async (awsIdentityProperties) => {
7
7
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
8
8
  ...init.clientConfig,
9
9
  credentialProviderLogger: init.logger,
10
- ...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
11
- ? {
12
- parentClientConfig: {
13
- region: awsIdentityProperties?.callerClientConfig?.region,
14
- ...init.parentClientConfig,
15
- },
16
- }
17
- : {}),
10
+ parentClientConfig: {
11
+ ...awsIdentityProperties?.callerClientConfig,
12
+ ...init.parentClientConfig,
13
+ },
18
14
  }, init.clientPlugins);
19
15
  }
20
16
  return roleAssumerWithWebIdentity({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.713.0",
3
+ "version": "3.714.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",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@aws-sdk/core": "3.713.0",
37
- "@aws-sdk/types": "3.713.0",
36
+ "@aws-sdk/core": "3.714.0",
37
+ "@aws-sdk/types": "3.714.0",
38
38
  "@smithy/property-provider": "^3.1.11",
39
39
  "@smithy/types": "^3.7.2",
40
40
  "tslib": "^2.6.2"
@@ -48,7 +48,7 @@
48
48
  "typescript": "~4.9.5"
49
49
  },
50
50
  "peerDependencies": {
51
- "@aws-sdk/client-sts": "^3.713.0"
51
+ "@aws-sdk/client-sts": "^3.714.0"
52
52
  },
53
53
  "types": "./dist-types/index.d.ts",
54
54
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.713.0",
3
+ "version": "3.714.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",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "3.713.0",
26
+ "@aws-sdk/types": "3.714.0",
27
27
  "@smithy/protocol-http": "^4.1.8",
28
28
  "@smithy/types": "^3.7.2",
29
29
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.713.0",
3
+ "version": "3.714.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-logger",
@@ -24,7 +24,7 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.713.0",
27
+ "@aws-sdk/types": "3.714.0",
28
28
  "@smithy/types": "^3.7.2",
29
29
  "tslib": "^2.6.2"
30
30
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.713.0",
3
+ "version": "3.714.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",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "3.713.0",
26
+ "@aws-sdk/types": "3.714.0",
27
27
  "@smithy/protocol-http": "^4.1.8",
28
28
  "@smithy/types": "^3.7.2",
29
29
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.713.0",
3
+ "version": "3.714.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,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "3.713.0",
28
- "@aws-sdk/types": "3.713.0",
29
- "@aws-sdk/util-endpoints": "3.713.0",
27
+ "@aws-sdk/core": "3.714.0",
28
+ "@aws-sdk/types": "3.714.0",
29
+ "@aws-sdk/util-endpoints": "3.714.0",
30
30
  "@smithy/core": "^2.5.5",
31
31
  "@smithy/protocol-http": "^4.1.8",
32
32
  "@smithy/types": "^3.7.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.713.0",
3
+ "version": "3.714.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 region-config-resolver",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.713.0",
25
+ "@aws-sdk/types": "3.714.0",
26
26
  "@smithy/node-config-provider": "^3.1.12",
27
27
  "@smithy/types": "^3.7.2",
28
28
  "@smithy/util-config-provider": "^3.0.0",
@@ -103,20 +103,20 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
103
103
 
104
104
  // src/fromSso.ts
105
105
  var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
106
- var fromSso = /* @__PURE__ */ __name((_init = {}) => async (awsIdentityProperties) => {
107
- var _a, _b, _c;
106
+ var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
107
+ var _a;
108
108
  const init = {
109
109
  ..._init,
110
- ...((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a.region) ? {
111
- parentClientConfig: {
112
- region: (_b = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _b.region,
113
- ..._init.parentClientConfig
114
- }
115
- } : {}
110
+ parentClientConfig: {
111
+ ...callerClientConfig,
112
+ ..._init.parentClientConfig
113
+ }
116
114
  };
117
- (_c = init.logger) == null ? void 0 : _c.debug("@aws-sdk/token-providers - fromSso");
115
+ (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso");
118
116
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
119
- const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
117
+ const profileName = (0, import_shared_ini_file_loader.getProfileName)({
118
+ profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
119
+ });
120
120
  const profile = profiles[profileName];
121
121
  if (!profile) {
122
122
  throw new import_property_provider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
@@ -6,21 +6,19 @@ import { validateTokenExpiry } from "./validateTokenExpiry";
6
6
  import { validateTokenKey } from "./validateTokenKey";
7
7
  import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
8
8
  const lastRefreshAttemptTime = new Date(0);
9
- export const fromSso = (_init = {}) => async (awsIdentityProperties) => {
9
+ export const fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
10
10
  const init = {
11
11
  ..._init,
12
- ...(awsIdentityProperties?.callerClientConfig?.region
13
- ? {
14
- parentClientConfig: {
15
- region: awsIdentityProperties?.callerClientConfig?.region,
16
- ..._init.parentClientConfig,
17
- },
18
- }
19
- : {}),
12
+ parentClientConfig: {
13
+ ...callerClientConfig,
14
+ ..._init.parentClientConfig,
15
+ },
20
16
  };
21
17
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
22
18
  const profiles = await parseKnownFiles(init);
23
- const profileName = getProfileName(init);
19
+ const profileName = getProfileName({
20
+ profile: init.profile ?? callerClientConfig?.profile,
21
+ });
24
22
  const profile = profiles[profileName];
25
23
  if (!profile) {
26
24
  throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.713.0",
3
+ "version": "3.714.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/types": "3.713.0",
30
+ "@aws-sdk/types": "3.714.0",
31
31
  "@smithy/property-provider": "^3.1.11",
32
32
  "@smithy/shared-ini-file-loader": "^3.1.12",
33
33
  "@smithy/types": "^3.7.2",
@@ -42,7 +42,7 @@
42
42
  "typescript": "~4.9.5"
43
43
  },
44
44
  "peerDependencies": {
45
- "@aws-sdk/client-sso-oidc": "^3.713.0"
45
+ "@aws-sdk/client-sso-oidc": "^3.714.0"
46
46
  },
47
47
  "types": "./dist-types/index.d.ts",
48
48
  "engines": {
@@ -44,6 +44,7 @@ export type CredentialProviderOptions = {
44
44
  */
45
45
  parentClientConfig?: {
46
46
  region?: string | Provider<string>;
47
+ profile?: string;
47
48
  [key: string]: unknown;
48
49
  };
49
50
  };
@@ -7,6 +7,7 @@ export { AwsCredentialIdentity, AwsCredentialIdentityProvider, IdentityProvider
7
7
  export interface AwsIdentityProperties {
8
8
  callerClientConfig?: {
9
9
  region(): Promise<string>;
10
+ profile?: string;
10
11
  };
11
12
  }
12
13
  /**
@@ -7,6 +7,7 @@ export type CredentialProviderOptions = {
7
7
  logger?: Logger;
8
8
  parentClientConfig?: {
9
9
  region?: string | Provider<string>;
10
+ profile?: string;
10
11
  [key: string]: unknown;
11
12
  };
12
13
  };
@@ -8,6 +8,7 @@ export {
8
8
  export interface AwsIdentityProperties {
9
9
  callerClientConfig?: {
10
10
  region(): Promise<string>;
11
+ profile?: string;
11
12
  };
12
13
  }
13
14
  export type RuntimeConfigIdentityProvider<T> = (
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.713.0",
3
+ "version": "3.714.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.713.0",
3
+ "version": "3.714.0",
4
4
  "description": "Utilities to help with endpoint resolution",
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/types": "3.713.0",
27
+ "@aws-sdk/types": "3.714.0",
28
28
  "@smithy/types": "^3.7.2",
29
29
  "@smithy/util-endpoints": "^2.1.7",
30
30
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.713.0",
3
+ "version": "3.714.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 util-user-agent-browser",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "react-native": "dist-es/index.native.js",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "3.713.0",
26
+ "@aws-sdk/types": "3.714.0",
27
27
  "@smithy/types": "^3.7.2",
28
28
  "bowser": "^2.11.0",
29
29
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.713.0",
3
+ "version": "3.714.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 util-user-agent-node",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.713.0",
25
- "@aws-sdk/types": "3.713.0",
24
+ "@aws-sdk/middleware-user-agent": "3.714.0",
25
+ "@aws-sdk/types": "3.714.0",
26
26
  "@smithy/node-config-provider": "^3.1.12",
27
27
  "@smithy/types": "^3.7.2",
28
28
  "tslib": "^2.6.2"
@@ -155,6 +155,9 @@ var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupp
155
155
  case "builtInParams":
156
156
  endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
157
157
  break;
158
+ case "operationContextParams":
159
+ endpointParams[name] = instruction.get(commandInput);
160
+ break;
158
161
  default:
159
162
  throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
160
163
  }
@@ -37,6 +37,9 @@ export const resolveParams = async (commandInput, instructionsSupplier, clientCo
37
37
  case "builtInParams":
38
38
  endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
39
39
  break;
40
+ case "operationContextParams":
41
+ endpointParams[name] = instruction.get(commandInput);
42
+ break;
40
43
  default:
41
44
  throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
42
45
  }
@@ -2,7 +2,7 @@
2
2
  * @internal
3
3
  */
4
4
  export interface EndpointParameterInstructions {
5
- [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction;
5
+ [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction | OperationContextParamInstruction;
6
6
  }
7
7
  /**
8
8
  * @internal
@@ -32,3 +32,10 @@ export interface ContextParamInstruction {
32
32
  type: "contextParams";
33
33
  name: string;
34
34
  }
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface OperationContextParamInstruction {
39
+ type: "operationContextParams";
40
+ get(input: any): any;
41
+ }
@@ -2,7 +2,7 @@
2
2
  * @internal
3
3
  */
4
4
  export interface EndpointParameterInstructions {
5
- [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction;
5
+ [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction | OperationContextParamInstruction;
6
6
  }
7
7
  /**
8
8
  * @internal
@@ -32,3 +32,10 @@ export interface ContextParamInstruction {
32
32
  type: "contextParams";
33
33
  name: string;
34
34
  }
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface OperationContextParamInstruction {
39
+ type: "operationContextParams";
40
+ get(input: any): any;
41
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
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.30",
3
+ "version": "3.0.31",
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",
@@ -36,7 +36,7 @@
36
36
  "@smithy/node-config-provider": "^3.1.12",
37
37
  "@smithy/protocol-http": "^4.1.8",
38
38
  "@smithy/service-error-classification": "^3.0.11",
39
- "@smithy/smithy-client": "^3.5.0",
39
+ "@smithy/smithy-client": "^3.5.1",
40
40
  "@smithy/types": "^3.7.2",
41
41
  "@smithy/util-middleware": "^3.0.11",
42
42
  "@smithy/util-retry": "^3.0.11",
@@ -977,7 +977,7 @@ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {
977
977
  }, "isSerializableHeaderValue");
978
978
 
979
979
  // src/lazy-json.ts
980
- function LazyJsonString(val) {
980
+ var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) {
981
981
  const str = Object.assign(new String(val), {
982
982
  deserializeJSON() {
983
983
  return JSON.parse(String(val));
@@ -990,8 +990,7 @@ function LazyJsonString(val) {
990
990
  }
991
991
  });
992
992
  return str;
993
- }
994
- __name(LazyJsonString, "LazyJsonString");
993
+ }, "LazyJsonString");
995
994
  LazyJsonString.from = (object) => {
996
995
  if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
997
996
  return object;
@@ -1,4 +1,4 @@
1
- export function LazyJsonString(val) {
1
+ export const LazyJsonString = function LazyJsonString(val) {
2
2
  const str = Object.assign(new String(val), {
3
3
  deserializeJSON() {
4
4
  return JSON.parse(String(val));
@@ -11,7 +11,7 @@ export function LazyJsonString(val) {
11
11
  },
12
12
  });
13
13
  return str;
14
- }
14
+ };
15
15
  LazyJsonString.from = (object) => {
16
16
  if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
17
17
  return object;