getMasterAccount method
Provides the details for the Security Hub master account for the current member account.
Can be used by both member accounts that are in an organization and accounts that were invited manually.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException. May throw ResourceNotFoundException.
Implementation
Future<GetMasterAccountResponse> getMasterAccount() async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/master',
exceptionFnMap: _exceptionFns,
);
return GetMasterAccountResponse.fromJson(response);
}