listImportErrors method
List import errors.
May throw UninitializedAccountException.
May throw ValidationException.
Parameter importID :
List import errors request import id.
Parameter maxResults :
List import errors request max results.
Parameter nextToken :
List import errors request next token.
Implementation
Future<ListImportErrorsResponse> listImportErrors({
required String importID,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $payload = <String, dynamic>{
'importID': importID,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListImportErrors',
exceptionFnMap: _exceptionFns,
);
return ListImportErrorsResponse.fromJson(response);
}