describeDataset method

Future<DescribeDatasetResponse> describeDataset({
  1. required String datasetArn,
})

Describes an Amazon Forecast dataset created using the CreateDataset operation.

In addition to listing the parameters specified in the CreateDataset request, this operation includes the following dataset properties:

  • CreationTime
  • LastModificationTime
  • Status

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter datasetArn : The Amazon Resource Name (ARN) of the dataset.

Implementation

Future<DescribeDatasetResponse> describeDataset({
  required String datasetArn,
}) async {
  ArgumentError.checkNotNull(datasetArn, 'datasetArn');
  _s.validateStringLength(
    'datasetArn',
    datasetArn,
    0,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonForecast.DescribeDataset'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DatasetArn': datasetArn,
    },
  );

  return DescribeDatasetResponse.fromJson(jsonResponse.body);
}