Skip to content

UpdateJobStatus

Source: src/AWS/S3Control/UpdateJobStatus.ts

Runtime binding for s3:UpdateJobStatus (S3 Batch Operations).

Confirms a suspended job so it runs (Ready) or cancels it (Cancelled) — e.g. an approval workflow that releases a bulk delete only after a human signs off. The account id is resolved once via sts:GetCallerIdentity. Provide the implementation with Effect.provide(AWS.S3Control.UpdateJobStatusHttp).

// init — account-level binding, no resource argument
const updateJobStatus = yield* AWS.S3Control.UpdateJobStatus();
// runtime
yield* updateJobStatus({
JobId: jobId,
RequestedJobStatus: "Cancelled",
StatusUpdateReason: "superseded by newer manifest",
});