listChannelPlacementGroups method

Future<ListChannelPlacementGroupsResponse> listChannelPlacementGroups({
  1. required String clusterId,
  2. int? maxResults,
  3. String? nextToken,
})

Retrieve the list of ChannelPlacementGroups in the specified Cluster.

May throw BadGatewayException. May throw BadRequestException. May throw ForbiddenException. May throw GatewayTimeoutException. May throw InternalServerErrorException. May throw TooManyRequestsException.

Parameter clusterId : The ID of the cluster

Parameter maxResults : The maximum number of items to return.

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

Implementation

Future<ListChannelPlacementGroupsResponse> listChannelPlacementGroups({
  required String clusterId,
  int? maxResults,
  String? nextToken,
}) async {
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/prod/clusters/${Uri.encodeComponent(clusterId)}/channelplacementgroups',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListChannelPlacementGroupsResponse.fromJson(response);
}