@csermet/multiprovider
Version:
cloud-graph provider plugin for AWS used to fetch AWS cloud data.
40 lines (39 loc) • 968 B
TypeScript
import { Config } from 'aws-sdk';
export declare const getRoundedAmount: (amount: string) => number;
export declare const formatAmmountAndUnit: ({ Amount: amount, Unit: currency, }: {
Amount?: number;
Unit?: string;
}) => string;
export interface costInterface {
cost?: number;
currency?: string;
formattedCost?: string;
}
export interface RawAwsBilling {
totalCostLast30Days: costInterface;
totalCostMonthToDate: costInterface;
monthToDateDailyAverage: {
[key: string]: costInterface;
};
last30DaysDailyAverage: {
[key: string]: costInterface;
};
monthToDate: {
[key: string]: costInterface;
};
last30Days: {
[key: string]: costInterface;
};
individualData: {
[key: string]: costInterface;
};
}
declare const _default: ({ config, }: {
config: Config;
}) => Promise<{
[key: string]: RawAwsBilling[];
}>;
/**
* AWS Billing
*/
export default _default;