1 | import { BaseExternalAccountClient } from './baseexternalclient';
|
2 | import { IdentityPoolClientOptions } from './identitypoolclient';
|
3 | import { AwsClientOptions } from './awsclient';
|
4 | import { PluggableAuthClientOptions } from './pluggable-auth-client';
|
5 | import { AuthClientOptions } from './authclient';
|
6 | export type ExternalAccountClientOptions = IdentityPoolClientOptions | AwsClientOptions | PluggableAuthClientOptions;
|
7 |
|
8 |
|
9 |
|
10 | export declare class ExternalAccountClient {
|
11 | constructor();
|
12 | /**
|
13 | * This static method will instantiate the
|
14 | * corresponding type of external account credential depending on the
|
15 | * underlying credential source.
|
16 | * @param options The external account options object typically loaded
|
17 | * from the external account JSON credential file.
|
18 | * @param additionalOptions **DEPRECATED, all options are available in the
|
19 | * `options` parameter.** Optional additional behavior customization options.
|
20 | * These currently customize expiration threshold time and whether to retry
|
21 | * on 401/403 API request errors.
|
22 | * @return A BaseExternalAccountClient instance or null if the options
|
23 | * provided do not correspond to an external account credential.
|
24 | */
|
25 | static fromJSON(options: ExternalAccountClientOptions, additionalOptions?: AuthClientOptions): BaseExternalAccountClient | null;
|
26 | }
|