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 [`ListAutomationRules`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::set_next_token): <p> A token to specify where to start paginating the response. This is the <code>NextToken</code> from a previously truncated response. On your first call to the <code>ListAutomationRules</code> API, set the value of this parameter to <code>NULL</code>. </p>
    ///   - [`max_results(i32)`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::set_max_results): <p> The maximum number of rules to return in the response. This currently ranges from 1 to 100. </p>
    /// - On success, responds with [`ListAutomationRulesOutput`](crate::operation::list_automation_rules::ListAutomationRulesOutput) with field(s):
    ///   - [`automation_rules_metadata(Option<Vec<AutomationRulesMetadata>>)`](crate::operation::list_automation_rules::ListAutomationRulesOutput::automation_rules_metadata): <p> Metadata for rules in the calling account. The response includes rules with a <code>RuleStatus</code> of <code>ENABLED</code> and <code>DISABLED</code>. </p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_automation_rules::ListAutomationRulesOutput::next_token): <p> A pagination token for the response. </p>
    /// - On failure, responds with [`SdkError<ListAutomationRulesError>`](crate::operation::list_automation_rules::ListAutomationRulesError)
    pub fn list_automation_rules(&self) -> crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder {
        crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::new(self.handle.clone())
    }
}