{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-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-core-provisioning-templates-api-openapi.yml#/components/schemas/DescribeProvisioningTemplateResponse",
  "type": "object",
  "properties": {
    "templateArn": {
      "type": "string",
      "description": "The ARN of the provisioning template."
    },
    "templateName": {
      "type": "string",
      "description": "The name of the provisioning template."
    },
    "description": {
      "type": "string",
      "description": "The description of the provisioning template."
    },
    "creationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the provisioning template was created."
    },
    "lastModifiedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the provisioning template was last modified."
    },
    "defaultVersionId": {
      "type": "integer",
      "description": "The default fleet template version ID."
    },
    "templateBody": {
      "type": "string",
      "description": "The JSON formatted contents of the provisioning template."
    },
    "enabled": {
      "type": "boolean",
      "description": "True if the provisioning template is enabled, otherwise false."
    },
    "provisioningRoleArn": {
      "type": "string",
      "description": "The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device."
    },
    "preProvisioningHook": {
      "$ref": "#/$defs/ProvisioningHook"
    },
    "type": {
      "type": "string",
      "enum": [
        "FLEET_PROVISIONING",
        "JITP"
      ],
      "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 FLEET_PROVISIONING. For more information about provisioning template, see: Provisioning template."
    }
  },
  "$defs": {
    "ProvisioningHook": {
      "type": "object",
      "properties": {
        "payloadVersion": {
          "type": "string",
          "description": "The payload that was sent to the target function. Note: Only Lambda functions are currently supported."
        },
        "targetArn": {
          "type": "string",
          "description": "The ARN of the target function. Note: Only Lambda functions are currently supported."
        }
      },
      "required": [
        "targetArn"
      ]
    }
  }
}