{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-describe-job-template-response-schema.json",
  "title": "DescribeJobTemplateResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-job-templates-api-openapi.yml#/components/schemas/DescribeJobTemplateResponse",
  "type": "object",
  "properties": {
    "jobTemplateArn": {
      "allOf": [
        {
          "$ref": "#/$defs/JobTemplateArn"
        },
        {
          "description": "The ARN of the job template."
        }
      ]
    },
    "jobTemplateId": {
      "allOf": [
        {
          "$ref": "#/$defs/JobTemplateId"
        },
        {
          "description": "The unique identifier of the job template."
        }
      ]
    },
    "description": {
      "allOf": [
        {
          "$ref": "#/$defs/JobDescription"
        },
        {
          "description": "A description of the job template."
        }
      ]
    },
    "documentSource": {
      "allOf": [
        {
          "$ref": "#/$defs/JobDocumentSource"
        },
        {
          "description": "An S3 link to the job document."
        }
      ]
    },
    "document": {
      "allOf": [
        {
          "$ref": "#/$defs/JobDocument"
        },
        {
          "description": "The job document."
        }
      ]
    },
    "createdAt": {
      "allOf": [
        {
          "$ref": "#/$defs/DateType"
        },
        {
          "description": "The time, in seconds since the epoch, when the job template was created."
        }
      ]
    },
    "presignedUrlConfig": {
      "$ref": "#/$defs/PresignedUrlConfig"
    },
    "jobExecutionsRolloutConfig": {
      "$ref": "#/$defs/JobExecutionsRolloutConfig"
    },
    "abortConfig": {
      "$ref": "#/$defs/AbortConfig"
    },
    "timeoutConfig": {
      "$ref": "#/$defs/TimeoutConfig"
    },
    "jobExecutionsRetryConfig": {
      "allOf": [
        {
          "$ref": "#/$defs/JobExecutionsRetryConfig"
        },
        {
          "description": "The configuration that determines how many retries are allowed for each failure type for a job."
        }
      ]
    },
    "maintenanceWindows": {
      "allOf": [
        {
          "$ref": "#/$defs/MaintenanceWindows"
        },
        {
          "description": "Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job."
        }
      ]
    }
  },
  "$defs": {
    "AbortAction": {
      "type": "string",
      "enum": [
        "CANCEL"
      ]
    },
    "AbortConfig": {
      "type": "object",
      "required": [
        "criteriaList"
      ],
      "properties": {
        "criteriaList": {
          "allOf": [
            {
              "$ref": "#/$defs/AbortCriteriaList"
            },
            {
              "description": "The list of criteria that determine when and how to abort the job."
            }
          ]
        }
      },
      "description": "The criteria that determine when and how a job abort takes place."
    },
    "AbortCriteria": {
      "type": "object",
      "required": [
        "failureType",
        "action",
        "thresholdPercentage",
        "minNumberOfExecutedThings"
      ],
      "properties": {
        "failureType": {
          "allOf": [
            {
              "$ref": "#/$defs/JobExecutionFailureType"
            },
            {
              "description": "The type of job execution failures that can initiate a job abort."
            }
          ]
        },
        "action": {
          "allOf": [
            {
              "$ref": "#/$defs/AbortAction"
            },
            {
              "description": "The type of job action to take to initiate the job abort."
            }
          ]
        },
        "thresholdPercentage": {
          "allOf": [
            {
              "$ref": "#/$defs/AbortThresholdPercentage"
            },
            {
              "description": "<p>The minimum percentage of job execution failures that must occur to initiate the job abort.</p> <p>Amazon Web Services IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).</p>"
            }
          ]
        },
        "minNumberOfExecutedThings": {
          "allOf": [
            {
              "$ref": "#/$defs/MinimumNumberOfExecutedThings"
            },
            {
              "description": "The minimum number of things which must receive job execution notifications before the job can be aborted."
            }
          ]
        }
      },
      "description": "The criteria that determine when and how a job abort takes place."
    },
    "AbortCriteriaList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AbortCriteria"
      },
      "minItems": 1
    },
    "AbortThresholdPercentage": {
      "type": "number",
      "format": "double",
      "maximum": 100
    },
    "CronExpression": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "DateType": {
      "type": "string",
      "format": "date-time"
    },
    "DurationInMinutes": {
      "type": "integer",
      "minimum": 30,
      "maximum": 1430
    },
    "ExpiresInSec": {
      "type": "integer",
      "minimum": 60,
      "maximum": 3600
    },
    "ExponentialRolloutRate": {
      "type": "object",
      "required": [
        "baseRatePerMinute",
        "incrementFactor",
        "rateIncreaseCriteria"
      ],
      "properties": {
        "baseRatePerMinute": {
          "allOf": [
            {
              "$ref": "#/$defs/RolloutRatePerMinute"
            },
            {
              "description": "The minimum number of things that will be notified of a pending job, per minute at the start of job rollout. This parameter allows you to define the initial rate of rollout."
            }
          ]
        },
        "incrementFactor": {
          "allOf": [
            {
              "$ref": "#/$defs/IncrementFactor"
            },
            {
              "description": "<p>The exponential factor to increase the rate of rollout for a job.</p> <p>Amazon Web Services IoT Core supports up to one digit after the decimal (for example, 1.5, but not 1.55).</p>"
            }
          ]
        },
        "rateIncreaseCriteria": {
          "allOf": [
            {
              "$ref": "#/$defs/RateIncreaseCriteria"
            },
            {
              "description": "The criteria to initiate the increase in rate of rollout for a job."
            }
          ]
        }
      },
      "description": "Allows you to create an exponential rate of rollout for a job."
    },
    "InProgressTimeoutInMinutes": {
      "type": "integer"
    },
    "IncrementFactor": {
      "type": "number",
      "format": "double",
      "minimum": 1.1,
      "maximum": 5
    },
    "JobDescription": {
      "type": "string",
      "pattern": "[^\\p{C}]+",
      "maxLength": 2028
    },
    "JobDocument": {
      "type": "string",
      "maxLength": 32768
    },
    "JobDocumentSource": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1350
    },
    "JobExecutionFailureType": {
      "type": "string",
      "enum": [
        "FAILED",
        "REJECTED",
        "TIMED_OUT",
        "ALL"
      ]
    },
    "JobExecutionsRetryConfig": {
      "type": "object",
      "required": [
        "criteriaList"
      ],
      "properties": {
        "criteriaList": {
          "allOf": [
            {
              "$ref": "#/$defs/RetryCriteriaList"
            },
            {
              "description": "The list of criteria that determines how many retries are allowed for each failure type for a job."
            }
          ]
        }
      },
      "description": "The configuration that determines how many retries are allowed for each failure type for a job."
    },
    "JobExecutionsRolloutConfig": {
      "type": "object",
      "properties": {
        "maximumPerMinute": {
          "allOf": [
            {
              "$ref": "#/$defs/MaxJobExecutionsPerMin"
            },
            {
              "description": "The maximum number of things that will be notified of a pending job, per minute. This parameter allows you to create a staged rollout."
            }
          ]
        },
        "exponentialRate": {
          "allOf": [
            {
              "$ref": "#/$defs/ExponentialRolloutRate"
            },
            {
              "description": "The rate of increase for a job rollout. This parameter allows you to define an exponential rate for a job rollout."
            }
          ]
        }
      },
      "description": "Allows you to create a staged rollout of a job."
    },
    "JobTemplateArn": {
      "type": "string",
      "pattern": "^arn:[!-~]+$",
      "minLength": 1,
      "maxLength": 1600
    },
    "JobTemplateId": {
      "type": "string",
      "pattern": "[a-zA-Z0-9_-]+",
      "minLength": 1,
      "maxLength": 64
    },
    "MaintenanceWindow": {
      "type": "object",
      "required": [
        "startTime",
        "durationInMinutes"
      ],
      "properties": {
        "startTime": {
          "allOf": [
            {
              "$ref": "#/$defs/CronExpression"
            },
            {
              "description": "Displays the start time of the next maintenance window."
            }
          ]
        },
        "durationInMinutes": {
          "allOf": [
            {
              "$ref": "#/$defs/DurationInMinutes"
            },
            {
              "description": "Displays the duration of the next maintenance window."
            }
          ]
        }
      },
      "description": "An optional configuration within the <code>SchedulingConfig</code> to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job."
    },
    "MaintenanceWindows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MaintenanceWindow"
      }
    },
    "MaxJobExecutionsPerMin": {
      "type": "integer",
      "minimum": 1
    },
    "MinimumNumberOfExecutedThings": {
      "type": "integer",
      "minimum": 1
    },
    "NumberOfRetries": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10
    },
    "NumberOfThings": {
      "type": "integer",
      "minimum": 1
    },
    "PresignedUrlConfig": {
      "type": "object",
      "properties": {
        "roleArn": {
          "allOf": [
            {
              "$ref": "#/$defs/RoleArn"
            },
            {
              "description": "<p>The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.</p> <important> <p>For information about addressing the confused deputy problem, see <a href=\"https://docs.aws.amazon.com/iot/latest/developerguide/cross-service-confused-deputy-prevention.html\">cross-service confused deputy prevention</a> in the <i>Amazon Web Services IoT Core developer guide</i>.</p> </important>"
            }
          ]
        },
        "expiresInSec": {
          "allOf": [
            {
              "$ref": "#/$defs/ExpiresInSec"
            },
            {
              "description": "How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document."
            }
          ]
        }
      },
      "description": "Configuration for pre-signed S3 URLs."
    },
    "RateIncreaseCriteria": {
      "type": "object",
      "properties": {
        "numberOfNotifiedThings": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberOfThings"
            },
            {
              "description": "The threshold for number of notified things that will initiate the increase in rate of rollout."
            }
          ]
        },
        "numberOfSucceededThings": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberOfThings"
            },
            {
              "description": "The threshold for number of succeeded things that will initiate the increase in rate of rollout."
            }
          ]
        }
      },
      "description": "Allows you to define a criteria to initiate the increase in rate of rollout for a job."
    },
    "RetryCriteria": {
      "type": "object",
      "required": [
        "failureType",
        "numberOfRetries"
      ],
      "properties": {
        "failureType": {
          "allOf": [
            {
              "$ref": "#/$defs/RetryableFailureType"
            },
            {
              "description": "The type of job execution failures that can initiate a job retry."
            }
          ]
        },
        "numberOfRetries": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberOfRetries"
            },
            {
              "description": "The number of retries allowed for a failure type for the job."
            }
          ]
        }
      },
      "description": "The criteria that determines how many retries are allowed for each failure type for a job."
    },
    "RetryCriteriaList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RetryCriteria"
      },
      "minItems": 1,
      "maxItems": 2
    },
    "RetryableFailureType": {
      "type": "string",
      "enum": [
        "FAILED",
        "TIMED_OUT",
        "ALL"
      ]
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    },
    "RolloutRatePerMinute": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "TimeoutConfig": {
      "type": "object",
      "properties": {
        "inProgressTimeoutInMinutes": {
          "allOf": [
            {
              "$ref": "#/$defs/InProgressTimeoutInMinutes"
            },
            {
              "description": "Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be updated and will apply to all job executions for the job. Whenever a job execution remains in the IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the terminal <code>TIMED_OUT</code> status."
            }
          ]
        }
      },
      "description": "Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to <code>IN_PROGRESS</code>. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to <code>TIMED_OUT</code>."
    }
  }
}