deleteForecastExportJob method

Future<void> deleteForecastExportJob({
  1. required String forecastExportJobArn,
})

Deletes a forecast export job created using the CreateForecastExportJob operation. You can delete only export jobs that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeForecastExportJob operation.

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

Parameter forecastExportJobArn : The Amazon Resource Name (ARN) of the forecast export job to delete.

Implementation

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