registerAccount method

Future<RegisterAccountResponse> registerAccount({
  1. String? delegatedAdminAccount,
  2. String? kmsKey,
})

Enables Audit Manager for the specified Amazon Web Services account.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter delegatedAdminAccount : The delegated administrator account for Audit Manager.

Parameter kmsKey : The KMS key details.

Implementation

Future<RegisterAccountResponse> registerAccount({
  String? delegatedAdminAccount,
  String? kmsKey,
}) async {
  final $payload = <String, dynamic>{
    if (delegatedAdminAccount != null)
      'delegatedAdminAccount': delegatedAdminAccount,
    if (kmsKey != null) 'kmsKey': kmsKey,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/account/registerAccount',
    exceptionFnMap: _exceptionFns,
  );
  return RegisterAccountResponse.fromJson(response);
}