class Aws::WAF::Types::SizeConstraintSetUpdate

<note markdown=“1”> This is **AWS WAF Classic** documentation. For more information, see

AWS WAF Classic][1

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.

</note>

Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a SizeConstraintSet or delete it from a `SizeConstraintSet`.

[1]: docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html [2]: docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html

@note When making an API call, you may pass SizeConstraintSetUpdate

data as a hash:

    {
      action: "INSERT", # required, accepts INSERT, DELETE
      size_constraint: { # required
        field_to_match: { # required
          type: "URI", # required, accepts URI, QUERY_STRING, HEADER, METHOD, BODY, SINGLE_QUERY_ARG, ALL_QUERY_ARGS
          data: "MatchFieldData",
        },
        text_transformation: "NONE", # required, accepts NONE, COMPRESS_WHITE_SPACE, HTML_ENTITY_DECODE, LOWERCASE, CMD_LINE, URL_DECODE
        comparison_operator: "EQ", # required, accepts EQ, NE, LE, LT, GE, GT
        size: 1, # required
      },
    }

@!attribute [rw] action

Specify `INSERT` to add a SizeConstraintSetUpdate to a
SizeConstraintSet. Use `DELETE` to remove a
`SizeConstraintSetUpdate` from a `SizeConstraintSet`.
@return [String]

@!attribute [rw] size_constraint

Specifies a constraint on the size of a part of the web request. AWS
WAF uses the `Size`, `ComparisonOperator`, and `FieldToMatch` to
build an expression in the form of "`Size` `ComparisonOperator`
size in bytes of `FieldToMatch`". If that expression is true, the
`SizeConstraint` is considered to match.
@return [Types::SizeConstraint]

@see docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SizeConstraintSetUpdate AWS API Documentation

Constants

SENSITIVE