aws_sdk_accessanalyzer/client/
create_analyzer.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 [`CreateAnalyzer`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`analyzer_name(impl Into<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::analyzer_name) / [`set_analyzer_name(Option<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_analyzer_name):<br>required: **true**<br><p>The name of the analyzer to create.</p><br>
7    ///   - [`r#type(Type)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::type) / [`set_type(Option<Type>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_type):<br>required: **true**<br><p>The type of analyzer to create. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.</p><br>
8    ///   - [`archive_rules(InlineArchiveRule)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::archive_rules) / [`set_archive_rules(Option<Vec::<InlineArchiveRule>>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_archive_rules):<br>required: **false**<br><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><br>
9    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_tags):<br>required: **false**<br><p>An array of key-value pairs to apply to the analyzer. You can use the set of Unicode letters, digits, whitespace, <code>_</code>, <code>.</code>, <code>/</code>, <code>=</code>, <code>+</code>, and <code>-</code>.</p> <p>For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with <code>aws:</code>.</p> <p>For the tag value, you can specify a value that is 0 to 256 characters in length.</p><br>
10    ///   - [`client_token(impl Into<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_client_token):<br>required: **false**<br><p>A client token.</p><br>
11    ///   - [`configuration(AnalyzerConfiguration)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::configuration) / [`set_configuration(Option<AnalyzerConfiguration>)`](crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::set_configuration):<br>required: **false**<br><p>Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an internal access analyzer, the specified internal access analysis rules are used for the configuration.</p><br>
12    /// - On success, responds with [`CreateAnalyzerOutput`](crate::operation::create_analyzer::CreateAnalyzerOutput) with field(s):
13    ///   - [`arn(Option<String>)`](crate::operation::create_analyzer::CreateAnalyzerOutput::arn): <p>The ARN of the analyzer that was created by the request.</p>
14    /// - On failure, responds with [`SdkError<CreateAnalyzerError>`](crate::operation::create_analyzer::CreateAnalyzerError)
15    pub fn create_analyzer(&self) -> crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder {
16        crate::operation::create_analyzer::builders::CreateAnalyzerFluentBuilder::new(self.handle.clone())
17    }
18}