{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-list-job-templates-response-schema.json",
  "title": "ListJobTemplatesResponse",
  "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/ListJobTemplatesResponse",
  "type": "object",
  "properties": {
    "templates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobTemplate"
      },
      "description": "This output lists information about the specified job templates."
    },
    "nextToken": {
      "type": "string",
      "description": "This output displays the token for the next set of job templates."
    }
  },
  "$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"
        }
      }
    },
    "JobTemplate": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the job template."
        },
        "id": {
          "type": "string",
          "description": "The ID of the job template."
        },
        "arn": {
          "type": "string",
          "description": "The ARN of the job template."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the job template was created."
        },
        "createdBy": {
          "type": "string",
          "description": "The user who created the job template."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags assigned to the job template."
        },
        "jobTemplateData": {
          "$ref": "#/$defs/JobTemplateData"
        },
        "kmsKeyArn": {
          "type": "string",
          "description": "The KMS key ARN used to encrypt the job template."
        },
        "decryptionError": {
          "type": "string",
          "description": "The error message in case the decryption of job template fails."
        }
      },
      "required": [
        "jobTemplateData"
      ]
    },
    "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."
        }
      }
    }
  }
}