Skip to content

Commit 1708b4a

Browse files
committed
chore(types): add AwsSdkTokenFeatures and AttributedTokenIdentity
1 parent 0f3e62f commit 1708b4a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

packages/types/src/feature-ids.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export type AwsSdkFeatures = Partial<{
3232
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
3333
DDB_MAPPER: "d";
3434
}> &
35-
AwsSdkCredentialsFeatures;
35+
AwsSdkCredentialsFeatures &
36+
AwsSdkTokenFeatures;
3637

3738
/**
3839
* @internal
@@ -62,3 +63,10 @@ export type AwsSdkCredentialsFeatures = Partial<{
6263
CREDENTIALS_HTTP: "z";
6364
CREDENTIALS_IMDS: "0";
6465
}>;
66+
67+
/**
68+
* @internal
69+
*/
70+
export type AwsSdkTokenFeatures = Partial<{
71+
BEARER_SERVICE_ENV_VARS: "3";
72+
}>;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
import type { TokenIdentity } from "@smithy/types";
2+
3+
import type { AwsSdkTokenFeatures } from "../feature-ids";
14
export { TokenIdentity, TokenIdentityProvider } from "@smithy/types";
5+
6+
/**
7+
* @public
8+
*
9+
* TokenIdentity with source attribution metadata.
10+
*/
11+
export type AttributedTokenIdentity = TokenIdentity & {
12+
$source?: AwsSdkTokenFeatures;
13+
};

0 commit comments

Comments
 (0)