{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-revoke-bucket-access-request-schema.json",
  "title": "RevokeBucketAccessRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-bucket-access-api-openapi.yml#/components/schemas/RevokeBucketAccessRequest",
  "properties": {
    "principal_arn": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "pattern": "^(arn:aws:iam::\\d{12}:[\\w+=,.@\\-/]+|\\d{12})$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Principal Arn",
      "description": "IAM principal ARN to revoke. Either principal_arn or client_name must be provided."
    },
    "client_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Name",
      "description": "Client name to revoke all ARNs for. Either principal_arn or client_name must be provided."
    },
    "lag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lag",
      "description": "Lag of the dataset SKU. Null for the no-lag variant."
    },
    "cut": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cut",
      "description": "Cut of the dataset SKU. Null for the no-cut variant."
    }
  },
  "type": "object"
}