{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-cacertificate-request-schema.json",
  "title": "UpdateCACertificateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-cacertificate-api-openapi.yml#/components/schemas/UpdateCACertificateRequest",
  "type": "object",
  "properties": {
    "certificateId": {
      "type": "string",
      "description": "The CA certificate identifier."
    },
    "newStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ],
      "description": "The updated status of the CA certificate. Note: The status value REGISTER_INACTIVE is deprecated and should not be used."
    },
    "newAutoRegistrationStatus": {
      "type": "string",
      "enum": [
        "ENABLE",
        "DISABLE"
      ],
      "description": "The new value for the auto registration status. Valid values are: \"ENABLE\" or \"DISABLE\"."
    },
    "registrationConfig": {
      "$ref": "#/$defs/RegistrationConfig"
    },
    "removeAutoRegistration": {
      "type": "boolean",
      "description": "If true, removes auto registration."
    }
  },
  "required": [
    "certificateId"
  ],
  "$defs": {
    "RegistrationConfig": {
      "type": "object",
      "properties": {
        "templateBody": {
          "type": "string",
          "description": "The template body."
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the role."
        },
        "templateName": {
          "type": "string",
          "description": "The name of the provisioning template."
        }
      }
    }
  }
}