registerOrganizationAdminAccount method
Future<RegisterOrganizationAdminAccountResponse>
registerOrganizationAdminAccount({
- required String adminAccountId,
Enables an Amazon Web Services account within the organization as the delegated administrator for Audit Manager.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter adminAccountId :
The identifier for the delegated administrator account.
Implementation
Future<RegisterOrganizationAdminAccountResponse>
registerOrganizationAdminAccount({
required String adminAccountId,
}) async {
final $payload = <String, dynamic>{
'adminAccountId': adminAccountId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/account/registerOrganizationAdminAccount',
exceptionFnMap: _exceptionFns,
);
return RegisterOrganizationAdminAccountResponse.fromJson(response);
}