WebAclRuleArgs

data class WebAclRuleArgs(val action: Output<WebAclRuleActionArgs>? = null, val captchaConfig: Output<WebAclRuleCaptchaConfigArgs>? = null, val name: Output<String>, val overrideAction: Output<WebAclRuleOverrideActionArgs>? = null, val priority: Output<Int>, val ruleLabels: Output<List<WebAclRuleRuleLabelArgs>>? = null, val statement: Output<WebAclRuleStatementArgs>, val visibilityConfig: Output<WebAclRuleVisibilityConfigArgs>) : ConvertibleToJava<WebAclRuleArgs>

Constructors

Link copied to clipboard
constructor(action: Output<WebAclRuleActionArgs>? = null, captchaConfig: Output<WebAclRuleCaptchaConfigArgs>? = null, name: Output<String>, overrideAction: Output<WebAclRuleOverrideActionArgs>? = null, priority: Output<Int>, ruleLabels: Output<List<WebAclRuleRuleLabelArgs>>? = null, statement: Output<WebAclRuleStatementArgs>, visibilityConfig: Output<WebAclRuleVisibilityConfigArgs>)

Properties

Link copied to clipboard
val action: Output<WebAclRuleActionArgs>? = null

Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose statements do not reference a rule group. See action below for details.

Link copied to clipboard

Specifies how AWS WAF should handle CAPTCHA evaluations. See Captcha Configuration below for details.

Link copied to clipboard
val name: Output<String>

Friendly name of the rule. NOTE: The provider assumes that rules with names matching this pattern, ^ShieldMitigationRuleGroup_<account-id>_<web-acl-guid>_.*, are AWS-added for automatic application layer DDoS mitigation activities. Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors.

Link copied to clipboard

Override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group, like rule_group_reference_statement and managed_rule_group_statement. See override_action below for details.

Link copied to clipboard
val priority: Output<Int>

If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the rules in order based on the value of priority. AWS WAF processes rules with lower priority first.

Link copied to clipboard

Labels to apply to web requests that match the rule match statement. See rule_label below for details.

Link copied to clipboard

The AWS WAF processing statement for the rule, for example byte_match_statement or geo_match_statement. See statement below for details.

Link copied to clipboard

Defines and enables Amazon CloudWatch metrics and web request sample collection. See visibility_config below for details.

Functions

Link copied to clipboard
open override fun toJava(): WebAclRuleArgs