UNPKG

cdk-lambda-subminute

Version:

A construct for deploying a Lambda function that can be invoked every time unit less than one minute.

15 lines (14 loc) 590 B
import {Credentials} from '../credentials'; import {AWSError} from '../error'; import {ClientConfiguration} from '../../clients/sts'; export class TokenFileWebIdentityCredentials extends Credentials { /** * Creates a new credentials object with optional configuraion. * @param {Object} clientConfig - a map of configuration options to pass to the underlying STS client. */ constructor(clientConfig?: ClientConfiguration); /** * Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity(). */ refresh(callback: (err?: AWSError) => void): void; }