AWS WAF Waf Regex Pattern Set API
The Waf Regex Pattern Set API from AWS WAF — 5 operation(s) for waf regex pattern set.
The Waf Regex Pattern Set API from AWS WAF — 5 operation(s) for waf regex pattern set.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/aws-waf:aws-waf-regex-pattern-set-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: AWS WAFV2 Regex Pattern Set API
version: '2019-07-29'
description: Generated from AWS's published Smithy model for AWS WAFV2. 5 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://wafv2.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#CreateRegexPatternSet:
post:
operationId: CreateRegexPatternSet
summary: Create Regex Pattern Set
description: Creates a RegexPatternSet, which you reference in a RegexPatternSetReferenceStatement, to have WAF inspect
a web request component for the specified patterns.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateRegexPatternSetResponse'
'400':
description: WAFDuplicateItemException; WAFInvalidOperationException; WAFInvalidParameterException; WAFLimitsExceededException;
WAFOptimisticLockException; WAFTagOperationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFDuplicateItemException'
'500':
description: WAFInternalErrorException; WAFTagOperationInternalErrorException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInternalErrorException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSWAF_20190729.CreateRegexPatternSet
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateRegexPatternSetRequest'
tags:
- Regex Pattern Set
/#DeleteRegexPatternSet:
post:
operationId: DeleteRegexPatternSet
summary: Delete Regex Pattern Set
description: Deletes the specified RegexPatternSet.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteRegexPatternSetResponse'
'400':
description: WAFAssociatedItemException; WAFInvalidOperationException; WAFInvalidParameterException; WAFNonexistentItemException;
WAFOptimisticLockException; WAFTagOperationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFAssociatedItemException'
'500':
description: WAFInternalErrorException; WAFTagOperationInternalErrorException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInternalErrorException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSWAF_20190729.DeleteRegexPatternSet
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteRegexPatternSetRequest'
tags:
- Regex Pattern Set
/#GetRegexPatternSet:
post:
operationId: GetRegexPatternSet
summary: Get Regex Pattern Set
description: Retrieves the specified RegexPatternSet.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetRegexPatternSetResponse'
'500':
description: WAFInternalErrorException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInternalErrorException'
'400':
description: WAFInvalidOperationException; WAFInvalidParameterException; WAFNonexistentItemException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInvalidOperationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSWAF_20190729.GetRegexPatternSet
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetRegexPatternSetRequest'
tags:
- Regex Pattern Set
/#ListRegexPatternSets:
post:
operationId: ListRegexPatternSets
summary: List Regex Pattern Sets
description: Retrieves an array of RegexPatternSetSummary objects for the regex pattern sets that you manage.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListRegexPatternSetsResponse'
'500':
description: WAFInternalErrorException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInternalErrorException'
'400':
description: WAFInvalidOperationException; WAFInvalidParameterException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInvalidOperationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSWAF_20190729.ListRegexPatternSets
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListRegexPatternSetsRequest'
tags:
- Regex Pattern Set
/#UpdateRegexPatternSet:
post:
operationId: UpdateRegexPatternSet
summary: Update Regex Pattern Set
description: 'Updates the specified RegexPatternSet. This operation completely replaces the mutable specifications that
you already have for the regex pattern set with the ones that you provide to this call. To modify a regex pattern
set, do the following: Retrieve it by calling GetRegexPatternSet Update its settings as needed Provide the complete
regex pattern set specification to this call Temporary inconsistencies during updates When you create or change a
web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources
are stored. The propagation time can be from a few seconds to a number of minutes. The following are examples of the
temporary inconsistencies that you might notice during change propagation: After you create a web ACL, if you try
to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. After you
add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and
not in another. After you change a rule action setting, you might see the old action in some places and the new action
in others. After you add an IP address to an IP set'
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateRegexPatternSetResponse'
'400':
description: WAFDuplicateItemException; WAFInvalidOperationException; WAFInvalidParameterException; WAFLimitsExceededException;
WAFNonexistentItemException; WAFOptimisticLockException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFDuplicateItemException'
'500':
description: WAFInternalErrorException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/WAFInternalErrorException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSWAF_20190729.UpdateRegexPatternSet
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateRegexPatternSetRequest'
tags:
- Regex Pattern Set
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: wafv2
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: '#/components/schemas/Regex'
description: Array of regular expression strings.
Tags:
type: array
items:
$ref: '#/components/schemas/Tag'
description: An array of key:value pairs to associate with the resource.
required:
- Name
- Scope
- RegularExpressionList
CreateRegexPatternSetResponse:
type: object
properties:
Summary:
$ref: '#/components/schemas/RegexPatternSetSummary'
DeleteRegexPatternSetRequest:
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.'
Id:
type: string
description: A unique identifier for the set. This ID is returned in the responses to create and list commands.
You provide it to operations like update and delete.
LockToken:
type: string
description: A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token, you provide
the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException.
If this happens, perform another get, and use the new token returned by that operation.
required:
- Name
- Scope
- Id
- LockToken
DeleteRegexPatternSetResponse:
type: object
properties: {}
GetRegexPatternSetRequest:
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.'
Id:
type: string
description: A unique identifier for the set. This ID is returned in the responses to create and list commands.
You provide it to operations like update and delete.
required:
- Name
- Scope
- Id
GetRegexPatternSetResponse:
type: object
properties:
RegexPatternSet:
$ref: '#/components/schemas/RegexPatternSet'
LockToken:
type: string
description: A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token, you provide
the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException.
If this happens, perform another get, and use the new token returned by that operation.
ListRegexPatternSetsRequest:
type: object
properties:
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.'
NextMarker:
type: string
description: When you request a list of objects with a Limit setting, if the number of objects that are still available
for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of
objects, provide the marker from the prior call in your next request.
Limit:
type: integer
description: The maximum number of objects that you want WAF to return for this request. If more objects are available,
in the response, WAF provides a NextMarker value that you can use in a subsequent call to get the next batch of
objects.
required:
- Scope
ListRegexPatternSetsResponse:
type: object
properties:
NextMarker:
type: string
description: When you request a list of objects with a Limit setting, if the number of objects that are still available
for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of
objects, provide the marker from the prior call in your next request.
RegexPatternSets:
type: array
items:
$ref: '#/components/schemas/RegexPatternSetSummary'
description: Array of regex pattern sets. If you specified a Limit in your request, this might not be the full list.
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.
RegexPatternSet:
type: object
properties:
Name:
type: string
description: The name of the set. You cannot change the name after you create the set.
Id:
type: string
description: A unique identifier for the set. This ID is returned in the responses to create and list commands.
You provide it to operations like update and delete.
ARN:
type: string
description: The Amazon Resource Name (ARN) of the entity.
Description:
type: string
description: A description of the set that helps with identification.
RegularExpressionList:
type: array
items:
$ref: '#/components/schemas/Regex'
description: The regular expression patterns in the set.
RegexPatternSetSummary:
type: object
properties:
Name:
type: string
description: The name of the data type instance. You cannot change the name after you create the instance.
Id:
type: string
description: A unique identifier for the set. This ID is returned in the responses to create and list commands.
You provide it to operations like update and delete.
Description:
type: string
description: A description of the set that helps with identification.
LockToken:
type: string
description: A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token, you provide
the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException.
If this happens, perform another get, and use the new token returned by that operation.
ARN:
type: string
description: The Amazon Resource Name (ARN) of the entity.
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
UpdateRegexPatternSetRequest:
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.'
Id:
type: string
description: A unique identifier for the set. This ID is returned in the responses to create and list commands.
You provide it to operations like update and delete.
Description:
type: string
description: A description of the set that helps with identification.
RegularExpressionList:
type: array
items:
$ref: '#/components/schemas/Regex'
LockToken:
type: string
description: A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token, you provide
the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException.
If this happens, perform another get, and use the new token returned by that operation.
required:
- Name
- Scope
- Id
- RegularExpressionList
- LockToken
UpdateRegexPatternSetResponse:
type: object
properties:
NextLockToken:
type: string
description: A token used for optimistic locking. WAF returns this token to your update requests. You use NextLockToken
in the same manner as you use LockToken.
WAFAssociatedItemException:
type: object
properties:
Message:
type: string
WAFDuplicateItemException:
type: object
properties:
Message:
type: string
WAFInternalErrorException:
type: object
properties:
Message:
type: string
WAFInvalidOperationException:
type: object
properties:
Message:
type: string
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/wafv2/service/2019-07-29/wafv2-2019-07-29.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)