{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-custom-cloud-environment-create-request-body-schema.json",
  "title": "CustomCloudEnvironmentCreateRequestBody",
  "description": "CustomCloudEnvironmentCreateRequestBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiven-custom-cloud-api-openapi.yml#/components/schemas/CustomCloudEnvironmentCreateRequestBody",
  "type": "object",
  "properties": {
    "cloud_provider": {
      "type": "string",
      "description": "Cloud provider for the BYOC cloud",
      "enum": [
        "aws",
        "azure",
        "google",
        "oracle"
      ]
    },
    "cloud_region": {
      "type": "string",
      "maxLength": 32,
      "description": "Cloud region for the BYOC cloud"
    },
    "contact_emails": {
      "type": "array",
      "maxItems": 10,
      "description": "Email addresses for notifications and alerts for this BYOC cloud",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "description": "User email address"
          },
          "real_name": {
            "type": "string",
            "maxLength": 256,
            "description": "User real name"
          },
          "role": {
            "type": "string",
            "maxLength": 256,
            "description": "Role of this user"
          }
        },
        "required": [
          "email"
        ]
      }
    },
    "deployment_model": {
      "type": "string",
      "description": "Deployment model for the BYOC cloud",
      "enum": [
        "direct_ipsec_ingress",
        "ipsec_ingress",
        "standard",
        "standard_public",
        "pci_dss",
        "hipaa"
      ]
    },
    "display_name": {
      "type": "string",
      "maxLength": 64,
      "description": "Short name for this BYOC cloud"
    },
    "reserved_cidr": {
      "type": "string",
      "maxLength": 18,
      "description": "CIDR range reserved for Aiven provisioned networks in the BYOC cloud"
    },
    "tags": {
      "type": "object",
      "description": "Set of resource tags",
      "properties": {}
    }
  },
  "required": [
    "cloud_provider",
    "cloud_region",
    "deployment_model",
    "display_name",
    "reserved_cidr"
  ]
}