| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.AdminEnableUser
Description
Enables the specified user as an administrator. Works on any user.
Calling this action requires developer credentials.
Synopsis
- data AdminEnableUser = AdminEnableUser' {
- userPoolId :: Text
- username :: Sensitive Text
- newAdminEnableUser :: Text -> Text -> AdminEnableUser
- adminEnableUser_userPoolId :: Lens' AdminEnableUser Text
- adminEnableUser_username :: Lens' AdminEnableUser Text
- data AdminEnableUserResponse = AdminEnableUserResponse' {
- httpStatus :: Int
- newAdminEnableUserResponse :: Int -> AdminEnableUserResponse
- adminEnableUserResponse_httpStatus :: Lens' AdminEnableUserResponse Int
Creating a Request
data AdminEnableUser Source #
Represents the request that enables the user as an administrator.
See: newAdminEnableUser smart constructor.
Constructors
| AdminEnableUser' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AdminEnableUser |
Create a value of AdminEnableUser with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AdminEnableUser, adminEnableUser_userPoolId - The user pool ID for the user pool where you want to enable the user.
AdminEnableUser, adminEnableUser_username - The user name of the user you want to enable.
Request Lenses
adminEnableUser_userPoolId :: Lens' AdminEnableUser Text Source #
The user pool ID for the user pool where you want to enable the user.
adminEnableUser_username :: Lens' AdminEnableUser Text Source #
The user name of the user you want to enable.
Destructuring the Response
data AdminEnableUserResponse Source #
Represents the response from the server for the request to enable a user as an administrator.
See: newAdminEnableUserResponse smart constructor.
Constructors
| AdminEnableUserResponse' | |
Fields
| |
Instances
newAdminEnableUserResponse Source #
Create a value of AdminEnableUserResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AdminEnableUserResponse', adminEnableUserResponse_httpStatus - The response's http status code.
Response Lenses
adminEnableUserResponse_httpStatus :: Lens' AdminEnableUserResponse Int Source #
The response's http status code.