#[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 ==.impl StructuralPartialEq for AwsWafv2RuleGroupDetails
Auto Trait Implementations§
impl Freeze for AwsWafv2RuleGroupDetails
impl RefUnwindSafe for AwsWafv2RuleGroupDetails
impl Send for AwsWafv2RuleGroupDetails
impl Sync for AwsWafv2RuleGroupDetails
impl Unpin for AwsWafv2RuleGroupDetails
impl UnwindSafe for AwsWafv2RuleGroupDetails
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more