| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Detective.GetMembers
Description
Returns the membership details for specified member accounts for a behavior graph.
Synopsis
- data GetMembers = GetMembers' {
- graphArn :: Text
- accountIds :: NonEmpty Text
- newGetMembers :: Text -> NonEmpty Text -> GetMembers
- getMembers_graphArn :: Lens' GetMembers Text
- getMembers_accountIds :: Lens' GetMembers (NonEmpty Text)
- data GetMembersResponse = GetMembersResponse' {}
- newGetMembersResponse :: Int -> GetMembersResponse
- getMembersResponse_memberDetails :: Lens' GetMembersResponse (Maybe [MemberDetail])
- getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse (Maybe [UnprocessedAccount])
- getMembersResponse_httpStatus :: Lens' GetMembersResponse Int
Creating a Request
data GetMembers Source #
See: newGetMembers smart constructor.
Constructors
| GetMembers' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> NonEmpty Text | |
| -> GetMembers |
Create a value of GetMembers 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:
GetMembers, getMembers_graphArn - The ARN of the behavior graph for which to request the member details.
$sel:accountIds:GetMembers', getMembers_accountIds - The list of Amazon Web Services account identifiers for the member
account for which to return member details. You can request details for
up to 50 member accounts at a time.
You cannot use GetMembers to retrieve information about member
accounts that were removed from the behavior graph.
Request Lenses
getMembers_graphArn :: Lens' GetMembers Text Source #
The ARN of the behavior graph for which to request the member details.
getMembers_accountIds :: Lens' GetMembers (NonEmpty Text) Source #
The list of Amazon Web Services account identifiers for the member account for which to return member details. You can request details for up to 50 member accounts at a time.
You cannot use GetMembers to retrieve information about member
accounts that were removed from the behavior graph.
Destructuring the Response
data GetMembersResponse Source #
See: newGetMembersResponse smart constructor.
Constructors
| GetMembersResponse' | |
Fields
| |
Instances
newGetMembersResponse Source #
Arguments
| :: Int | |
| -> GetMembersResponse |
Create a value of GetMembersResponse 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:memberDetails:GetMembersResponse', getMembersResponse_memberDetails - The member account details that Detective is returning in response to
the request.
$sel:unprocessedAccounts:GetMembersResponse', getMembersResponse_unprocessedAccounts - The requested member accounts for which Detective was unable to return
member details.
For each account, provides the reason why the request could not be processed.
$sel:httpStatus:GetMembersResponse', getMembersResponse_httpStatus - The response's http status code.
Response Lenses
getMembersResponse_memberDetails :: Lens' GetMembersResponse (Maybe [MemberDetail]) Source #
The member account details that Detective is returning in response to the request.
getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse (Maybe [UnprocessedAccount]) Source #
The requested member accounts for which Detective was unable to return member details.
For each account, provides the reason why the request could not be processed.
getMembersResponse_httpStatus :: Lens' GetMembersResponse Int Source #
The response's http status code.