UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

33 lines 976 B
import { type StorageConfig } from '../config/config.js'; import { type JobResult } from '../jobs/jobQueue.js'; import { type Indexer } from './indexer.js'; /** * An index job to run. */ export interface IndexJob { /** * The indexer to run. */ indexer: Indexer<any>; /** * The account ID to run the indexer for. */ accountId: string; /** * The regions to run the indexer for. */ regions: string[]; /** * The partition to run the indexer for. */ partition: string; } /** * Run index jobs in parallel with a specified concurrency. * * @param indexJobs the index jobs to run * @param storageConfig the storage configuration to use * @param concurrency the number of jobs to run in parallel */ export declare function runIndexJobs(indexJobs: IndexJob[], storageConfig: StorageConfig, concurrency: number): Promise<JobResult<void, Record<string, unknown>>[]>; //# sourceMappingURL=runIndexers.d.ts.map