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 |
Registers an existing and disabled user, group, or resource for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing. The equivalent console functionality for this operation is Enable.
Users can either be created by calling the CreateUser API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.
Synopsis
- data RegisterToWorkMail = RegisterToWorkMail' {}
- newRegisterToWorkMail :: Text -> Text -> Text -> RegisterToWorkMail
- registerToWorkMail_organizationId :: Lens' RegisterToWorkMail Text
- registerToWorkMail_entityId :: Lens' RegisterToWorkMail Text
- registerToWorkMail_email :: Lens' RegisterToWorkMail Text
- data RegisterToWorkMailResponse = RegisterToWorkMailResponse' {
- httpStatus :: Int
- newRegisterToWorkMailResponse :: Int -> RegisterToWorkMailResponse
- registerToWorkMailResponse_httpStatus :: Lens' RegisterToWorkMailResponse Int
Creating a Request
data RegisterToWorkMail Source #
See: newRegisterToWorkMail
smart constructor.
Instances
newRegisterToWorkMail Source #
:: Text | |
-> Text | |
-> Text | |
-> RegisterToWorkMail |
Create a value of RegisterToWorkMail
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:organizationId:RegisterToWorkMail'
, registerToWorkMail_organizationId
- The identifier for the organization under which the user, group, or
resource exists.
$sel:entityId:RegisterToWorkMail'
, registerToWorkMail_entityId
- The identifier for the user, group, or resource to be updated.
$sel:email:RegisterToWorkMail'
, registerToWorkMail_email
- The email for the user, group, or resource to be updated.
Request Lenses
registerToWorkMail_organizationId :: Lens' RegisterToWorkMail Text Source #
The identifier for the organization under which the user, group, or resource exists.
registerToWorkMail_entityId :: Lens' RegisterToWorkMail Text Source #
The identifier for the user, group, or resource to be updated.
registerToWorkMail_email :: Lens' RegisterToWorkMail Text Source #
The email for the user, group, or resource to be updated.
Destructuring the Response
data RegisterToWorkMailResponse Source #
See: newRegisterToWorkMailResponse
smart constructor.
RegisterToWorkMailResponse' | |
|
Instances
newRegisterToWorkMailResponse Source #
Create a value of RegisterToWorkMailResponse
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:httpStatus:RegisterToWorkMailResponse'
, registerToWorkMailResponse_httpStatus
- The response's http status code.
Response Lenses
registerToWorkMailResponse_httpStatus :: Lens' RegisterToWorkMailResponse Int Source #
The response's http status code.