disableOrganizationAdminAccount method

Future<void> disableOrganizationAdminAccount({
  1. required String adminAccountId,
})

Disables an AWS account within the Organization as the GuardDuty delegated administrator.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter adminAccountId : The AWS Account ID for the organizations account to be disabled as a GuardDuty delegated administrator.

Implementation

Future<void> disableOrganizationAdminAccount({
  required String adminAccountId,
}) async {
  ArgumentError.checkNotNull(adminAccountId, 'adminAccountId');
  final $payload = <String, dynamic>{
    'adminAccountId': adminAccountId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/admin/disable',
    exceptionFnMap: _exceptionFns,
  );
}