aws_sdk_accessanalyzer/client/get_archive_rule.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 [`GetArchiveRule`](crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`analyzer_name(impl Into<String>)`](crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder::analyzer_name) / [`set_analyzer_name(Option<String>)`](crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder::set_analyzer_name):<br>required: **true**<br><p>The name of the analyzer to retrieve rules from.</p><br>
7 /// - [`rule_name(impl Into<String>)`](crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder::rule_name) / [`set_rule_name(Option<String>)`](crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder::set_rule_name):<br>required: **true**<br><p>The name of the rule to retrieve.</p><br>
8 /// - On success, responds with [`GetArchiveRuleOutput`](crate::operation::get_archive_rule::GetArchiveRuleOutput) with field(s):
9 /// - [`archive_rule(Option<ArchiveRuleSummary>)`](crate::operation::get_archive_rule::GetArchiveRuleOutput::archive_rule): <p>Contains information about an archive rule. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.</p>
10 /// - On failure, responds with [`SdkError<GetArchiveRuleError>`](crate::operation::get_archive_rule::GetArchiveRuleError)
11 pub fn get_archive_rule(&self) -> crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder {
12 crate::operation::get_archive_rule::builders::GetArchiveRuleFluentBuilder::new(self.handle.clone())
13 }
14}