{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-create-egress-private-endpoint-body-schema.json",
  "title": "CreateEgressPrivateEndpointRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-egress-private-endpoints-api-openapi.yml#/components/schemas/CreateEgressPrivateEndpointBody",
  "type": "object",
  "properties": {
    "region": {
      "description": "region represents the region that the endpoint will be created in.",
      "type": "string"
    },
    "target_service_identifier": {
      "description": "target_service_identifier represents the identifier of the target service.\nUser-visible in CRL and CSP consoles as the \"thing\" the user is telling us to connect to,\ni.e. Service Name for AWS, Service Attachment for GCP, or ARN for AWS MSK.",
      "type": "string"
    },
    "target_service_type": {
      "$ref": "#/$defs/EgressPrivateEndpointTargetServiceType.Type"
    }
  },
  "required": [
    "region",
    "target_service_identifier",
    "target_service_type"
  ],
  "$defs": {
    "EgressPrivateEndpointTargetServiceType.Type": {
      "type": "string",
      "enum": [
        "PRIVATE_SERVICE",
        "MSK_SASL_SCRAM",
        "MSK_SASL_IAM",
        "MSK_TLS"
      ],
      "title": "- PRIVATE_SERVICE: PRIVATE_SERVICE represents any private service, such as a GCP service attachment, or an AWS VPC endpoint service.\n - MSK_SASL_SCRAM: MSK_SASL_SCRAM represents the managed Kafka service in AWS, with SASL/SCRAM auth\n - MSK_SASL_IAM: MSK_SASL_IAM represents the managed Kafka service in AWS, with SASL/IAM auth\n - MSK_TLS: MSK_TLS represents the managed Kafka service in AWS, with TLS auth"
    }
  }
}