import { ResponseCustomHeader, ResponseHeadersCorsBehavior } from 'aws-cdk-lib/aws-cloudfront'; import { InstanceType, IVpc, SecurityGroup } from 'aws-cdk-lib/aws-ec2'; import { Runtime } from 'aws-cdk-lib/aws-lambda'; import { DatabaseInstanceProps, PostgresEngineVersion } from 'aws-cdk-lib/aws-rds'; export type GraphweaverAppConfig = { name: string; network: { vpc: IVpc; graphqlSecurityGroup: SecurityGroup; databaseSecurityGroup: SecurityGroup; }; adminUI: { buildPath: string; cert: string; url: string; customHeaders?: ResponseCustomHeader[]; csp?: string; cors?: ResponseHeadersCorsBehavior; }; database?: Omit & { username: string; name: string; instanceType?: InstanceType; version?: PostgresEngineVersion; }; ecs?: { buildPath: string; cert: string; url: string; hostedZone: string; envVars: Record; cpuSize?: number; memorySize?: number; databaseSecretFullArn?: string; }; lambda?: { packageName?: string; functionName?: string; buildPath?: string; cert: string; url: string; envVars: Record; memorySize?: number; timeout?: number; runtime?: Runtime; handler?: string; databaseSecretFullArn?: string; allowedOrigins?: string[]; }; };