| 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.WorkDocs.CreateUser
Description
Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> Text -> Text -> Text -> CreateUser
- createUser_authenticationToken :: Lens' CreateUser (Maybe Text)
- createUser_emailAddress :: Lens' CreateUser (Maybe Text)
- createUser_organizationId :: Lens' CreateUser (Maybe Text)
- createUser_storageRule :: Lens' CreateUser (Maybe StorageRuleType)
- createUser_timeZoneId :: Lens' CreateUser (Maybe Text)
- createUser_username :: Lens' CreateUser Text
- createUser_givenName :: Lens' CreateUser Text
- createUser_surname :: Lens' CreateUser Text
- createUser_password :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_user :: Lens' CreateUserResponse (Maybe User)
- 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:
$sel:authenticationToken:CreateUser', createUser_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
CreateUser, createUser_emailAddress - The email address of the user.
CreateUser, createUser_organizationId - The ID of the organization.
CreateUser, createUser_storageRule - The amount of storage for the user.
CreateUser, createUser_timeZoneId - The time zone ID of the user.
CreateUser, createUser_username - The login name of the user.
CreateUser, createUser_givenName - The given name of the user.
CreateUser, createUser_surname - The surname of the user.
$sel:password:CreateUser', createUser_password - The password of the user.
Request Lenses
createUser_authenticationToken :: Lens' CreateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
createUser_emailAddress :: Lens' CreateUser (Maybe Text) Source #
The email address of the user.
createUser_organizationId :: Lens' CreateUser (Maybe Text) Source #
The ID of the organization.
createUser_storageRule :: Lens' CreateUser (Maybe StorageRuleType) Source #
The amount of storage for the user.
createUser_timeZoneId :: Lens' CreateUser (Maybe Text) Source #
The time zone ID of the user.
createUser_username :: Lens' CreateUser Text Source #
The login name of the user.
createUser_givenName :: Lens' CreateUser Text Source #
The given name of the user.
createUser_surname :: Lens' CreateUser Text Source #
The surname of the user.
createUser_password :: Lens' CreateUser Text Source #
The password of 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:
$sel:user:CreateUserResponse', createUserResponse_user - The user information.
$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.
Response Lenses
createUserResponse_user :: Lens' CreateUserResponse (Maybe User) Source #
The user information.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.