disassociateFromMasterAccount method
Disassociates the current GuardDuty member account from its administrator account.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter detectorId
:
The unique ID of the detector of the GuardDuty member account.
Implementation
Future<void> disassociateFromMasterAccount({
required String detectorId,
}) async {
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/master/disassociate',
exceptionFnMap: _exceptionFns,
);
}