aws_sdk_securityhub/client/list_automation_rules_v2.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 [`ListAutomationRulesV2`](crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`next_token(impl Into<String>)`](crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder::set_next_token):<br>required: **false**<br><p>The token required for pagination. On your first call, set the value of this parameter to <code>NULL</code>. For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.</p><br>
7 /// - [`max_results(i32)`](crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return.</p><br>
8 /// - On success, responds with [`ListAutomationRulesV2Output`](crate::operation::list_automation_rules_v2::ListAutomationRulesV2Output) with field(s):
9 /// - [`rules(Option<Vec::<AutomationRulesMetadataV2>>)`](crate::operation::list_automation_rules_v2::ListAutomationRulesV2Output::rules): <p>An array of automation rules.</p>
10 /// - [`next_token(Option<String>)`](crate::operation::list_automation_rules_v2::ListAutomationRulesV2Output::next_token): <p>The pagination token to use to request the next page of results. Otherwise, this parameter is null.</p>
11 /// - On failure, responds with [`SdkError<ListAutomationRulesV2Error>`](crate::operation::list_automation_rules_v2::ListAutomationRulesV2Error)
12 pub fn list_automation_rules_v2(&self) -> crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder {
13 crate::operation::list_automation_rules_v2::builders::ListAutomationRulesV2FluentBuilder::new(self.handle.clone())
14 }
15}