Struct aws_sdk_waf::operation::update_web_acl::UpdateWebAclInput
source · #[non_exhaustive]pub struct UpdateWebAclInput {
pub web_acl_id: Option<String>,
pub change_token: Option<String>,
pub updates: Option<Vec<WebAclUpdate>>,
pub default_action: Option<WafAction>,
}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.web_acl_id: Option<String>The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.
change_token: Option<String>The value returned by the most recent call to GetChangeToken.
updates: Option<Vec<WebAclUpdate>>An array of updates to make to the WebACL.
An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:
-
WebACLUpdate: ContainsActionandActivatedRule -
ActivatedRule: ContainsAction,OverrideAction,Priority,RuleId, andType.ActivatedRule|OverrideActionapplies only when updating or adding aRuleGroupto aWebACL. In this case, you do not useActivatedRule|Action. For all other update requests,ActivatedRule|Actionis used instead ofActivatedRule|OverrideAction. -
WafAction: ContainsType
default_action: Option<WafAction>A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.
Implementations§
source§impl UpdateWebAclInput
impl UpdateWebAclInput
sourcepub fn web_acl_id(&self) -> Option<&str>
pub fn web_acl_id(&self) -> Option<&str>
The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.
sourcepub fn change_token(&self) -> Option<&str>
pub fn change_token(&self) -> Option<&str>
The value returned by the most recent call to GetChangeToken.
sourcepub fn updates(&self) -> &[WebAclUpdate]
pub fn updates(&self) -> &[WebAclUpdate]
An array of updates to make to the WebACL.
An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:
-
WebACLUpdate: ContainsActionandActivatedRule -
ActivatedRule: ContainsAction,OverrideAction,Priority,RuleId, andType.ActivatedRule|OverrideActionapplies only when updating or adding aRuleGroupto aWebACL. In this case, you do not useActivatedRule|Action. For all other update requests,ActivatedRule|Actionis used instead ofActivatedRule|OverrideAction. -
WafAction: ContainsType
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .updates.is_none().
sourcepub fn default_action(&self) -> Option<&WafAction>
pub fn default_action(&self) -> Option<&WafAction>
A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.
source§impl UpdateWebAclInput
impl UpdateWebAclInput
sourcepub fn builder() -> UpdateWebAclInputBuilder
pub fn builder() -> UpdateWebAclInputBuilder
Creates a new builder-style object to manufacture UpdateWebAclInput.
Trait Implementations§
source§impl Clone for UpdateWebAclInput
impl Clone for UpdateWebAclInput
source§fn clone(&self) -> UpdateWebAclInput
fn clone(&self) -> UpdateWebAclInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateWebAclInput
impl Debug for UpdateWebAclInput
source§impl PartialEq for UpdateWebAclInput
impl PartialEq for UpdateWebAclInput
source§fn eq(&self, other: &UpdateWebAclInput) -> bool
fn eq(&self, other: &UpdateWebAclInput) -> bool
self and other values to be equal, and is used
by ==.