#[non_exhaustive]pub struct UpdateWebAclInputBuilder { /* private fields */ }Expand description
A builder for UpdateWebAclInput.
Implementations§
source§impl UpdateWebAclInputBuilder
impl UpdateWebAclInputBuilder
sourcepub fn web_acl_id(self, input: impl Into<String>) -> Self
pub fn web_acl_id(self, input: impl Into<String>) -> Self
The WebACLId of the WebACL that you want to update. 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
The WebACLId of the WebACL that you want to update. 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>
The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.
sourcepub fn change_token(self, input: impl Into<String>) -> Self
pub fn change_token(self, input: impl Into<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn set_change_token(self, input: Option<String>) -> Self
pub fn set_change_token(self, input: Option<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn get_change_token(&self) -> &Option<String>
pub fn get_change_token(&self) -> &Option<String>
The value returned by the most recent call to GetChangeToken.
sourcepub fn updates(self, input: WebAclUpdate) -> Self
pub fn updates(self, input: WebAclUpdate) -> Self
Appends an item to updates.
To override the contents of this collection use set_updates.
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 set_updates(self, input: Option<Vec<WebAclUpdate>>) -> Self
pub fn set_updates(self, input: Option<Vec<WebAclUpdate>>) -> Self
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 get_updates(&self) -> &Option<Vec<WebAclUpdate>>
pub fn get_updates(&self) -> &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
sourcepub fn default_action(self, input: WafAction) -> Self
pub fn default_action(self, input: WafAction) -> Self
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.
sourcepub fn set_default_action(self, input: Option<WafAction>) -> Self
pub fn set_default_action(self, input: Option<WafAction>) -> Self
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.
sourcepub fn get_default_action(&self) -> &Option<WafAction>
pub fn get_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.
sourcepub fn build(self) -> Result<UpdateWebAclInput, BuildError>
pub fn build(self) -> Result<UpdateWebAclInput, BuildError>
Consumes the builder and constructs a UpdateWebAclInput.
source§impl UpdateWebAclInputBuilder
impl UpdateWebAclInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateWebAclOutput, SdkError<UpdateWebACLError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateWebAclOutput, SdkError<UpdateWebACLError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateWebAclInputBuilder
impl Clone for UpdateWebAclInputBuilder
source§fn clone(&self) -> UpdateWebAclInputBuilder
fn clone(&self) -> UpdateWebAclInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateWebAclInputBuilder
impl Debug for UpdateWebAclInputBuilder
source§impl Default for UpdateWebAclInputBuilder
impl Default for UpdateWebAclInputBuilder
source§fn default() -> UpdateWebAclInputBuilder
fn default() -> UpdateWebAclInputBuilder
source§impl PartialEq for UpdateWebAclInputBuilder
impl PartialEq for UpdateWebAclInputBuilder
source§fn eq(&self, other: &UpdateWebAclInputBuilder) -> bool
fn eq(&self, other: &UpdateWebAclInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateWebAclInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateWebAclInputBuilder
impl RefUnwindSafe for UpdateWebAclInputBuilder
impl Send for UpdateWebAclInputBuilder
impl Sync for UpdateWebAclInputBuilder
impl Unpin for UpdateWebAclInputBuilder
impl UnwindSafe for UpdateWebAclInputBuilder
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