aws_sdk_inspector2/client/
disable_delegated_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 [`DisableDelegatedAdminAccount`](crate::operation::disable_delegated_admin_account::builders::DisableDelegatedAdminAccountFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`delegated_admin_account_id(impl Into<String>)`](crate::operation::disable_delegated_admin_account::builders::DisableDelegatedAdminAccountFluentBuilder::delegated_admin_account_id) / [`set_delegated_admin_account_id(Option<String>)`](crate::operation::disable_delegated_admin_account::builders::DisableDelegatedAdminAccountFluentBuilder::set_delegated_admin_account_id):<br>required: **true**<br><p>The Amazon Web Services account ID of the current Amazon Inspector delegated administrator.</p><br>
7    /// - On success, responds with [`DisableDelegatedAdminAccountOutput`](crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountOutput) with field(s):
8    ///   - [`delegated_admin_account_id(String)`](crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountOutput::delegated_admin_account_id): <p>The Amazon Web Services account ID of the successfully disabled delegated administrator.</p>
9    /// - On failure, responds with [`SdkError<DisableDelegatedAdminAccountError>`](crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError)
10    pub fn disable_delegated_admin_account(
11        &self,
12    ) -> crate::operation::disable_delegated_admin_account::builders::DisableDelegatedAdminAccountFluentBuilder {
13        crate::operation::disable_delegated_admin_account::builders::DisableDelegatedAdminAccountFluentBuilder::new(self.handle.clone())
14    }
15}