import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient"; import type { GetAnomaliesRequest, GetAnomaliesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetAnomaliesCommand}. */ export interface GetAnomaliesCommandInput extends GetAnomaliesRequest { } /** * @public * * The output of {@link GetAnomaliesCommand}. */ export interface GetAnomaliesCommandOutput extends GetAnomaliesResponse, __MetadataBearer { } declare const GetAnomaliesCommand_base: { new (input: GetAnomaliesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetAnomaliesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves all of the cost anomalies detected on your account during the time period that's * specified by the DateInterval object. Anomalies are available for up to 90 * days.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CostExplorerClient, GetAnomaliesCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import * // const { CostExplorerClient, GetAnomaliesCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import * // import type { CostExplorerClientConfig } from "@aws-sdk/client-cost-explorer"; * const config = {}; // type is CostExplorerClientConfig * const client = new CostExplorerClient(config); * const input = { // GetAnomaliesRequest * MonitorArn: "STRING_VALUE", * DateInterval: { // AnomalyDateInterval * StartDate: "STRING_VALUE", // required * EndDate: "STRING_VALUE", * }, * Feedback: "YES" || "NO" || "PLANNED_ACTIVITY", * TotalImpact: { // TotalImpactFilter * NumericOperator: "EQUAL" || "GREATER_THAN_OR_EQUAL" || "LESS_THAN_OR_EQUAL" || "GREATER_THAN" || "LESS_THAN" || "BETWEEN", // required * StartValue: Number("double"), // required * EndValue: Number("double"), * }, * NextPageToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new GetAnomaliesCommand(input); * const response = await client.send(command); * // { // GetAnomaliesResponse * // Anomalies: [ // Anomalies // required * // { // Anomaly * // AnomalyId: "STRING_VALUE", // required * // AnomalyStartDate: "STRING_VALUE", * // AnomalyEndDate: "STRING_VALUE", * // DimensionValue: "STRING_VALUE", * // RootCauses: [ // RootCauses * // { // RootCause * // Service: "STRING_VALUE", * // Region: "STRING_VALUE", * // LinkedAccount: "STRING_VALUE", * // LinkedAccountName: "STRING_VALUE", * // UsageType: "STRING_VALUE", * // Impact: { // RootCauseImpact * // Contribution: Number("double"), // required * // }, * // }, * // ], * // AnomalyScore: { // AnomalyScore * // MaxScore: Number("double"), // required * // CurrentScore: Number("double"), // required * // }, * // Impact: { // Impact * // MaxImpact: Number("double"), // required * // TotalImpact: Number("double"), * // TotalActualSpend: Number("double"), * // TotalExpectedSpend: Number("double"), * // TotalImpactPercentage: Number("double"), * // }, * // MonitorArn: "STRING_VALUE", // required * // Feedback: "YES" || "NO" || "PLANNED_ACTIVITY", * // }, * // ], * // NextPageToken: "STRING_VALUE", * // }; * * ``` * * @param GetAnomaliesCommandInput - {@link GetAnomaliesCommandInput} * @returns {@link GetAnomaliesCommandOutput} * @see {@link GetAnomaliesCommandInput} for command's `input` shape. * @see {@link GetAnomaliesCommandOutput} for command's `response` shape. * @see {@link CostExplorerClientResolvedConfig | config} for CostExplorerClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The pagination token is invalid. Try again without a pagination token.

* * @throws {@link LimitExceededException} (client fault) *

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

* * @throws {@link CostExplorerServiceException} *

Base exception class for all service exceptions from CostExplorer service.

* * * @public */ export declare class GetAnomaliesCommand extends GetAnomaliesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAnomaliesRequest; output: GetAnomaliesResponse; }; sdk: { input: GetAnomaliesCommandInput; output: GetAnomaliesCommandOutput; }; }; }