getMembers method
Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter accountIds :
A list of account IDs of the GuardDuty member accounts that you want to
describe.
Parameter detectorId :
The unique ID of the detector of the GuardDuty account whose members you
want to retrieve.
To find the detectorId in the current Region, see the
Settings page in the GuardDuty console, or run the ListDetectors
API.
Implementation
Future<GetMembersResponse> getMembers({
required List<String> accountIds,
required String detectorId,
}) async {
final $payload = <String, dynamic>{
'accountIds': accountIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/detector/${Uri.encodeComponent(detectorId)}/member/get',
exceptionFnMap: _exceptionFns,
);
return GetMembersResponse.fromJson(response);
}