aws_sdk_auditmanager/client/register_account.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 [`RegisterAccount`](crate::operation::register_account::builders::RegisterAccountFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`kms_key(impl Into<String>)`](crate::operation::register_account::builders::RegisterAccountFluentBuilder::kms_key) / [`set_kms_key(Option<String>)`](crate::operation::register_account::builders::RegisterAccountFluentBuilder::set_kms_key):<br>required: **false**<br><p>The KMS key details.</p><br>
7 /// - [`delegated_admin_account(impl Into<String>)`](crate::operation::register_account::builders::RegisterAccountFluentBuilder::delegated_admin_account) / [`set_delegated_admin_account(Option<String>)`](crate::operation::register_account::builders::RegisterAccountFluentBuilder::set_delegated_admin_account):<br>required: **false**<br><p>The delegated administrator account for Audit Manager.</p><br>
8 /// - On success, responds with [`RegisterAccountOutput`](crate::operation::register_account::RegisterAccountOutput) with field(s):
9 /// - [`status(Option<AccountStatus>)`](crate::operation::register_account::RegisterAccountOutput::status): <p>The status of the account registration request.</p>
10 /// - On failure, responds with [`SdkError<RegisterAccountError>`](crate::operation::register_account::RegisterAccountError)
11 pub fn register_account(&self) -> crate::operation::register_account::builders::RegisterAccountFluentBuilder {
12 crate::operation::register_account::builders::RegisterAccountFluentBuilder::new(self.handle.clone())
13 }
14}