deleteWhatIfForecastExport method

Future<void> deleteWhatIfForecastExport({
  1. required String whatIfForecastExportArn,
})

Deletes a what-if forecast export created using the CreateWhatIfForecastExport operation. You can delete only what-if forecast exports that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeWhatIfForecastExport operation.

May throw InvalidInputException. May throw ResourceInUseException. May throw ResourceNotFoundException.

Parameter whatIfForecastExportArn : The Amazon Resource Name (ARN) of the what-if forecast export that you want to delete.

Implementation

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