UNPKG

cdk-insights

Version:

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

26 lines (25 loc) 863 B
import type { SingleResourceAnalysis } from '../../types/analysis.types'; import type { AxiosClient, JsonParser } from './pollJobStatus.types'; export interface ProcessResultParams { result: string | SingleResourceAnalysis; jsonParser: JsonParser; } export interface ErrorHandlerParams { error: unknown; jobId: string; } export interface PollJobStatusOptions { maxAttempts?: number; intervalMs?: number; } export interface CreatePollJobStatusParams { apiUrl: string; client: AxiosClient; options?: PollJobStatusOptions; } export interface PollJobStatusParams { jobId: string; authToken: string; fingerprint: string; } export declare const createPollJobStatus: ({ apiUrl, client, options, }: CreatePollJobStatusParams) => ({ jobId, authToken, fingerprint, }: PollJobStatusParams) => Promise<SingleResourceAnalysis>;