HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/javago_test/node_modules/aws-sdk/lib/credentials/chainable_temporary_credentials.d.ts
import {Credentials} from '../credentials';
import {AWSError} from '../error';
import STS = require('../../clients/sts');

export class ChainableTemporaryCredentials extends Credentials {
    constructor(options: ChainableTemporaryCredentials.ChainableTemporaryCredentialsOptions);
    /**
     * Creates a new temporary credentials object.
     */
    constructor(options?: ChainableTemporaryCredentials.ChainableTemporaryCredentialsOptions);
    /**
     * Refreshes credentials using AWS.STS.assumeRole() or AWS.STS.getSessionToken(), depending on whether an IAM role ARN was passed to the credentials constructor().
     */
    refresh(callback: (err: AWSError) => void): void;

    /**
     * The STS service instance used to get and refresh temporary credentials from AWS STS.
     */
    readonly service: STS
}

// Needed to expose interfaces on the class
declare namespace ChainableTemporaryCredentials {
    export type ChainableTemporaryCredentialsOptions = {
        params?: STS.Types.AssumeRoleRequest|STS.Types.GetSessionTokenRequest,
        masterCredentials?: Credentials,
        stsConfig?: STS.Types.ClientConfiguration,
        tokenCodeFn?: (serialNumber: string, callback: (err?: Error, token?: string) => void) => void
    }
}