aws_sdk_workdocs/client/
delete_user.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 [`DeleteUser`](crate::operation::delete_user::builders::DeleteUserFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`authentication_token(impl Into<String>)`](crate::operation::delete_user::builders::DeleteUserFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::delete_user::builders::DeleteUserFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using Amazon Web Services credentials.</p><br>
7    ///   - [`user_id(impl Into<String>)`](crate::operation::delete_user::builders::DeleteUserFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::delete_user::builders::DeleteUserFluentBuilder::set_user_id):<br>required: **true**<br><p>The ID of the user.</p><br>
8    /// - On success, responds with [`DeleteUserOutput`](crate::operation::delete_user::DeleteUserOutput)
9    /// - On failure, responds with [`SdkError<DeleteUserError>`](crate::operation::delete_user::DeleteUserError)
10    pub fn delete_user(&self) -> crate::operation::delete_user::builders::DeleteUserFluentBuilder {
11        crate::operation::delete_user::builders::DeleteUserFluentBuilder::new(self.handle.clone())
12    }
13}