AWS SDK for C++  1.9.157
AWS SDK for C++
Public Member Functions | List of all members
Aws::WAFV2::Model::SizeConstraintStatement Class Reference

#include <SizeConstraintStatement.h>

Public Member Functions

 SizeConstraintStatement ()
 
 SizeConstraintStatement (Aws::Utils::Json::JsonView jsonValue)
 
SizeConstraintStatementoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const FieldToMatchGetFieldToMatch () const
 
bool FieldToMatchHasBeenSet () const
 
void SetFieldToMatch (const FieldToMatch &value)
 
void SetFieldToMatch (FieldToMatch &&value)
 
SizeConstraintStatementWithFieldToMatch (const FieldToMatch &value)
 
SizeConstraintStatementWithFieldToMatch (FieldToMatch &&value)
 
const ComparisonOperatorGetComparisonOperator () const
 
bool ComparisonOperatorHasBeenSet () const
 
void SetComparisonOperator (const ComparisonOperator &value)
 
void SetComparisonOperator (ComparisonOperator &&value)
 
SizeConstraintStatementWithComparisonOperator (const ComparisonOperator &value)
 
SizeConstraintStatementWithComparisonOperator (ComparisonOperator &&value)
 
long long GetSize () const
 
bool SizeHasBeenSet () const
 
void SetSize (long long value)
 
SizeConstraintStatementWithSize (long long value)
 
const Aws::Vector< TextTransformation > & GetTextTransformations () const
 
bool TextTransformationsHasBeenSet () const
 
void SetTextTransformations (const Aws::Vector< TextTransformation > &value)
 
void SetTextTransformations (Aws::Vector< TextTransformation > &&value)
 
SizeConstraintStatementWithTextTransformations (const Aws::Vector< TextTransformation > &value)
 
SizeConstraintStatementWithTextTransformations (Aws::Vector< TextTransformation > &&value)
 
SizeConstraintStatementAddTextTransformations (const TextTransformation &value)
 
SizeConstraintStatementAddTextTransformations (TextTransformation &&value)
 

Detailed Description

A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.

If you configure WAF to inspect the request body, WAF inspects only the first 8192 bytes (8 KB). If the request body for your web requests never exceeds 8192 bytes, you can create a size constraint condition and block requests that have a request body greater than 8192 bytes.

If you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI /logo.jpg is nine characters long.

See Also:


AWS API Reference

Definition at line 44 of file SizeConstraintStatement.h.

Constructor & Destructor Documentation

◆ SizeConstraintStatement() [1/2]

Aws::WAFV2::Model::SizeConstraintStatement::SizeConstraintStatement ( )

◆ SizeConstraintStatement() [2/2]

Aws::WAFV2::Model::SizeConstraintStatement::SizeConstraintStatement ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddTextTransformations() [1/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::AddTextTransformations ( const TextTransformation value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 214 of file SizeConstraintStatement.h.

◆ AddTextTransformations() [2/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::AddTextTransformations ( TextTransformation &&  value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 224 of file SizeConstraintStatement.h.

◆ ComparisonOperatorHasBeenSet()

bool Aws::WAFV2::Model::SizeConstraintStatement::ComparisonOperatorHasBeenSet ( ) const
inline

The operator to use to compare the request part to the size setting.

Definition at line 98 of file SizeConstraintStatement.h.

◆ FieldToMatchHasBeenSet()

bool Aws::WAFV2::Model::SizeConstraintStatement::FieldToMatchHasBeenSet ( ) const
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 63 of file SizeConstraintStatement.h.

◆ GetComparisonOperator()

const ComparisonOperator& Aws::WAFV2::Model::SizeConstraintStatement::GetComparisonOperator ( ) const
inline

The operator to use to compare the request part to the size setting.

Definition at line 93 of file SizeConstraintStatement.h.

◆ GetFieldToMatch()

const FieldToMatch& Aws::WAFV2::Model::SizeConstraintStatement::GetFieldToMatch ( ) const
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 57 of file SizeConstraintStatement.h.

◆ GetSize()

long long Aws::WAFV2::Model::SizeConstraintStatement::GetSize ( ) const
inline

The size, in byte, to compare to the request part, after any transformations.

Definition at line 125 of file SizeConstraintStatement.h.

◆ GetTextTransformations()

const Aws::Vector<TextTransformation>& Aws::WAFV2::Model::SizeConstraintStatement::GetTextTransformations ( ) const
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 154 of file SizeConstraintStatement.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::WAFV2::Model::SizeConstraintStatement::Jsonize ( ) const

◆ operator=()

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetComparisonOperator() [1/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetComparisonOperator ( ComparisonOperator &&  value)
inline

The operator to use to compare the request part to the size setting.

Definition at line 108 of file SizeConstraintStatement.h.

◆ SetComparisonOperator() [2/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetComparisonOperator ( const ComparisonOperator value)
inline

The operator to use to compare the request part to the size setting.

Definition at line 103 of file SizeConstraintStatement.h.

◆ SetFieldToMatch() [1/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetFieldToMatch ( const FieldToMatch value)
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 69 of file SizeConstraintStatement.h.

◆ SetFieldToMatch() [2/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetFieldToMatch ( FieldToMatch &&  value)
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 75 of file SizeConstraintStatement.h.

◆ SetSize()

void Aws::WAFV2::Model::SizeConstraintStatement::SetSize ( long long  value)
inline

The size, in byte, to compare to the request part, after any transformations.

Definition at line 137 of file SizeConstraintStatement.h.

◆ SetTextTransformations() [1/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetTextTransformations ( Aws::Vector< TextTransformation > &&  value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 184 of file SizeConstraintStatement.h.

◆ SetTextTransformations() [2/2]

void Aws::WAFV2::Model::SizeConstraintStatement::SetTextTransformations ( const Aws::Vector< TextTransformation > &  value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 174 of file SizeConstraintStatement.h.

◆ SizeHasBeenSet()

bool Aws::WAFV2::Model::SizeConstraintStatement::SizeHasBeenSet ( ) const
inline

The size, in byte, to compare to the request part, after any transformations.

Definition at line 131 of file SizeConstraintStatement.h.

◆ TextTransformationsHasBeenSet()

bool Aws::WAFV2::Model::SizeConstraintStatement::TextTransformationsHasBeenSet ( ) const
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 164 of file SizeConstraintStatement.h.

◆ WithComparisonOperator() [1/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithComparisonOperator ( ComparisonOperator &&  value)
inline

The operator to use to compare the request part to the size setting.

Definition at line 118 of file SizeConstraintStatement.h.

◆ WithComparisonOperator() [2/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithComparisonOperator ( const ComparisonOperator value)
inline

The operator to use to compare the request part to the size setting.

Definition at line 113 of file SizeConstraintStatement.h.

◆ WithFieldToMatch() [1/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithFieldToMatch ( const FieldToMatch value)
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 81 of file SizeConstraintStatement.h.

◆ WithFieldToMatch() [2/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithFieldToMatch ( FieldToMatch &&  value)
inline

The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.

Definition at line 87 of file SizeConstraintStatement.h.

◆ WithSize()

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithSize ( long long  value)
inline

The size, in byte, to compare to the request part, after any transformations.

Definition at line 143 of file SizeConstraintStatement.h.

◆ WithTextTransformations() [1/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithTextTransformations ( Aws::Vector< TextTransformation > &&  value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 204 of file SizeConstraintStatement.h.

◆ WithTextTransformations() [2/2]

SizeConstraintStatement& Aws::WAFV2::Model::SizeConstraintStatement::WithTextTransformations ( const Aws::Vector< TextTransformation > &  value)
inline

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Definition at line 194 of file SizeConstraintStatement.h.


The documentation for this class was generated from the following file: