startVariantImportJob method
Starts a variant import job.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter destinationName :
The destination variant store for the job.
Parameter items :
Items to import.
Parameter roleArn :
A service role for the job.
Parameter annotationFields :
The annotation schema generated by the parsed annotation data.
Parameter runLeftNormalization :
The job's left normalization setting.
Implementation
Future<StartVariantImportResponse> startVariantImportJob({
required String destinationName,
required List<VariantImportItemSource> items,
required String roleArn,
Map<String, String>? annotationFields,
bool? runLeftNormalization,
}) async {
final $payload = <String, dynamic>{
'destinationName': destinationName,
'items': items,
'roleArn': roleArn,
if (annotationFields != null) 'annotationFields': annotationFields,
if (runLeftNormalization != null)
'runLeftNormalization': runLeftNormalization,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/import/variant',
exceptionFnMap: _exceptionFns,
);
return StartVariantImportResponse.fromJson(response);
}