{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-create-job-template-request-schema.json",
  "title": "CreateJobTemplateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-jobtemplates-api-openapi.yml#/components/schemas/CreateJobTemplateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The specified name of the job template."
    },
    "clientToken": {
      "type": "string",
      "description": "The client token of the job template."
    },
    "jobTemplateData": {
      "$ref": "#/$defs/JobTemplateData"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags that are associated with the job template."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The KMS key ARN used to encrypt the job template."
    }
  },
  "required": [
    "name",
    "clientToken",
    "jobTemplateData"
  ],
  "$defs": {
    "EmrContainersConfiguration": {
      "type": "object",
      "properties": {
        "classification": {
          "type": "string",
          "description": "The classification within a configuration."
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A set of properties specified within a configuration classification."
        },
        "configurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrContainersConfiguration"
          },
          "description": "A list of additional configurations to apply within a configuration object."
        }
      },
      "required": [
        "classification"
      ]
    },
    "JobDriver": {
      "type": "object",
      "properties": {
        "sparkSubmitJobDriver": {
          "$ref": "#/$defs/SparkSubmitJobDriver"
        },
        "sparkSqlJobDriver": {
          "$ref": "#/$defs/SparkSqlJobDriver"
        }
      }
    },
    "JobTemplateData": {
      "type": "object",
      "properties": {
        "executionRoleArn": {
          "type": "string",
          "description": "The execution role ARN of the job run."
        },
        "releaseLabel": {
          "type": "string",
          "description": "The release version of Amazon EMR."
        },
        "configurationOverrides": {
          "$ref": "#/$defs/ParametricConfigurationOverrides"
        },
        "jobDriver": {
          "$ref": "#/$defs/JobDriver"
        },
        "parameterConfiguration": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/TemplateParameterConfiguration"
          },
          "description": "The configuration of parameters existing in the job template."
        },
        "jobTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags assigned to jobs started using the job template."
        }
      },
      "required": [
        "executionRoleArn",
        "releaseLabel",
        "jobDriver"
      ]
    },
    "ParametricCloudWatchMonitoringConfiguration": {
      "type": "object",
      "properties": {
        "logGroupName": {
          "type": "string",
          "description": "The name of the log group for log publishing."
        },
        "logStreamNamePrefix": {
          "type": "string",
          "description": "The specified name prefix for log streams."
        }
      }
    },
    "ParametricConfigurationOverrides": {
      "type": "object",
      "properties": {
        "applicationConfiguration": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrContainersConfiguration"
          },
          "description": "The configurations for the application running by the job run."
        },
        "monitoringConfiguration": {
          "$ref": "#/$defs/ParametricMonitoringConfiguration"
        }
      }
    },
    "ParametricMonitoringConfiguration": {
      "type": "object",
      "properties": {
        "persistentAppUI": {
          "type": "string",
          "description": "Monitoring configurations for the persistent application UI."
        },
        "cloudWatchMonitoringConfiguration": {
          "$ref": "#/$defs/ParametricCloudWatchMonitoringConfiguration"
        },
        "s3MonitoringConfiguration": {
          "$ref": "#/$defs/ParametricS3MonitoringConfiguration"
        }
      }
    },
    "ParametricS3MonitoringConfiguration": {
      "type": "object",
      "properties": {
        "logUri": {
          "type": "string",
          "description": "Amazon S3 destination URI for log publishing."
        }
      }
    },
    "SparkSqlJobDriver": {
      "type": "object",
      "properties": {
        "entryPoint": {
          "type": "string",
          "description": "The SQL file to be executed."
        },
        "sparkSqlParameters": {
          "type": "string",
          "description": "The Spark parameters to be included in the Spark SQL command."
        }
      }
    },
    "SparkSubmitJobDriver": {
      "type": "object",
      "properties": {
        "entryPoint": {
          "type": "string",
          "description": "The entry point of job application."
        },
        "entryPointArguments": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The arguments for job application."
        },
        "sparkSubmitParameters": {
          "type": "string",
          "description": "The Spark submit parameters that are used for job runs."
        }
      },
      "required": [
        "entryPoint"
      ]
    },
    "TemplateParameterConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "NUMBER",
            "STRING"
          ],
          "description": "The type of the job template parameter. Allowed values are: ‘STRING’, ‘NUMBER’."
        },
        "defaultValue": {
          "type": "string",
          "description": "The default value for the job template parameter."
        }
      }
    }
  }
}