aws_sdk_accessanalyzer/client/list_archive_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 [`ListArchiveRules`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`analyzer_name(impl Into<String>)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::analyzer_name) / [`set_analyzer_name(Option<String>)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::set_analyzer_name):<br>required: **true**<br><p>The name of the analyzer to retrieve rules from.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::set_next_token):<br>required: **false**<br><p>A token used for pagination of results returned.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in the request.</p><br>
10 /// - On success, responds with [`ListArchiveRulesOutput`](crate::operation::list_archive_rules::ListArchiveRulesOutput) with field(s):
11 /// - [`archive_rules(Vec::<ArchiveRuleSummary>)`](crate::operation::list_archive_rules::ListArchiveRulesOutput::archive_rules): <p>A list of archive rules created for the specified analyzer.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_archive_rules::ListArchiveRulesOutput::next_token): <p>A token used for pagination of results returned.</p>
13 /// - On failure, responds with [`SdkError<ListArchiveRulesError>`](crate::operation::list_archive_rules::ListArchiveRulesError)
14 pub fn list_archive_rules(&self) -> crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder {
15 crate::operation::list_archive_rules::builders::ListArchiveRulesFluentBuilder::new(self.handle.clone())
16 }
17}