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 |
Deletes an Amazon WorkMail organization and all underlying AWS resources managed by Amazon WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see Removing an organization in the Amazon WorkMail Administrator Guide.
Synopsis
- data DeleteOrganization = DeleteOrganization' {}
- newDeleteOrganization :: Text -> Bool -> DeleteOrganization
- deleteOrganization_clientToken :: Lens' DeleteOrganization (Maybe Text)
- deleteOrganization_organizationId :: Lens' DeleteOrganization Text
- deleteOrganization_deleteDirectory :: Lens' DeleteOrganization Bool
- data DeleteOrganizationResponse = DeleteOrganizationResponse' {
- state :: Maybe Text
- organizationId :: Maybe Text
- httpStatus :: Int
- newDeleteOrganizationResponse :: Int -> DeleteOrganizationResponse
- deleteOrganizationResponse_state :: Lens' DeleteOrganizationResponse (Maybe Text)
- deleteOrganizationResponse_organizationId :: Lens' DeleteOrganizationResponse (Maybe Text)
- deleteOrganizationResponse_httpStatus :: Lens' DeleteOrganizationResponse Int
Creating a Request
data DeleteOrganization Source #
See: newDeleteOrganization
smart constructor.
DeleteOrganization' | |
|
Instances
newDeleteOrganization Source #
:: Text | |
-> Bool | |
-> DeleteOrganization |
Create a value of DeleteOrganization
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:clientToken:DeleteOrganization'
, deleteOrganization_clientToken
- The idempotency token associated with the request.
$sel:organizationId:DeleteOrganization'
, deleteOrganization_organizationId
- The organization ID.
$sel:deleteDirectory:DeleteOrganization'
, deleteOrganization_deleteDirectory
- If true, deletes the AWS Directory Service directory associated with the
organization.
Request Lenses
deleteOrganization_clientToken :: Lens' DeleteOrganization (Maybe Text) Source #
The idempotency token associated with the request.
deleteOrganization_organizationId :: Lens' DeleteOrganization Text Source #
The organization ID.
deleteOrganization_deleteDirectory :: Lens' DeleteOrganization Bool Source #
If true, deletes the AWS Directory Service directory associated with the organization.
Destructuring the Response
data DeleteOrganizationResponse Source #
See: newDeleteOrganizationResponse
smart constructor.
DeleteOrganizationResponse' | |
|
Instances
newDeleteOrganizationResponse Source #
Create a value of DeleteOrganizationResponse
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:state:DeleteOrganizationResponse'
, deleteOrganizationResponse_state
- The state of the organization.
$sel:organizationId:DeleteOrganization'
, deleteOrganizationResponse_organizationId
- The organization ID.
$sel:httpStatus:DeleteOrganizationResponse'
, deleteOrganizationResponse_httpStatus
- The response's http status code.
Response Lenses
deleteOrganizationResponse_state :: Lens' DeleteOrganizationResponse (Maybe Text) Source #
The state of the organization.
deleteOrganizationResponse_organizationId :: Lens' DeleteOrganizationResponse (Maybe Text) Source #
The organization ID.
deleteOrganizationResponse_httpStatus :: Lens' DeleteOrganizationResponse Int Source #
The response's http status code.