Skip to content

StartJob

Source: src/AWS/DataExchange/StartJob.ts

Runtime binding for dataexchange:StartJob.

Starts a created job. Jobs are created in the WAITING state and do nothing until started. The job runs with the caller’s forwarded permissions, so this binding also grants dataexchange:CreateAsset (import jobs) and dataexchange:GetAsset (export jobs); grant the S3 side of the transfer via the matching AWS.S3 bindings. Provide the implementation with Effect.provide(AWS.DataExchange.StartJobHttp).

const startJob = yield* AWS.DataExchange.StartJob();
// runtime
yield* startJob({ JobId: job.Id! });