aws_sdk_cognitoidentityprovider/client/delete_user_attributes.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 [`DeleteUserAttributes`](crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`user_attribute_names(impl Into<String>)`](crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder::user_attribute_names) / [`set_user_attribute_names(Option<Vec::<String>>)`](crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder::set_user_attribute_names):<br>required: **true**<br><p>An array of strings representing the user attribute names you want to delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name, for example <code>custom:department</code>.</p><br>
7 /// - [`access_token(impl Into<String>)`](crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder::set_access_token):<br>required: **true**<br><p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for <code>aws.cognito.signin.user.admin</code>.</p><br>
8 /// - On success, responds with [`DeleteUserAttributesOutput`](crate::operation::delete_user_attributes::DeleteUserAttributesOutput)
9 /// - On failure, responds with [`SdkError<DeleteUserAttributesError>`](crate::operation::delete_user_attributes::DeleteUserAttributesError)
10 pub fn delete_user_attributes(&self) -> crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder {
11 crate::operation::delete_user_attributes::builders::DeleteUserAttributesFluentBuilder::new(self.handle.clone())
12 }
13}