deleteWhatIfAnalysis method

Future<void> deleteWhatIfAnalysis({
  1. required String whatIfAnalysisArn,
})

Deletes a what-if analysis created using the CreateWhatIfAnalysis operation. You can delete only what-if analyses that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeWhatIfAnalysis operation.

You can't delete a what-if analysis while any of its forecasts are being exported.

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

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

Implementation

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