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 |
Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
- 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
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.
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
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.
Response Lenses
cursUserId :: Lens' CreateUserResponse (Maybe Text) Source #
The information regarding the newly created user.
cursResponseStatus :: Lens' CreateUserResponse Int Source #
- - | The response status code.