aws_sdk_cognitoidentityprovider/client/
admin_add_user_to_group.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 [`AdminAddUserToGroup`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_pool_id(impl Into<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::user_pool_id) / [`set_user_pool_id(Option<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::set_user_pool_id):<br>required: **true**<br><p>The ID of the user pool that contains the group that you want to add the user to.</p><br>
7    ///   - [`username(impl Into<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::username) / [`set_username(Option<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::set_username):<br>required: **true**<br><p>The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, this value must be the <code>sub</code> of a local user or the username of a user from a third-party IdP.</p><br>
8    ///   - [`group_name(impl Into<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::group_name) / [`set_group_name(Option<String>)`](crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::set_group_name):<br>required: **true**<br><p>The name of the group that you want to add your user to.</p><br>
9    /// - On success, responds with [`AdminAddUserToGroupOutput`](crate::operation::admin_add_user_to_group::AdminAddUserToGroupOutput)
10    /// - On failure, responds with [`SdkError<AdminAddUserToGroupError>`](crate::operation::admin_add_user_to_group::AdminAddUserToGroupError)
11    pub fn admin_add_user_to_group(&self) -> crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder {
12        crate::operation::admin_add_user_to_group::builders::AdminAddUserToGroupFluentBuilder::new(self.handle.clone())
13    }
14}