import type * as SVC from "@distilled.cloud/aws/emr"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Cluster } from "./Cluster.ts"; /** * Runtime binding for `elasticmapreduce:ListSessions` — lists the bound cluster's interactive sessions, optionally filtered by state. * ### Interactive Sessions * **Example:** List Idle Sessions * ```typescript * const listSessions = yield* AWS.EMR.ListSessions(cluster); * * const { Sessions } = yield* listSessions({ SessionStates: ["IDLE"] }); * ``` * * @binding */ export interface ListSessions extends Binding.Service< ListSessions, "AWS.EMR.ListSessions", ( cluster: C, ) => Effect.Effect< ( request?: Omit, ) => Effect.Effect > > {} export const ListSessions = Binding.Service( "AWS.EMR.ListSessions", );