getMembers method

Future<GetMembersResponse> getMembers({
  1. required List<String> accountIds,
})

Returns the details for the Security Hub member accounts for the specified account IDs.

A master account can be either a delegated Security Hub administrator account for an organization or a master account that enabled Security Hub manually.

The results include 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.

Parameter accountIds : The list of account IDs for the Security Hub member accounts to return the details for.

Implementation

Future<GetMembersResponse> getMembers({
  required List<String> accountIds,
}) async {
  ArgumentError.checkNotNull(accountIds, 'accountIds');
  final $payload = <String, dynamic>{
    'AccountIds': accountIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/members/get',
    exceptionFnMap: _exceptionFns,
  );
  return GetMembersResponse.fromJson(response);
}