enableOrganizationAdminAccount method

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

Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.

May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException.

Parameter adminAccountId : The AWS account identifier of the account to designate as the Security Hub administrator account.

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: '/organization/admin/enable',
    exceptionFnMap: _exceptionFns,
  );
}