{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-provisioning-template-request-schema.json",
  "title": "UpdateProvisioningTemplateRequest",
  "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/UpdateProvisioningTemplateRequest",
  "type": "object",
  "properties": {
    "templateName": {
      "type": "string",
      "description": "The name of the provisioning template."
    },
    "description": {
      "type": "string",
      "description": "The description of the provisioning template."
    },
    "enabled": {
      "type": "boolean",
      "description": "True to enable the provisioning template, otherwise false."
    },
    "defaultVersionId": {
      "type": "integer",
      "description": "The ID of the default provisioning template version."
    },
    "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"
    },
    "removePreProvisioningHook": {
      "type": "boolean",
      "description": "Removes pre-provisioning hook template."
    }
  },
  "required": [
    "templateName"
  ],
  "$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"
      ]
    }
  }
}