getMasterAccount method
Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter detectorId :
The unique ID of the detector of the GuardDuty member account.
To find the detectorId in the current Region, see the
Settings page in the GuardDuty console, or run the ListDetectors
API.
Implementation
Future<GetMasterAccountResponse> getMasterAccount({
required String detectorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/detector/${Uri.encodeComponent(detectorId)}/master',
exceptionFnMap: _exceptionFns,
);
return GetMasterAccountResponse.fromJson(response);
}