ProvideAnomalyFeedbackCommand

Modifies the feedback property of a given cost anomaly.

Example Syntax

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

import { CostExplorerClient, ProvideAnomalyFeedbackCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
// const { CostExplorerClient, ProvideAnomalyFeedbackCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
const client = new CostExplorerClient(config);
const input = { // ProvideAnomalyFeedbackRequest
  AnomalyId: "STRING_VALUE", // required
  Feedback: "YES" || "NO" || "PLANNED_ACTIVITY", // required
};
const command = new ProvideAnomalyFeedbackCommand(input);
const response = await client.send(command);
// { // ProvideAnomalyFeedbackResponse
//   AnomalyId: "STRING_VALUE", // required
// };

ProvideAnomalyFeedbackCommand Input

Parameter
Type
Description
AnomalyId
Required
string | undefined

A cost anomaly ID.

Feedback
Required
AnomalyFeedbackType | undefined

Describes whether the cost anomaly was a planned activity or you considered it an anomaly.

ProvideAnomalyFeedbackCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
AnomalyId
Required
string | undefined

The ID of the modified cost anomaly.

Throws

Name
Fault
Details
LimitExceededException
client

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

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