| 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.WorkMail.CreateUser
Description
Creates a user who can be used in WorkMail by calling the RegisterToWorkMail operation.
Synopsis
- data CreateUser = CreateUser' {
- organizationId :: Text
- name :: Text
- displayName :: Text
- password :: Sensitive Text
- newCreateUser :: Text -> Text -> Text -> Text -> CreateUser
- createUser_organizationId :: Lens' CreateUser Text
- createUser_name :: Lens' CreateUser Text
- createUser_displayName :: Lens' CreateUser Text
- createUser_password :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- userId :: Maybe Text
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_userId :: 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 | |
| -> Text | |
| -> Text | |
| -> 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:
CreateUser, createUser_organizationId - The identifier of the organization for which the user is created.
CreateUser, createUser_name - The name for the new user. WorkMail directory user names have a maximum
length of 64. All others have a maximum length of 20.
CreateUser, createUser_displayName - The display name for the new user.
$sel:password:CreateUser', createUser_password - The password for the new user.
Request Lenses
createUser_organizationId :: Lens' CreateUser Text Source #
The identifier of the organization for which the user is created.
createUser_name :: Lens' CreateUser Text Source #
The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
createUser_displayName :: Lens' CreateUser Text Source #
The display name for the new user.
createUser_password :: Lens' CreateUser Text Source #
The password for the new 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_userId - The identifier for the new user.
$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.
Response Lenses
createUserResponse_userId :: Lens' CreateUserResponse (Maybe Text) Source #
The identifier for the new user.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.