{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-account-aws-vpc-peers-v2-schema.json",
  "title": "AccountAwsVpcPeersV2",
  "description": "A listable data source of all AWS VPC Peering requests in an Instaclustr Account.",
  "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/AccountAwsVpcPeersV2",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "UUID of the Instaclustr Account.",
      "x-terraform-id": true
    },
    "peeringRequests": {
      "type": "array",
      "description": "",
      "items": {
        "$ref": "#/$defs/AwsVpcPeerSummaryV2"
      }
    }
  },
  "$defs": {
    "AwsVpcPeerSummaryV2": {
      "required": [
        "cdcId",
        "peerAwsAccountId",
        "peerRegion",
        "peerSubnets",
        "peerVpcId"
      ],
      "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 when peerSubnets is not set. Only supported for Bring Your Own Cloud (BYOC) clusters. peerSubnets and peerPrefixLists are mutually exclusive; provide exactly one.",
          "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 when peerPrefixLists is not set. 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
        },
        "isManagedByInstaclustr": {
          "type": "boolean",
          "description": "Whether the VPC peering connection is managed by Instaclustr.",
          "readOnly": 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
        }
      }
    }
  }
}