@aws-sdk/credential-provider-ini 3.301.0 → 3.303.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.
@@ -2,6 +2,9 @@ import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-we
2
2
  import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
3
3
  import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@aws-sdk/types";
4
4
  import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
5
+ /**
6
+ * @internal
7
+ */
5
8
  export interface FromIniInit extends SourceProfileInit {
6
9
  /**
7
10
  * A function that returns a promise fulfilled with an MFA token code for
@@ -30,6 +33,8 @@ export interface FromIniInit extends SourceProfileInit {
30
33
  roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
31
34
  }
32
35
  /**
36
+ * @internal
37
+ *
33
38
  * Creates a credential provider that will read from ini files and supports
34
39
  * role assumption and multi-factor authentication.
35
40
  */
@@ -1 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
1
4
  export * from "./fromIni";
@@ -1,6 +1,8 @@
1
1
  import { ParsedIniData } from "@aws-sdk/types";
2
2
  import { FromIniInit } from "./fromIni";
3
3
  /**
4
+ * @internal
5
+ *
4
6
  * @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
5
7
  * TODO update the above to link to V3 docs
6
8
  */
@@ -28,5 +30,11 @@ export interface AssumeRoleParams {
28
30
  */
29
31
  TokenCode?: string;
30
32
  }
33
+ /**
34
+ * @internal
35
+ */
31
36
  export declare const isAssumeRoleProfile: (arg: any) => boolean;
37
+ /**
38
+ * @internal
39
+ */
32
40
  export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
@@ -1,5 +1,7 @@
1
1
  import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
2
2
  /**
3
+ * @internal
4
+ *
3
5
  * Resolve the `credential_source` entry from the profile, and return the
4
6
  * credential providers respectively. No memoization is needed for the
5
7
  * credential source providers because memoization should be added outside the
@@ -1,7 +1,16 @@
1
1
  import { Credentials, Profile } from "@aws-sdk/types";
2
2
  import { FromIniInit } from "./fromIni";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export interface ProcessProfile extends Profile {
4
7
  credential_process: string;
5
8
  }
9
+ /**
10
+ * @internal
11
+ */
6
12
  export declare const isProcessProfile: (arg: any) => arg is ProcessProfile;
13
+ /**
14
+ * @internal
15
+ */
7
16
  export declare const resolveProcessCredentials: (options: FromIniInit, profile: string) => Promise<Credentials>;
@@ -1,3 +1,6 @@
1
1
  import { AwsCredentialIdentity, ParsedIniData } from "@aws-sdk/types";
2
2
  import { FromIniInit } from "./fromIni";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare const resolveProfileData: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<AwsCredentialIdentity>;
@@ -1,3 +1,9 @@
1
1
  import { SsoProfile } from "@aws-sdk/credential-provider-sso";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
6
+ /**
7
+ * @internal
8
+ */
3
9
  export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
@@ -1,8 +1,17 @@
1
1
  import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export interface StaticCredsProfile extends Profile {
3
6
  aws_access_key_id: string;
4
7
  aws_secret_access_key: string;
5
8
  aws_session_token?: string;
6
9
  }
10
+ /**
11
+ * @internal
12
+ */
7
13
  export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfile;
14
+ /**
15
+ * @internal
16
+ */
8
17
  export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<AwsCredentialIdentity>;
@@ -1,9 +1,18 @@
1
1
  import { AwsCredentialIdentity, Profile } from "@aws-sdk/types";
2
2
  import { FromIniInit } from "./fromIni";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export interface WebIdentityProfile extends Profile {
4
7
  web_identity_token_file: string;
5
8
  role_arn: string;
6
9
  role_session_name?: string;
7
10
  }
11
+ /**
12
+ * @internal
13
+ */
8
14
  export declare const isWebIdentityProfile: (arg: any) => arg is WebIdentityProfile;
15
+ /**
16
+ * @internal
17
+ */
9
18
  export declare const resolveWebIdentityCredentials: (profile: WebIdentityProfile, options: FromIniInit) => Promise<AwsCredentialIdentity>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.301.0",
3
+ "version": "3.303.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,14 +24,14 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/credential-provider-env": "3.296.0",
28
- "@aws-sdk/credential-provider-imds": "3.300.0",
29
- "@aws-sdk/credential-provider-process": "3.300.0",
30
- "@aws-sdk/credential-provider-sso": "3.301.0",
31
- "@aws-sdk/credential-provider-web-identity": "3.296.0",
32
- "@aws-sdk/property-provider": "3.296.0",
33
- "@aws-sdk/shared-ini-file-loader": "3.300.0",
34
- "@aws-sdk/types": "3.296.0",
27
+ "@aws-sdk/credential-provider-env": "3.303.0",
28
+ "@aws-sdk/credential-provider-imds": "3.303.0",
29
+ "@aws-sdk/credential-provider-process": "3.303.0",
30
+ "@aws-sdk/credential-provider-sso": "3.303.0",
31
+ "@aws-sdk/credential-provider-web-identity": "3.303.0",
32
+ "@aws-sdk/property-provider": "3.303.0",
33
+ "@aws-sdk/shared-ini-file-loader": "3.303.0",
34
+ "@aws-sdk/types": "3.303.0",
35
35
  "tslib": "^2.5.0"
36
36
  },
37
37
  "devDependencies": {