@aws-sdk/credential-provider-ini 3.36.0 → 3.36.1

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 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.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/credential-provider-ini
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
15
 
8
16
 
@@ -1,63 +1,26 @@
1
1
  import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
2
2
  import { CredentialProvider, Credentials } from "@aws-sdk/types";
3
3
  import { SourceProfileInit } from "@aws-sdk/util-credentials";
4
- /**
5
- * @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
6
- * TODO update the above to link to V3 docs
7
- */
4
+
8
5
  export interface AssumeRoleParams {
9
- /**
10
- * The identifier of the role to be assumed.
11
- */
6
+
12
7
  RoleArn: string;
13
- /**
14
- * A name for the assumed role session.
15
- */
8
+
16
9
  RoleSessionName: string;
17
- /**
18
- * A unique identifier that is used by third parties when assuming roles in
19
- * their customers' accounts.
20
- */
10
+
21
11
  ExternalId?: string;
22
- /**
23
- * The identification number of the MFA device that is associated with the
24
- * user who is making the `AssumeRole` call.
25
- */
12
+
26
13
  SerialNumber?: string;
27
- /**
28
- * The value provided by the MFA device.
29
- */
14
+
30
15
  TokenCode?: string;
31
16
  }
32
17
  export interface FromIniInit extends SourceProfileInit {
33
- /**
34
- * A function that returns a promise fulfilled with an MFA token code for
35
- * the provided MFA Serial code. If a profile requires an MFA code and
36
- * `mfaCodeProvider` is not a valid function, the credential provider
37
- * promise will be rejected.
38
- *
39
- * @param mfaSerial The serial code of the MFA device specified.
40
- */
18
+
41
19
  mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
42
- /**
43
- * A function that assumes a role and returns a promise fulfilled with
44
- * credentials for the assumed role.
45
- *
46
- * @param sourceCreds The credentials with which to assume a role.
47
- * @param params
48
- */
20
+
49
21
  roleAssumer?: (sourceCreds: Credentials, params: AssumeRoleParams) => Promise<Credentials>;
50
- /**
51
- * A function that assumes a role with web identity and returns a promise fulfilled with
52
- * credentials for the assumed role.
53
- *
54
- * @param sourceCreds The credentials with which to assume a role.
55
- * @param params
56
- */
22
+
57
23
  roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<Credentials>;
58
24
  }
59
- /**
60
- * Creates a credential provider that will read from ini files and supports
61
- * role assumption and multi-factor authentication.
62
- */
25
+
63
26
  export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.36.0",
3
+ "version": "3.36.1",
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,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@aws-sdk/credential-provider-env": "3.36.0",
26
26
  "@aws-sdk/credential-provider-imds": "3.36.0",
27
- "@aws-sdk/credential-provider-sso": "3.36.0",
27
+ "@aws-sdk/credential-provider-sso": "3.36.1",
28
28
  "@aws-sdk/credential-provider-web-identity": "3.36.0",
29
29
  "@aws-sdk/property-provider": "3.36.0",
30
30
  "@aws-sdk/shared-ini-file-loader": "3.36.0",