Copyright | (c) 2013-2021 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 |
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.
AdminEnableUser' | |
|
Instances
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:
$sel:userPoolId:AdminEnableUser'
, adminEnableUser_userPoolId
- The user pool ID for the user pool where you want to enable the user.
$sel:username:AdminEnableUser'
, adminEnableUser_username
- The user name of the user you wish 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 wish 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.
AdminEnableUserResponse' | |
|
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.