@cloud-carbon-footprint/aws
Version:
The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.
12 lines (11 loc) • 435 B
TypeScript
import { AwsCredentialIdentity, Provider } from '@aws-sdk/types';
export default class GCPCredentials {
private accountId;
private targetRoleName;
private proxyAccountId;
private proxyRoleName;
constructor(accountId: string, targetRoleName: string, proxyAccountId: string, proxyRoleName: string);
getProvider(): Provider<AwsCredentialIdentity>;
getTokenId(): Promise<string>;
private generateIdToken;
}