archfit
Version:
Validate the fitness of your AWS solutions, without the heavy lifting!
19 lines (18 loc) • 871 B
TypeScript
import { Currency } from './Currency';
import { AWSRegion } from './Region';
export type ArchFitConfiguration = {
tests: (ArchFitTest | ArchFitTestConfigurable)[];
region: AWSRegion;
period?: number;
currency?: Currency;
writeReport?: boolean;
};
export type ArchFitConfigurationResolved = Required<ArchFitConfiguration>;
export type ArchFitTest = {
name: ArchFitTestName;
threshold?: number;
};
export type ArchFitTestConfigurable = ArchFitTest & {
required: string[];
};
export type ArchFitTestName = 'APIGatewayErrorRate' | 'APIGatewayRequestValidation' | 'CustomTaggedResources' | 'SpendTrend' | 'DynamoDBOnDemandMode' | 'DynamoDBProvisionedThroughput' | 'LambdaArchitecture' | 'LambdaDeadLetterQueueUsage' | 'LambdaMemoryCap' | 'LambdaRuntimes' | 'LambdaTimeouts' | 'LambdaVersioning' | 'PublicExposure' | 'RatioServersToServerless';