UNPKG

cdk-insights

Version:

AWS CDK security and cost analysis tool with AI-powered insights

38 lines (37 loc) 1.23 kB
import type { CloudFormationStack, Issue, IssueGroup, ServiceName } from './types/analysis.types'; interface RunAnalysisTypes { stacks: Record<string, CloudFormationStack>; inlineFindings: Issue[]; pathToLogicalId: Record<string, string>; output?: string; recommendationMapPerStack: Record<string, Record<string, IssueGroup>>; assetSourcePaths?: Record<string, string>; redact?: boolean; withIssue?: boolean; services?: ServiceName[]; ruleFilter?: string[]; authToken?: string; fingerprint?: string; failOnCritical?: boolean; tier?: 'free' | 'pro'; noCache?: boolean; cache?: { enabled: boolean; ttl: number; maxSize: number; }; quotaValidation?: { canRunStaticAnalysis: boolean; canRunAIAnalysis: boolean; quota: { isTrial: boolean; currentResourcesAnalyzed: number; maxResources: number; }; }; } export { CdkInsightsAspect, createCdkInsightsAspect, } from './aspects/CdkInsightsAspect'; export declare const runAnalysis: (params: RunAnalysisTypes) => Promise<{ recommendationMaps: Record<string, IssueGroup>; hasCriticalIssues: boolean | undefined; }>;