aws_sdk_wickr/client/
batch_create_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 [`BatchCreateUser`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_id(impl Into<String>)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::network_id) / [`set_network_id(Option<String>)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::set_network_id):<br>required: **true**<br><p>The ID of the Wickr network where users will be created.</p><br>
7    ///   - [`users(BatchCreateUserRequestItem)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::users) / [`set_users(Option<Vec::<BatchCreateUserRequestItem>>)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::set_users):<br>required: **true**<br><p>A list of user objects containing the details for each user to be created, including username, name, security groups, and optional invite codes. Maximum 50 users per batch request.</p><br>
8    ///   - [`client_token(impl Into<String>)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique identifier for this request to ensure idempotency. If you retry a request with the same client token, the service will return the same response without creating duplicate users.</p><br>
9    /// - On success, responds with [`BatchCreateUserOutput`](crate::operation::batch_create_user::BatchCreateUserOutput) with field(s):
10    ///   - [`message(Option<String>)`](crate::operation::batch_create_user::BatchCreateUserOutput::message): <p>A message indicating the overall result of the batch operation.</p>
11    ///   - [`successful(Option<Vec::<User>>)`](crate::operation::batch_create_user::BatchCreateUserOutput::successful): <p>A list of user objects that were successfully created, including their assigned user IDs and invite codes.</p>
12    ///   - [`failed(Option<Vec::<BatchUserErrorResponseItem>>)`](crate::operation::batch_create_user::BatchCreateUserOutput::failed): <p>A list of user creation attempts that failed, including error details explaining why each user could not be created.</p>
13    /// - On failure, responds with [`SdkError<BatchCreateUserError>`](crate::operation::batch_create_user::BatchCreateUserError)
14    pub fn batch_create_user(&self) -> crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder {
15        crate::operation::batch_create_user::builders::BatchCreateUserFluentBuilder::new(self.handle.clone())
16    }
17}