AWS Fundamentals Logo
AWS Fundamentals
AWS::WAFv2::RegexPatternSet

WAFv2 RegexPatternSet

Contains a list of Regular expressions based on the provided inputs. RegexPatternSet can be used with other WAF entities with RegexPatternSetReferenceStatement to perform other actions .

Properties

5 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
RegularExpressionList
Array<string>
Required
Scope
string
RequiredCreate-only
Description
string
Name
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringARN of the WAF entity.
IdstringId of the RegexPatternSet

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::WAFv2::RegexPatternSet

Resources:
  MyResource:
    Type: AWS::WAFv2::RegexPatternSet
    Properties:
      Scope: "CLOUDFRONT"
      RegularExpressionList: []
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

wafv2:CreateRegexPatternSetwafv2:GetRegexPatternSetwafv2:TagResourcewafv2:UntagResourcewafv2:ListTagsForResource

delete

wafv2:DeleteRegexPatternSetwafv2:GetRegexPatternSet

read

wafv2:GetRegexPatternSetwafv2:ListTagsForResource

update

wafv2:UpdateRegexPatternSetwafv2:GetRegexPatternSetwafv2:ListTagsForResourcewafv2:TagResourcewafv2:UntagResource

list

wafv2:listRegexPatternSets

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceWAFv2
Properties7
Required2
TaggingSupported
Primary IDName

Supported Operations

CreateDeleteReadUpdateList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameScope

External Links