#[non_exhaustive]pub struct AwsWafv2RuleGroupDetails {
pub capacity: Option<i64>,
pub description: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
pub arn: Option<String>,
pub rules: Option<Vec<AwsWafv2RulesDetails>>,
pub scope: Option<String>,
pub visibility_config: Option<AwsWafv2VisibilityConfigDetails>,
}
Expand description
Details about an WAFv2 rule group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.capacity: Option<i64>
The web ACL capacity units (WCUs) required for this rule group.
description: Option<String>
A description of the rule group that helps with identification.
id: Option<String>
A unique identifier for the rule group.
name: Option<String>
The name of the rule group. You cannot change the name of a rule group after you create it.
arn: Option<String>
The Amazon Resource Name (ARN) of the entity.
rules: Option<Vec<AwsWafv2RulesDetails>>
The Rule statements used to identify the web requests that you want to allow, block, or count. Each rule includes one top-level statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.
scope: Option<String>
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.
visibility_config: Option<AwsWafv2VisibilityConfigDetails>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
Implementations§
source§impl AwsWafv2RuleGroupDetails
impl AwsWafv2RuleGroupDetails
sourcepub fn capacity(&self) -> Option<i64>
pub fn capacity(&self) -> Option<i64>
The web ACL capacity units (WCUs) required for this rule group.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the rule group that helps with identification.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the rule group. You cannot change the name of a rule group after you create it.
sourcepub fn rules(&self) -> &[AwsWafv2RulesDetails]
pub fn rules(&self) -> &[AwsWafv2RulesDetails]
The Rule statements used to identify the web requests that you want to allow, block, or count. Each rule includes one top-level statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none()
.
sourcepub fn scope(&self) -> Option<&str>
pub fn scope(&self) -> Option<&str>
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.
sourcepub fn visibility_config(&self) -> Option<&AwsWafv2VisibilityConfigDetails>
pub fn visibility_config(&self) -> Option<&AwsWafv2VisibilityConfigDetails>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
source§impl AwsWafv2RuleGroupDetails
impl AwsWafv2RuleGroupDetails
sourcepub fn builder() -> AwsWafv2RuleGroupDetailsBuilder
pub fn builder() -> AwsWafv2RuleGroupDetailsBuilder
Creates a new builder-style object to manufacture AwsWafv2RuleGroupDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2RuleGroupDetails
impl Clone for AwsWafv2RuleGroupDetails
source§fn clone(&self) -> AwsWafv2RuleGroupDetails
fn clone(&self) -> AwsWafv2RuleGroupDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsWafv2RuleGroupDetails
impl Debug for AwsWafv2RuleGroupDetails
source§impl PartialEq for AwsWafv2RuleGroupDetails
impl PartialEq for AwsWafv2RuleGroupDetails
source§fn eq(&self, other: &AwsWafv2RuleGroupDetails) -> bool
fn eq(&self, other: &AwsWafv2RuleGroupDetails) -> bool
self
and other
values to be equal, and is used
by ==
.