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 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_storageRule :: Lens' CreateUser (Maybe StorageRuleType)
- createUser_emailAddress :: Lens' CreateUser (Maybe Text)
- createUser_timeZoneId :: Lens' CreateUser (Maybe Text)
- createUser_organizationId :: 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.
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:authenticationToken:CreateUser'
, createUser_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:storageRule:CreateUser'
, createUser_storageRule
- The amount of storage for the user.
$sel:emailAddress:CreateUser'
, createUser_emailAddress
- The email address of the user.
$sel:timeZoneId:CreateUser'
, createUser_timeZoneId
- The time zone ID of the user.
$sel:organizationId:CreateUser'
, createUser_organizationId
- The ID of the organization.
$sel:username:CreateUser'
, createUser_username
- The login name of the user.
$sel:givenName:CreateUser'
, createUser_givenName
- The given name of the user.
$sel:surname: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_storageRule :: Lens' CreateUser (Maybe StorageRuleType) Source #
The amount of storage for the user.
createUser_emailAddress :: Lens' CreateUser (Maybe Text) Source #
The email address of the user.
createUser_timeZoneId :: Lens' CreateUser (Maybe Text) Source #
The time zone ID of the user.
createUser_organizationId :: Lens' CreateUser (Maybe Text) Source #
The ID of the organization.
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.
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: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.