enableOrganizationAdminAccount method
Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. 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 organization account to be
enabled as a GuardDuty delegated administrator.
Implementation
Future<void> enableOrganizationAdminAccount({
required String adminAccountId,
}) async {
final $payload = <String, dynamic>{
'adminAccountId': adminAccountId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/admin/enable',
exceptionFnMap: _exceptionFns,
);
}