UNPKG

cdk-insights

Version:

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

10 lines (9 loc) 741 B
import type { AxiosResponse } from 'axios'; import type { CloudFormationResource, Issue, SingleResourceAnalysis } from '../../types/analysis.types'; type AxiosClient = { post<TResponse>(url: string, data?: unknown, config?: unknown): Promise<AxiosResponse<TResponse>>; get<TResponse>(url: string, config?: unknown): Promise<AxiosResponse<TResponse>>; }; export declare const createAnalyzeResource: (axiosClient: AxiosClient, apiUrl: string) => (stackName: string, resourceId: string, resourceData: CloudFormationResource, resourceType: string, authToken: string, fingerprint: string, _existingFindings: Issue[]) => Promise<SingleResourceAnalysis>; export type AnalyzeResourceFn = ReturnType<typeof createAnalyzeResource>; export {};