{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-networkinsightspath.json",
  "title": "AWSEC2NetworkInsightsPathProperties",
  "description": "Resource schema for AWS::EC2::NetworkInsightsPath. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2-ni.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ec2-networkinsightspath.json",
    "sourceSha256": "88cfbe2d9dbb24fc917afb0a480336ec2da71638d58d4c8aef83f3efd44c5c4f"
  },
  "type": "object",
  "properties": {
    "SourceIp": {
      "$ref": "#/$defs/IpAddress"
    },
    "FilterAtSource": {
      "$ref": "#/$defs/PathFilter"
    },
    "FilterAtDestination": {
      "$ref": "#/$defs/PathFilter"
    },
    "DestinationIp": {
      "$ref": "#/$defs/IpAddress"
    },
    "Source": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Destination": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Protocol": {
      "$ref": "#/$defs/Protocol"
    },
    "DestinationPort": {
      "$ref": "#/$defs/Port"
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::EC2::NetworkInsightsPath",
  "additionalIdentifiers": [
    [
      "/properties/NetworkInsightsPathArn"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2-ni.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/SourceIp",
    "/properties/DestinationIp",
    "/properties/Source",
    "/properties/Destination",
    "/properties/Protocol",
    "/properties/DestinationPort",
    "/properties/FilterAtSource",
    "/properties/FilterAtDestination"
  ],
  "$defs": {
    "Tags": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "title": "AWSEC2NetworkInsightsPathTagsDefinition"
    },
    "Tag": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsPathTagDefinition",
      "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": [
        "Key"
      ],
      "additionalProperties": false
    },
    "IpAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSEC2NetworkInsightsPathIpAddressDefinition"
    },
    "Protocol": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "tcp",
            "udp"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSEC2NetworkInsightsPathProtocolDefinition"
    },
    "Port": {
      "type": "integer",
      "title": "AWSEC2NetworkInsightsPathPortDefinition"
    },
    "FilterPortRange": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsPathFilterPortRangeDefinition",
      "properties": {
        "FromPort": {
          "type": "integer"
        },
        "ToPort": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "PathFilter": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsPathPathFilterDefinition",
      "properties": {
        "SourceAddress": {
          "$ref": "#/$defs/IpAddress"
        },
        "SourcePortRange": {
          "$ref": "#/$defs/FilterPortRange"
        },
        "DestinationAddress": {
          "$ref": "#/$defs/IpAddress"
        },
        "DestinationPortRange": {
          "$ref": "#/$defs/FilterPortRange"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "Protocol",
    "Source"
  ],
  "readOnlyProperties": [
    "/properties/NetworkInsightsPathId",
    "/properties/NetworkInsightsPathArn",
    "/properties/CreatedDate",
    "/properties/SourceArn",
    "/properties/DestinationArn"
  ],
  "primaryIdentifier": [
    "/properties/NetworkInsightsPathId"
  ]
}
