Copyright | (c) 2013-2017 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 in a Simple AD or Microsoft AD directory. The status of a newly created user is ACTIVE. New users can access Amazon WorkDocs.
- 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
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. This field should not be set 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.
Request Lenses
cuAuthenticationToken :: Lens' CreateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. This field should not be set 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
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.
Response Lenses
cursResponseStatus :: Lens' CreateUserResponse Int Source #
- - | The response status code.