{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-networkmanager-connectpeer.json",
  "title": "AWSNetworkManagerConnectPeerProperties",
  "description": "AWS::NetworkManager::ConnectPeer Resource Type Definition.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager/aws-networkmanager-connectpeer>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-networkmanager-connectpeer.json",
    "sourceSha256": "471a26b1669c0da401664fc411b50bb2513d4440b4dfe28c4f8b68835c24aac0"
  },
  "type": "object",
  "properties": {
    "PeerAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IP address of the Connect peer."
    },
    "CoreNetworkAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IP address of a core network."
    },
    "BgpOptions": {
      "description": "Bgp options for connect peer.",
      "$ref": "#/$defs/BgpOptions"
    },
    "InsideCidrBlocks": {
      "description": "The inside IP addresses used for a Connect peer configuration.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "ConnectAttachmentId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the attachment to connect."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::NetworkManager::ConnectPeer",
  "additionalIdentifiers": [
    [
      "/properties/ConnectAttachmentId",
      "/properties/CoreNetworkAddress",
      "/properties/InsideCidrBlocks"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager/aws-networkmanager-connectpeer",
  "primaryIdentifier": [
    "/properties/ConnectPeerId"
  ],
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "ConnectAttachmentId",
    "PeerAddress",
    "InsideCidrBlocks"
  ],
  "$defs": {
    "ConnectPeerConfiguration": {
      "type": "object",
      "properties": {
        "CoreNetworkAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The IP address of a core network."
        },
        "PeerAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The IP address of the Connect peer."
        },
        "InsideCidrBlocks": {
          "description": "The inside IP addresses used for a Connect peer configuration.",
          "type": "array",
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "Protocol": {
          "$ref": "#/$defs/TunnelProtocol"
        },
        "BgpConfigurations": {
          "type": "array",
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/ConnectPeerBgpConfiguration"
          }
        }
      },
      "title": "AWSNetworkManagerConnectPeerConnectPeerConfigurationDefinition",
      "additionalProperties": false
    },
    "TunnelProtocol": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Tunnel protocol type (Only support GRE for now)",
      "title": "AWSNetworkManagerConnectPeerTunnelProtocolDefinition"
    },
    "BgpOptions": {
      "description": "Bgp options",
      "type": "object",
      "properties": {
        "PeerAsn": {
          "type": "number"
        }
      },
      "title": "AWSNetworkManagerConnectPeerBgpOptionsDefinition",
      "additionalProperties": false
    },
    "ConnectPeerBgpConfiguration": {
      "description": "Bgp configuration for connect peer",
      "type": "object",
      "properties": {
        "CoreNetworkAsn": {
          "description": "The ASN of the Coret Network.",
          "type": "number"
        },
        "PeerAsn": {
          "description": "The ASN of the Connect peer.",
          "type": "number"
        },
        "CoreNetworkAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The address of a core network."
        },
        "PeerAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The address of a core network Connect peer."
        }
      },
      "title": "AWSNetworkManagerConnectPeerConnectPeerBgpConfigurationDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSNetworkManagerConnectPeerTagDefinition",
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/PeerAddress",
    "/properties/CoreNetworkAddress",
    "/properties/BgpOptions",
    "/properties/InsideCidrBlocks",
    "/properties/ConnectAttachmentId"
  ],
  "writeOnlyProperties": [
    "/properties/CoreNetworkAddress",
    "/properties/BgpOptions"
  ],
  "readOnlyProperties": [
    "/properties/ConnectPeerId",
    "/properties/State",
    "/properties/CreatedAt",
    "/properties/Configuration",
    "/properties/CoreNetworkId",
    "/properties/EdgeLocation"
  ]
}
