enableOrganizationAdminAccount method

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

Enables 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 organization account to be enabled as a GuardDuty delegated administrator.

Implementation

Future<void> enableOrganizationAdminAccount({
  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/enable',
    exceptionFnMap: _exceptionFns,
  );
}