listEdgePackagingJobs method
- DateTime? creationTimeAfter,
- DateTime? creationTimeBefore,
- DateTime? lastModifiedTimeAfter,
- DateTime? lastModifiedTimeBefore,
- int? maxResults,
- String? modelNameContains,
- String? nameContains,
- String? nextToken,
- ListEdgePackagingJobsSortBy? sortBy,
- SortOrder? sortOrder,
- EdgePackagingJobStatus? statusEquals,
Returns a list of edge packaging jobs.
Parameter creationTimeAfter
:
Select jobs where the job was created after specified time.
Parameter creationTimeBefore
:
Select jobs where the job was created before specified time.
Parameter lastModifiedTimeAfter
:
Select jobs where the job was updated after specified time.
Parameter lastModifiedTimeBefore
:
Select jobs where the job was updated before specified time.
Parameter maxResults
:
Maximum number of results to select.
Parameter modelNameContains
:
Filter for jobs where the model name contains this string.
Parameter nameContains
:
Filter for jobs containing this name in their packaging job name.
Parameter nextToken
:
The response from the last list when returning a list large enough to need
tokening.
Parameter sortBy
:
Use to specify what column to sort by.
Parameter sortOrder
:
What direction to sort by.
Parameter statusEquals
:
The job status to filter for.
Implementation
Future<ListEdgePackagingJobsResponse> listEdgePackagingJobs({
DateTime? creationTimeAfter,
DateTime? creationTimeBefore,
DateTime? lastModifiedTimeAfter,
DateTime? lastModifiedTimeBefore,
int? maxResults,
String? modelNameContains,
String? nameContains,
String? nextToken,
ListEdgePackagingJobsSortBy? sortBy,
SortOrder? sortOrder,
EdgePackagingJobStatus? statusEquals,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
0,
100,
);
_s.validateStringLength(
'modelNameContains',
modelNameContains,
0,
63,
);
_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.ListEdgePackagingJobs'
};
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 (modelNameContains != null) 'ModelNameContains': modelNameContains,
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 ListEdgePackagingJobsResponse.fromJson(jsonResponse.body);
}