View a markdown version of this page

WafRule - Amazon Lightsail

WafRule

Describes a Web Application Firewall (WAF) rule group for a Lightsail distribution. A WAF rule group is a set of rules managed by AWS. The rules inspect viewer requests and block requests that match them.

Contents

name

The name of the WAF rule group (for example, AWSManagedRulesCommonRuleSet).

For the WAF rule groups that you can specify for each bundle, see the wafRules parameter of the CreateDistribution action.

Type: String

Required: Yes

acfpConfig

An object that describes the configuration of the account creation fraud prevention rule group.

Constraints:

  • Define this parameter only when the name is AWSManagedRulesACFPRuleSet.

  • This parameter is required when the name is AWSManagedRulesACFPRuleSet.

Type: WafAcfpConfig object

Required: No

atpConfig

An object that describes the configuration of the account takeover prevention rule group.

Constraints:

  • Define this parameter only when the name is AWSManagedRulesATPRuleSet.

  • This parameter is required when the name is AWSManagedRulesATPRuleSet.

Type: WafAtpConfig object

Required: No

botControlConfig

An object that describes the configuration of the bot control rule group.

Constraints:

  • Define this parameter only when the name is AWSManagedRulesBotControlRuleSet.

  • This parameter is required when the name is AWSManagedRulesBotControlRuleSet.

Type: WafBotControlConfig object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: