v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1451364414.8 KB

Creates a <a>RegexPatternSet</a>, which you reference in a <a>RegexPatternSetReferenceStatement</a>, to have WAF inspect a web request component for the specified patterns.

post/#X-Amz-Target=AWSWAF_20190729.CreateRegexPatternSet

Headers

X-Amz-Target'AWSWAF_20190729.CreateRegexPatternSet' required

Request body

Namestring required

The name of the set. You cannot change the name after you create the set.

Scope'CLOUDFRONT' | 'REGIONAL' required
<p>Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, or an App Runner service. </p> <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: </p> <ul> <li> <p>CLI - Specify the Region when you use the CloudFront scope: <code>--scope=CLOUDFRONT --region=us-east-1</code>. </p> </li> <li> <p>API and SDKs - For all calls, use the Region endpoint us-east-1. </p> </li> </ul>
Descriptionstring

A description of the set that helps with identification.

Response

Success