{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-networkinsightsaccessscope.json",
  "title": "AWSEC2NetworkInsightsAccessScopeProperties",
  "description": "Resource schema for AWS::EC2::NetworkInsightsAccessScope. 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-networkinsightsaccessscope.json",
    "sourceSha256": "afc090f8a196b9cd2696af6e23928f4c11fd2b185956911cdf7ff006d8851928"
  },
  "type": "object",
  "properties": {
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "MatchPaths": {
      "type": "array",
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/AccessScopePathRequest"
      }
    },
    "ExcludePaths": {
      "type": "array",
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/AccessScopePathRequest"
      }
    }
  },
  "typeName": "AWS::EC2::NetworkInsightsAccessScope",
  "additionalIdentifiers": [
    [
      "/properties/NetworkInsightsAccessScopeArn"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2-ni.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/NetworkInsightsAccessScopeId"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopeTagDefinition",
      "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
    },
    "AccessScopePathRequest": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopeAccessScopePathRequestDefinition",
      "properties": {
        "Source": {
          "$ref": "#/$defs/PathStatementRequest"
        },
        "Destination": {
          "$ref": "#/$defs/PathStatementRequest"
        },
        "ThroughResources": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "$ref": "#/$defs/ThroughResourcesStatementRequest"
          }
        }
      },
      "additionalProperties": false
    },
    "PathStatementRequest": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopePathStatementRequestDefinition",
      "properties": {
        "PacketHeaderStatement": {
          "$ref": "#/$defs/PacketHeaderStatementRequest"
        },
        "ResourceStatement": {
          "$ref": "#/$defs/ResourceStatementRequest"
        }
      },
      "additionalProperties": false
    },
    "PacketHeaderStatementRequest": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopePacketHeaderStatementRequestDefinition",
      "properties": {
        "SourceAddresses": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "DestinationAddresses": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "SourcePorts": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "DestinationPorts": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "SourcePrefixLists": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "DestinationPrefixLists": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "Protocols": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "$ref": "#/$defs/Protocol"
          }
        }
      },
      "additionalProperties": false
    },
    "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": "AWSEC2NetworkInsightsAccessScopeProtocolDefinition"
    },
    "ResourceStatementRequest": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopeResourceStatementRequestDefinition",
      "properties": {
        "Resources": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        },
        "ResourceTypes": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "ThroughResourcesStatementRequest": {
      "type": "object",
      "title": "AWSEC2NetworkInsightsAccessScopeThroughResourcesStatementRequestDefinition",
      "properties": {
        "ResourceStatement": {
          "$ref": "#/$defs/ResourceStatementRequest"
        }
      },
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/NetworkInsightsAccessScopeId",
    "/properties/NetworkInsightsAccessScopeArn",
    "/properties/CreatedDate",
    "/properties/UpdatedDate"
  ],
  "createOnlyProperties": [
    "/properties/MatchPaths",
    "/properties/ExcludePaths"
  ],
  "writeOnlyProperties": [
    "/properties/MatchPaths",
    "/properties/ExcludePaths"
  ]
}
