AWS WAF Regional Regional Byte Match Set
This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Byte Match Set and write them securely.
aws_wafregional_byte_match_set (Terraform)
The Regional Byte Match Set in AWS WAF Regional can be configured in Terraform with the resource name aws_wafregional_byte_match_set
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_wafregional_byte_match_set" "match_auth_tokens" {
name = "match-auth-tokens"
byte_match_tuples {
text_transformation = "URL_DECODE"
target_string = ".TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
resource "aws_wafregional_byte_match_set" "match_auth_tokens" {
name = "match-auth-tokens"
byte_match_tuples {
text_transformation = "URL_DECODE"
target_string = ".TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
Parameters
-
id
optional computed - string -
name
required - string -
byte_match_tuples
set block-
positional_constraint
required - string -
target_string
optional - string -
text_transformation
required - string -
field_to_match
list block
-
Explanation in Terraform Registry
Provides a WAF Regional Byte Match Set Resource for use with Application Load Balancer.
AWS::WAFRegional::ByteMatchSet (CloudFormation)
The ByteMatchSet in WAFRegional can be configured in CloudFormation with the resource name AWS::WAFRegional::ByteMatchSet
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::WAFRegional::ByteMatchSet
Properties:
Name: !Sub '${AWS::StackName}-match-auth-tokens'
ByteMatchTuples:
- FieldToMatch:
Type: HEADER
Type: AWS::WAFRegional::ByteMatchSet
Properties:
Name: !Sub '${AWS::StackName}-match-auth-tokens'
ByteMatchTuples:
- FieldToMatch:
Type: HEADER
Type: AWS::WAFRegional::ByteMatchSet
Properties:
Name: !Sub '${AWS::StackName}-match-auth-tokens'
ByteMatchTuples:
- FieldToMatch:
Type: HEADER
Type: AWS::WAFRegional::ByteMatchSet
Condition: isRegional
Properties:
Name: !Join ['-', [!Ref stackPrefix, 'match-auth-tokens']]
ByteMatchTuples:
- FieldToMatch:
Type: AWS::WAFRegional::ByteMatchSet
Condition: isRegional
Properties:
Name: !Join ['-', [!Ref stackPrefix, 'match-auth-tokens']]
ByteMatchTuples:
- FieldToMatch:
"Type":"AWS::WAFRegional::ByteMatchSet",
"Properties":{
"Name":"match-auth-tokens",
"ByteMatchTuples":[
{
"FieldToMatch":{
"Type":"AWS::WAFRegional::ByteMatchSet",
"Properties":{
"Name":"match-auth-tokens",
"ByteMatchTuples":[
{
"FieldToMatch":{
"Type":"AWS::WAFRegional::ByteMatchSet",
"Properties":{
"Name":"match-auth-tokens",
"ByteMatchTuples":[
{
"FieldToMatch":{
"Type":"AWS::WAFRegional::ByteMatchSet",
"Properties":{
"Name":"match-auth-tokens",
"ByteMatchTuples":[
{
"FieldToMatch":{
"Type":"AWS::WAFRegional::ByteMatchSet",
"Properties":{
"Name":"match-auth-tokens",
"ByteMatchTuples":[
{
"FieldToMatch":{
Parameters
-
ByteMatchTuples
optional - List of ByteMatchTuple -
Name
required - String
Explanation in CloudFormation Registry
Note This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF , use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use. The
AWS::WAFRegional::ByteMatchSet
resource creates an AWS WAFByteMatchSet
that identifies a part of a web request that you want to inspect.
Frequently asked questions
What is AWS WAF Regional Regional Byte Match Set?
AWS WAF Regional Regional Byte Match Set is a resource for WAF Regional of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS WAF Regional Regional Byte Match Set?
For Terraform, the dwp/dataworks-metrics-infrastructure and dwp/aws-analytical-env source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the gandhi-mansi/csye6225-su19-ccwebapp, cyrilsebastian1811/csye6225-webapp and shubh1646/CSYE6225-ccwebapp source code examples are useful. See the CloudFormation Example section for further details.