Struct aws_sdk_waf::input::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
sourceimpl UpdateWebAclInput
impl UpdateWebAclInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateWebACL, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateWebACL, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateWebACL>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateWebAclInput
sourceimpl 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) -> Option<&[WebAclUpdate]>
pub fn updates(&self) -> Option<&[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
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.
Trait Implementations
sourceimpl Clone for UpdateWebAclInput
impl Clone for UpdateWebAclInput
sourcefn clone(&self) -> UpdateWebAclInput
fn clone(&self) -> UpdateWebAclInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UpdateWebAclInput
impl Debug for UpdateWebAclInput
sourceimpl PartialEq<UpdateWebAclInput> for UpdateWebAclInput
impl PartialEq<UpdateWebAclInput> for UpdateWebAclInput
sourcefn eq(&self, other: &UpdateWebAclInput) -> bool
fn eq(&self, other: &UpdateWebAclInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UpdateWebAclInput) -> bool
fn ne(&self, other: &UpdateWebAclInput) -> bool
This method tests for !=.
impl StructuralPartialEq for UpdateWebAclInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateWebAclInput
impl Send for UpdateWebAclInput
impl Sync for UpdateWebAclInput
impl Unpin for UpdateWebAclInput
impl UnwindSafe for UpdateWebAclInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more