Skip to content

PutJobFailureResult

Source: src/AWS/CodePipeline/PutJobFailureResult.ts

Runtime binding for codepipeline:PutJobFailureResult — reports failure for a job handed to the workload by a pipeline Invoke (Lambda) or custom action, failing the action immediately instead of timing out.

CodePipeline job operations do not support resource-level permissions, so the grant is on *. The binding takes no resource — the job id arrives with the invocation event.

const putJobFailure = yield* AWS.CodePipeline.PutJobFailureResult();
yield* putJobFailure({
jobId: event["CodePipeline.job"].id,
failureDetails: { type: "JobFailed", message: "smoke test failed" },
});