@aws-sdk/types 3.696.0 → 3.713.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,
@@ -1,6 +1,41 @@
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
+ };
11
+ }
12
+ /**
13
+ * @public
14
+ *
15
+ * Variation of {@link IdentityProvider} which accepts a contextual
16
+ * client configuration that includes an AWS region and potentially other
17
+ * configurable fields.
18
+ *
19
+ * Used to link a credential provider to a client if it is being called
20
+ * in the context of a client.
21
+ */
22
+ export type RuntimeConfigIdentityProvider<T> = (awsIdentityProperties?: AwsIdentityProperties) => Promise<T>;
23
+ /**
24
+ * @public
25
+ *
26
+ * Variation of {@link AwsCredentialIdentityProvider} which accepts a contextual
27
+ * client configuration that includes an AWS region and potentially other
28
+ * configurable fields.
29
+ *
30
+ * Used to link a credential provider to a client if it is being called
31
+ * in the context of a client.
32
+ */
33
+ export type RuntimeConfigAwsCredentialIdentityProvider = RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
34
+ /**
35
+ * @public
36
+ *
37
+ * AwsCredentialIdentity with source attribution metadata.
38
+ */
4
39
  export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
5
40
  $source?: AwsSdkCredentialsFeatures;
6
41
  };
@@ -3,7 +3,18 @@ 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
+ };
12
+ }
13
+ export type RuntimeConfigIdentityProvider<T> = (
14
+ awsIdentityProperties?: AwsIdentityProperties
15
+ ) => Promise<T>;
16
+ export type RuntimeConfigAwsCredentialIdentityProvider =
17
+ RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
7
18
  export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
8
19
  $source?: AwsSdkCredentialsFeatures;
9
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.696.0",
3
+ "version": "3.713.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": "^3.7.1",
44
+ "@smithy/types": "^3.7.2",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {