getMasterAccount method

Future<GetMasterAccountResponse> getMasterAccount({
  1. required String detectorId,
})

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.

Implementation

Future<GetMasterAccountResponse> getMasterAccount({
  required String detectorId,
}) async {
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/detector/${Uri.encodeComponent(detectorId)}/master',
    exceptionFnMap: _exceptionFns,
  );
  return GetMasterAccountResponse.fromJson(response);
}