{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-vpnconnection.json",
  "title": "AWSEC2VPNConnectionProperties",
  "description": "Resource Type definition for AWS::EC2::VPNConnection. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ec2-vpnconnection.json",
    "sourceSha256": "b30c54ab4f9e464ae15a3e0c9849ef9caf9b55b38405bd82f7af2e0c00a57c7c"
  },
  "type": "object",
  "properties": {
    "CustomerGatewayId": {
      "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 customer gateway at your end of the VPN connection."
    },
    "StaticRoutesOnly": {
      "description": "Indicates whether the VPN connection uses static routes only.",
      "type": "boolean"
    },
    "Tags": {
      "description": "Any tags assigned to the VPN connection.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TransitGatewayId": {
      "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 transit gateway associated with the VPN connection."
    },
    "Type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of VPN connection."
    },
    "VpnGatewayId": {
      "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 virtual private gateway at the AWS side of the VPN connection."
    },
    "VpnTunnelOptionsSpecifications": {
      "description": "The tunnel options for the VPN connection.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/VpnTunnelOptionsSpecification"
      }
    }
  },
  "typeName": "AWS::EC2::VPNConnection",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "primaryIdentifier": [
    "/properties/VpnConnectionId"
  ],
  "$defs": {
    "VpnTunnelOptionsSpecification": {
      "type": "object",
      "title": "AWSEC2VPNConnectionVpnTunnelOptionsSpecificationDefinition",
      "properties": {
        "PreSharedKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TunnelInsideCidr": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSEC2VPNConnectionTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/VpnConnectionId"
  ],
  "additionalProperties": false,
  "required": [
    "Type",
    "CustomerGatewayId"
  ],
  "createOnlyProperties": [
    "/properties/Type",
    "/properties/CustomerGatewayId",
    "/properties/VpnGatewayId",
    "/properties/TransitGatewayId",
    "/properties/VpnTunnelOptionsSpecifications",
    "/properties/StaticRoutesOnly"
  ]
}
