SizeConstraintSetSizeConstraint constructor

const SizeConstraintSetSizeConstraint({
  1. required Input<String> comparisonOperator,
  2. required Input<SizeConstraintSetSizeConstraintFieldToMatch> fieldToMatch,
  3. required Input<int> size,
  4. required Input<String> textTransformation,
})

Creates a new SizeConstraintSetSizeConstraint. comparisonOperator Type of comparison you want to perform, such as EQ, NE, LT, or GT. Please refer to the documentation for a complete list of supported values. fieldToMatch Parameter that specifies where in a web request to look for the size constraint. size Size in bytes that you want to compare against the size of the specified fieldToMatch. Valid values for size are between 0 and 21474836480 bytes (0 and 20 GB). textTransformation Parameter is used to eliminate unusual formatting that attackers may use in web requests to bypass AWS WAF. When a transformation is specified, AWS WAF performs the transformation on the fieldToMatch before inspecting the request for a match. Some examples of supported transformations are CMD_LINE, HTML_ENTITY_DECODE, and NONE. You can find a complete list of supported values in the AWS WAF API Reference.

Implementation

const SizeConstraintSetSizeConstraint({
  required this.comparisonOperator,
  required this.fieldToMatch,
  required this.size,
  required this.textTransformation,
});