listVoiceConnectorGroups method

Future<ListVoiceConnectorGroupsResponse> listVoiceConnectorGroups({
  1. int? maxResults,
  2. String? nextToken,
})

Lists the Amazon Chime Voice Connector groups for the administrator's AWS account.

May throw UnauthorizedClientException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter maxResults : The maximum number of results to return in a single call.

Parameter nextToken : The token to use to retrieve the next page of results.

Implementation

Future<ListVoiceConnectorGroupsResponse> listVoiceConnectorGroups({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    99,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'max-results': [maxResults.toString()],
    if (nextToken != null) 'next-token': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/voice-connector-groups',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListVoiceConnectorGroupsResponse.fromJson(response);
}