aws_sdk_waf/client/
update_ip_set.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateIPSet`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`ip_set_id(impl Into<String>)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::ip_set_id) / [`set_ip_set_id(Option<String>)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::set_ip_set_id):<br>required: **true**<br><p>The <code>IPSetId</code> of the <code>IPSet</code> that you want to update. <code>IPSetId</code> is returned by <code>CreateIPSet</code> and by <code>ListIPSets</code>.</p><br>
    ///   - [`change_token(impl Into<String>)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::change_token) / [`set_change_token(Option<String>)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::set_change_token):<br>required: **true**<br><p>The value returned by the most recent call to <code>GetChangeToken</code>.</p><br>
    ///   - [`updates(IpSetUpdate)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::updates) / [`set_updates(Option<Vec::<IpSetUpdate>>)`](crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::set_updates):<br>required: **true**<br><p>An array of <code>IPSetUpdate</code> objects that you want to insert into or delete from an <code>IPSet</code>. For more information, see the applicable data types:</p> <ul>  <li>   <p><code>IPSetUpdate</code>: Contains <code>Action</code> and <code>IPSetDescriptor</code></p></li>  <li>   <p><code>IPSetDescriptor</code>: Contains <code>Type</code> and <code>Value</code></p></li> </ul> <p>You can insert a maximum of 1000 addresses in a single request.</p><br>
    /// - On success, responds with [`UpdateIpSetOutput`](crate::operation::update_ip_set::UpdateIpSetOutput) with field(s):
    ///   - [`change_token(Option<String>)`](crate::operation::update_ip_set::UpdateIpSetOutput::change_token): <p>The <code>ChangeToken</code> that you used to submit the <code>UpdateIPSet</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<UpdateIPSetError>`](crate::operation::update_ip_set::UpdateIPSetError)
    pub fn update_ip_set(&self) -> crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder {
        crate::operation::update_ip_set::builders::UpdateIPSetFluentBuilder::new(self.handle.clone())
    }
}