UNPKG

@cloud-carbon-footprint/aws

Version:

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

10 lines (9 loc) 444 B
import { StorageUsage, HDDStorageService, Cost } from '@cloud-carbon-footprint/core'; import { ServiceWrapper } from './ServiceWrapper'; export default class S3 extends HDDStorageService { private readonly serviceWrapper; serviceName: string; constructor(serviceWrapper: ServiceWrapper); getUsage(startDate: Date, endDate: Date): Promise<StorageUsage[]>; getCosts(start: Date, end: Date, region: string): Promise<Cost[]>; }