aws_sdk_waf/client/
get_rate_based_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 [`GetRateBasedRule`](crate::operation::get_rate_based_rule::builders::GetRateBasedRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`rule_id(impl Into<String>)`](crate::operation::get_rate_based_rule::builders::GetRateBasedRuleFluentBuilder::rule_id) / [`set_rule_id(Option<String>)`](crate::operation::get_rate_based_rule::builders::GetRateBasedRuleFluentBuilder::set_rule_id):<br>required: **true**<br><p>The <code>RuleId</code> of the <code>RateBasedRule</code> that you want to get. <code>RuleId</code> is returned by <code>CreateRateBasedRule</code> and by <code>ListRateBasedRules</code>.</p><br>
    /// - On success, responds with [`GetRateBasedRuleOutput`](crate::operation::get_rate_based_rule::GetRateBasedRuleOutput) with field(s):
    ///   - [`rule(Option<RateBasedRule>)`](crate::operation::get_rate_based_rule::GetRateBasedRuleOutput::rule): <p>Information about the <code>RateBasedRule</code> that you specified in the <code>GetRateBasedRule</code> request.</p>
    /// - On failure, responds with [`SdkError<GetRateBasedRuleError>`](crate::operation::get_rate_based_rule::GetRateBasedRuleError)
    pub fn get_rate_based_rule(&self) -> crate::operation::get_rate_based_rule::builders::GetRateBasedRuleFluentBuilder {
        crate::operation::get_rate_based_rule::builders::GetRateBasedRuleFluentBuilder::new(self.handle.clone())
    }
}