listPipelines method
Gets a list of pipelines.
Parameter createdAfter
:
A filter that returns the pipelines that were created after a specified
time.
Parameter createdBefore
:
A filter that returns the pipelines that were created before a specified
time.
Parameter maxResults
:
The maximum number of pipelines to return in the response.
Parameter nextToken
:
If the result of the previous ListPipelines
request was
truncated, the response includes a NextToken
. To retrieve the
next set of pipelines, use the token in the next request.
Parameter pipelineNamePrefix
:
The prefix of the pipeline name.
Parameter sortBy
:
The field by which to sort results. The default is
CreatedTime
.
Parameter sortOrder
:
The sort order for results.
Implementation
Future<ListPipelinesResponse> listPipelines({
DateTime? createdAfter,
DateTime? createdBefore,
int? maxResults,
String? nextToken,
String? pipelineNamePrefix,
SortPipelinesBy? sortBy,
SortOrder? sortOrder,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
8192,
);
_s.validateStringLength(
'pipelineNamePrefix',
pipelineNamePrefix,
1,
256,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.ListPipelines'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (createdAfter != null)
'CreatedAfter': unixTimestampToJson(createdAfter),
if (createdBefore != null)
'CreatedBefore': unixTimestampToJson(createdBefore),
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (pipelineNamePrefix != null)
'PipelineNamePrefix': pipelineNamePrefix,
if (sortBy != null) 'SortBy': sortBy.toValue(),
if (sortOrder != null) 'SortOrder': sortOrder.toValue(),
},
);
return ListPipelinesResponse.fromJson(jsonResponse.body);
}