import type * as batch from "@distilled.cloud/aws/batch"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { JobDefinition } from "./JobDefinition.ts"; import type { JobQueue } from "./JobQueue.ts"; /** * The queue and job definition are injected by the binding; everything else * (name, parameters, container overrides, ...) is the raw distilled request. */ export interface SubmitJobRequest extends Omit { } /** * Submit a job to an AWS Batch job queue against a bound job definition — * fire-and-forget heavy work from a Lambda or Task. * * ### Submitting Jobs * **Example:** Submit from a Lambda * ```typescript * const submitJob = yield* Batch.SubmitJob(queue, jobDef); * const { jobId } = yield* submitJob({ * jobName: "nightly-export", * containerOverrides: { command: ["echo", "hello"] }, * }); * ``` * * @binding */ export interface SubmitJob extends Binding.Service Effect.Effect<(request: SubmitJobRequest) => Effect.Effect>> { } export declare const SubmitJob: SubmitJob; //# sourceMappingURL=SubmitJob.d.ts.map