{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-waf-webacl.json",
  "title": "AWSWAFWebACLProperties",
  "description": "Resource Type definition for AWS::WAF::WebACL. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-waf-webacl.json",
    "sourceSha256": "ca7d8f40005df15a745fd41932b1b254b7e0d3e7dfc4a3c2d2798641d2a4ddbf"
  },
  "type": "object",
  "properties": {
    "DefaultAction": {
      "$ref": "#/$defs/WafAction"
    },
    "MetricName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Rules": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/ActivatedRule"
      }
    }
  },
  "typeName": "AWS::WAF::WebACL",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "ActivatedRule": {
      "type": "object",
      "title": "AWSWAFWebACLActivatedRuleDefinition",
      "properties": {
        "Action": {
          "$ref": "#/$defs/WafAction"
        },
        "Priority": {
          "type": "integer"
        },
        "RuleId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Priority",
        "RuleId"
      ],
      "additionalProperties": false
    },
    "WafAction": {
      "type": "object",
      "title": "AWSWAFWebACLWafActionDefinition",
      "properties": {
        "Type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Type"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "DefaultAction",
    "MetricName",
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/MetricName",
    "/properties/Name"
  ]
}
