@aws-sdk/credential-providers 3.213.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/README.md +12 -12
- package/dist-types/fromContainerMetadata.d.ts +2 -2
- package/dist-types/fromEnv.d.ts +2 -2
- package/dist-types/fromIni.d.ts +2 -2
- package/dist-types/fromInstanceMetadata.d.ts +2 -2
- package/dist-types/fromNodeProviderChain.d.ts +2 -2
- package/dist-types/fromProcess.d.ts +2 -2
- package/dist-types/fromSSO.d.ts +3 -3
- package/dist-types/fromTemporaryCredentials.d.ts +3 -3
- package/dist-types/fromTokenFile.d.ts +2 -2
- package/dist-types/fromWebToken.d.ts +2 -2
- package/dist-types/ts3.4/fromContainerMetadata.d.ts +2 -2
- package/dist-types/ts3.4/fromEnv.d.ts +2 -2
- package/dist-types/ts3.4/fromIni.d.ts +4 -2
- package/dist-types/ts3.4/fromInstanceMetadata.d.ts +2 -2
- package/dist-types/ts3.4/fromNodeProviderChain.d.ts +2 -2
- package/dist-types/ts3.4/fromProcess.d.ts +2 -2
- package/dist-types/ts3.4/fromSSO.d.ts +4 -2
- package/dist-types/ts3.4/fromTemporaryCredentials.d.ts +7 -3
- package/dist-types/ts3.4/fromTokenFile.d.ts +2 -2
- package/dist-types/ts3.4/fromWebToken.d.ts +2 -2
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ const client = new FooClient({
|
|
|
62
62
|
|
|
63
63
|
## `fromCognitoIdentityPool()`
|
|
64
64
|
|
|
65
|
-
The function `fromCognitoIdentityPool()` returns `
|
|
65
|
+
The function `fromCognitoIdentityPool()` returns `AwsCredentialIdentityProvider` that calls [GetId API][getid_api]
|
|
66
66
|
to obtain an `identityId`, then generates temporary AWS credentials with
|
|
67
67
|
[GetCredentialsForIdentity API][getcredentialsforidentity_api], see
|
|
68
68
|
[`fromCognitoIdentity()`](#fromcognitoidentity).
|
|
@@ -107,7 +107,7 @@ const client = new FooClient({
|
|
|
107
107
|
|
|
108
108
|
## `fromTemporaryCredentials()`
|
|
109
109
|
|
|
110
|
-
The function `fromTemporaryCredentials` returns `
|
|
110
|
+
The function `fromTemporaryCredentials` returns `AwsCredentialIdentityProvider` that retrieves temporary
|
|
111
111
|
credentials from [STS AssumeRole API][assumerole_api].
|
|
112
112
|
|
|
113
113
|
```javascript
|
|
@@ -146,7 +146,7 @@ const client = new FooClient({
|
|
|
146
146
|
|
|
147
147
|
## `fromWebToken()`
|
|
148
148
|
|
|
149
|
-
The function `fromWebToken` returns `
|
|
149
|
+
The function `fromWebToken` returns `AwsCredentialIdentityProvider` that gets credentials calling
|
|
150
150
|
[STS AssumeRoleWithWebIdentity API][assumerolewithwebidentity_api]
|
|
151
151
|
|
|
152
152
|
```javascript
|
|
@@ -209,7 +209,7 @@ provider, see the documentation for the identity provider.
|
|
|
209
209
|
|
|
210
210
|
## `fromContainerMetadata()` and `fromInstanceMetadata()`
|
|
211
211
|
|
|
212
|
-
`fromContainerMetadata` and `fromInstanceMetadata` will create `
|
|
212
|
+
`fromContainerMetadata` and `fromInstanceMetadata` will create `AwsCredentialIdentityProvider` functions that
|
|
213
213
|
read from the ECS container metadata service and the EC2 instance metadata service, respectively.
|
|
214
214
|
|
|
215
215
|
```javascript
|
|
@@ -244,12 +244,12 @@ const client = new FooClient({
|
|
|
244
244
|
});
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
-
A `
|
|
247
|
+
A `AwsCredentialIdentityProvider` function created with `fromContainerMetadata` will return a promise that will
|
|
248
248
|
resolve with credentials for the IAM role associated with containers in an Amazon ECS task. Please
|
|
249
249
|
see [IAM Roles for Tasks][iam_roles_for_tasks] for more information on using IAM roles with Amazon
|
|
250
250
|
ECS.
|
|
251
251
|
|
|
252
|
-
A `
|
|
252
|
+
A `AwsCredentialIdentityProvider` function created with `fromInstanceMetadata` will return a promise that will
|
|
253
253
|
resolve with credentials for the IAM role associated with an EC2 instance.
|
|
254
254
|
Please see [IAM Roles for Amazon EC2][iam_roles_for_ec2] for more information on using IAM roles
|
|
255
255
|
with Amazon EC2. Both IMDSv1 (a request/response method) and IMDSv2 (a session-oriented method) are
|
|
@@ -259,7 +259,7 @@ Please see [Configure the instance metadata service][config_instance_metadata] f
|
|
|
259
259
|
|
|
260
260
|
## `fromIni()`
|
|
261
261
|
|
|
262
|
-
`fromIni` creates `
|
|
262
|
+
`fromIni` creates `AwsCredentialIdentityProvider` functions that read from a shared credentials file at
|
|
263
263
|
`~/.aws/credentials` and a shared configuration file at `~/.aws/config`. Both files are expected to
|
|
264
264
|
be INI formatted with section names corresponding to profiles. Sections in the credentials file are
|
|
265
265
|
treated as profile names, whereas profile sections in the config file must have the format of
|
|
@@ -394,7 +394,7 @@ const client = new FooClient({
|
|
|
394
394
|
});
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
`fromEnv` returns a `
|
|
397
|
+
`fromEnv` returns a `AwsCredentialIdentityProvider` function, that reads credentials from the following
|
|
398
398
|
environment variables:
|
|
399
399
|
|
|
400
400
|
- `AWS_ACCESS_KEY_ID` - The access key for your AWS account.
|
|
@@ -430,7 +430,7 @@ const client = new FooClient({
|
|
|
430
430
|
});
|
|
431
431
|
```
|
|
432
432
|
|
|
433
|
-
`fromSharedConfigFiles` creates a `
|
|
433
|
+
`fromSharedConfigFiles` creates a `AwsCredentialIdentityProvider` functions that executes a given process and
|
|
434
434
|
attempt to read its standard output to receive a JSON payload containing the credentials. The
|
|
435
435
|
process command is read from a shared credentials file at `~/.aws/credentials` and a shared
|
|
436
436
|
configuration file at `~/.aws/config`. Both files are expected to be INI formatted with section
|
|
@@ -466,7 +466,7 @@ credential_process = /usr/local/bin/awscreds dev
|
|
|
466
466
|
|
|
467
467
|
## `fromTokenFile()`
|
|
468
468
|
|
|
469
|
-
The function `fromTokenFile` returns `
|
|
469
|
+
The function `fromTokenFile` returns `AwsCredentialIdentityProvider` that reads credentials as follows:
|
|
470
470
|
|
|
471
471
|
- Reads file location of where the OIDC token is stored from either provided option
|
|
472
472
|
`webIdentityTokenFile` or environment variable `AWS_WEB_IDENTITY_TOKEN_FILE`.
|
|
@@ -502,11 +502,11 @@ const client = new FooClient({
|
|
|
502
502
|
> profile that assumes a role which derived from the SSO credential, you should use the
|
|
503
503
|
> [`fromIni()`](#fromini), or `@aws-sdk/credential-provider-node` package.
|
|
504
504
|
|
|
505
|
-
`fromSSO`, that creates `
|
|
505
|
+
`fromSSO`, that creates `AwsCredentialIdentityProvider` functions that read from the _resolved_ access token
|
|
506
506
|
from local disk then requests temporary AWS credentials. For guidance on the AWS Single Sign-On
|
|
507
507
|
service, please refer to [AWS's Single Sign-On documentation][sso_api].
|
|
508
508
|
|
|
509
|
-
You can create the `
|
|
509
|
+
You can create the `AwsCredentialIdentityProvider` functions using the inline SSO parameters(`ssoStartUrl`,
|
|
510
510
|
`ssoAccountId`, `ssoRegion`, `ssoRoleName`) or load them from
|
|
511
511
|
[AWS SDKs and Tools shared configuration and credentials files][shared_config_files].
|
|
512
512
|
Profiles in the `credentials` file are given precedence over profiles in the `config` file.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoteProviderInit as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface RemoteProviderInit extends _RemoteProviderInit {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -21,4 +21,4 @@ export interface RemoteProviderInit extends _RemoteProviderInit {
|
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare const fromContainerMetadata: (init?: RemoteProviderInit | undefined) =>
|
|
24
|
+
export declare const fromContainerMetadata: (init?: RemoteProviderInit | undefined) => AwsCredentialIdentityProvider;
|
package/dist-types/fromEnv.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
/**
|
|
3
3
|
* Create a credential provider that reads credentials from the following environment variables:
|
|
4
4
|
*
|
|
@@ -23,4 +23,4 @@ import { CredentialProvider } from "@aws-sdk/types";
|
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
export declare const fromEnv: () =>
|
|
26
|
+
export declare const fromEnv: () => AwsCredentialIdentityProvider;
|
package/dist-types/fromIni.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromIniInit as _FromIniInit } from "@aws-sdk/credential-provider-ini";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromIniInit extends _FromIniInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
@@ -44,4 +44,4 @@ export interface FromIniInit extends _FromIniInit {
|
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
export declare const fromIni: (init?: FromIniInit) =>
|
|
47
|
+
export declare const fromIni: (init?: FromIniInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoteProviderConfig as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a credential provider function that reads from the EC2 instance metadata service.
|
|
5
5
|
*
|
|
@@ -19,4 +19,4 @@ import { CredentialProvider } from "@aws-sdk/types";
|
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare const fromInstanceMetadata: (init?: _RemoteProviderInit | undefined) =>
|
|
22
|
+
export declare const fromInstanceMetadata: (init?: _RemoteProviderInit | undefined) => AwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { DefaultProviderInit } from "@aws-sdk/credential-provider-node";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface fromNodeProviderChainInit extends DefaultProviderInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
@@ -30,4 +30,4 @@ export interface fromNodeProviderChainInit extends DefaultProviderInit {
|
|
|
30
30
|
* })
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare const fromNodeProviderChain: (init?: fromNodeProviderChainInit) =>
|
|
33
|
+
export declare const fromNodeProviderChain: (init?: fromNodeProviderChainInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FromProcessInit as _FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface FromProcessInit extends _FromProcessInit {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -25,4 +25,4 @@ export interface FromProcessInit extends _FromProcessInit {
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare const fromProcess: (init?: FromProcessInit | undefined) =>
|
|
28
|
+
export declare const fromProcess: (init?: FromProcessInit | undefined) => AwsCredentialIdentityProvider;
|
package/dist-types/fromSSO.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SSOClientConfig } from "@aws-sdk/client-sso";
|
|
2
2
|
import { FromSSOInit as _FromSSOInit } from "@aws-sdk/credential-provider-sso";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
4
4
|
export interface FromSSOInit extends Omit<_FromSSOInit, "client"> {
|
|
5
5
|
clientConfig?: SSOClientConfig;
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@ export interface FromSSOInit extends Omit<_FromSSOInit, "client"> {
|
|
|
8
8
|
* Creates a credential provider function that reads from the _resolved_ access token from local disk then requests
|
|
9
9
|
* temporary AWS credentials.
|
|
10
10
|
*
|
|
11
|
-
* You can create the `
|
|
11
|
+
* You can create the `AwsCredentialIdentityProvider` functions using the inline SSO parameters(`ssoStartUrl`, `ssoAccountId`,
|
|
12
12
|
* `ssoRegion`, `ssoRoleName`) or load them from [AWS SDKs and Tools shared configuration and credentials files](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
|
|
13
13
|
* Profiles in the `credentials` file are given precedence over profiles in the `config` file.
|
|
14
14
|
*
|
|
@@ -45,4 +45,4 @@ export interface FromSSOInit extends Omit<_FromSSOInit, "client"> {
|
|
|
45
45
|
* });
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
export declare const fromSSO: (init?: FromSSOInit) =>
|
|
48
|
+
export declare const fromSSO: (init?: FromSSOInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AssumeRoleCommandInput, STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
3
3
|
export interface FromTemporaryCredentialsOptions {
|
|
4
4
|
params: Omit<AssumeRoleCommandInput, "RoleSessionName"> & {
|
|
5
5
|
RoleSessionName?: string;
|
|
6
6
|
};
|
|
7
|
-
masterCredentials?:
|
|
7
|
+
masterCredentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
8
8
|
clientConfig?: STSClientConfig;
|
|
9
9
|
clientPlugins?: Pluggable<any, any>[];
|
|
10
10
|
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
|
@@ -49,4 +49,4 @@ export interface FromTemporaryCredentialsOptions {
|
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export declare const fromTemporaryCredentials: (options: FromTemporaryCredentialsOptions) =>
|
|
52
|
+
export declare const fromTemporaryCredentials: (options: FromTemporaryCredentialsOptions) => AwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromTokenFileInit as _FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromTokenFileInit extends _FromTokenFileInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
@@ -33,4 +33,4 @@ export interface FromTokenFileInit extends _FromTokenFileInit {
|
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
export declare const fromTokenFile: (init?: FromTokenFileInit) =>
|
|
36
|
+
export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromWebTokenInit as _FromWebTokenInit } from "@aws-sdk/credential-provider-web-identity";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromWebTokenInit extends _FromWebTokenInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
@@ -42,4 +42,4 @@ export interface FromWebTokenInit extends _FromWebTokenInit {
|
|
|
42
42
|
* });
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
export declare const fromWebToken: (init: FromWebTokenInit) =>
|
|
45
|
+
export declare const fromWebToken: (init: FromWebTokenInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RemoteProviderInit as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface RemoteProviderInit extends _RemoteProviderInit {}
|
|
4
4
|
export declare const fromContainerMetadata: (
|
|
5
5
|
init?: RemoteProviderInit | undefined
|
|
6
|
-
) =>
|
|
6
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const fromEnv: () =>
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
|
+
export declare const fromEnv: () => AwsCredentialIdentityProvider;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromIniInit as _FromIniInit } from "@aws-sdk/credential-provider-ini";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromIniInit extends _FromIniInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
7
7
|
}
|
|
8
|
-
export declare const fromIni: (
|
|
8
|
+
export declare const fromIni: (
|
|
9
|
+
init?: FromIniInit
|
|
10
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoteProviderConfig as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export declare const fromInstanceMetadata: (
|
|
4
4
|
init?: _RemoteProviderInit | undefined
|
|
5
|
-
) =>
|
|
5
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { DefaultProviderInit } from "@aws-sdk/credential-provider-node";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface fromNodeProviderChainInit extends DefaultProviderInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
7
7
|
}
|
|
8
8
|
export declare const fromNodeProviderChain: (
|
|
9
9
|
init?: fromNodeProviderChainInit
|
|
10
|
-
) =>
|
|
10
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FromProcessInit as _FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
2
|
-
import {
|
|
2
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface FromProcessInit extends _FromProcessInit {}
|
|
4
4
|
export declare const fromProcess: (
|
|
5
5
|
init?: FromProcessInit | undefined
|
|
6
|
-
) =>
|
|
6
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SSOClientConfig } from "@aws-sdk/client-sso";
|
|
2
2
|
import { FromSSOInit as _FromSSOInit } from "@aws-sdk/credential-provider-sso";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
4
4
|
export interface FromSSOInit
|
|
5
5
|
extends Pick<_FromSSOInit, Exclude<keyof _FromSSOInit, "client">> {
|
|
6
6
|
clientConfig?: SSOClientConfig;
|
|
7
7
|
}
|
|
8
|
-
export declare const fromSSO: (
|
|
8
|
+
export declare const fromSSO: (
|
|
9
|
+
init?: FromSSOInit
|
|
10
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { AssumeRoleCommandInput, STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AwsCredentialIdentity,
|
|
4
|
+
AwsCredentialIdentityProvider,
|
|
5
|
+
Pluggable,
|
|
6
|
+
} from "@aws-sdk/types";
|
|
3
7
|
export interface FromTemporaryCredentialsOptions {
|
|
4
8
|
params: Pick<
|
|
5
9
|
AssumeRoleCommandInput,
|
|
@@ -7,11 +11,11 @@ export interface FromTemporaryCredentialsOptions {
|
|
|
7
11
|
> & {
|
|
8
12
|
RoleSessionName?: string;
|
|
9
13
|
};
|
|
10
|
-
masterCredentials?:
|
|
14
|
+
masterCredentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
11
15
|
clientConfig?: STSClientConfig;
|
|
12
16
|
clientPlugins?: Pluggable<any, any>[];
|
|
13
17
|
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
|
14
18
|
}
|
|
15
19
|
export declare const fromTemporaryCredentials: (
|
|
16
20
|
options: FromTemporaryCredentialsOptions
|
|
17
|
-
) =>
|
|
21
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromTokenFileInit as _FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromTokenFileInit extends _FromTokenFileInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
7
7
|
}
|
|
8
8
|
export declare const fromTokenFile: (
|
|
9
9
|
init?: FromTokenFileInit
|
|
10
|
-
) =>
|
|
10
|
+
) => AwsCredentialIdentityProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { STSClientConfig } from "@aws-sdk/client-sts";
|
|
2
2
|
import { FromWebTokenInit as _FromWebTokenInit } from "@aws-sdk/credential-provider-web-identity";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsCredentialIdentityProvider, Pluggable } from "@aws-sdk/types";
|
|
4
4
|
export interface FromWebTokenInit extends _FromWebTokenInit {
|
|
5
5
|
clientConfig?: STSClientConfig;
|
|
6
6
|
clientPlugins?: Pluggable<any, any>[];
|
|
7
7
|
}
|
|
8
8
|
export declare const fromWebToken: (
|
|
9
9
|
init: FromWebTokenInit
|
|
10
|
-
) =>
|
|
10
|
+
) => AwsCredentialIdentityProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.216.0",
|
|
4
4
|
"description": "A collection of credential providers, without requiring service clients like STS, Cognito",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/client-cognito-identity": "3.
|
|
31
|
-
"@aws-sdk/client-sso": "3.
|
|
32
|
-
"@aws-sdk/client-sts": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.
|
|
34
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
35
|
-
"@aws-sdk/credential-provider-imds": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
37
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
38
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
39
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
40
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
41
|
-
"@aws-sdk/property-provider": "3.
|
|
42
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/client-cognito-identity": "3.216.0",
|
|
31
|
+
"@aws-sdk/client-sso": "3.216.0",
|
|
32
|
+
"@aws-sdk/client-sts": "3.216.0",
|
|
33
|
+
"@aws-sdk/credential-provider-cognito-identity": "3.216.0",
|
|
34
|
+
"@aws-sdk/credential-provider-env": "3.215.0",
|
|
35
|
+
"@aws-sdk/credential-provider-imds": "3.215.0",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "3.216.0",
|
|
37
|
+
"@aws-sdk/credential-provider-node": "3.216.0",
|
|
38
|
+
"@aws-sdk/credential-provider-process": "3.215.0",
|
|
39
|
+
"@aws-sdk/credential-provider-sso": "3.216.0",
|
|
40
|
+
"@aws-sdk/credential-provider-web-identity": "3.215.0",
|
|
41
|
+
"@aws-sdk/property-provider": "3.215.0",
|
|
42
|
+
"@aws-sdk/shared-ini-file-loader": "3.215.0",
|
|
43
|
+
"@aws-sdk/types": "3.215.0",
|
|
44
44
|
"tslib": "^2.3.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|