AWS WAF Regional Regional Size Constraint Set
This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Size Constraint Set and write them securely.
aws_wafregional_size_constraint_set (Terraform)
The Regional Size Constraint Set in AWS WAF Regional can be configured in Terraform with the resource name aws_wafregional_size_constraint_set
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_wafregional_size_constraint_set" "size_restrictions" {
name = "size-restrictions"
size_constraints {
text_transformation = "NONE"
comparison_operator = "GT"
resource "aws_wafregional_size_constraint_set" "size_restrictions" {
name = "size-restrictions"
size_constraints {
text_transformation = "NONE"
comparison_operator = "GT"
Parameters
-
arn
optional computed - string -
id
optional computed - string -
name
required - string -
size_constraints
set block-
comparison_operator
required - string -
size
required - number -
text_transformation
required - string -
field_to_match
list block
-
Explanation in Terraform Registry
Provides a WAF Regional Size Constraint Set Resource for use with Application Load Balancer.
AWS::WAFRegional::SizeConstraintSet (CloudFormation)
The SizeConstraintSet in WAFRegional can be configured in CloudFormation with the resource name AWS::WAFRegional::SizeConstraintSet
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::WAFRegional::SizeConstraintSet
Condition: isRegional
Properties:
Name: !Join ['-', [!Ref stackPrefix, 'size-restrictions']]
SizeConstraints:
- FieldToMatch:
Type: AWS::WAFRegional::SizeConstraintSet
Properties:
Name: !Sub '${AWS::StackName}-size-restrictions'
SizeConstraints:
- FieldToMatch:
Type: URI
Type: AWS::WAFRegional::SizeConstraintSet
Properties:
Name: !Sub '${AWS::StackName}-size-restrictions'
SizeConstraints:
- FieldToMatch:
Type: URI
Type: AWS::WAFRegional::SizeConstraintSet
Properties:
Name: !Sub '${AWS::StackName}-size-restrictions'
SizeConstraints:
- FieldToMatch:
Type: URI
Type: AWS::WAFRegional::SizeConstraintSet
Properties:
Name: !Sub ${StackPrefix}LimitRequestSize
SizeConstraints:
- ComparisonOperator: GT
FieldToMatch:
"Type": "AWS::WAFRegional::SizeConstraintSet",
"Properties": {
"Name": "RegionslSizeConstraintMatchSet",
"SizeConstraints": [
{
"Type": "AWS::WAFRegional::SizeConstraintSet",
"Properties": {
"Name": "wafrSQLiRule",
"SizeConstraints": [
{
"FieldToMatch": {
"Type": "AWS::WAFRegional::SizeConstraintSet",
"Properties": {
"Name": "SizeConstraints",
"SizeConstraints": [
{
"ComparisonOperator": "GT",
"Type": "AWS::WAFRegional::SizeConstraintSet",
"Properties": {
"Name": "SizeConstraints",
"SizeConstraints": [
{
"ComparisonOperator": "GT",
"Type": "AWS::WAFRegional::SizeConstraintSet",
"Properties": {
"Name": "Size Constraint",
"SizeConstraints": [
{
Parameters
-
SizeConstraints
optional - List of SizeConstraint -
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. A complex type that contains
SizeConstraint
objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If aSizeConstraintSet
contains more than oneSizeConstraint
object, a request only needs to match one constraint to be considered a match.
Frequently asked questions
What is AWS WAF Regional Regional Size Constraint Set?
AWS WAF Regional Regional Size Constraint 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 Size Constraint Set?
For Terraform, the dwp/aws-analytical-env and dwp/dataworks-metrics-infrastructure source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the Jagman13/ccwebapp, gandhi-mansi/csye6225-su19-ccwebapp and cyrilsebastian1811/Library-Management-System source code examples are useful. See the CloudFormation Example section for further details.