AWS SDK for C++  1.9.123
AWS SDK for C++
Public Member Functions | List of all members
Aws::WAF::Model::WafAction Class Reference

#include <WafAction.h>

Public Member Functions

 WafAction ()
 
 WafAction (Aws::Utils::Json::JsonView jsonValue)
 
WafActionoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const WafActionTypeGetType () const
 
bool TypeHasBeenSet () const
 
void SetType (const WafActionType &value)
 
void SetType (WafActionType &&value)
 
WafActionWithType (const WafActionType &value)
 
WafActionWithType (WafActionType &&value)
 

Detailed Description

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.

For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a WebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a WebACL.

See Also:

AWS API Reference

Definition at line 43 of file WafAction.h.

Constructor & Destructor Documentation

◆ WafAction() [1/2]

Aws::WAF::Model::WafAction::WafAction ( )

◆ WafAction() [2/2]

Aws::WAF::Model::WafAction::WafAction ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ GetType()

const WafActionType& Aws::WAF::Model::WafAction::GetType ( ) const
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 63 of file WafAction.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::WAF::Model::WafAction::Jsonize ( ) const

◆ operator=()

WafAction& Aws::WAF::Model::WafAction::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetType() [1/2]

void Aws::WAF::Model::WafAction::SetType ( const WafActionType value)
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 89 of file WafAction.h.

◆ SetType() [2/2]

void Aws::WAF::Model::WafAction::SetType ( WafActionType &&  value)
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 102 of file WafAction.h.

◆ TypeHasBeenSet()

bool Aws::WAF::Model::WafAction::TypeHasBeenSet ( ) const
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 76 of file WafAction.h.

◆ WithType() [1/2]

WafAction& Aws::WAF::Model::WafAction::WithType ( const WafActionType value)
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 115 of file WafAction.h.

◆ WithType() [2/2]

WafAction& Aws::WAF::Model::WafAction::WithType ( WafActionType &&  value)
inline

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Definition at line 128 of file WafAction.h.


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