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.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> CreateUser
- createUser_email :: Lens' CreateUser (Maybe Text)
- createUser_lastName :: Lens' CreateUser (Maybe Text)
- createUser_firstName :: Lens' CreateUser (Maybe Text)
- createUser_clientRequestToken :: Lens' CreateUser (Maybe Text)
- createUser_tags :: Lens' CreateUser (Maybe [Tag])
- createUser_userId :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- userArn :: Maybe Text
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_userArn :: Lens' CreateUserResponse (Maybe Text)
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
See: newCreateUser
smart constructor.
CreateUser' | |
|
Instances
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:email:CreateUser'
, createUser_email
- The email address for the user.
$sel:lastName:CreateUser'
, createUser_lastName
- The last name for the user.
$sel:firstName:CreateUser'
, createUser_firstName
- The first name for the user.
$sel:clientRequestToken:CreateUser'
, createUser_clientRequestToken
- A unique, user-specified identifier for this request that ensures
idempotency.
$sel:tags:CreateUser'
, createUser_tags
- The tags for the user.
$sel:userId:CreateUser'
, createUser_userId
- The ARN for the user.
Request Lenses
createUser_email :: Lens' CreateUser (Maybe Text) Source #
The email address for the user.
createUser_lastName :: Lens' CreateUser (Maybe Text) Source #
The last name for the user.
createUser_firstName :: Lens' CreateUser (Maybe Text) Source #
The first name for the user.
createUser_clientRequestToken :: Lens' CreateUser (Maybe Text) Source #
A unique, user-specified identifier for this request that ensures idempotency.
createUser_tags :: Lens' CreateUser (Maybe [Tag]) Source #
The tags for the user.
createUser_userId :: Lens' CreateUser Text Source #
The ARN for 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:userArn:CreateUserResponse'
, createUserResponse_userArn
- The ARN of the newly created user in the response.
$sel:httpStatus:CreateUserResponse'
, createUserResponse_httpStatus
- The response's http status code.
Response Lenses
createUserResponse_userArn :: Lens' CreateUserResponse (Maybe Text) Source #
The ARN of the newly created user in the response.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.