| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes
Description
Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.
For custom attributes, you must prepend the custom: prefix to the attribute name.
In addition to updating user attributes, this API can also be used to mark phone and email as verified.
Requires developer credentials.
- adminUpdateUserAttributes :: Text -> Text -> AdminUpdateUserAttributes
- data AdminUpdateUserAttributes
- auuaUserPoolId :: Lens' AdminUpdateUserAttributes Text
- auuaUsername :: Lens' AdminUpdateUserAttributes Text
- auuaUserAttributes :: Lens' AdminUpdateUserAttributes [AttributeType]
- adminUpdateUserAttributesResponse :: Int -> AdminUpdateUserAttributesResponse
- data AdminUpdateUserAttributesResponse
- auuarsResponseStatus :: Lens' AdminUpdateUserAttributesResponse Int
Creating a Request
adminUpdateUserAttributes Source #
Arguments
| :: Text | |
| -> Text | |
| -> AdminUpdateUserAttributes |
Creates a value of AdminUpdateUserAttributes with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
auuaUserPoolId- The user pool ID for the user pool where you want to update user attributes.auuaUsername- The user name of the user for whom you want to update user attributes.auuaUserAttributes- An array of name-value pairs representing user attributes. For custom attributes, you must prepend thecustom:prefix to the attribute name.
data AdminUpdateUserAttributes Source #
Represents the request to update the user's attributes as an administrator.
See: adminUpdateUserAttributes smart constructor.
Instances
Request Lenses
auuaUserPoolId :: Lens' AdminUpdateUserAttributes Text Source #
The user pool ID for the user pool where you want to update user attributes.
auuaUsername :: Lens' AdminUpdateUserAttributes Text Source #
The user name of the user for whom you want to update user attributes.
auuaUserAttributes :: Lens' AdminUpdateUserAttributes [AttributeType] Source #
An array of name-value pairs representing user attributes. For custom attributes, you must prepend the custom: prefix to the attribute name.
Destructuring the Response
adminUpdateUserAttributesResponse Source #
Arguments
| :: Int | |
| -> AdminUpdateUserAttributesResponse |
Creates a value of AdminUpdateUserAttributesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
auuarsResponseStatus- -- | The response status code.
data AdminUpdateUserAttributesResponse Source #
Represents the response from the server for the request to update user attributes as an administrator.
See: adminUpdateUserAttributesResponse smart constructor.
Instances
Response Lenses
auuarsResponseStatus :: Lens' AdminUpdateUserAttributesResponse Int Source #
- - | The response status code.