{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-create-regex-pattern-set-request-schema.json",
  "title": "CreateRegexPatternSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-regex-pattern-set-api-openapi.yml#/components/schemas/CreateRegexPatternSetRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the set. You cannot change the name after you create the set."
    },
    "Scope": {
      "type": "string",
      "enum": [
        "CLOUDFRONT",
        "REGIONAL"
      ],
      "description": "Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1."
    },
    "Description": {
      "type": "string",
      "description": "A description of the set that helps with identification."
    },
    "RegularExpressionList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Regex"
      },
      "description": "Array of regular expression strings."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An array of key:value pairs to associate with the resource."
    }
  },
  "required": [
    "Name",
    "Scope",
    "RegularExpressionList"
  ],
  "$defs": {
    "Regex": {
      "type": "object",
      "properties": {
        "RegexString": {
          "type": "string",
          "description": "The string representing the regular expression. WAF enforces a quota on the maximum number of characters in a regex pattern. For the current limit, see WAF quotas in the WAF Developer Guide."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive."
        },
        "Value": {
          "type": "string",
          "description": "Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}