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 |
Creates a user who can be used in Amazon 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.
CreateUser' | |
|
Instances
:: 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:
$sel:organizationId:CreateUser'
, createUser_organizationId
- The identifier of the organization for which the user is created.
$sel:name: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.
$sel:displayName: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.
CreateUserResponse' | |
|
Instances
newCreateUserResponse Source #
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:userId: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.