{
  "$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-provisioning-template-response-schema.json",
  "title": "DescribeProvisioningTemplateResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-provisioning-templates-api-openapi.yml#/components/schemas/DescribeProvisioningTemplateResponse",
  "type": "object",
  "properties": {
    "templateArn": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateArn"
        },
        {
          "description": "The ARN of the provisioning template."
        }
      ]
    },
    "templateName": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateName"
        },
        {
          "description": "The name of the provisioning template."
        }
      ]
    },
    "description": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateDescription"
        },
        {
          "description": "The description of the provisioning template."
        }
      ]
    },
    "creationDate": {
      "allOf": [
        {
          "$ref": "#/$defs/DateType"
        },
        {
          "description": "The date when the provisioning template was created."
        }
      ]
    },
    "lastModifiedDate": {
      "allOf": [
        {
          "$ref": "#/$defs/DateType"
        },
        {
          "description": "The date when the provisioning template was last modified."
        }
      ]
    },
    "defaultVersionId": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateVersionId"
        },
        {
          "description": "The default fleet template version ID."
        }
      ]
    },
    "templateBody": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateBody"
        },
        {
          "description": "The JSON formatted contents of the provisioning template."
        }
      ]
    },
    "enabled": {
      "allOf": [
        {
          "$ref": "#/$defs/Enabled"
        },
        {
          "description": "True if the provisioning template is enabled, otherwise false."
        }
      ]
    },
    "provisioningRoleArn": {
      "allOf": [
        {
          "$ref": "#/$defs/RoleArn"
        },
        {
          "description": "The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device."
        }
      ]
    },
    "preProvisioningHook": {
      "allOf": [
        {
          "$ref": "#/$defs/ProvisioningHook"
        },
        {
          "description": "Gets information about a pre-provisioned hook."
        }
      ]
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/TemplateType"
        },
        {
          "description": "The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is <code>FLEET_PROVISIONING</code>. For more information about provisioning template, see: <a href=\"https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html\">Provisioning template</a>. "
        }
      ]
    }
  },
  "$defs": {
    "DateType": {
      "type": "string",
      "format": "date-time"
    },
    "Enabled": {
      "type": "boolean"
    },
    "PayloadVersion": {
      "type": "string",
      "pattern": "^[0-9-]+$",
      "minLength": 10,
      "maxLength": 32
    },
    "ProvisioningHook": {
      "type": "object",
      "required": [
        "targetArn"
      ],
      "properties": {
        "payloadVersion": {
          "allOf": [
            {
              "$ref": "#/$defs/PayloadVersion"
            },
            {
              "description": "<p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>"
            }
          ]
        },
        "targetArn": {
          "allOf": [
            {
              "$ref": "#/$defs/TargetArn"
            },
            {
              "description": "<p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>"
            }
          ]
        }
      },
      "description": "Structure that contains <code>payloadVersion</code> and <code>targetArn</code>."
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    },
    "TargetArn": {
      "type": "string",
      "maxLength": 2048
    },
    "TemplateArn": {
      "type": "string"
    },
    "TemplateBody": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "minLength": 0,
      "maxLength": 10240
    },
    "TemplateDescription": {
      "type": "string",
      "pattern": "[^\\p{C}]*",
      "minLength": 0,
      "maxLength": 500
    },
    "TemplateName": {
      "type": "string",
      "pattern": "^[0-9A-Za-z_-]+$",
      "minLength": 1,
      "maxLength": 36
    },
    "TemplateType": {
      "type": "string",
      "enum": [
        "FLEET_PROVISIONING",
        "JITP"
      ]
    },
    "TemplateVersionId": {
      "type": "integer"
    }
  }
}