CreateJob
Source:
src/AWS/MediaConvert/CreateJob.ts
Runtime binding for mediaconvert:CreateJob — submit a transcode job from
runtime code, the classic “S3 upload event → Lambda → transcode” workflow.
Also grants iam:PassRole (conditioned to mediaconvert.amazonaws.com)
for the S3-access role the job passes to the service.
Job ids are server-assigned at runtime, so the binding takes no arguments
and grants mediaconvert:CreateJob on *. Provide the implementation
with Effect.provide(AWS.MediaConvert.CreateJobHttp).
Submitting Jobs
Section titled “Submitting Jobs”// initconst createJob = yield* AWS.MediaConvert.CreateJob();
// runtimeconst { Job } = yield* createJob({ Role: roleArn, JobTemplate: template.jobTemplateName, Settings: { Inputs: [{ FileInput: `s3://${bucket}/${key}` }] },});