{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-keys-request-schema.json",
  "title": "UpdateKeysRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-keys-api-openapi.yml#/components/schemas/UpdateKeysRequest",
  "type": "object",
  "properties": {
    "KvsARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Key Value Store."
    },
    "IfMatch": {
      "type": "string",
      "description": "The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore."
    },
    "Puts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PutKeyRequestListItem"
      },
      "description": "List of key value pairs to put."
    },
    "Deletes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeleteKeyRequestListItem"
      },
      "description": "List of keys to delete."
    }
  },
  "required": [
    "KvsARN",
    "IfMatch"
  ],
  "$defs": {
    "DeleteKeyRequestListItem": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the key value pair to be deleted."
        }
      },
      "required": [
        "Key"
      ]
    },
    "PutKeyRequestListItem": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the key value pair list item to put."
        },
        "Value": {
          "type": "string",
          "description": "The value for the key value pair to put."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}