@cdklabs/cdk-ecs-codedeploy 0.0.354 → 0.0.356

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 (96) 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/dist-cjs/submodules/httpAuthSchemes/index.js +11 -10
  51. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +10 -9
  52. package/node_modules/@aws-sdk/core/package.json +2 -2
  53. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  54. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  55. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +30 -14
  56. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +11 -2
  57. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +13 -10
  58. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +3 -2
  59. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +4 -7
  60. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -10
  61. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  62. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +8 -2
  63. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +4 -2
  64. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -3
  65. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +5 -3
  66. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  67. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -2
  68. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +4 -2
  69. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -3
  70. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +5 -3
  71. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  72. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +5 -2
  73. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -2
  74. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +3 -3
  75. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +5 -6
  76. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  77. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  78. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  79. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  80. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  81. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  82. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +11 -2
  83. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +11 -2
  84. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  85. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +5 -2
  86. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  87. package/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
  88. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
  89. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +37 -1
  90. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
  91. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +12 -0
  92. package/node_modules/@aws-sdk/types/package.json +1 -1
  93. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  94. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  95. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  96. package/package.json +5 -5
@@ -23,6 +23,7 @@ const getRuntimeConfig = (config) => {
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const profileConfig = { profile: config?.profile };
26
27
  return {
27
28
  ...clientSharedValues,
28
29
  ...config,
@@ -32,19 +33,20 @@ const getRuntimeConfig = (config) => {
32
33
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
34
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
35
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
+ region: config?.region ??
38
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
39
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
40
  retryMode: config?.retryMode ??
39
41
  (0, node_config_provider_1.loadConfig)({
40
42
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
41
43
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
42
- }),
44
+ }, config),
43
45
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
44
46
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
50
  };
49
51
  };
50
52
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,6 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
20
  const clientSharedValues = getSharedRuntimeConfig(config);
21
21
  awsCheckVersion(process.version);
22
+ const profileConfig = { profile: config?.profile };
22
23
  return {
23
24
  ...clientSharedValues,
24
25
  ...config,
@@ -28,18 +29,19 @@ export const getRuntimeConfig = (config) => {
28
29
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
31
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
33
+ region: config?.region ??
34
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
33
35
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
36
  retryMode: config?.retryMode ??
35
37
  loadNodeConfig({
36
38
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
39
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
- }),
40
+ }, config),
39
41
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
42
  streamCollector: config?.streamCollector ?? streamCollector,
41
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
45
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
44
46
  };
45
47
  };
@@ -98,6 +98,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
98
98
  * The AWS region to which this client will send requests
99
99
  */
100
100
  region?: string | __Provider<string>;
101
+ /**
102
+ * Setting a client profile is similar to setting a value for the
103
+ * AWS_PROFILE environment variable. Setting a profile on a client
104
+ * in code only affects the single client instance, unlike AWS_PROFILE.
105
+ *
106
+ * When set, and only for environments where an AWS configuration
107
+ * file exists, fields configurable by this file will be retrieved
108
+ * from the specified profile within that file.
109
+ * Conflicting code configuration and environment variables will
110
+ * still have higher priority.
111
+ *
112
+ * For client credential resolution that involves checking the AWS
113
+ * configuration file, the client's profile (this value) will be
114
+ * used unless a different profile is set in the credential
115
+ * provider options.
116
+ *
117
+ */
118
+ profile?: string;
101
119
  /**
102
120
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
103
121
  * @internal
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
26
26
  utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
+ profile?: string | undefined;
29
30
  logger: import("@smithy/types").Logger;
30
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
27
27
  utf8Encoder: (input: string | Uint8Array) => string;
28
28
  disableHostPrefix: boolean;
29
29
  serviceId: string;
30
+ profile?: string | undefined;
30
31
  logger: import("@smithy/types").Logger;
31
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
+ profile?: string | undefined;
23
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
25
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -95,6 +95,7 @@ export interface ClientDefaults
95
95
  useDualstackEndpoint?: boolean | __Provider<boolean>;
96
96
  useFipsEndpoint?: boolean | __Provider<boolean>;
97
97
  region?: string | __Provider<string>;
98
+ profile?: string;
98
99
  defaultUserAgentProvider?: Provider<__UserAgent>;
99
100
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
100
101
  maxAttempts?: number | __Provider<number>;
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
33
33
  utf8Encoder: (input: string | Uint8Array) => string;
34
34
  disableHostPrefix: boolean;
35
35
  serviceId: string;
36
+ profile?: string | undefined;
36
37
  logger: import("@smithy/types").Logger;
37
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
38
39
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
38
38
  utf8Encoder: (input: string | Uint8Array) => string;
39
39
  disableHostPrefix: boolean;
40
40
  serviceId: string;
41
+ profile?: string | undefined;
41
42
  logger: import("@smithy/types").Logger;
42
43
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
44
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
+ profile?: string | undefined;
25
26
  defaultUserAgentProvider: (
26
27
  config?:
27
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.712.0",
4
+ "version": "3.714.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.709.0",
24
- "@aws-sdk/credential-provider-node": "3.712.0",
25
- "@aws-sdk/middleware-host-header": "3.709.0",
26
- "@aws-sdk/middleware-logger": "3.709.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.709.0",
28
- "@aws-sdk/middleware-user-agent": "3.709.0",
29
- "@aws-sdk/region-config-resolver": "3.709.0",
30
- "@aws-sdk/types": "3.709.0",
31
- "@aws-sdk/util-endpoints": "3.709.0",
32
- "@aws-sdk/util-user-agent-browser": "3.709.0",
33
- "@aws-sdk/util-user-agent-node": "3.712.0",
23
+ "@aws-sdk/core": "3.714.0",
24
+ "@aws-sdk/credential-provider-node": "3.714.0",
25
+ "@aws-sdk/middleware-host-header": "3.714.0",
26
+ "@aws-sdk/middleware-logger": "3.714.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.714.0",
28
+ "@aws-sdk/middleware-user-agent": "3.714.0",
29
+ "@aws-sdk/region-config-resolver": "3.714.0",
30
+ "@aws-sdk/types": "3.714.0",
31
+ "@aws-sdk/util-endpoints": "3.714.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.714.0",
33
+ "@aws-sdk/util-user-agent-node": "3.714.0",
34
34
  "@smithy/config-resolver": "^3.0.13",
35
35
  "@smithy/core": "^2.5.5",
36
36
  "@smithy/fetch-http-handler": "^4.1.2",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "license": "Apache-2.0",
87
87
  "peerDependencies": {
88
- "@aws-sdk/client-sts": "^3.712.0"
88
+ "@aws-sdk/client-sts": "^3.714.0"
89
89
  },
90
90
  "browser": {
91
91
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
@@ -24,6 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
26
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
27
+ const profileConfig = { profile: config?.profile };
27
28
  return {
28
29
  ...clientSharedValues,
29
30
  ...config,
@@ -46,19 +47,20 @@ const getRuntimeConfig = (config) => {
46
47
  signer: new core_2.NoAuthSigner(),
47
48
  },
48
49
  ],
49
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
50
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
50
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
51
+ region: config?.region ??
52
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
51
53
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
52
54
  retryMode: config?.retryMode ??
53
55
  (0, node_config_provider_1.loadConfig)({
54
56
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
55
57
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
56
- }),
58
+ }, config),
57
59
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
58
60
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
59
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
60
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
61
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
61
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
62
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
63
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
62
64
  };
63
65
  };
64
66
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -20,6 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
21
  const clientSharedValues = getSharedRuntimeConfig(config);
22
22
  awsCheckVersion(process.version);
23
+ const profileConfig = { profile: config?.profile };
23
24
  return {
24
25
  ...clientSharedValues,
25
26
  ...config,
@@ -42,18 +43,19 @@ export const getRuntimeConfig = (config) => {
42
43
  signer: new NoAuthSigner(),
43
44
  },
44
45
  ],
45
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
46
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
46
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
47
+ region: config?.region ??
48
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
47
49
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
48
50
  retryMode: config?.retryMode ??
49
51
  loadNodeConfig({
50
52
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
51
53
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
52
- }),
54
+ }, config),
53
55
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
54
56
  streamCollector: config?.streamCollector ?? streamCollector,
55
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
56
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
57
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
57
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
58
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
59
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
58
60
  };
59
61
  };
@@ -103,6 +103,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
103
103
  * The AWS region to which this client will send requests
104
104
  */
105
105
  region?: string | __Provider<string>;
106
+ /**
107
+ * Setting a client profile is similar to setting a value for the
108
+ * AWS_PROFILE environment variable. Setting a profile on a client
109
+ * in code only affects the single client instance, unlike AWS_PROFILE.
110
+ *
111
+ * When set, and only for environments where an AWS configuration
112
+ * file exists, fields configurable by this file will be retrieved
113
+ * from the specified profile within that file.
114
+ * Conflicting code configuration and environment variables will
115
+ * still have higher priority.
116
+ *
117
+ * For client credential resolution that involves checking the AWS
118
+ * configuration file, the client's profile (this value) will be
119
+ * used unless a different profile is set in the credential
120
+ * provider options.
121
+ *
122
+ */
123
+ profile?: string;
106
124
  /**
107
125
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
108
126
  * @internal
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
26
26
  utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
+ profile?: string | undefined;
29
30
  logger: import("@smithy/types").Logger;
30
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -34,6 +34,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
34
34
  utf8Encoder: (input: string | Uint8Array) => string;
35
35
  disableHostPrefix: boolean;
36
36
  serviceId: string;
37
+ profile?: string | undefined;
37
38
  logger: import("@smithy/types").Logger;
38
39
  extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
+ profile?: string | undefined;
23
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
25
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -125,6 +125,7 @@ export interface ClientDefaults
125
125
  useDualstackEndpoint?: boolean | __Provider<boolean>;
126
126
  useFipsEndpoint?: boolean | __Provider<boolean>;
127
127
  region?: string | __Provider<string>;
128
+ profile?: string;
128
129
  defaultUserAgentProvider?: Provider<__UserAgent>;
129
130
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
130
131
  maxAttempts?: number | __Provider<number>;
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
33
33
  utf8Encoder: (input: string | Uint8Array) => string;
34
34
  disableHostPrefix: boolean;
35
35
  serviceId: string;
36
+ profile?: string | undefined;
36
37
  logger: import("@smithy/types").Logger;
37
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
38
39
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -53,6 +53,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
53
53
  utf8Encoder: (input: string | Uint8Array) => string;
54
54
  disableHostPrefix: boolean;
55
55
  serviceId: string;
56
+ profile?: string | undefined;
56
57
  logger: import("@smithy/types").Logger;
57
58
  extensions: import("./runtimeExtensions").RuntimeExtension[];
58
59
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
+ profile?: string | undefined;
25
26
  defaultUserAgentProvider: (
26
27
  config?:
27
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.712.0",
4
+ "version": "3.714.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -22,18 +22,18 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.712.0",
26
- "@aws-sdk/core": "3.709.0",
27
- "@aws-sdk/credential-provider-node": "3.712.0",
28
- "@aws-sdk/middleware-host-header": "3.709.0",
29
- "@aws-sdk/middleware-logger": "3.709.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.709.0",
31
- "@aws-sdk/middleware-user-agent": "3.709.0",
32
- "@aws-sdk/region-config-resolver": "3.709.0",
33
- "@aws-sdk/types": "3.709.0",
34
- "@aws-sdk/util-endpoints": "3.709.0",
35
- "@aws-sdk/util-user-agent-browser": "3.709.0",
36
- "@aws-sdk/util-user-agent-node": "3.712.0",
25
+ "@aws-sdk/client-sso-oidc": "3.714.0",
26
+ "@aws-sdk/core": "3.714.0",
27
+ "@aws-sdk/credential-provider-node": "3.714.0",
28
+ "@aws-sdk/middleware-host-header": "3.714.0",
29
+ "@aws-sdk/middleware-logger": "3.714.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.714.0",
31
+ "@aws-sdk/middleware-user-agent": "3.714.0",
32
+ "@aws-sdk/region-config-resolver": "3.714.0",
33
+ "@aws-sdk/types": "3.714.0",
34
+ "@aws-sdk/util-endpoints": "3.714.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.714.0",
36
+ "@aws-sdk/util-user-agent-node": "3.714.0",
37
37
  "@smithy/config-resolver": "^3.0.13",
38
38
  "@smithy/core": "^2.5.5",
39
39
  "@smithy/fetch-http-handler": "^4.1.2",
@@ -196,14 +196,14 @@ var import_core2 = require("@smithy/core");
196
196
  var import_signature_v4 = require("@smithy/signature-v4");
197
197
  var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
198
198
  let isUserSupplied = false;
199
- let normalizedCreds;
199
+ let credentialsProvider;
200
200
  if (config.credentials) {
201
201
  isUserSupplied = true;
202
- normalizedCreds = (0, import_core2.memoizeIdentityProvider)(config.credentials, import_core2.isIdentityExpired, import_core2.doesIdentityRequireRefresh);
202
+ credentialsProvider = (0, import_core2.memoizeIdentityProvider)(config.credentials, import_core2.isIdentityExpired, import_core2.doesIdentityRequireRefresh);
203
203
  }
204
- if (!normalizedCreds) {
204
+ if (!credentialsProvider) {
205
205
  if (config.credentialDefaultProvider) {
206
- normalizedCreds = (0, import_core2.normalizeProvider)(
206
+ credentialsProvider = (0, import_core2.normalizeProvider)(
207
207
  config.credentialDefaultProvider(
208
208
  Object.assign({}, config, {
209
209
  parentClientConfig: config
@@ -211,11 +211,12 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
211
211
  )
212
212
  );
213
213
  } else {
214
- normalizedCreds = /* @__PURE__ */ __name(async () => {
214
+ credentialsProvider = /* @__PURE__ */ __name(async () => {
215
215
  throw new Error("`credentials` is missing");
216
- }, "normalizedCreds");
216
+ }, "credentialsProvider");
217
217
  }
218
218
  }
219
+ const boundCredentialsProvider = /* @__PURE__ */ __name(async () => credentialsProvider({ callerClientConfig: config }), "boundCredentialsProvider");
219
220
  const {
220
221
  // Default for signingEscapePath
221
222
  signingEscapePath = true,
@@ -242,7 +243,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
242
243
  config.signingName = config.signingName || signingService || config.serviceId;
243
244
  const params = {
244
245
  ...config,
245
- credentials: normalizedCreds,
246
+ credentials: boundCredentialsProvider,
246
247
  region: config.signingRegion,
247
248
  service: config.signingName,
248
249
  sha256,
@@ -269,7 +270,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
269
270
  config.signingName = config.signingName || signingService || config.serviceId;
270
271
  const params = {
271
272
  ...config,
272
- credentials: normalizedCreds,
273
+ credentials: boundCredentialsProvider,
273
274
  region: config.signingRegion,
274
275
  service: config.signingName,
275
276
  sha256,
@@ -283,9 +284,9 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
283
284
  ...config,
284
285
  systemClockOffset,
285
286
  signingEscapePath,
286
- credentials: isUserSupplied ? async () => normalizedCreds().then(
287
+ credentials: isUserSupplied ? async () => boundCredentialsProvider().then(
287
288
  (creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_CODE", "e")
288
- ) : normalizedCreds,
289
+ ) : boundCredentialsProvider,
289
290
  signer
290
291
  };
291
292
  }, "resolveAwsSdkSigV4Config");
@@ -3,23 +3,24 @@ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider,
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
4
  export const resolveAwsSdkSigV4Config = (config) => {
5
5
  let isUserSupplied = false;
6
- let normalizedCreds;
6
+ let credentialsProvider;
7
7
  if (config.credentials) {
8
8
  isUserSupplied = true;
9
- normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
9
+ credentialsProvider = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
10
10
  }
11
- if (!normalizedCreds) {
11
+ if (!credentialsProvider) {
12
12
  if (config.credentialDefaultProvider) {
13
- normalizedCreds = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, {
13
+ credentialsProvider = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, {
14
14
  parentClientConfig: config,
15
15
  })));
16
16
  }
17
17
  else {
18
- normalizedCreds = async () => {
18
+ credentialsProvider = async () => {
19
19
  throw new Error("`credentials` is missing");
20
20
  };
21
21
  }
22
22
  }
23
+ const boundCredentialsProvider = async () => credentialsProvider({ callerClientConfig: config });
23
24
  const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
24
25
  let signer;
25
26
  if (config.signer) {
@@ -40,7 +41,7 @@ export const resolveAwsSdkSigV4Config = (config) => {
40
41
  config.signingName = config.signingName || signingService || config.serviceId;
41
42
  const params = {
42
43
  ...config,
43
- credentials: normalizedCreds,
44
+ credentials: boundCredentialsProvider,
44
45
  region: config.signingRegion,
45
46
  service: config.signingName,
46
47
  sha256,
@@ -64,7 +65,7 @@ export const resolveAwsSdkSigV4Config = (config) => {
64
65
  config.signingName = config.signingName || signingService || config.serviceId;
65
66
  const params = {
66
67
  ...config,
67
- credentials: normalizedCreds,
68
+ credentials: boundCredentialsProvider,
68
69
  region: config.signingRegion,
69
70
  service: config.signingName,
70
71
  sha256,
@@ -79,8 +80,8 @@ export const resolveAwsSdkSigV4Config = (config) => {
79
80
  systemClockOffset,
80
81
  signingEscapePath,
81
82
  credentials: isUserSupplied
82
- ? async () => normalizedCreds().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e"))
83
- : normalizedCreds,
83
+ ? async () => boundCredentialsProvider().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e"))
84
+ : boundCredentialsProvider,
84
85
  signer,
85
86
  };
86
87
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.709.0",
3
+ "version": "3.714.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
- "@aws-sdk/types": "3.709.0",
84
+ "@aws-sdk/types": "3.714.0",
85
85
  "@smithy/core": "^2.5.5",
86
86
  "@smithy/node-config-provider": "^3.1.12",
87
87
  "@smithy/property-provider": "^3.1.11",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.709.0",
3
+ "version": "3.714.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
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.709.0",
29
- "@aws-sdk/types": "3.709.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/types": "^3.7.2",
32
32
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.709.0",
3
+ "version": "3.714.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.709.0",
31
- "@aws-sdk/types": "3.709.0",
30
+ "@aws-sdk/core": "3.714.0",
31
+ "@aws-sdk/types": "3.714.0",
32
32
  "@smithy/fetch-http-handler": "^4.1.2",
33
33
  "@smithy/node-http-handler": "^3.3.2",
34
34
  "@smithy/property-provider": "^3.1.11",