listAutoMLJobs method
- DateTime? creationTimeAfter,
- DateTime? creationTimeBefore,
- DateTime? lastModifiedTimeAfter,
- DateTime? lastModifiedTimeBefore,
- int? maxResults,
- String? nameContains,
- String? nextToken,
- AutoMLSortBy? sortBy,
- AutoMLSortOrder? sortOrder,
- AutoMLJobStatus? statusEquals,
Request a list of jobs.
Parameter creationTimeAfter
:
Request a list of jobs, using a filter for time.
Parameter creationTimeBefore
:
Request a list of jobs, using a filter for time.
Parameter lastModifiedTimeAfter
:
Request a list of jobs, using a filter for time.
Parameter lastModifiedTimeBefore
:
Request a list of jobs, using a filter for time.
Parameter maxResults
:
Request a list of jobs up to a specified limit.
Parameter nameContains
:
Request a list of jobs, using a search filter for name.
Parameter nextToken
:
If the previous response was truncated, you receive this token. Use it in
your next request to receive the next set of results.
Parameter sortBy
:
The parameter by which to sort the results. The default is AutoMLJobName.
Parameter sortOrder
:
The sort order for the results. The default is Descending.
Parameter statusEquals
:
Request a list of jobs, using a filter for status.
Implementation
Future<ListAutoMLJobsResponse> listAutoMLJobs({
DateTime? creationTimeAfter,
DateTime? creationTimeBefore,
DateTime? lastModifiedTimeAfter,
DateTime? lastModifiedTimeBefore,
int? maxResults,
String? nameContains,
String? nextToken,
AutoMLSortBy? sortBy,
AutoMLSortOrder? sortOrder,
AutoMLJobStatus? statusEquals,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nameContains',
nameContains,
0,
63,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
8192,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.ListAutoMLJobs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (creationTimeAfter != null)
'CreationTimeAfter': unixTimestampToJson(creationTimeAfter),
if (creationTimeBefore != null)
'CreationTimeBefore': unixTimestampToJson(creationTimeBefore),
if (lastModifiedTimeAfter != null)
'LastModifiedTimeAfter': unixTimestampToJson(lastModifiedTimeAfter),
if (lastModifiedTimeBefore != null)
'LastModifiedTimeBefore': unixTimestampToJson(lastModifiedTimeBefore),
if (maxResults != null) 'MaxResults': maxResults,
if (nameContains != null) 'NameContains': nameContains,
if (nextToken != null) 'NextToken': nextToken,
if (sortBy != null) 'SortBy': sortBy.toValue(),
if (sortOrder != null) 'SortOrder': sortOrder.toValue(),
if (statusEquals != null) 'StatusEquals': statusEquals.toValue(),
},
);
return ListAutoMLJobsResponse.fromJson(jsonResponse.body);
}