@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.
@@ -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 { CredentialProvider, Credentials } from "@aws-sdk/types";
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: Credentials, params: AssumeRoleParams) => Promise<Credentials>;
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<Credentials>;
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) => CredentialProvider;
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").Credentials>;
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 { CredentialProvider } from "@aws-sdk/types";
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) => CredentialProvider;
9
+ export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => AwsCredentialIdentityProvider;
@@ -1,3 +1,3 @@
1
- import { Credentials, ParsedIniData } from "@aws-sdk/types";
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<Credentials>;
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").Credentials>;
3
+ export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
@@ -1,8 +1,8 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
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<Credentials>;
8
+ export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<AwsCredentialIdentity>;
@@ -1,4 +1,4 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
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<Credentials>;
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 { CredentialProvider, Credentials } from "@aws-sdk/types";
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: Credentials,
11
+ sourceCreds: AwsCredentialIdentity,
9
12
  params: AssumeRoleParams
10
- ) => Promise<Credentials>;
13
+ ) => Promise<AwsCredentialIdentity>;
11
14
  roleAssumerWithWebIdentity?: (
12
15
  params: AssumeRoleWithWebIdentityParams
13
- ) => Promise<Credentials>;
16
+ ) => Promise<AwsCredentialIdentity>;
14
17
  }
15
- export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
18
+ export declare const fromIni: (
19
+ init?: FromIniInit
20
+ ) => AwsCredentialIdentityProvider;
@@ -13,4 +13,4 @@ export declare const resolveAssumeRoleCredentials: (
13
13
  profiles: ParsedIniData,
14
14
  options: FromIniInit,
15
15
  visitedProfiles?: Record<string, true>
16
- ) => Promise<import("@aws-sdk/types").Credentials>;
16
+ ) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
@@ -1,5 +1,5 @@
1
- import { CredentialProvider } from "@aws-sdk/types";
1
+ import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
2
2
  export declare const resolveCredentialSource: (
3
3
  credentialSource: string,
4
4
  profileName: string
5
- ) => CredentialProvider;
5
+ ) => AwsCredentialIdentityProvider;
@@ -1,8 +1,8 @@
1
- import { Credentials, ParsedIniData } from "@aws-sdk/types";
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<Credentials>;
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").Credentials>;
5
+ ) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
@@ -1,4 +1,4 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
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<Credentials>;
12
+ ) => Promise<AwsCredentialIdentity>;
@@ -1,4 +1,4 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
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<Credentials>;
14
+ ) => Promise<AwsCredentialIdentity>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.212.0",
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.212.0",
28
- "@aws-sdk/credential-provider-imds": "3.212.0",
29
- "@aws-sdk/credential-provider-sso": "3.212.0",
30
- "@aws-sdk/credential-provider-web-identity": "3.212.0",
31
- "@aws-sdk/property-provider": "3.212.0",
32
- "@aws-sdk/shared-ini-file-loader": "3.212.0",
33
- "@aws-sdk/types": "3.212.0",
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": {