#[non_exhaustive]pub struct AwsWafv2RuleGroupDetailsBuilder { /* private fields */ }Expand description
A builder for AwsWafv2RuleGroupDetails.
Implementations§
source§impl AwsWafv2RuleGroupDetailsBuilder
impl AwsWafv2RuleGroupDetailsBuilder
sourcepub fn capacity(self, input: i64) -> Self
pub fn capacity(self, input: i64) -> Self
The web ACL capacity units (WCUs) required for this rule group.
sourcepub fn set_capacity(self, input: Option<i64>) -> Self
pub fn set_capacity(self, input: Option<i64>) -> Self
The web ACL capacity units (WCUs) required for this rule group.
sourcepub fn get_capacity(&self) -> &Option<i64>
pub fn get_capacity(&self) -> &Option<i64>
The web ACL capacity units (WCUs) required for this rule group.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the rule group that helps with identification.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the rule group that helps with identification.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the rule group that helps with identification.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the rule group. You cannot change the name of a rule group after you create it.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the rule group. You cannot change the name of a rule group after you create it.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the rule group. You cannot change the name of a rule group after you create it.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the entity.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the entity.
sourcepub fn rules(self, input: AwsWafv2RulesDetails) -> Self
pub fn rules(self, input: AwsWafv2RulesDetails) -> Self
Appends an item to rules.
To override the contents of this collection use set_rules.
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.
sourcepub fn set_rules(self, input: Option<Vec<AwsWafv2RulesDetails>>) -> Self
pub fn set_rules(self, input: Option<Vec<AwsWafv2RulesDetails>>) -> Self
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.
sourcepub fn get_rules(&self) -> &Option<Vec<AwsWafv2RulesDetails>>
pub fn get_rules(&self) -> &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.
sourcepub fn scope(self, input: impl Into<String>) -> Self
pub fn scope(self, input: impl Into<String>) -> Self
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 set_scope(self, input: Option<String>) -> Self
pub fn set_scope(self, input: Option<String>) -> Self
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 get_scope(&self) -> &Option<String>
pub fn get_scope(&self) -> &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.
sourcepub fn visibility_config(self, input: AwsWafv2VisibilityConfigDetails) -> Self
pub fn visibility_config(self, input: AwsWafv2VisibilityConfigDetails) -> Self
Defines and enables Amazon CloudWatch metrics and web request sample collection.
sourcepub fn set_visibility_config(
self,
input: Option<AwsWafv2VisibilityConfigDetails>
) -> Self
pub fn set_visibility_config( self, input: Option<AwsWafv2VisibilityConfigDetails> ) -> Self
Defines and enables Amazon CloudWatch metrics and web request sample collection.
sourcepub fn get_visibility_config(&self) -> &Option<AwsWafv2VisibilityConfigDetails>
pub fn get_visibility_config(&self) -> &Option<AwsWafv2VisibilityConfigDetails>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
sourcepub fn build(self) -> AwsWafv2RuleGroupDetails
pub fn build(self) -> AwsWafv2RuleGroupDetails
Consumes the builder and constructs a AwsWafv2RuleGroupDetails.
Trait Implementations§
source§impl Clone for AwsWafv2RuleGroupDetailsBuilder
impl Clone for AwsWafv2RuleGroupDetailsBuilder
source§fn clone(&self) -> AwsWafv2RuleGroupDetailsBuilder
fn clone(&self) -> AwsWafv2RuleGroupDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsWafv2RuleGroupDetailsBuilder
impl Default for AwsWafv2RuleGroupDetailsBuilder
source§fn default() -> AwsWafv2RuleGroupDetailsBuilder
fn default() -> AwsWafv2RuleGroupDetailsBuilder
source§impl PartialEq for AwsWafv2RuleGroupDetailsBuilder
impl PartialEq for AwsWafv2RuleGroupDetailsBuilder
source§fn eq(&self, other: &AwsWafv2RuleGroupDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafv2RuleGroupDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.