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 the specified member accounts from Security Hub.
Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.
Synopsis
- data DeleteMembers = DeleteMembers' {
- accountIds :: [Text]
- newDeleteMembers :: DeleteMembers
- deleteMembers_accountIds :: Lens' DeleteMembers [Text]
- data DeleteMembersResponse = DeleteMembersResponse' {
- unprocessedAccounts :: Maybe [Result]
- httpStatus :: Int
- newDeleteMembersResponse :: Int -> DeleteMembersResponse
- deleteMembersResponse_unprocessedAccounts :: Lens' DeleteMembersResponse (Maybe [Result])
- deleteMembersResponse_httpStatus :: Lens' DeleteMembersResponse Int
Creating a Request
data DeleteMembers Source #
See: newDeleteMembers
smart constructor.
DeleteMembers' | |
|
Instances
newDeleteMembers :: DeleteMembers Source #
Create a value of DeleteMembers
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:accountIds:DeleteMembers'
, deleteMembers_accountIds
- The list of account IDs for the member accounts to delete.
Request Lenses
deleteMembers_accountIds :: Lens' DeleteMembers [Text] Source #
The list of account IDs for the member accounts to delete.
Destructuring the Response
data DeleteMembersResponse Source #
See: newDeleteMembersResponse
smart constructor.
DeleteMembersResponse' | |
|
Instances
newDeleteMembersResponse Source #
Create a value of DeleteMembersResponse
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:unprocessedAccounts:DeleteMembersResponse'
, deleteMembersResponse_unprocessedAccounts
- The list of Amazon Web Services accounts that were not deleted. For each
account, the list includes the account ID and the email address.
$sel:httpStatus:DeleteMembersResponse'
, deleteMembersResponse_httpStatus
- The response's http status code.
Response Lenses
deleteMembersResponse_unprocessedAccounts :: Lens' DeleteMembersResponse (Maybe [Result]) Source #
The list of Amazon Web Services accounts that were not deleted. For each account, the list includes the account ID and the email address.
deleteMembersResponse_httpStatus :: Lens' DeleteMembersResponse Int Source #
The response's http status code.