aws_sdk_wafregional/client/
get_rule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetRule`](crate::operation::get_rule::builders::GetRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`rule_id(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::rule_id) / [`set_rule_id(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_rule_id):<br>required: **true**<br><p>The <code>RuleId</code> of the <code>Rule</code> that you want to get. <code>RuleId</code> is returned by <code>CreateRule</code> and by <code>ListRules</code>.</p><br>
    /// - On success, responds with [`GetRuleOutput`](crate::operation::get_rule::GetRuleOutput) with field(s):
    ///   - [`rule(Option<Rule>)`](crate::operation::get_rule::GetRuleOutput::rule): <p>Information about the <code>Rule</code> that you specified in the <code>GetRule</code> request. For more information, see the following topics:</p> <ul>  <li>   <p><code>Rule</code>: Contains <code>MetricName</code>, <code>Name</code>, an array of <code>Predicate</code> objects, and <code>RuleId</code></p></li>  <li>   <p><code>Predicate</code>: Each <code>Predicate</code> object contains <code>DataId</code>, <code>Negated</code>, and <code>Type</code></p></li> </ul>
    /// - On failure, responds with [`SdkError<GetRuleError>`](crate::operation::get_rule::GetRuleError)
    pub fn get_rule(&self) -> crate::operation::get_rule::builders::GetRuleFluentBuilder {
        crate::operation::get_rule::builders::GetRuleFluentBuilder::new(self.handle.clone())
    }
}