startReadSetImportJob method
Imports a read set from the sequence store. Read set import jobs support a
maximum of 100 read sets of different types. Monitor the progress of your
read set import job by calling the GetReadSetImportJob API
operation.
May throw AccessDeniedException.
May throw InternalServerException.
May throw RequestTimeoutException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter roleArn :
A service role for the job.
Parameter sequenceStoreId :
The read set's sequence store ID.
Parameter sources :
The job's source files.
Parameter clientToken :
To ensure that jobs don't run multiple times, specify a unique token for
each job.
Implementation
Future<StartReadSetImportJobResponse> startReadSetImportJob({
required String roleArn,
required String sequenceStoreId,
required List<StartReadSetImportJobSourceItem> sources,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'roleArn': roleArn,
'sources': sources,
if (clientToken != null) 'clientToken': clientToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/sequencestore/${Uri.encodeComponent(sequenceStoreId)}/importjob',
exceptionFnMap: _exceptionFns,
);
return StartReadSetImportJobResponse.fromJson(response);
}