| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <[email protected]> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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
- createUser :: Text -> Text -> Text -> Text -> CreateUser
- data CreateUser
- cuAuthenticationToken :: Lens' CreateUser (Maybe Text)
- cuStorageRule :: Lens' CreateUser (Maybe StorageRuleType)
- cuEmailAddress :: Lens' CreateUser (Maybe Text)
- cuTimeZoneId :: Lens' CreateUser (Maybe Text)
- cuOrganizationId :: Lens' CreateUser (Maybe Text)
- cuUsername :: Lens' CreateUser Text
- cuGivenName :: Lens' CreateUser Text
- cuSurname :: Lens' CreateUser Text
- cuPassword :: Lens' CreateUser Text
- createUserResponse :: Int -> CreateUserResponse
- data CreateUserResponse
- cursUser :: Lens' CreateUserResponse (Maybe User)
- 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:
cuAuthenticationToken- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.cuStorageRule- The amount of storage for the user.cuEmailAddress- The email address of the user.cuTimeZoneId- The time zone ID of the user.cuOrganizationId- The ID of the organization.cuUsername- The login name of the user.cuGivenName- The given name of the user.cuSurname- The surname of the user.cuPassword- The password of the user.
data CreateUser Source #
See: createUser smart constructor.
Instances
Request Lenses
cuAuthenticationToken :: Lens' CreateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
cuStorageRule :: Lens' CreateUser (Maybe StorageRuleType) Source #
The amount of storage for the user.
cuEmailAddress :: Lens' CreateUser (Maybe Text) Source #
The email address of the user.
cuTimeZoneId :: Lens' CreateUser (Maybe Text) Source #
The time zone ID of the user.
cuOrganizationId :: Lens' CreateUser (Maybe Text) Source #
The ID of the organization.
cuUsername :: Lens' CreateUser Text Source #
The login name of the user.
cuGivenName :: Lens' CreateUser Text Source #
The given name of the user.
cuPassword :: Lens' CreateUser Text Source #
The password of the user.
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:
cursUser- The user information.cursResponseStatus- -- | The response status code.
data CreateUserResponse Source #
See: createUserResponse smart constructor.
Instances
Response Lenses
cursResponseStatus :: Lens' CreateUserResponse Int Source #
- - | The response status code.