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

waf_condition_size.tf#L5
resource "aws_wafregional_size_constraint_set" "size_restrictions" {
  name = "size-restrictions"

  size_constraints {
    text_transformation = "NONE"
    comparison_operator = "GT"
waf_condition_size.tf#L13
resource "aws_wafregional_size_constraint_set" "size_restrictions" {
  name = "size-restrictions"

  size_constraints {
    text_transformation = "NONE"
    comparison_operator = "GT"

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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

csye6225-cf-WAF.yml#L749
    Type: AWS::WAFRegional::SizeConstraintSet
    Condition: isRegional
    Properties:
      Name: !Join ['-', [!Ref stackPrefix, 'size-restrictions']]
      SizeConstraints:
        - FieldToMatch:
csye6225-cf-application-waf-temp.yml#L237
    Type: AWS::WAFRegional::SizeConstraintSet
    Properties:
      Name: !Sub '${AWS::StackName}-size-restrictions'
      SizeConstraints:
        - FieldToMatch:
            Type: URI
csye6225-cf-application-waf-temp.yml#L237
    Type: AWS::WAFRegional::SizeConstraintSet
    Properties:
      Name: !Sub '${AWS::StackName}-size-restrictions'
      SizeConstraints:
        - FieldToMatch:
            Type: URI
csye6225-cf-application-waf-temp.yml#L237
    Type: AWS::WAFRegional::SizeConstraintSet
    Properties:
      Name: !Sub '${AWS::StackName}-size-restrictions'
      SizeConstraints:
        - FieldToMatch:
            Type: URI
waf-regional.yml#L14
    Type: AWS::WAFRegional::SizeConstraintSet
    Properties:
      Name: !Sub ${StackPrefix}LimitRequestSize
      SizeConstraints:
        - ComparisonOperator: GT
          FieldToMatch:
csye6225-cf-waf.json#L92
        "Type": "AWS::WAFRegional::SizeConstraintSet",

        "Properties": {
          "Name": "RegionslSizeConstraintMatchSet",
          "SizeConstraints": [
            {
csye6225-cf-waf.json#L83
        "Type": "AWS::WAFRegional::SizeConstraintSet",
        "Properties": {
           "Name": "wafrSQLiRule",
           "SizeConstraints": [
              {
                 "FieldToMatch": {
csye6225-cf-waf.json#L309
            "Type": "AWS::WAFRegional::SizeConstraintSet",
            "Properties": {
                "Name": "SizeConstraints",
                "SizeConstraints": [
                    {
                        "ComparisonOperator": "GT",
csye6225-cf-waf.json#L309
            "Type": "AWS::WAFRegional::SizeConstraintSet",
            "Properties": {
                "Name": "SizeConstraints",
                "SizeConstraints": [
                    {
                        "ComparisonOperator": "GT",
csye6225-cf-WAFResource.json#L229
            "Type": "AWS::WAFRegional::SizeConstraintSet",
            "Properties": {
                "Name": "Size Constraint",
                "SizeConstraints": [

                    {

Parameters

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 a SizeConstraintSet contains more than one SizeConstraint 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, cyrilsebastian1811/Library-Management-System and cyrilsebastian1811/csye6225-webapp source code examples are useful. See the CloudFormation Example section for further details.