import type * as ECS from "@distilled.cloud/aws/ecs"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Cluster } from "./Cluster.ts"; export interface DescribeTasksRequest extends Omit { } /** * Runtime binding for `ecs:DescribeTasks`. * * Bind this operation to a `Cluster` inside a function runtime to get a * callable that describes tasks in the bound cluster. The cluster ARN is * injected automatically and the host is granted `ecs:DescribeTasks` on the * cluster's tasks. * ### Describing Tasks * **Example:** Poll a Task Until It Stops * ```typescript * const describeTasks = yield* AWS.ECS.DescribeTasks(cluster); * * const response = yield* describeTasks({ tasks: [taskArn] }); * const status = response.tasks?.[0]?.lastStatus; * const exitCode = response.tasks?.[0]?.containers?.[0]?.exitCode; * ``` * * @binding */ export interface DescribeTasks extends Binding.Service Effect.Effect<(request: DescribeTasksRequest) => Effect.Effect>> { } export declare const DescribeTasks: DescribeTasks; //# sourceMappingURL=DescribeTasks.d.ts.map