describeWhatIfForecastExport method

Future<DescribeWhatIfForecastExportResponse> describeWhatIfForecastExport({
  1. required String whatIfForecastExportArn,
})

Describes the what-if forecast export created using the CreateWhatIfForecastExport operation.

In addition to listing the properties provided in the CreateWhatIfForecastExport request, this operation lists the following properties:

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

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter whatIfForecastExportArn : The Amazon Resource Name (ARN) of the what-if forecast export that you are interested in.

Implementation

Future<DescribeWhatIfForecastExportResponse> describeWhatIfForecastExport({
  required String whatIfForecastExportArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonForecast.DescribeWhatIfForecastExport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'WhatIfForecastExportArn': whatIfForecastExportArn,
    },
  );

  return DescribeWhatIfForecastExportResponse.fromJson(jsonResponse.body);
}