{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-wafv2-ipset.json",
  "title": "AWSWAFv2IPSetProperties",
  "description": "Contains a list of IP addresses. This can be either IPV4 or IPV6. The list will be mutually. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-wafv2.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-wafv2-ipset.json",
    "sourceSha256": "83ba4b77af1b778cc87d603bfc06b1e0945089b4944225069c448d27f69aead9"
  },
  "type": "object",
  "properties": {
    "Description": {
      "$ref": "#/$defs/EntityDescription"
    },
    "Name": {
      "$ref": "#/$defs/EntityName"
    },
    "Scope": {
      "$ref": "#/$defs/Scope"
    },
    "IPAddressVersion": {
      "$ref": "#/$defs/IPAddressVersion"
    },
    "Addresses": {
      "description": "List of IPAddresses.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/IPAddress"
      }
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "minItems": 1
    }
  },
  "typeName": "AWS::WAFv2::IPSet",
  "$defs": {
    "EntityName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9A-Za-z_-]{1,128}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the IPSet.",
      "title": "AWSWAFv2IPSetEntityNameDefinition"
    },
    "EntityDescription": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9=:#@/\\-,.][a-zA-Z0-9+=:#@/\\-,.\\s]+[a-zA-Z0-9+=:#@/\\-,.]{1,256}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description of the entity.",
      "title": "AWSWAFv2IPSetEntityDescriptionDefinition"
    },
    "EntityId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Id of the IPSet",
      "title": "AWSWAFv2IPSetEntityIdDefinition"
    },
    "Scope": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CLOUDFRONT",
            "REGIONAL"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Use CLOUDFRONT for CloudFront IPSet, use REGIONAL for Application Load Balancer and API Gateway.",
      "title": "AWSWAFv2IPSetScopeDefinition"
    },
    "IPAddressVersion": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "IPV4",
            "IPV6"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Type of addresses in the IPSet, use IPV4 for IPV4 IP addresses, IPV6 for IPV6 address.",
      "title": "AWSWAFv2IPSetIPAddressVersionDefinition"
    },
    "IPAddress": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 50,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "IP address",
      "title": "AWSWAFv2IPSetIPAddressDefinition"
    },
    "ResourceArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "ARN of the WAF entity.",
      "title": "AWSWAFv2IPSetResourceArnDefinition"
    },
    "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": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSWAFv2IPSetTagDefinition",
      "additionalProperties": false
    }
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-wafv2.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Id"
  ],
  "required": [
    "Addresses",
    "IPAddressVersion",
    "Scope"
  ],
  "primaryIdentifier": [
    "/properties/Name",
    "/properties/Id",
    "/properties/Scope"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Scope"
  ]
}
