Sha256: 502357d962757f8fc1fc4a68cc1243d65f2124c414ed122f88dc9798b9bdc244

Contents?: true

Size: 1.56 KB

Versions: 35

Compression:

Stored size: 1.56 KB

Contents

import {Credentials} from '../credentials';
import {AWSError} from '../error';
import {ConfigurationOptions} from '../config';
import STS = require('../../clients/sts');
export class WebIdentityCredentials extends Credentials {
    /**
     * Creates a new credentials object with optional configuraion.
     * @param {Object} options - a map of options that are passed to the AWS.STS.assumeRole() or AWS.STS.getSessionToken() operations. If a RoleArn parameter is passed in, credentials will be based on the IAM role.
     * @param {Object} clientConfig - a map of configuration options to pass to the underlying STS client.
     */
    constructor(options: WebIdentityCredentials.WebIdentityCredentialsOptions, clientConfig?: ConfigurationOptions);
    /**
     * Creates a new credentials object.
     * @param {string} options - a map of options that are passed to the AWS.STS.assumeRole() or AWS.STS.getSessionToken() operations. If a RoleArn parameter is passed in, credentials will be based on the IAM role.
     */
    constructor(options?: WebIdentityCredentials.WebIdentityCredentialsOptions);
    /**
     * Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity().
     */
    refresh(callback: (err: AWSError) => void): void;

    data: STS.Types.AssumeRoleWithWebIdentityResponse;
    params: STS.Types.AssumeRoleWithWebIdentityRequest
}

// Needed to expose interfaces on the class
declare namespace WebIdentityCredentials {
    export type ClientConfiguration = ConfigurationOptions;
    export type WebIdentityCredentialsOptions = STS.AssumeRoleWithWebIdentityRequest;
}

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/credentials/web_identity_credentials.d.ts
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/credentials/web_identity_credentials.d.ts