describeDatasetImportJob method
Future<DescribeDatasetImportJobResponse>
describeDatasetImportJob({
- required String datasetImportJobArn,
Describes the dataset import job created by CreateDatasetImportJob, including the import job status.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter datasetImportJobArn
:
The Amazon Resource Name (ARN) of the dataset import job to describe.
Implementation
Future<DescribeDatasetImportJobResponse> describeDatasetImportJob({
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': 'AmazonPersonalize.DescribeDatasetImportJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'datasetImportJobArn': datasetImportJobArn,
},
);
return DescribeDatasetImportJobResponse.fromJson(jsonResponse.body);
}