describeDatasetImportJob method

Future<DescribeDatasetImportJobResponse> describeDatasetImportJob({
  1. required String datasetImportJobArn,
})

Describes a dataset import job created using the CreateDatasetImportJob operation.

In addition to listing the parameters provided in the CreateDatasetImportJob request, this operation includes the following properties:

  • CreationTime
  • LastModificationTime
  • DataSize
  • FieldStatistics
  • Status
  • Message - If an error occurred, information about the error.

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter datasetImportJobArn : The Amazon Resource Name (ARN) of the dataset import job.

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': 'AmazonForecast.DescribeDatasetImportJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DatasetImportJobArn': datasetImportJobArn,
    },
  );

  return DescribeDatasetImportJobResponse.fromJson(jsonResponse.body);
}