@aws-sdk/types 3.502.0 → 3.515.0

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.
@@ -29,4 +29,21 @@ export type CredentialProviderOptions = {
29
29
  * It does not log credentials.
30
30
  */
31
31
  logger?: Logger;
32
+ /**
33
+ * Present if the credential provider was created by calling
34
+ * the defaultCredentialProvider in a client's middleware, having
35
+ * access to the client's config.
36
+ *
37
+ * The region of that parent or outer client is important because
38
+ * an inner client used by the credential provider may need
39
+ * to match its default partition or region with that of
40
+ * the outer client.
41
+ *
42
+ * @internal
43
+ * @deprecated - not truly deprecated, marked as a warning to not use this.
44
+ */
45
+ parentClientConfig?: {
46
+ region?: string | Provider<string>;
47
+ [key: string]: unknown;
48
+ };
32
49
  };
@@ -5,4 +5,8 @@ export interface Credentials extends AwsCredentialIdentity {}
5
5
  export type CredentialProvider = Provider<Credentials>;
6
6
  export type CredentialProviderOptions = {
7
7
  logger?: Logger;
8
+ parentClientConfig?: {
9
+ region?: string | Provider<string>;
10
+ [key: string]: unknown;
11
+ };
8
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.502.0",
3
+ "version": "3.515.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",