1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateUser`](crate::operation::create_user::builders::CreateUserFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`collection_id(impl Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::collection_id) / [`set_collection_id(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_collection_id):<br>required: **true**<br><p>The ID of an existing collection to which the new UserID needs to be created.</p><br>
    ///   - [`user_id(impl Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_user_id):<br>required: **true**<br><p>ID for the UserID to be created. This ID needs to be unique within the collection.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_client_request_token):<br>required: **false**<br><p>Idempotent token used to identify the request to <code>CreateUser</code>. If you use the same token with multiple <code>CreateUser</code> requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.</p><br>
    /// - On success, responds with [`CreateUserOutput`](crate::operation::create_user::CreateUserOutput)
    /// - On failure, responds with [`SdkError<CreateUserError>`](crate::operation::create_user::CreateUserError)
    pub fn create_user(&self) -> crate::operation::create_user::builders::CreateUserFluentBuilder {
        crate::operation::create_user::builders::CreateUserFluentBuilder::new(self.handle.clone())
    }
}