disassociateFromMasterAccount method

Future<void> disassociateFromMasterAccount()

Disassociates the current Security Hub member account from the associated master account.

This operation is only used by accounts that are not part of an organization. For organization accounts, only the master account (the designated Security Hub administrator) can disassociate a member account.

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

Implementation

Future<void> disassociateFromMasterAccount() async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/master/disassociate',
    exceptionFnMap: _exceptionFns,
  );
}