UNPKG

@cloud-carbon-footprint/aws

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.

11 lines (10 loc) 421 B
import { AWSError, Credentials } from 'aws-sdk'; export default class GCPCredentials extends Credentials { private accountId; private targetRoleName; private proxyAccountId; private proxyRoleName; constructor(accountId: string, targetRoleName: string, proxyAccountId: string, proxyRoleName: string); refresh(callback: (err?: AWSError) => void): Promise<void>; getTokenId(): Promise<string>; }