{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-networkfirewall-loggingconfiguration.json",
  "title": "AWSNetworkFirewallLoggingConfigurationProperties",
  "description": "Resource type definition for AWS::NetworkFirewall::LoggingConfiguration. 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-loggingconfiguration.json",
    "sourceSha256": "b930c9820805e551dfe48b6b4ed379ab5fdcaad8675c4394d4b457911f677277"
  },
  "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"
        }
      ]
    },
    "FirewallArn": {
      "$ref": "#/$defs/ResourceArn"
    },
    "LoggingConfiguration": {
      "$ref": "#/$defs/LoggingConfiguration"
    }
  },
  "typeName": "AWS::NetworkFirewall::LoggingConfiguration",
  "primaryIdentifier": [
    "/properties/FirewallArn"
  ],
  "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": "AWSNetworkFirewallLoggingConfigurationResourceArnDefinition"
    },
    "LoggingConfiguration": {
      "type": "object",
      "properties": {
        "LogDestinationConfigs": {
          "type": "array",
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/LogDestinationConfig"
          },
          "minItems": 1
        }
      },
      "required": [
        "LogDestinationConfigs"
      ],
      "title": "AWSNetworkFirewallLoggingConfigurationLoggingConfigurationDefinition",
      "additionalProperties": false
    },
    "LogDestinationConfig": {
      "type": "object",
      "properties": {
        "LogType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "ALERT",
                "FLOW"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LogDestinationType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "S3",
                "CloudWatchLogs",
                "KinesisDataFirehose"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LogDestination": {
          "type": "object",
          "description": "A key-value pair to configure the logDestinations.",
          "additionalProperties": false,
          "minProperties": 1,
          "patternProperties": {
            "^[0-9A-Za-z.\\-_@\\/]+$": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            }
          }
        }
      },
      "required": [
        "LogType",
        "LogDestinationType",
        "LogDestination"
      ],
      "title": "AWSNetworkFirewallLoggingConfigurationLogDestinationConfigDefinition",
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/FirewallName",
    "/properties/FirewallArn"
  ],
  "required": [
    "FirewallArn",
    "LoggingConfiguration"
  ]
}
