{
  "$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-cacertificate-response-schema.json",
  "title": "DescribeCACertificateResponse",
  "description": "The output from the DescribeCACertificate operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-cacertificate-api-openapi.yml#/components/schemas/DescribeCACertificateResponse",
  "type": "object",
  "properties": {
    "certificateDescription": {
      "allOf": [
        {
          "$ref": "#/$defs/CACertificateDescription"
        },
        {
          "description": "The CA certificate description."
        }
      ]
    },
    "registrationConfig": {
      "allOf": [
        {
          "$ref": "#/$defs/RegistrationConfig"
        },
        {
          "description": "Information about the registration configuration."
        }
      ]
    }
  },
  "$defs": {
    "AutoRegistrationStatus": {
      "type": "string",
      "enum": [
        "ENABLE",
        "DISABLE"
      ]
    },
    "AwsAccountId": {
      "type": "string",
      "pattern": "[0-9]+",
      "minLength": 12,
      "maxLength": 12
    },
    "CACertificateDescription": {
      "type": "object",
      "properties": {
        "certificateArn": {
          "allOf": [
            {
              "$ref": "#/$defs/CertificateArn"
            },
            {
              "description": "The CA certificate ARN."
            }
          ]
        },
        "certificateId": {
          "allOf": [
            {
              "$ref": "#/$defs/CertificateId"
            },
            {
              "description": "The CA certificate ID."
            }
          ]
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/CACertificateStatus"
            },
            {
              "description": "The status of a CA certificate."
            }
          ]
        },
        "certificatePem": {
          "allOf": [
            {
              "$ref": "#/$defs/CertificatePem"
            },
            {
              "description": "The CA certificate data, in PEM format."
            }
          ]
        },
        "ownedBy": {
          "allOf": [
            {
              "$ref": "#/$defs/AwsAccountId"
            },
            {
              "description": "The owner of the CA certificate."
            }
          ]
        },
        "creationDate": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The date the CA certificate was created."
            }
          ]
        },
        "autoRegistrationStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AutoRegistrationStatus"
            },
            {
              "description": "Whether the CA certificate configured for auto registration of device certificates. Valid values are \"ENABLE\" and \"DISABLE\""
            }
          ]
        },
        "lastModifiedDate": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The date the CA certificate was last modified."
            }
          ]
        },
        "customerVersion": {
          "allOf": [
            {
              "$ref": "#/$defs/CustomerVersion"
            },
            {
              "description": "The customer version of the CA certificate."
            }
          ]
        },
        "generationId": {
          "allOf": [
            {
              "$ref": "#/$defs/GenerationId"
            },
            {
              "description": "The generation ID of the CA certificate."
            }
          ]
        },
        "validity": {
          "allOf": [
            {
              "$ref": "#/$defs/CertificateValidity"
            },
            {
              "description": "When the CA certificate is valid."
            }
          ]
        },
        "certificateMode": {
          "allOf": [
            {
              "$ref": "#/$defs/CertificateMode"
            },
            {
              "description": "<p>The mode of the CA. </p> <p>All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_CertificateDescription.html#iot-Type-CertificateDescription-certificateMode\">certificate mode</a>.</p>"
            }
          ]
        }
      },
      "description": "Describes a CA certificate."
    },
    "CACertificateStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "CertificateArn": {
      "type": "string"
    },
    "CertificateId": {
      "type": "string",
      "pattern": "(0x)?[a-fA-F0-9]+",
      "minLength": 64,
      "maxLength": 64
    },
    "CertificateMode": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "SNI_ONLY"
      ]
    },
    "CertificatePem": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "description": "The PEM of a certificate.",
      "minLength": 1,
      "maxLength": 65536
    },
    "CertificateValidity": {
      "type": "object",
      "properties": {
        "notBefore": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The certificate is not valid before this date."
            }
          ]
        },
        "notAfter": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The certificate is not valid after this date."
            }
          ]
        }
      },
      "description": "When the certificate is valid."
    },
    "CustomerVersion": {
      "type": "integer",
      "minimum": 1
    },
    "DateType": {
      "type": "string",
      "format": "date-time"
    },
    "GenerationId": {
      "type": "string"
    },
    "RegistrationConfig": {
      "type": "object",
      "properties": {
        "templateBody": {
          "allOf": [
            {
              "$ref": "#/$defs/TemplateBody"
            },
            {
              "description": "The template body."
            }
          ]
        },
        "roleArn": {
          "allOf": [
            {
              "$ref": "#/$defs/RoleArn"
            },
            {
              "description": "The ARN of the role."
            }
          ]
        },
        "templateName": {
          "allOf": [
            {
              "$ref": "#/$defs/TemplateName"
            },
            {
              "description": "The name of the provisioning template."
            }
          ]
        }
      },
      "description": "The registration configuration."
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    },
    "TemplateBody": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "minLength": 0,
      "maxLength": 10240
    },
    "TemplateName": {
      "type": "string",
      "pattern": "^[0-9A-Za-z_-]+$",
      "minLength": 1,
      "maxLength": 36
    }
  }
}