deleteAnomalyMonitor method

Future<void> deleteAnomalyMonitor({
  1. required String monitorArn,
})

Deletes a cost anomaly monitor.

May throw LimitExceededException. May throw UnknownMonitorException.

Parameter monitorArn : The unique identifier of the cost anomaly monitor that you want to delete.

Implementation

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