web_identity_credentials.d.ts (779B)
1 import {Credentials} from '../credentials'; 2 import {AWSError} from '../error'; 3 import STS = require('../../clients/sts'); 4 export class WebIdentityCredentials extends Credentials { 5 /** 6 * Creates a new credentials object. 7 * @param {string} filename - 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. 8 */ 9 constructor(options?: STS.Types.AssumeRoleWithWebIdentityRequest); 10 /** 11 * Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity(). 12 */ 13 refresh(callback: (err: AWSError) => void): void; 14 15 data: STS.Types.AssumeRoleWithWebIdentityResponse; 16 params: STS.Types.AssumeRoleWithWebIdentityRequest 17 }