aws_sdk_wafregional/client/
update_geo_match_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 [`UpdateGeoMatchSet`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`geo_match_set_id(impl Into<String>)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::geo_match_set_id) / [`set_geo_match_set_id(Option<String>)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::set_geo_match_set_id):<br>required: **true**<br><p>The <code>GeoMatchSetId</code> of the <code>GeoMatchSet</code> that you want to update. <code>GeoMatchSetId</code> is returned by <code>CreateGeoMatchSet</code> and by <code>ListGeoMatchSets</code>.</p><br>
    ///   - [`change_token(impl Into<String>)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::change_token) / [`set_change_token(Option<String>)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::set_change_token):<br>required: **true**<br><p>The value returned by the most recent call to <code>GetChangeToken</code>.</p><br>
    ///   - [`updates(GeoMatchSetUpdate)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::updates) / [`set_updates(Option<Vec::<GeoMatchSetUpdate>>)`](crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::set_updates):<br>required: **true**<br><p>An array of <code>GeoMatchSetUpdate</code> objects that you want to insert into or delete from an <code>GeoMatchSet</code>. For more information, see the applicable data types:</p> <ul>  <li>   <p><code>GeoMatchSetUpdate</code>: Contains <code>Action</code> and <code>GeoMatchConstraint</code></p></li>  <li>   <p><code>GeoMatchConstraint</code>: Contains <code>Type</code> and <code>Value</code></p>   <p>You can have only one <code>Type</code> and <code>Value</code> per <code>GeoMatchConstraint</code>. To add multiple countries, include multiple <code>GeoMatchSetUpdate</code> objects in your request.</p></li> </ul><br>
    /// - On success, responds with [`UpdateGeoMatchSetOutput`](crate::operation::update_geo_match_set::UpdateGeoMatchSetOutput) with field(s):
    ///   - [`change_token(Option<String>)`](crate::operation::update_geo_match_set::UpdateGeoMatchSetOutput::change_token): <p>The <code>ChangeToken</code> that you used to submit the <code>UpdateGeoMatchSet</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<UpdateGeoMatchSetError>`](crate::operation::update_geo_match_set::UpdateGeoMatchSetError)
    pub fn update_geo_match_set(&self) -> crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder {
        crate::operation::update_geo_match_set::builders::UpdateGeoMatchSetFluentBuilder::new(self.handle.clone())
    }
}