{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-create-public-key-result-schema.json",
  "title": "CreatePublicKeyResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-public-keys-api-openapi.yml#/components/schemas/CreatePublicKeyResult",
  "type": "object",
  "properties": {
    "PublicKey": {
      "$ref": "#/$defs/PublicKey"
    },
    "Location": {
      "type": "string",
      "description": "The URL of the public key."
    },
    "ETag": {
      "type": "string",
      "description": "The identifier for this version of the public key."
    }
  },
  "$defs": {
    "PublicKey": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The identifier of the public key."
        },
        "CreatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the public key was uploaded."
        },
        "PublicKeyConfig": {
          "$ref": "#/$defs/PublicKeyConfig"
        }
      },
      "required": [
        "Id",
        "CreatedTime",
        "PublicKeyConfig"
      ]
    },
    "PublicKeyConfig": {
      "type": "object",
      "properties": {
        "CallerReference": {
          "type": "string",
          "description": "A string included in the request to help make sure that the request can't be replayed."
        },
        "Name": {
          "type": "string",
          "description": "A name to help identify the public key."
        },
        "EncodedKey": {
          "type": "string",
          "description": "The public key that you can use with signed URLs and signed cookies, or with field-level encryption."
        },
        "Comment": {
          "type": "string",
          "description": "A comment to describe the public key. The comment cannot be longer than 128 characters."
        }
      },
      "required": [
        "CallerReference",
        "Name",
        "EncodedKey"
      ]
    }
  }
}