| 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.GuardDuty.GetMembers
Description
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.
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_detectorId - The unique ID of the detector of the GuardDuty account whose members you
want to retrieve.
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.
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: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.