@aws-sdk/credential-provider-ini 3.169.0 → 3.170.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/CHANGELOG.md +8 -0
- package/dist-types/ts3.4/fromIni.d.ts +18 -14
- package/dist-types/ts3.4/index.d.ts +1 -1
- package/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +21 -17
- package/dist-types/ts3.4/resolveCredentialSource.d.ts +6 -3
- package/dist-types/ts3.4/resolveProfileData.d.ts +8 -3
- package/dist-types/ts3.4/resolveSsoCredentials.d.ts +5 -3
- package/dist-types/ts3.4/resolveStaticCredentials.d.ts +12 -8
- package/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +14 -9
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/credential-provider-ini
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/credential-provider-ini
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
|
-
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
3
|
-
import { CredentialProvider, Credentials } from "@aws-sdk/types";
|
|
4
|
-
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
5
|
-
export interface FromIniInit extends SourceProfileInit {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
|
+
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
3
|
+
import { CredentialProvider, Credentials } from "@aws-sdk/types";
|
|
4
|
+
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
5
|
+
export interface FromIniInit extends SourceProfileInit {
|
|
6
|
+
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
|
7
|
+
|
|
8
|
+
roleAssumer?: (
|
|
9
|
+
sourceCreds: Credentials,
|
|
10
|
+
params: AssumeRoleParams
|
|
11
|
+
) => Promise<Credentials>;
|
|
12
|
+
|
|
13
|
+
roleAssumerWithWebIdentity?: (
|
|
14
|
+
params: AssumeRoleWithWebIdentityParams
|
|
15
|
+
) => Promise<Credentials>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./fromIni";
|
|
1
|
+
export * from "./fromIni";
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { ParsedIniData } from "@aws-sdk/types";
|
|
2
|
-
import { FromIniInit } from "./fromIni";
|
|
3
|
-
|
|
4
|
-
export interface AssumeRoleParams {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
1
|
+
import { ParsedIniData } from "@aws-sdk/types";
|
|
2
|
+
import { FromIniInit } from "./fromIni";
|
|
3
|
+
|
|
4
|
+
export interface AssumeRoleParams {
|
|
5
|
+
RoleArn: string;
|
|
6
|
+
|
|
7
|
+
RoleSessionName: string;
|
|
8
|
+
|
|
9
|
+
ExternalId?: string;
|
|
10
|
+
|
|
11
|
+
SerialNumber?: string;
|
|
12
|
+
|
|
13
|
+
TokenCode?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const isAssumeRoleProfile: (arg: any) => boolean;
|
|
16
|
+
export declare const resolveAssumeRoleCredentials: (
|
|
17
|
+
profileName: string,
|
|
18
|
+
profiles: ParsedIniData,
|
|
19
|
+
options: FromIniInit,
|
|
20
|
+
visitedProfiles?: Record<string, true>
|
|
21
|
+
) => Promise<import("@aws-sdk/types").Credentials>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { CredentialProvider } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
export declare const resolveCredentialSource: (
|
|
1
|
+
import { CredentialProvider } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
export declare const resolveCredentialSource: (
|
|
4
|
+
credentialSource: string,
|
|
5
|
+
profileName: string
|
|
6
|
+
) => CredentialProvider;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { Credentials, ParsedIniData } from "@aws-sdk/types";
|
|
2
|
-
import { FromIniInit } from "./fromIni";
|
|
3
|
-
export declare const resolveProfileData: (
|
|
1
|
+
import { Credentials, ParsedIniData } from "@aws-sdk/types";
|
|
2
|
+
import { FromIniInit } from "./fromIni";
|
|
3
|
+
export declare const resolveProfileData: (
|
|
4
|
+
profileName: string,
|
|
5
|
+
profiles: ParsedIniData,
|
|
6
|
+
options: FromIniInit,
|
|
7
|
+
visitedProfiles?: Record<string, true>
|
|
8
|
+
) => Promise<Credentials>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
-
export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
3
|
-
export declare const resolveSsoCredentials: (
|
|
1
|
+
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
+
export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
3
|
+
export declare const resolveSsoCredentials: (
|
|
4
|
+
data: Partial<SsoProfile>
|
|
5
|
+
) => Promise<import("@aws-sdk/types").Credentials>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { Credentials, Profile } from "@aws-sdk/types";
|
|
2
|
-
export interface StaticCredsProfile extends Profile {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare const isStaticCredsProfile: (
|
|
8
|
-
|
|
1
|
+
import { Credentials, Profile } from "@aws-sdk/types";
|
|
2
|
+
export interface StaticCredsProfile extends Profile {
|
|
3
|
+
aws_access_key_id: string;
|
|
4
|
+
aws_secret_access_key: string;
|
|
5
|
+
aws_session_token?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const isStaticCredsProfile: (
|
|
8
|
+
arg: any
|
|
9
|
+
) => arg is StaticCredsProfile;
|
|
10
|
+
export declare const resolveStaticCredentials: (
|
|
11
|
+
profile: StaticCredsProfile
|
|
12
|
+
) => Promise<Credentials>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { Credentials, Profile } from "@aws-sdk/types";
|
|
2
|
-
import { FromIniInit } from "./fromIni";
|
|
3
|
-
export interface WebIdentityProfile extends Profile {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const isWebIdentityProfile: (
|
|
9
|
-
|
|
1
|
+
import { Credentials, Profile } from "@aws-sdk/types";
|
|
2
|
+
import { FromIniInit } from "./fromIni";
|
|
3
|
+
export interface WebIdentityProfile extends Profile {
|
|
4
|
+
web_identity_token_file: string;
|
|
5
|
+
role_arn: string;
|
|
6
|
+
role_session_name?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const isWebIdentityProfile: (
|
|
9
|
+
arg: any
|
|
10
|
+
) => arg is WebIdentityProfile;
|
|
11
|
+
export declare const resolveWebIdentityCredentials: (
|
|
12
|
+
profile: WebIdentityProfile,
|
|
13
|
+
options: FromIniInit
|
|
14
|
+
) => Promise<Credentials>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.170.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,20 +24,20 @@
|
|
|
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.170.0",
|
|
28
|
+
"@aws-sdk/credential-provider-imds": "3.170.0",
|
|
29
|
+
"@aws-sdk/credential-provider-sso": "3.170.0",
|
|
30
|
+
"@aws-sdk/credential-provider-web-identity": "3.170.0",
|
|
31
|
+
"@aws-sdk/property-provider": "3.170.0",
|
|
32
|
+
"@aws-sdk/shared-ini-file-loader": "3.170.0",
|
|
33
|
+
"@aws-sdk/types": "3.170.0",
|
|
34
34
|
"tslib": "^2.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@tsconfig/recommended": "1.0.1",
|
|
38
38
|
"@types/node": "^10.0.0",
|
|
39
39
|
"concurrently": "7.0.0",
|
|
40
|
-
"downlevel-dts": "0.
|
|
40
|
+
"downlevel-dts": "0.10.1",
|
|
41
41
|
"rimraf": "3.0.2",
|
|
42
42
|
"typedoc": "0.19.2",
|
|
43
43
|
"typescript": "~4.6.2"
|