{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-auto-cudconfig-schema.json",
  "title": "AutoCUDConfig",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-setup-apis-api-openapi.yml#/components/schemas/AutoCUDConfig",
  "type": "object",
  "properties": {
    "exclusion_list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExclusionEntry"
      }
    },
    "excluded_cloud_accounts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total_coverage": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    },
    "savings_plan_layering": {
      "type": "object",
      "description": "Savings Plan laddering configuration",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether Savings Plan laddering is enabled",
          "default": false
        }
      }
    },
    "max_sp_hourly_commitment": {
      "type": "number",
      "format": "double",
      "description": "Maximum hourly commitment for a net-new Savings Plan purchase in USD/hour; 0 or omitted means no ceiling",
      "minimum": 0
    },
    "preferred_commitment_mode": {
      "type": "string",
      "description": "Commitment type that receives the shared coverage budget first",
      "enum": [
        "ri_preferred",
        "sp_preferred"
      ],
      "default": "ri_preferred"
    }
  },
  "required": [
    "total_coverage"
  ],
  "$defs": {
    "ExclusionEntry": {
      "type": "object",
      "properties": {
        "instance_type": {
          "type": "string"
        },
        "region": {
          "type": "string"
        }
      }
    }
  }
}