disableOrganizationAdminAccount method
Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter adminAccountId :
The Amazon Web Services Account ID for the organizations account to be
disabled as a GuardDuty delegated administrator.
Implementation
Future<void> disableOrganizationAdminAccount({
required String adminAccountId,
}) async {
final $payload = <String, dynamic>{
'adminAccountId': adminAccountId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/admin/disable',
exceptionFnMap: _exceptionFns,
);
}