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 |
Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.
Synopsis
- data GetMembers = GetMembers' {
- detectorId :: Text
- accountIds :: NonEmpty Text
- newGetMembers :: Text -> NonEmpty Text -> GetMembers
- getMembers_detectorId :: Lens' GetMembers Text
- getMembers_accountIds :: Lens' GetMembers (NonEmpty Text)
- data GetMembersResponse = GetMembersResponse' {
- httpStatus :: Int
- members :: [Member]
- unprocessedAccounts :: [UnprocessedAccount]
- newGetMembersResponse :: Int -> GetMembersResponse
- getMembersResponse_httpStatus :: Lens' GetMembersResponse Int
- getMembersResponse_members :: Lens' GetMembersResponse [Member]
- getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse [UnprocessedAccount]
Creating a Request
data GetMembers Source #
See: newGetMembers
smart constructor.
GetMembers' | |
|
Instances
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:
$sel:detectorId:GetMembers'
, getMembers_detectorId
- The unique ID of the detector of the GuardDuty account whose members you
want to retrieve.
$sel:accountIds:GetMembers'
, getMembers_accountIds
- A list of account IDs of the GuardDuty member accounts that you want to
describe.
Request Lenses
getMembers_detectorId :: Lens' GetMembers Text Source #
The unique ID of the detector of the GuardDuty account whose members you want to retrieve.
getMembers_accountIds :: Lens' GetMembers (NonEmpty Text) Source #
A list of account IDs of the GuardDuty member accounts that you want to describe.
Destructuring the Response
data GetMembersResponse Source #
See: newGetMembersResponse
smart constructor.
GetMembersResponse' | |
|
Instances
newGetMembersResponse Source #
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:httpStatus:GetMembersResponse'
, getMembersResponse_httpStatus
- The response's http status code.
$sel:members:GetMembersResponse'
, getMembersResponse_members
- A list of members.
$sel:unprocessedAccounts:GetMembersResponse'
, getMembersResponse_unprocessedAccounts
- A list of objects that contain the unprocessed account and a result
string that explains why it was unprocessed.
Response Lenses
getMembersResponse_httpStatus :: Lens' GetMembersResponse Int Source #
The response's http status code.
getMembersResponse_members :: Lens' GetMembersResponse [Member] Source #
A list of members.
getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse [UnprocessedAccount] Source #
A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.