#[non_exhaustive]pub struct AwsWafv2WebAclDetailsBuilder { /* private fields */ }Expand description
A builder for AwsWafv2WebAclDetails.
Implementations§
source§impl AwsWafv2WebAclDetailsBuilder
impl AwsWafv2WebAclDetailsBuilder
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 web ACL that you want to associate with the resource.
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 web ACL that you want to associate with the resource.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
sourcepub fn managedby_firewall_manager(self, input: bool) -> Self
pub fn managedby_firewall_manager(self, input: bool) -> Self
Indicates whether this web ACL is managed by Firewall Manager.
sourcepub fn set_managedby_firewall_manager(self, input: Option<bool>) -> Self
pub fn set_managedby_firewall_manager(self, input: Option<bool>) -> Self
Indicates whether this web ACL is managed by Firewall Manager.
sourcepub fn get_managedby_firewall_manager(&self) -> &Option<bool>
pub fn get_managedby_firewall_manager(&self) -> &Option<bool>
Indicates whether this web ACL is managed by Firewall Manager.
sourcepub fn capacity(self, input: i64) -> Self
pub fn capacity(self, input: i64) -> Self
The web ACL capacity units (WCUs) currently being used by this web ACL.
sourcepub fn set_capacity(self, input: Option<i64>) -> Self
pub fn set_capacity(self, input: Option<i64>) -> Self
The web ACL capacity units (WCUs) currently being used by this web ACL.
sourcepub fn get_capacity(&self) -> &Option<i64>
pub fn get_capacity(&self) -> &Option<i64>
The web ACL capacity units (WCUs) currently being used by this web ACL.
sourcepub fn captcha_config(self, input: AwsWafv2WebAclCaptchaConfigDetails) -> Self
pub fn captcha_config(self, input: AwsWafv2WebAclCaptchaConfigDetails) -> Self
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings.
sourcepub fn set_captcha_config(
self,
input: Option<AwsWafv2WebAclCaptchaConfigDetails>
) -> Self
pub fn set_captcha_config( self, input: Option<AwsWafv2WebAclCaptchaConfigDetails> ) -> Self
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings.
sourcepub fn get_captcha_config(&self) -> &Option<AwsWafv2WebAclCaptchaConfigDetails>
pub fn get_captcha_config(&self) -> &Option<AwsWafv2WebAclCaptchaConfigDetails>
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings.
sourcepub fn default_action(self, input: AwsWafv2WebAclActionDetails) -> Self
pub fn default_action(self, input: AwsWafv2WebAclActionDetails) -> Self
The action to perform if none of the Rules contained in the web ACL match.
sourcepub fn set_default_action(
self,
input: Option<AwsWafv2WebAclActionDetails>
) -> Self
pub fn set_default_action( self, input: Option<AwsWafv2WebAclActionDetails> ) -> Self
The action to perform if none of the Rules contained in the web ACL match.
sourcepub fn get_default_action(&self) -> &Option<AwsWafv2WebAclActionDetails>
pub fn get_default_action(&self) -> &Option<AwsWafv2WebAclActionDetails>
The action to perform if none of the Rules contained in the web ACL match.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the web ACL 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 web ACL that helps with identification.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the web ACL that helps with identification.
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 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) -> AwsWafv2WebAclDetails
pub fn build(self) -> AwsWafv2WebAclDetails
Consumes the builder and constructs a AwsWafv2WebAclDetails.
Trait Implementations§
source§impl Clone for AwsWafv2WebAclDetailsBuilder
impl Clone for AwsWafv2WebAclDetailsBuilder
source§fn clone(&self) -> AwsWafv2WebAclDetailsBuilder
fn clone(&self) -> AwsWafv2WebAclDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsWafv2WebAclDetailsBuilder
impl Debug for AwsWafv2WebAclDetailsBuilder
source§impl Default for AwsWafv2WebAclDetailsBuilder
impl Default for AwsWafv2WebAclDetailsBuilder
source§fn default() -> AwsWafv2WebAclDetailsBuilder
fn default() -> AwsWafv2WebAclDetailsBuilder
source§impl PartialEq for AwsWafv2WebAclDetailsBuilder
impl PartialEq for AwsWafv2WebAclDetailsBuilder
source§fn eq(&self, other: &AwsWafv2WebAclDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafv2WebAclDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.