1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAnalyzer`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`analyzer_name(impl ::std::convert::Into<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::analyzer_name) / [`set_analyzer_name(Option<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_analyzer_name): <p>The name of the analyzer to create.</p>
    ///   - [`r#type(Type)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::type) / [`set_type(Option<Type>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_type): <p>The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.</p>
    ///   - [`archive_rules(Vec<InlineArchiveRule>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::archive_rules) / [`set_archive_rules(Option<Vec<InlineArchiveRule>>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_archive_rules): <p>Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.</p>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_tags): <p>The tags to apply to the analyzer.</p>
    ///   - [`client_token(impl ::std::convert::Into<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_client_token): <p>A client token.</p>
    /// - On success, responds with [`CreateAnalyzerOutput`](crate::operation::create_analyzer::CreateAnalyzerOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::create_analyzer::CreateAnalyzerOutput::arn): <p>The ARN of the analyzer that was created by the request.</p>
    /// - On failure, responds with [`SdkError<CreateAnalyzerError>`](crate::operation::create_analyzer::CreateAnalyzerError)
    pub fn create_analyzer(
        &self,
    ) -> crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder {
        crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::new(
            self.handle.clone(),
        )
    }
}