deleteDatasetImportJob method
Deletes a dataset import job created using the
CreateDatasetImportJob operation. You can delete only dataset
import jobs that have a status of ACTIVE
or
CREATE_FAILED
. To get the status, use the
DescribeDatasetImportJob operation.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw ResourceInUseException.
Parameter datasetImportJobArn
:
The Amazon Resource Name (ARN) of the dataset import job to delete.
Implementation
Future<void> deleteDatasetImportJob({
required String datasetImportJobArn,
}) async {
ArgumentError.checkNotNull(datasetImportJobArn, 'datasetImportJobArn');
_s.validateStringLength(
'datasetImportJobArn',
datasetImportJobArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DeleteDatasetImportJob'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatasetImportJobArn': datasetImportJobArn,
},
);
}