@aws-sdk/types 3.709.0 → 3.714.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.
package/dist-cjs/index.js CHANGED
@@ -100,7 +100,6 @@ __export(src_exports, {
100
100
  HttpRequest: () => import_types.HttpRequest,
101
101
  HttpResponse: () => import_types.HttpResponse,
102
102
  Identity: () => import_types.Identity,
103
- IdentityProvider: () => import_types.IdentityProvider,
104
103
  IniSection: () => import_types.IniSection,
105
104
  InitializeHandler: () => import_types.InitializeHandler,
106
105
  InitializeHandlerArguments: () => import_types.InitializeHandlerArguments,
@@ -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
  };
@@ -1,6 +1,42 @@
1
1
  import type { AwsCredentialIdentity } from "@smithy/types";
2
2
  import type { AwsSdkCredentialsFeatures } from "../feature-ids";
3
- export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
3
+ export { AwsCredentialIdentity, AwsCredentialIdentityProvider, IdentityProvider } from "@smithy/types";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface AwsIdentityProperties {
8
+ callerClientConfig?: {
9
+ region(): Promise<string>;
10
+ profile?: string;
11
+ };
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * Variation of {@link IdentityProvider} which accepts a contextual
17
+ * client configuration that includes an AWS region and potentially other
18
+ * configurable fields.
19
+ *
20
+ * Used to link a credential provider to a client if it is being called
21
+ * in the context of a client.
22
+ */
23
+ export type RuntimeConfigIdentityProvider<T> = (awsIdentityProperties?: AwsIdentityProperties) => Promise<T>;
24
+ /**
25
+ * @public
26
+ *
27
+ * Variation of {@link AwsCredentialIdentityProvider} which accepts a contextual
28
+ * client configuration that includes an AWS region and potentially other
29
+ * configurable fields.
30
+ *
31
+ * Used to link a credential provider to a client if it is being called
32
+ * in the context of a client.
33
+ */
34
+ export type RuntimeConfigAwsCredentialIdentityProvider = RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
35
+ /**
36
+ * @public
37
+ *
38
+ * AwsCredentialIdentity with source attribution metadata.
39
+ */
4
40
  export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
5
41
  $source?: AwsSdkCredentialsFeatures;
6
42
  };
@@ -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
  };
@@ -3,7 +3,19 @@ import { AwsSdkCredentialsFeatures } from "../feature-ids";
3
3
  export {
4
4
  AwsCredentialIdentity,
5
5
  AwsCredentialIdentityProvider,
6
+ IdentityProvider,
6
7
  } from "@smithy/types";
8
+ export interface AwsIdentityProperties {
9
+ callerClientConfig?: {
10
+ region(): Promise<string>;
11
+ profile?: string;
12
+ };
13
+ }
14
+ export type RuntimeConfigIdentityProvider<T> = (
15
+ awsIdentityProperties?: AwsIdentityProperties
16
+ ) => Promise<T>;
17
+ export type RuntimeConfigAwsCredentialIdentityProvider =
18
+ RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
7
19
  export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
8
20
  $source?: AwsSdkCredentialsFeatures;
9
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.709.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",