listDataAccessors method

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

Lists the data accessors for a Amazon Q Business application. This operation returns a paginated list of data accessor summaries, including the friendly name, unique identifier, ARN, associated IAM role, and creation/update timestamps for each data accessor.

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.

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

Parameter nextToken : The token for the next set of results. (You received this token from a previous call.)

Implementation

Future<ListDataAccessorsResponse> listDataAccessors({
  required String applicationId,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    10,
  );
  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)}/dataaccessors',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDataAccessorsResponse.fromJson(response);
}