getMembers method

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

Returns the membership details for specified member accounts for a behavior graph.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter accountIds : The list of AWS account identifiers for the member account for which to return member details.

You cannot use GetMembers to retrieve information about member accounts that were removed from the behavior graph.

Parameter graphArn : The ARN of the behavior graph for which to request the member details.

Implementation

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