| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.WorkMail.CreateUser
Description
Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
Synopsis
- createUser :: Text -> Text -> Text -> Text -> CreateUser
- data CreateUser
- cuOrganizationId :: Lens' CreateUser Text
- cuName :: Lens' CreateUser Text
- cuDisplayName :: Lens' CreateUser Text
- cuPassword :: Lens' CreateUser Text
- createUserResponse :: Int -> CreateUserResponse
- data CreateUserResponse
- cursUserId :: Lens' CreateUserResponse (Maybe Text)
- cursResponseStatus :: Lens' CreateUserResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> CreateUser |
Creates a value of CreateUser with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cuOrganizationId- The identifier of the organization for which the user is created.cuName- The name for the user to be created.cuDisplayName- The display name for the user to be created.cuPassword- The password for the user to be created.
data CreateUser Source #
See: createUser smart constructor.
Instances
Request Lenses
cuOrganizationId :: Lens' CreateUser Text Source #
The identifier of the organization for which the user is created.
cuDisplayName :: Lens' CreateUser Text Source #
The display name for the user to be created.
cuPassword :: Lens' CreateUser Text Source #
The password for the user to be created.
Destructuring the Response
Arguments
| :: Int | |
| -> CreateUserResponse |
Creates a value of CreateUserResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cursUserId- The information regarding the newly created user.cursResponseStatus- -- | The response status code.
data CreateUserResponse Source #
See: createUserResponse smart constructor.
Instances
Response Lenses
cursUserId :: Lens' CreateUserResponse (Maybe Text) Source #
The information regarding the newly created user.
cursResponseStatus :: Lens' CreateUserResponse Int Source #
- - | The response status code.