{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud-wan/json-schema/amazon-cloud-wan-create-connect-peer-request-schema.json",
  "title": "CreateConnectPeerRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloud-wan-connect-peers-api-openapi.yml#/components/schemas/CreateConnectPeerRequest",
  "type": "object",
  "properties": {
    "ConnectAttachmentId": {
      "type": "string",
      "description": "The ID of the connection attachment."
    },
    "CoreNetworkAddress": {
      "type": "string",
      "description": "A Connect peer core network address. This only applies only when the protocol is GRE."
    },
    "PeerAddress": {
      "type": "string",
      "description": "The Connect peer address."
    },
    "BgpOptions": {
      "$ref": "#/$defs/BgpOptions"
    },
    "InsideCidrBlocks": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The inside IP addresses used for BGP peering."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags associated with the peer request."
    },
    "ClientToken": {
      "type": "string",
      "description": "The client token associated with the request."
    },
    "SubnetArn": {
      "type": "string",
      "description": "The subnet ARN for the Connect peer. This only applies only when the protocol is NO_ENCAP."
    }
  },
  "required": [
    "ConnectAttachmentId",
    "PeerAddress"
  ],
  "$defs": {
    "BgpOptions": {
      "type": "object",
      "properties": {
        "PeerAsn": {
          "type": "integer",
          "description": "The Peer ASN of the BGP."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Constraints: Maximum length of 128 characters."
        },
        "Value": {
          "type": "string",
          "description": "The tag value. Constraints: Maximum length of 256 characters."
        }
      }
    }
  }
}