Struct aws_sdk_waf::types::builders::WebAclBuilder
source · #[non_exhaustive]pub struct WebAclBuilder { /* private fields */ }Expand description
A builder for WebAcl.
Implementations§
source§impl WebAclBuilder
impl WebAclBuilder
sourcepub fn web_acl_id(self, input: impl Into<String>) -> Self
pub fn web_acl_id(self, input: impl Into<String>) -> Self
A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).
WebACLId is returned by CreateWebACL and by ListWebACLs.
sourcepub fn set_web_acl_id(self, input: Option<String>) -> Self
pub fn set_web_acl_id(self, input: Option<String>) -> Self
A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).
WebACLId is returned by CreateWebACL and by ListWebACLs.
sourcepub fn get_web_acl_id(&self) -> &Option<String>
pub fn get_web_acl_id(&self) -> &Option<String>
A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).
WebACLId is returned by CreateWebACL and by ListWebACLs.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn default_action(self, input: WafAction) -> Self
pub fn default_action(self, input: WafAction) -> Self
The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.
sourcepub fn set_default_action(self, input: Option<WafAction>) -> Self
pub fn set_default_action(self, input: Option<WafAction>) -> Self
The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.
sourcepub fn get_default_action(&self) -> &Option<WafAction>
pub fn get_default_action(&self) -> &Option<WafAction>
The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.
sourcepub fn rules(self, input: ActivatedRule) -> Self
pub fn rules(self, input: ActivatedRule) -> Self
Appends an item to rules.
To override the contents of this collection use set_rules.
An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.
sourcepub fn set_rules(self, input: Option<Vec<ActivatedRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ActivatedRule>>) -> Self
An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.
sourcepub fn get_rules(&self) -> &Option<Vec<ActivatedRule>>
pub fn get_rules(&self) -> &Option<Vec<ActivatedRule>>
An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.
sourcepub fn web_acl_arn(self, input: impl Into<String>) -> Self
pub fn web_acl_arn(self, input: impl Into<String>) -> Self
Tha Amazon Resource Name (ARN) of the web ACL.
sourcepub fn set_web_acl_arn(self, input: Option<String>) -> Self
pub fn set_web_acl_arn(self, input: Option<String>) -> Self
Tha Amazon Resource Name (ARN) of the web ACL.
sourcepub fn get_web_acl_arn(&self) -> &Option<String>
pub fn get_web_acl_arn(&self) -> &Option<String>
Tha Amazon Resource Name (ARN) of the web ACL.
Trait Implementations§
source§impl Clone for WebAclBuilder
impl Clone for WebAclBuilder
source§fn clone(&self) -> WebAclBuilder
fn clone(&self) -> WebAclBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WebAclBuilder
impl Debug for WebAclBuilder
source§impl Default for WebAclBuilder
impl Default for WebAclBuilder
source§fn default() -> WebAclBuilder
fn default() -> WebAclBuilder
source§impl PartialEq<WebAclBuilder> for WebAclBuilder
impl PartialEq<WebAclBuilder> for WebAclBuilder
source§fn eq(&self, other: &WebAclBuilder) -> bool
fn eq(&self, other: &WebAclBuilder) -> bool
self and other values to be equal, and is used
by ==.