aws_sdk_accessanalyzer/client/create_analyzer.rs
// 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 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>
/// - [`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. Only <code>ACCOUNT</code>, <code>ORGANIZATION</code>, <code>ACCOUNT_UNUSED_ACCESS</code>, and <code>ORGANIZATION_UNUSED_ACCESS</code> 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><br>
/// - [`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>
/// - [`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>
/// - [`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>
/// - [`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.</p><br>
/// - 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())
}
}