UNPKG

@infrascan/aws-ecs-scanner

Version:

Infrascan scanner definition for AWS ECS

17 lines (14 loc) 1.94 kB
import { DescribeClustersCommandInput, DescribeServicesCommandInput, DescribeTasksCommandInput, DescribeClustersCommandOutput, Cluster, DescribeServicesCommandOutput, Service, DescribeTasksCommandOutput, Task } from '@aws-sdk/client-ecs'; import { BaseState, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types'; import { ECS } from './types.d.js'; type ECSState<T> = BaseState<T> & { ecs: ECS; }; type ClusterGraphState = ECSState<DescribeClustersCommandInput>; type ServiceGraphState = ECSState<DescribeServicesCommandInput>; type TaskGraphState = ECSState<DescribeTasksCommandInput>; declare const ClusterEntity: TranslatedEntity<ECSState<DescribeClustersCommandInput>, State<DescribeClustersCommandOutput, DescribeClustersCommandInput>, WithCallContext<Cluster, DescribeClustersCommandInput>>; declare const ServiceEntity: TranslatedEntity<ECSState<DescribeServicesCommandInput>, State<DescribeServicesCommandOutput, DescribeServicesCommandInput>, WithCallContext<Service, DescribeServicesCommandInput>>; declare const TaskEntity: TranslatedEntity<ECSState<DescribeTasksCommandInput>, State<DescribeTasksCommandOutput, DescribeTasksCommandInput>, WithCallContext<Task, DescribeTasksCommandInput>>; declare const entities: (TranslatedEntity<ECSState<DescribeClustersCommandInput>, State<DescribeClustersCommandOutput, DescribeClustersCommandInput>, WithCallContext<Cluster, DescribeClustersCommandInput>> | TranslatedEntity<ECSState<DescribeServicesCommandInput>, State<DescribeServicesCommandOutput, DescribeServicesCommandInput>, WithCallContext<Service, DescribeServicesCommandInput>> | TranslatedEntity<ECSState<DescribeTasksCommandInput>, State<DescribeTasksCommandOutput, DescribeTasksCommandInput>, WithCallContext<Task, DescribeTasksCommandInput>>)[]; export { ClusterEntity, type ClusterGraphState, type ECSState, ServiceEntity, type ServiceGraphState, TaskEntity, type TaskGraphState, entities };