ListTasks
Source:
src/AWS/ECS/ListTasks.ts
Runtime binding for ecs:ListTasks.
Bind this operation to a Cluster inside a function runtime to get a
callable that lists task ARNs in the bound cluster. The cluster ARN is
injected automatically and the grant is conditioned on the bound cluster.
Listing Tasks
Section titled “Listing Tasks”const listTasks = yield* AWS.ECS.ListTasks(cluster);
const response = yield* listTasks({ desiredStatus: "STOPPED",});const taskArns = response.taskArns ?? [];