| 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.MemoryDb.CreateUser
Description
Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs).
Synopsis
- data CreateUser = CreateUser' {
- tags :: Maybe [Tag]
- userName :: Text
- authenticationMode :: AuthenticationMode
- accessString :: Text
- newCreateUser :: Text -> AuthenticationMode -> Text -> CreateUser
- createUser_tags :: Lens' CreateUser (Maybe [Tag])
- createUser_userName :: Lens' CreateUser Text
- createUser_authenticationMode :: Lens' CreateUser AuthenticationMode
- createUser_accessString :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_user :: Lens' CreateUserResponse (Maybe User)
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
See: newCreateUser smart constructor.
Constructors
| CreateUser' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> AuthenticationMode | |
| -> Text | |
| -> CreateUser |
Create a value of CreateUser 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:tags:CreateUser', createUser_tags - A list of tags to be added to this resource. A tag is a key-value pair.
A tag key must be accompanied by a tag value, although null is accepted.
$sel:userName:CreateUser', createUser_userName - The name of the user. This value must be unique as it also serves as the
user identifier.
$sel:authenticationMode:CreateUser', createUser_authenticationMode - Denotes the user's authentication properties, such as whether it
requires a password to authenticate.
CreateUser, createUser_accessString - Access permissions string used for this user.
Request Lenses
createUser_tags :: Lens' CreateUser (Maybe [Tag]) Source #
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
createUser_userName :: Lens' CreateUser Text Source #
The name of the user. This value must be unique as it also serves as the user identifier.
createUser_authenticationMode :: Lens' CreateUser AuthenticationMode Source #
Denotes the user's authentication properties, such as whether it requires a password to authenticate.
createUser_accessString :: Lens' CreateUser Text Source #
Access permissions string used for this user.
Destructuring the Response
data CreateUserResponse Source #
See: newCreateUserResponse smart constructor.
Constructors
| CreateUserResponse' | |
Fields
| |
Instances
newCreateUserResponse Source #
Arguments
| :: Int | |
| -> CreateUserResponse |
Create a value of CreateUserResponse 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:user:CreateUserResponse', createUserResponse_user - The newly-created user.
$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.
Response Lenses
createUserResponse_user :: Lens' CreateUserResponse (Maybe User) Source #
The newly-created user.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.