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 one or more member accounts from the administrator account's
behavior graph. This operation can only be called by a Detective
administrator account. That account cannot use DeleteMembers
to delete
their own account from the behavior graph. To disable a behavior graph,
the administrator account uses the DeleteGraph
API method.
Synopsis
- data DeleteMembers = DeleteMembers' {
- graphArn :: Text
- accountIds :: NonEmpty Text
- newDeleteMembers :: Text -> NonEmpty Text -> DeleteMembers
- deleteMembers_graphArn :: Lens' DeleteMembers Text
- deleteMembers_accountIds :: Lens' DeleteMembers (NonEmpty Text)
- data DeleteMembersResponse = DeleteMembersResponse' {}
- newDeleteMembersResponse :: Int -> DeleteMembersResponse
- deleteMembersResponse_accountIds :: Lens' DeleteMembersResponse (Maybe (NonEmpty Text))
- deleteMembersResponse_unprocessedAccounts :: Lens' DeleteMembersResponse (Maybe [UnprocessedAccount])
- deleteMembersResponse_httpStatus :: Lens' DeleteMembersResponse Int
Creating a Request
data DeleteMembers Source #
See: newDeleteMembers
smart constructor.
DeleteMembers' | |
|
Instances
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:graphArn:DeleteMembers'
, deleteMembers_graphArn
- The ARN of the behavior graph to delete members from.
$sel:accountIds:DeleteMembers'
, deleteMembers_accountIds
- The list of AWS account identifiers for the member accounts to delete
from the behavior graph. You can delete up to 50 member accounts at a
time.
Request Lenses
deleteMembers_graphArn :: Lens' DeleteMembers Text Source #
The ARN of the behavior graph to delete members from.
deleteMembers_accountIds :: Lens' DeleteMembers (NonEmpty Text) Source #
The list of AWS account identifiers for the member accounts to delete from the behavior graph. You can delete up to 50 member accounts at a time.
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:accountIds:DeleteMembers'
, deleteMembersResponse_accountIds
- The list of AWS account identifiers for the member accounts that
Detective successfully deleted from the behavior graph.
$sel:unprocessedAccounts:DeleteMembersResponse'
, deleteMembersResponse_unprocessedAccounts
- The list of member accounts that Detective was not able to delete from
the behavior graph. For each member account, provides the reason that
the deletion could not be processed.
$sel:httpStatus:DeleteMembersResponse'
, deleteMembersResponse_httpStatus
- The response's http status code.
Response Lenses
deleteMembersResponse_accountIds :: Lens' DeleteMembersResponse (Maybe (NonEmpty Text)) Source #
The list of AWS account identifiers for the member accounts that Detective successfully deleted from the behavior graph.
deleteMembersResponse_unprocessedAccounts :: Lens' DeleteMembersResponse (Maybe [UnprocessedAccount]) Source #
The list of member accounts that Detective was not able to delete from the behavior graph. For each member account, provides the reason that the deletion could not be processed.
deleteMembersResponse_httpStatus :: Lens' DeleteMembersResponse Int Source #
The response's http status code.