GetJob
Source:
src/AWS/Amplify/GetJob.ts
Runtime binding for amplify:GetJob.
Bind an App in the function’s init phase to get a callable that
reads a build job — its summary and per-step logs/status — for one of the
app’s branches. Provide the implementation with
Effect.provide(AWS.Amplify.GetJobHttp).
Observing Jobs
Section titled “Observing Jobs”// init — bind the operation to the appconst getJob = yield* AWS.Amplify.GetJob(app);
// runtime — read the job's current statusconst { job } = yield* getJob({ branchName: "main", jobId: "42" });if (job.summary.status === "FAILED") { yield* Effect.log(`build failed: ${job.summary.jobId}`);}