Skip to content

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).

// init — bind the operation to the app
const listJobs = yield* AWS.Amplify.ListJobs(app);
// runtime — the first summary is the most recent job
const { jobSummaries } = yield* listJobs({
branchName: "main",
maxResults: 1,
});
const latest = jobSummaries[0];