listPipelines method

Future<ListPipelinesResponse> listPipelines({
  1. required String workspaceName,
  2. int? maxResults,
  3. String? nextToken,
})

Lists pipelines in a workspace. To get complete details about a pipeline, use DescribePipeline.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter workspaceName : The name of the workspace.

Parameter maxResults : The maximum number of results to return for each paginated request. Default: 50.

Parameter nextToken : The token to be used for the next set of paginated results.

Implementation

Future<ListPipelinesResponse> listPipelines({
  required String workspaceName,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    250,
  );
  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: '/workspaces/${Uri.encodeComponent(workspaceName)}/pipelines',
    queryParams: $query,
    hostPrefix: 'api.',
    exceptionFnMap: _exceptionFns,
  );
  return ListPipelinesResponse.fromJson(response);
}