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 ==.impl StructuralPartialEq for UpdateWebAclInput
Auto Trait Implementations§
impl Freeze for UpdateWebAclInput
impl RefUnwindSafe for UpdateWebAclInput
impl Send for UpdateWebAclInput
impl Sync for UpdateWebAclInput
impl Unpin for UpdateWebAclInput
impl UnwindSafe for UpdateWebAclInput
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