@aws-sdk/credential-provider-ini 3.212.0 → 3.216.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-types/fromIni.d.ts +4 -4
- package/dist-types/resolveAssumeRoleCredentials.d.ts +1 -1
- package/dist-types/resolveCredentialSource.d.ts +2 -2
- package/dist-types/resolveProfileData.d.ts +2 -2
- package/dist-types/resolveSsoCredentials.d.ts +1 -1
- package/dist-types/resolveStaticCredentials.d.ts +2 -2
- package/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
- package/dist-types/ts3.4/fromIni.d.ts +10 -5
- package/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +1 -1
- package/dist-types/ts3.4/resolveCredentialSource.d.ts +2 -2
- package/dist-types/ts3.4/resolveProfileData.d.ts +2 -2
- package/dist-types/ts3.4/resolveSsoCredentials.d.ts +1 -1
- package/dist-types/ts3.4/resolveStaticCredentials.d.ts +2 -2
- package/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +2 -2
- package/package.json +8 -8
package/dist-types/fromIni.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
2
|
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
4
4
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
5
5
|
export interface FromIniInit extends SourceProfileInit {
|
|
6
6
|
/**
|
|
@@ -19,7 +19,7 @@ export interface FromIniInit extends SourceProfileInit {
|
|
|
19
19
|
* @param sourceCreds The credentials with which to assume a role.
|
|
20
20
|
* @param params
|
|
21
21
|
*/
|
|
22
|
-
roleAssumer?: (sourceCreds:
|
|
22
|
+
roleAssumer?: (sourceCreds: AwsCredentialIdentity, params: AssumeRoleParams) => Promise<AwsCredentialIdentity>;
|
|
23
23
|
/**
|
|
24
24
|
* A function that assumes a role with web identity and returns a promise fulfilled with
|
|
25
25
|
* credentials for the assumed role.
|
|
@@ -27,10 +27,10 @@ export interface FromIniInit extends SourceProfileInit {
|
|
|
27
27
|
* @param sourceCreds The credentials with which to assume a role.
|
|
28
28
|
* @param params
|
|
29
29
|
*/
|
|
30
|
-
roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<
|
|
30
|
+
roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Creates a credential provider that will read from ini files and supports
|
|
34
34
|
* role assumption and multi-factor authentication.
|
|
35
35
|
*/
|
|
36
|
-
export declare const fromIni: (init?: FromIniInit) =>
|
|
36
|
+
export declare const fromIni: (init?: FromIniInit) => AwsCredentialIdentityProvider;
|
|
@@ -29,4 +29,4 @@ export interface AssumeRoleParams {
|
|
|
29
29
|
TokenCode?: string;
|
|
30
30
|
}
|
|
31
31
|
export declare const isAssumeRoleProfile: (arg: any) => boolean;
|
|
32
|
-
export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<import("@aws-sdk/types").
|
|
32
|
+
export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
/**
|
|
3
3
|
* Resolve the `credential_source` entry from the profile, and return the
|
|
4
4
|
* credential providers respectively. No memoization is needed for the
|
|
@@ -6,4 +6,4 @@ import { CredentialProvider } from "@aws-sdk/types";
|
|
|
6
6
|
* fromIni() provider. The source credential needs to be refreshed every time
|
|
7
7
|
* fromIni() is called.
|
|
8
8
|
*/
|
|
9
|
-
export declare const resolveCredentialSource: (credentialSource: string, profileName: string) =>
|
|
9
|
+
export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => AwsCredentialIdentityProvider;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, ParsedIniData } from "@aws-sdk/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
|
-
export declare const resolveProfileData: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<
|
|
3
|
+
export declare const resolveProfileData: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
2
|
export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
3
|
-
export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@aws-sdk/types").
|
|
3
|
+
export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
|
|
2
2
|
export interface StaticCredsProfile extends Profile {
|
|
3
3
|
aws_access_key_id: string;
|
|
4
4
|
aws_secret_access_key: string;
|
|
5
5
|
aws_session_token?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfile;
|
|
8
|
-
export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<
|
|
8
|
+
export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
3
|
export interface WebIdentityProfile extends Profile {
|
|
4
4
|
web_identity_token_file: string;
|
|
@@ -6,4 +6,4 @@ export interface WebIdentityProfile extends Profile {
|
|
|
6
6
|
role_session_name?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const isWebIdentityProfile: (arg: any) => arg is WebIdentityProfile;
|
|
9
|
-
export declare const resolveWebIdentityCredentials: (profile: WebIdentityProfile, options: FromIniInit) => Promise<
|
|
9
|
+
export declare const resolveWebIdentityCredentials: (profile: WebIdentityProfile, options: FromIniInit) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
2
|
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from "@aws-sdk/types";
|
|
4
7
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
5
8
|
export interface FromIniInit extends SourceProfileInit {
|
|
6
9
|
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
|
7
10
|
roleAssumer?: (
|
|
8
|
-
sourceCreds:
|
|
11
|
+
sourceCreds: AwsCredentialIdentity,
|
|
9
12
|
params: AssumeRoleParams
|
|
10
|
-
) => Promise<
|
|
13
|
+
) => Promise<AwsCredentialIdentity>;
|
|
11
14
|
roleAssumerWithWebIdentity?: (
|
|
12
15
|
params: AssumeRoleWithWebIdentityParams
|
|
13
|
-
) => Promise<
|
|
16
|
+
) => Promise<AwsCredentialIdentity>;
|
|
14
17
|
}
|
|
15
|
-
export declare const fromIni: (
|
|
18
|
+
export declare const fromIni: (
|
|
19
|
+
init?: FromIniInit
|
|
20
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
export declare const resolveCredentialSource: (
|
|
3
3
|
credentialSource: string,
|
|
4
4
|
profileName: string
|
|
5
|
-
) =>
|
|
5
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, ParsedIniData } from "@aws-sdk/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
3
|
export declare const resolveProfileData: (
|
|
4
4
|
profileName: string,
|
|
5
5
|
profiles: ParsedIniData,
|
|
6
6
|
options: FromIniInit,
|
|
7
7
|
visitedProfiles?: Record<string, true>
|
|
8
|
-
) => Promise<
|
|
8
|
+
) => Promise<AwsCredentialIdentity>;
|
|
@@ -2,4 +2,4 @@ import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
|
2
2
|
export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
3
3
|
export declare const resolveSsoCredentials: (
|
|
4
4
|
data: Partial<SsoProfile>
|
|
5
|
-
) => Promise<import("@aws-sdk/types").
|
|
5
|
+
) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
|
|
2
2
|
export interface StaticCredsProfile extends Profile {
|
|
3
3
|
aws_access_key_id: string;
|
|
4
4
|
aws_secret_access_key: string;
|
|
@@ -9,4 +9,4 @@ export declare const isStaticCredsProfile: (
|
|
|
9
9
|
) => arg is StaticCredsProfile;
|
|
10
10
|
export declare const resolveStaticCredentials: (
|
|
11
11
|
profile: StaticCredsProfile
|
|
12
|
-
) => Promise<
|
|
12
|
+
) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
3
|
export interface WebIdentityProfile extends Profile {
|
|
4
4
|
web_identity_token_file: string;
|
|
@@ -11,4 +11,4 @@ export declare const isWebIdentityProfile: (
|
|
|
11
11
|
export declare const resolveWebIdentityCredentials: (
|
|
12
12
|
profile: WebIdentityProfile,
|
|
13
13
|
options: FromIniInit
|
|
14
|
-
) => Promise<
|
|
14
|
+
) => Promise<AwsCredentialIdentity>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.216.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-imds": "3.
|
|
29
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
30
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
31
|
-
"@aws-sdk/property-provider": "3.
|
|
32
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-env": "3.215.0",
|
|
28
|
+
"@aws-sdk/credential-provider-imds": "3.215.0",
|
|
29
|
+
"@aws-sdk/credential-provider-sso": "3.216.0",
|
|
30
|
+
"@aws-sdk/credential-provider-web-identity": "3.215.0",
|
|
31
|
+
"@aws-sdk/property-provider": "3.215.0",
|
|
32
|
+
"@aws-sdk/shared-ini-file-loader": "3.215.0",
|
|
33
|
+
"@aws-sdk/types": "3.215.0",
|
|
34
34
|
"tslib": "^2.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|