@altostra/core
Version:
Core library for shared types and logic
18 lines (17 loc) • 529 B
TypeScript
import type { CostExplorer } from 'aws-sdk';
export interface EstimationSuccessResult {
altostraAccountId: string;
integrationAccountId: string;
status: 'success';
costsEstimations: CostExplorer.ResultsByTime;
roleArn: string;
}
export interface EstimationFailedResult {
altostraAccountId: string;
integrationAccountId: string;
status: 'failed';
reason?: string;
error: Error;
roleArn: string;
}
export declare type EstimationResult = EstimationFailedResult | EstimationSuccessResult;