deleteMonitor method
Deletes a monitor resource. You can only delete a monitor resource with a
status of ACTIVE, ACTIVE_STOPPED,
CREATE_FAILED, or CREATE_STOPPED.
May throw InvalidInputException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
Parameter monitorArn :
The Amazon Resource Name (ARN) of the monitor resource to delete.
Implementation
Future<void> deleteMonitor({
required String monitorArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DeleteMonitor'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MonitorArn': monitorArn,
},
);
}