{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-job-request-schema.json",
  "title": "CreateJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-job-api-openapi.yml#/components/schemas/CreateJobRequest",
  "type": "object",
  "properties": {
    "JobName": {
      "type": "string",
      "description": "The name of the job. The name must be unique within your account and Amazon Web Services Region."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the job. The role must have the necessary permissions to access the resources required by the job configuration."
    },
    "JobCategory": {
      "type": "string",
      "enum": [
        "AgentRFT",
        "AgentRFTEvaluation"
      ],
      "description": "The category of the job. The category determines the type of workload that the job runs."
    },
    "JobConfigSchemaVersion": {
      "type": "string",
      "description": "The version of the configuration schema to use for the job configuration document. Use ListJobSchemaVersions to get available schema versions for a job category."
    },
    "JobConfigDocument": {
      "type": "string",
      "description": "The JSON configuration document for the job. The document must conform to the schema specified by JobConfigSchemaVersion. Use DescribeJobSchemaVersion to retrieve the schema for validation."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources."
    }
  },
  "required": [
    "JobName",
    "RoleArn",
    "JobCategory",
    "JobConfigSchemaVersion",
    "JobConfigDocument"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}