DeleteAnomalyMonitorCommand

Deletes a cost anomaly monitor.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { CostExplorerClient, DeleteAnomalyMonitorCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
// const { CostExplorerClient, DeleteAnomalyMonitorCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
const client = new CostExplorerClient(config);
const input = { // DeleteAnomalyMonitorRequest
  MonitorArn: "STRING_VALUE", // required
};
const command = new DeleteAnomalyMonitorCommand(input);
const response = await client.send(command);
// {};

DeleteAnomalyMonitorCommand Input

Parameter
Type
Description
MonitorArn
Required
string | undefined

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

DeleteAnomalyMonitorCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
LimitExceededException
client

You made too many calls in a short period of time. Try again later.

UnknownMonitorException
client

The cost anomaly monitor does not exist for the account.

CostExplorerServiceException
Base exception class for all service exceptions from CostExplorer service.