aws_sdk_networksecuritymanager/client/get_admin_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 [`GetAdminAccount`](crate::operation::get_admin_account::builders::GetAdminAccountFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`account_id(impl Into<String>)`](crate::operation::get_admin_account::builders::GetAdminAccountFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::get_admin_account::builders::GetAdminAccountFluentBuilder::set_account_id):<br>required: **true**<br><p>The AWS account ID of the administrator account to retrieve.</p><br>
7 /// - On success, responds with [`GetAdminAccountOutput`](crate::operation::get_admin_account::GetAdminAccountOutput) with field(s):
8 /// - [`admin_account_details(Option<AdminAccountDetails>)`](crate::operation::get_admin_account::GetAdminAccountOutput::admin_account_details): <p>The details of the administrator account.</p>
9 /// - On failure, responds with [`SdkError<GetAdminAccountError>`](crate::operation::get_admin_account::GetAdminAccountError)
10 pub fn get_admin_account(&self) -> crate::operation::get_admin_account::builders::GetAdminAccountFluentBuilder {
11 crate::operation::get_admin_account::builders::GetAdminAccountFluentBuilder::new(self.handle.clone())
12 }
13}