aws_sdk_chime/client/
batch_suspend_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 [`BatchSuspendUser`](crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder::set_account_id):<br>required: **true**<br><p>The Amazon Chime account ID.</p><br>
7    ///   - [`user_id_list(impl Into<String>)`](crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder::user_id_list) / [`set_user_id_list(Option<Vec::<String>>)`](crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder::set_user_id_list):<br>required: **true**<br><p>The request containing the user IDs to suspend.</p><br>
8    /// - On success, responds with [`BatchSuspendUserOutput`](crate::operation::batch_suspend_user::BatchSuspendUserOutput) with field(s):
9    ///   - [`user_errors(Option<Vec::<UserError>>)`](crate::operation::batch_suspend_user::BatchSuspendUserOutput::user_errors): <p>If the <code>BatchSuspendUser</code> action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages.</p>
10    /// - On failure, responds with [`SdkError<BatchSuspendUserError>`](crate::operation::batch_suspend_user::BatchSuspendUserError)
11    pub fn batch_suspend_user(&self) -> crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder {
12        crate::operation::batch_suspend_user::builders::BatchSuspendUserFluentBuilder::new(self.handle.clone())
13    }
14}