- 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.
UpdateAnomalyMonitorCommand
Updates an existing cost anomaly monitor. The changes made are applied going forward, and doesn't change anomalies detected in the past.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CostExplorerClient, UpdateAnomalyMonitorCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
// const { CostExplorerClient, UpdateAnomalyMonitorCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
const client = new CostExplorerClient(config);
const input = { // UpdateAnomalyMonitorRequest
MonitorArn: "STRING_VALUE", // required
MonitorName: "STRING_VALUE",
};
const command = new UpdateAnomalyMonitorCommand(input);
const response = await client.send(command);
// { // UpdateAnomalyMonitorResponse
// MonitorArn: "STRING_VALUE", // required
// };
UpdateAnomalyMonitorCommand Input
See UpdateAnomalyMonitorCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MonitorArn Required | string | undefined | Cost anomaly monitor Amazon Resource Names (ARNs). |
MonitorName | string | undefined | The new name for the cost anomaly monitor. |
UpdateAnomalyMonitorCommand Output
See UpdateAnomalyMonitorCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
MonitorArn Required | string | undefined | A cost anomaly monitor ARN. |
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. |