Package com.pulumi.aws.waf.inputs
Class SizeConstraintSetSizeConstraintArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.waf.inputs.SizeConstraintSetSizeConstraintArgs.Builder
-
- Enclosing class:
- SizeConstraintSetSizeConstraintArgs
public static final class SizeConstraintSetSizeConstraintArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(SizeConstraintSetSizeConstraintArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SizeConstraintSetSizeConstraintArgs defaults)
-
-
Method Detail
-
comparisonOperator
public SizeConstraintSetSizeConstraintArgs.Builder comparisonOperator(com.pulumi.core.Output<java.lang.String> comparisonOperator)
- Parameters:
comparisonOperator
- Type of comparison you want to perform, such as `EQ`, `NE`, `LT`, or `GT`. Please refer to the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_wafRegional_SizeConstraint.html) for a complete list of supported values.- Returns:
- builder
-
comparisonOperator
public SizeConstraintSetSizeConstraintArgs.Builder comparisonOperator(java.lang.String comparisonOperator)
- Parameters:
comparisonOperator
- Type of comparison you want to perform, such as `EQ`, `NE`, `LT`, or `GT`. Please refer to the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_wafRegional_SizeConstraint.html) for a complete list of supported values.- Returns:
- builder
-
fieldToMatch
public SizeConstraintSetSizeConstraintArgs.Builder fieldToMatch(com.pulumi.core.Output<SizeConstraintSetSizeConstraintFieldToMatchArgs> fieldToMatch)
- Parameters:
fieldToMatch
- Parameter that specifies where in a web request to look for the size constraint.- Returns:
- builder
-
fieldToMatch
public SizeConstraintSetSizeConstraintArgs.Builder fieldToMatch(SizeConstraintSetSizeConstraintFieldToMatchArgs fieldToMatch)
- Parameters:
fieldToMatch
- Parameter that specifies where in a web request to look for the size constraint.- Returns:
- builder
-
size
public SizeConstraintSetSizeConstraintArgs.Builder size(com.pulumi.core.Output<java.lang.Integer> size)
- Parameters:
size
- Size in bytes that you want to compare against the size of the specified `field_to_match`. Valid values for `size` are between 0 and 21474836480 bytes (0 and 20 GB).- Returns:
- builder
-
size
public SizeConstraintSetSizeConstraintArgs.Builder size(java.lang.Integer size)
- Parameters:
size
- Size in bytes that you want to compare against the size of the specified `field_to_match`. Valid values for `size` are between 0 and 21474836480 bytes (0 and 20 GB).- Returns:
- builder
-
textTransformation
public SizeConstraintSetSizeConstraintArgs.Builder textTransformation(com.pulumi.core.Output<java.lang.String> textTransformation)
- Parameters:
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 `field_to_match` 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](http://docs.aws.amazon.com/waf/latest/APIReference/API_SizeConstraint.html#WAF-Type-SizeConstraint-TextTransformation). **Note:** If you choose `BODY` as the `type`, you must also choose `NONE` because CloudFront only forwards the first 8192 bytes for inspection.- Returns:
- builder
-
textTransformation
public SizeConstraintSetSizeConstraintArgs.Builder textTransformation(java.lang.String textTransformation)
- Parameters:
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 `field_to_match` 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](http://docs.aws.amazon.com/waf/latest/APIReference/API_SizeConstraint.html#WAF-Type-SizeConstraint-TextTransformation). **Note:** If you choose `BODY` as the `type`, you must also choose `NONE` because CloudFront only forwards the first 8192 bytes for inspection.- Returns:
- builder
-
build
public SizeConstraintSetSizeConstraintArgs build()
-
-