| 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.AlexaBusiness.CreateUser
Description
Creates a user.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> CreateUser
- createUser_clientRequestToken :: Lens' CreateUser (Maybe Text)
- createUser_email :: Lens' CreateUser (Maybe Text)
- createUser_firstName :: Lens' CreateUser (Maybe Text)
- createUser_lastName :: Lens' CreateUser (Maybe Text)
- createUser_tags :: Lens' CreateUser (Maybe [Tag])
- createUser_userId :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- userArn :: Maybe Text
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_userArn :: Lens' CreateUserResponse (Maybe Text)
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
See: newCreateUser smart constructor.
Constructors
| CreateUser' | |
Fields
| |
Instances
Arguments
| :: 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:clientRequestToken:CreateUser', createUser_clientRequestToken - A unique, user-specified identifier for this request that ensures
idempotency.
CreateUser, createUser_email - The email address for the user.
CreateUser, createUser_firstName - The first name for the user.
CreateUser, createUser_lastName - The last name for the user.
$sel:tags:CreateUser', createUser_tags - The tags for the user.
$sel:userId:CreateUser', createUser_userId - The ARN for the user.
Request Lenses
createUser_clientRequestToken :: Lens' CreateUser (Maybe Text) Source #
A unique, user-specified identifier for this request that ensures idempotency.
createUser_email :: Lens' CreateUser (Maybe Text) Source #
The email address for the user.
createUser_firstName :: Lens' CreateUser (Maybe Text) Source #
The first name for the user.
createUser_lastName :: Lens' CreateUser (Maybe Text) Source #
The last name for the user.
createUser_tags :: Lens' CreateUser (Maybe [Tag]) Source #
The tags for the user.
createUser_userId :: Lens' CreateUser Text Source #
The ARN for the 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:
CreateUserResponse, createUserResponse_userArn - The ARN of the newly created user in the response.
$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.
Response Lenses
createUserResponse_userArn :: Lens' CreateUserResponse (Maybe Text) Source #
The ARN of the newly created user in the response.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.