- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
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
See DeleteAnomalyMonitorCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MonitorArn Required | string | undefined | The unique identifier of the cost anomaly monitor that you want to delete. |
DeleteAnomalyMonitorCommand Output
See DeleteAnomalyMonitorCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
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. |