{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-create-provisioning-claim-response-schema.json",
  "title": "CreateProvisioningClaimResponse",
  "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/CreateProvisioningClaimResponse",
  "type": "object",
  "properties": {
    "certificateId": {
      "allOf": [
        {
          "$ref": "#/$defs/CertificateId"
        },
        {
          "description": "The ID of the certificate."
        }
      ]
    },
    "certificatePem": {
      "allOf": [
        {
          "$ref": "#/$defs/CertificatePem"
        },
        {
          "description": "The provisioning claim certificate."
        }
      ]
    },
    "keyPair": {
      "allOf": [
        {
          "$ref": "#/$defs/KeyPair"
        },
        {
          "description": "The provisioning claim key pair."
        }
      ]
    },
    "expiration": {
      "allOf": [
        {
          "$ref": "#/$defs/DateType"
        },
        {
          "description": "The provisioning claim expiration time."
        }
      ]
    }
  },
  "$defs": {
    "CertificateId": {
      "type": "string",
      "pattern": "(0x)?[a-fA-F0-9]+",
      "minLength": 64,
      "maxLength": 64
    },
    "CertificatePem": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "description": "The PEM of a certificate.",
      "minLength": 1,
      "maxLength": 65536
    },
    "DateType": {
      "type": "string",
      "format": "date-time"
    },
    "KeyPair": {
      "type": "object",
      "properties": {
        "PublicKey": {
          "allOf": [
            {
              "$ref": "#/$defs/PublicKey"
            },
            {
              "description": "The public key."
            }
          ]
        },
        "PrivateKey": {
          "allOf": [
            {
              "$ref": "#/$defs/PrivateKey"
            },
            {
              "description": "The private key."
            }
          ]
        }
      },
      "description": "Describes a key pair."
    },
    "PrivateKey": {
      "type": "string",
      "minLength": 1,
      "format": "password"
    },
    "PublicKey": {
      "type": "string",
      "minLength": 1
    }
  }
}