Skip to content

ListServices

Source: src/AWS/ECS/ListServices.ts

Runtime binding for ecs:ListServices.

Bind this operation to a Cluster inside a function runtime to get a callable that lists service ARNs in the bound cluster. The cluster ARN is injected automatically and the grant is conditioned on the bound cluster.

const listServices = yield* AWS.ECS.ListServices(cluster);
const response = yield* listServices({ launchType: "FARGATE" });
const serviceArns = response.serviceArns ?? [];