- 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.
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
See ProvideAnomalyFeedbackCommandInput for more details
Parameter | Type | Description |
---|
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
See ProvideAnomalyFeedbackCommandOutput for details
Parameter | Type | Description |
---|
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 |
---|
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. |