Sha256: c29d64b04aad8abd8af4d1183880213d65127a18b83ce532688a41377be5eae2

Contents?: true

Size: 1.5 KB

Versions: 35

Compression:

Stored size: 1.5 KB

Contents

import {AWSError} from './error';
/**
 * Represents a metadata service available on EC2 instances. Using the request() method, you can receieve metadata about any available resource on the metadata service.
 */
export class MetadataService {
    /**
     * Creates a new MetadataService object with a given set of options.
     */
    constructor(options?: MetadataServiceOptions);
    /**
     * Sends a request to the instance metadata service for a given resource.
     */
    request(path: string, callback: (err: AWSError, data: string) => void): void;
    /**
     * 169.254.169.254
     */
    static host: string
    /**
     * A map of options to pass to the underlying HTTP request.
     */
    httpOptions: {
        /**
         * a timeout value in milliseconds to wait before aborting the connection. Set to 0 for no timeout.
         */
        timeout: number;
    }
}

interface MetadataServiceOptions {
    /**
     * the hostname of the instance metadata service.
     */
    host?: string;
    /**
     * a map of options to pass to the underlying HTTP request.
     */
    httpOptions?: {
        /**
         * a timeout value in milliseconds to wait before aborting the connection. Set to 0 for no timeout.
         */
        timeout?: number;
    }
    /**
     * the maximum number of retries to perform for timeout errors.
     */
    maxRetries?: number;
    /**
     * A set of options to configure the retry delay on retryable errors. See AWS.Config for details.
     */
    retryDelayOptions?: any
}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/metadata_service.d.ts