aws_sdk_wafregional/client/
update_rule.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 [`UpdateRule`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`rule_id(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::rule_id) / [`set_rule_id(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_rule_id):<br>required: **true**<br><p>The <code>RuleId</code> of the <code>Rule</code> that you want to update. <code>RuleId</code> is returned by <code>CreateRule</code> and by <code>ListRules</code>.</p><br>
    ///   - [`change_token(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::change_token) / [`set_change_token(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_change_token):<br>required: **true**<br><p>The value returned by the most recent call to <code>GetChangeToken</code>.</p><br>
    ///   - [`updates(RuleUpdate)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::updates) / [`set_updates(Option<Vec::<RuleUpdate>>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_updates):<br>required: **true**<br><p>An array of <code>RuleUpdate</code> objects that you want to insert into or delete from a <code>Rule</code>. For more information, see the applicable data types:</p> <ul>  <li>   <p><code>RuleUpdate</code>: Contains <code>Action</code> and <code>Predicate</code></p></li>  <li>   <p><code>Predicate</code>: Contains <code>DataId</code>, <code>Negated</code>, and <code>Type</code></p></li>  <li>   <p><code>FieldToMatch</code>: Contains <code>Data</code> and <code>Type</code></p></li> </ul><br>
    /// - On success, responds with [`UpdateRuleOutput`](crate::operation::update_rule::UpdateRuleOutput) with field(s):
    ///   - [`change_token(Option<String>)`](crate::operation::update_rule::UpdateRuleOutput::change_token): <p>The <code>ChangeToken</code> that you used to submit the <code>UpdateRule</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<UpdateRuleError>`](crate::operation::update_rule::UpdateRuleError)
    pub fn update_rule(&self) -> crate::operation::update_rule::builders::UpdateRuleFluentBuilder {
        crate::operation::update_rule::builders::UpdateRuleFluentBuilder::new(self.handle.clone())
    }
}