{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-networkfirewall-firewall.json",
  "title": "AWSNetworkFirewallFirewallProperties",
  "description": "Resource type definition for AWS::NetworkFirewall::Firewall. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkfirewall.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-networkfirewall-firewall.json",
    "sourceSha256": "131728ac5608a6694bb2ce83a40ece210a6f279dacb51666a36526f93380c866"
  },
  "type": "object",
  "properties": {
    "FirewallName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-zA-Z0-9-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "FirewallPolicyArn": {
      "$ref": "#/$defs/ResourceArn"
    },
    "VpcId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^vpc-[0-9a-f]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SubnetMappings": {
      "type": "array",
      "minItems": 1,
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SubnetMapping"
      }
    },
    "DeleteProtection": {
      "type": "boolean"
    },
    "SubnetChangeProtection": {
      "type": "boolean"
    },
    "FirewallPolicyChangeProtection": {
      "type": "boolean"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 512,
          "pattern": "^.*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::NetworkFirewall::Firewall",
  "createOnlyProperties": [
    "/properties/VpcId",
    "/properties/FirewallName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkfirewall.git",
  "$defs": {
    "ResourceArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws.*$",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A resource ARN.",
      "title": "AWSNetworkFirewallFirewallResourceArnDefinition"
    },
    "EndpointId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "An endpoint Id.",
      "title": "AWSNetworkFirewallFirewallEndpointIdDefinition"
    },
    "SubnetMapping": {
      "type": "object",
      "properties": {
        "SubnetId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A SubnetId."
        },
        "IPAddressType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A IPAddressType"
        }
      },
      "required": [
        "SubnetId"
      ],
      "title": "AWSNetworkFirewallFirewallSubnetMappingDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "title": "AWSNetworkFirewallFirewallTagDefinition",
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/FirewallArn"
  ],
  "required": [
    "FirewallName",
    "FirewallPolicyArn",
    "VpcId",
    "SubnetMappings"
  ],
  "readOnlyProperties": [
    "/properties/FirewallArn",
    "/properties/FirewallId",
    "/properties/EndpointIds"
  ]
}
