Skip to content

StopJob

Source: src/AWS/Amplify/StopJob.ts

Runtime binding for amplify:StopJob.

Bind an App in the function’s init phase to get a callable that cancels an in-progress build job on one of the app’s branches. Provide the implementation with Effect.provide(AWS.Amplify.StopJobHttp).

// init — bind the operation to the app
const stopJob = yield* AWS.Amplify.StopJob(app);
// runtime — cancel the job
const { jobSummary } = yield* stopJob({
branchName: "main",
jobId: "42",
});