describeImportTasks method
Future<DescribeImportTasksResponse>
describeImportTasks({
- List<
ImportTaskFilter> ? filters, - int? maxResults,
- String? nextToken,
Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.
May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw HomeRegionNotSetException.
Parameter filters
:
An array of name-value pairs that you provide to filter the results for
the DescribeImportTask
request to a specific subset of
results. Currently, wildcard values aren't supported for filters.
Parameter maxResults
:
The maximum number of results that you want this request to return, up to
100.
Parameter nextToken
:
The token to request a specific page of results.
Implementation
Future<DescribeImportTasksResponse> describeImportTasks({
List<ImportTaskFilter>? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSPoseidonService_V2015_11_01.DescribeImportTasks'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filters != null) 'filters': filters,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
},
);
return DescribeImportTasksResponse.fromJson(jsonResponse.body);
}