Register Job Definition

POST {{aws_batch_base_url}}/v1/registerjobdefinition

Request Body

{"containerProperties"=>{"image"=>"busybox", "command"=>["sleep", "10"], "vcpus"=>1, "memory"=>128}, "type"=>"container", "jobDefinitionName"=>"sleep10"}

RESPONSES

status: OK

{"jobDefinitionName":"sleep10","jobDefinitionArn":"arn:aws:batch:us-east-1:879370021840:job-definition/sleep10:1","revision":1}