{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-aws-vpc-peer-v2-schema.json",
  "title": "AwsVpcPeerV2",
  "description": "Definition of an AWS VPC Peering request to allow privately routed connections to a target data centre.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-aws-vpc-peer-v2-api-openapi.yml#/components/schemas/AwsVpcPeerV2",
  "type": "object",
  "properties": {
    "peerAwsAccountId": {
      "type": "string",
      "description": "The AWS account ID of the owner of the accepter VPC.",
      "x-terraform-force-new": true
    },
    "peerPrefixLists": {
      "type": "array",
      "description": "Customer-managed AWS prefix list IDs (pl-...) used as peering destinations. Only supported for Bring Your Own Cloud (BYOC) clusters. peerSubnets and peerPrefixLists are mutually exclusive; provide exactly one. Create-only (force-new) for Terraform; AwsVpcPeerUpdateV2 remains CIDR-only.",
      "items": {
        "maxLength": 20,
        "pattern": "^pl-([0-9a-f]{8}|[0-9a-f]{17})$",
        "type": "string"
      },
      "x-terraform-force-new": true,
      "x-terraform-ignore-order": true
    },
    "peerSubnets": {
      "type": "array",
      "description": "The subnets for the peering VPC. peerSubnets and peerPrefixLists are mutually exclusive; provide exactly one.",
      "items": {
        "type": "string"
      },
      "x-terraform-ignore-order": true
    },
    "peerVpcId": {
      "type": "string",
      "description": "ID of the VPC with which the peering connection is created.",
      "x-terraform-force-new": true
    },
    "id": {
      "type": "string",
      "description": "ID of the VPC peering connection.",
      "readOnly": true
    },
    "dataCentreVpcId": {
      "type": "string",
      "description": "ID of the current data centre VPC.",
      "readOnly": true
    },
    "peerRegion": {
      "type": "string",
      "description": "Region code for the accepter VPC.",
      "x-terraform-force-new": true
    },
    "cdcId": {
      "type": "string",
      "description": "ID of the Cluster Data Centre",
      "format": "uuid",
      "x-terraform-force-new": true
    },
    "statusCode": {
      "type": "string",
      "description": "Status of the VPC Peering Connection. Values can be `pending-acceptance`, `failed`, `expired`, `provisioning`, `active`, `deleting`, `deleted` or `rejected`.",
      "readOnly": true
    }
  }
}