{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/r2_sippy",
  "title": "r2_sippy",
  "properties": {
    "destination": {
      "description": "Details about the configured destination bucket",
      "properties": {
        "accessKeyId": {
          "description": "ID of the Cloudflare API token used when writing objects to this\nbucket\n",
          "type": "string"
        },
        "account": {
          "type": "string"
        },
        "bucket": {
          "description": "Name of the bucket on the provider",
          "type": "string"
        },
        "provider": {
          "enum": [
            "r2"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "enabled": {
      "description": "State of Sippy for this bucket",
      "type": "boolean"
    },
    "source": {
      "description": "Details about the configured source bucket",
      "properties": {
        "bucket": {
          "description": "Name of the bucket on the provider",
          "type": "string"
        },
        "provider": {
          "enum": [
            "aws",
            "gcs"
          ],
          "type": "string"
        },
        "region": {
          "description": "Region where the bucket resides (AWS only)",
          "nullable": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}