aws_sdk_securityhub/client/list_automation_rules.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListAutomationRules`](crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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):<br>required: **false**<br><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><br>
7 /// - [`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):<br>required: **false**<br><p>The maximum number of rules to return in the response. This currently ranges from 1 to 100.</p><br>
8 /// - On success, responds with [`ListAutomationRulesOutput`](crate::operation::list_automation_rules::ListAutomationRulesOutput) with field(s):
9 /// - [`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>
10 /// - [`next_token(Option<String>)`](crate::operation::list_automation_rules::ListAutomationRulesOutput::next_token): <p>A pagination token for the response.</p>
11 /// - On failure, responds with [`SdkError<ListAutomationRulesError>`](crate::operation::list_automation_rules::ListAutomationRulesError)
12 pub fn list_automation_rules(&self) -> crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder {
13 crate::operation::list_automation_rules::builders::ListAutomationRulesFluentBuilder::new(self.handle.clone())
14 }
15}