listChatResponseConfigurations method

Future<ListChatResponseConfigurationsResponse> listChatResponseConfigurations({
  1. required String applicationId,
  2. int? maxResults,
  3. String? nextToken,
})

Retrieves a list of all chat response configurations available in a specified Amazon Q Business application. This operation returns summary information about each configuration to help administrators manage and select appropriate response settings.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter applicationId : The unique identifier of the Amazon Q Business application for which to list available chat response configurations.

Parameter maxResults : The maximum number of chat response configurations to return in a single response. This parameter helps control pagination of results when many configurations exist.

Parameter nextToken : A pagination token used to retrieve the next set of results when the number of configurations exceeds the specified maxResults value.

Implementation

Future<ListChatResponseConfigurationsResponse>
    listChatResponseConfigurations({
  required String applicationId,
  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:
        '/applications/${Uri.encodeComponent(applicationId)}/chatresponseconfigurations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListChatResponseConfigurationsResponse.fromJson(response);
}