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/ec2_metadata_credentials.d.ts
import {Credentials} from '../credentials';
import {Logger} from '../config-base';

export class EC2MetadataCredentials extends Credentials {
    /**
     * Creates credentials from the metadata service on an EC2 instance.
     * @param {object} options - Override the default (1s) timeout period.
     */
    constructor(options?: EC2MetadataCredentialsOptions);

    /**
     * The original expiration of the current credential. In case of AWS
     * outage, the EC2 metadata will extend expiration of the existing
     * credential.
     */
    originalExpiration?: Date;
}
interface EC2MetadataCredentialsOptions {
    httpOptions?: {
        /**
         * Timeout in milliseconds.
         */
        timeout?: number
        /**
        * Connection timeout in milliseconds.
        */
        connectTimeout?: number
    }
    maxRetries?: number
    logger?: Logger
    /**
     * Prevent IMDSv1 fallback.
     */
    ec2MetadataV1Disabled?: boolean

    /**
     * profile name to check for IMDSv1 settings.
     */
    profile?: string

    /**
     * optional file from which to to get config.
     */
    filename?: string
}