The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as emr from "@distilled.cloud/aws/emr-serverless"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Application } from "./Application.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Request accepted by the {@link ListJobRunAttempts} runtime callable. The |
| 8 | * `applicationId` is injected from the bound {@link Application}. |
| 9 | */ |
| 10 | export type ListJobRunAttemptsInput = Omit<emr.ListJobRunAttemptsRequest, "applicationId">; |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for `emr-serverless:ListJobRunAttempts`. |
| 14 | * |
| 15 | * Enumerates the attempts of a retried job run on the bound |
| 16 | * {@link Application} — how many times the retry policy re-ran the job and |
| 17 | * how each attempt ended. Provide the implementation with |
| 18 | * `Effect.provide(AWS.EMRServerless.ListJobRunAttemptsHttp)`. |
| 19 | * ### Running Jobs |
| 20 | * **Example:** Inspect A Job's Attempts |
| 21 | * ```typescript |
| 22 | * // init |
| 23 | * const listJobRunAttempts = yield* AWS.EMRServerless.ListJobRunAttempts(app); |
| 24 | * |
| 25 | * // runtime |
| 26 | * const { jobRunAttempts } = yield* listJobRunAttempts({ jobRunId }); |
| 27 | * ``` |
| 28 | * |
| 29 | * @binding |
| 30 | */ |
| 31 | export interface ListJobRunAttempts extends Binding.Service< |
| 32 | ListJobRunAttempts, |
| 33 | "AWS.EMRServerless.ListJobRunAttempts", |
| 34 | ( |
| 35 | application: Application, |
| 36 | ) => Effect.Effect< |
| 37 | ( |
| 38 | request: ListJobRunAttemptsInput, |
| 39 | ) => Effect.Effect<emr.ListJobRunAttemptsResponse, emr.ListJobRunAttemptsError> |
| 40 | > |
| 41 | > {} |
| 42 | export const ListJobRunAttempts = Binding.Service<ListJobRunAttempts>( |
| 43 | "AWS.EMRServerless.ListJobRunAttempts", |
| 44 | ); |