aws_sdk_waf/client/update_web_acl.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdateWebACL`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`web_acl_id(impl Into<String>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::web_acl_id) / [`set_web_acl_id(Option<String>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::set_web_acl_id):<br>required: **true**<br><p>The <code>WebACLId</code> of the <code>WebACL</code> that you want to update. <code>WebACLId</code> is returned by <code>CreateWebACL</code> and by <code>ListWebACLs</code>.</p><br>
/// - [`change_token(impl Into<String>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::change_token) / [`set_change_token(Option<String>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::set_change_token):<br>required: **true**<br><p>The value returned by the most recent call to <code>GetChangeToken</code>.</p><br>
/// - [`updates(WebAclUpdate)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::updates) / [`set_updates(Option<Vec::<WebAclUpdate>>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::set_updates):<br>required: **false**<br><p>An array of updates to make to the <code>WebACL</code>.</p> <p>An array of <code>WebACLUpdate</code> objects that you want to insert into or delete from a <code>WebACL</code>. For more information, see the applicable data types:</p> <ul> <li> <p><code>WebACLUpdate</code>: Contains <code>Action</code> and <code>ActivatedRule</code></p></li> <li> <p><code>ActivatedRule</code>: Contains <code>Action</code>, <code>OverrideAction</code>, <code>Priority</code>, <code>RuleId</code>, and <code>Type</code>. <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use <code>ActivatedRule|Action</code>. For all other update requests, <code>ActivatedRule|Action</code> is used instead of <code>ActivatedRule|OverrideAction</code>.</p></li> <li> <p><code>WafAction</code>: Contains <code>Type</code></p></li> </ul><br>
/// - [`default_action(WafAction)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::default_action) / [`set_default_action(Option<WafAction>)`](crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::set_default_action):<br>required: **false**<br><p>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.</p><br>
/// - On success, responds with [`UpdateWebAclOutput`](crate::operation::update_web_acl::UpdateWebAclOutput) with field(s):
/// - [`change_token(Option<String>)`](crate::operation::update_web_acl::UpdateWebAclOutput::change_token): <p>The <code>ChangeToken</code> that you used to submit the <code>UpdateWebACL</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
/// - On failure, responds with [`SdkError<UpdateWebACLError>`](crate::operation::update_web_acl::UpdateWebACLError)
pub fn update_web_acl(&self) -> crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder {
crate::operation::update_web_acl::builders::UpdateWebACLFluentBuilder::new(self.handle.clone())
}
}