ListJobs
Source:
src/AWS/Amplify/ListJobs.ts
Runtime binding for amplify:ListJobs.
Bind an App in the function’s init phase to get a callable that
lists the build jobs of one of the app’s branches, newest first. Provide the
implementation with Effect.provide(AWS.Amplify.ListJobsHttp).
Observing Jobs
Section titled “Observing Jobs”// init — bind the operation to the appconst listJobs = yield* AWS.Amplify.ListJobs(app);
// runtime — the first summary is the most recent jobconst { jobSummaries } = yield* listJobs({ branchName: "main", maxResults: 1,});const latest = jobSummaries[0];