import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeSavingsPlansRequest, DescribeSavingsPlansResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeSavingsPlansCommand}. */ export interface DescribeSavingsPlansCommandInput extends DescribeSavingsPlansRequest { } /** * @public * * The output of {@link DescribeSavingsPlansCommand}. */ export interface DescribeSavingsPlansCommandOutput extends DescribeSavingsPlansResponse, __MetadataBearer { } declare const DescribeSavingsPlansCommand_base: { new (input: DescribeSavingsPlansCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeSavingsPlansCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Describes the specified Savings Plans.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SavingsplansClient, DescribeSavingsPlansCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import * // const { SavingsplansClient, DescribeSavingsPlansCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import * // import type { SavingsplansClientConfig } from "@aws-sdk/client-savingsplans"; * const config = {}; // type is SavingsplansClientConfig * const client = new SavingsplansClient(config); * const input = { // DescribeSavingsPlansRequest * savingsPlanArns: [ // SavingsPlanArnList * "STRING_VALUE", * ], * savingsPlanIds: [ // SavingsPlanIdList * "STRING_VALUE", * ], * nextToken: "STRING_VALUE", * maxResults: Number("int"), * states: [ // SavingsPlanStateList * "payment-pending" || "payment-failed" || "active" || "retired" || "queued" || "queued-deleted" || "pending-return" || "returned", * ], * filters: [ // SavingsPlanFilterList * { // SavingsPlanFilter * name: "region" || "ec2-instance-family" || "commitment" || "upfront" || "term" || "savings-plan-type" || "payment-option" || "start" || "end" || "instance-family", * values: [ // ListOfStrings * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeSavingsPlansCommand(input); * const response = await client.send(command); * // { // DescribeSavingsPlansResponse * // savingsPlans: [ // SavingsPlanList * // { // SavingsPlan * // offeringId: "STRING_VALUE", * // savingsPlanId: "STRING_VALUE", * // savingsPlanArn: "STRING_VALUE", * // description: "STRING_VALUE", * // start: "STRING_VALUE", * // end: "STRING_VALUE", * // state: "payment-pending" || "payment-failed" || "active" || "retired" || "queued" || "queued-deleted" || "pending-return" || "returned", * // region: "STRING_VALUE", * // ec2InstanceFamily: "STRING_VALUE", * // savingsPlanType: "Compute" || "EC2Instance" || "SageMaker" || "Database", * // paymentOption: "All Upfront" || "Partial Upfront" || "No Upfront", * // productTypes: [ // SavingsPlanProductTypeList * // "EC2" || "Fargate" || "Lambda" || "SageMaker" || "RDS" || "DSQL" || "DynamoDB" || "ElastiCache" || "DocDB" || "Neptune" || "Timestream" || "Keyspaces" || "DMS" || "OpenSearch", * // ], * // currency: "CNY" || "USD" || "EUR", * // commitment: "STRING_VALUE", * // upfrontPaymentAmount: "STRING_VALUE", * // recurringPaymentAmount: "STRING_VALUE", * // termDurationInSeconds: Number("long"), * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // returnableUntil: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeSavingsPlansCommandInput - {@link DescribeSavingsPlansCommandInput} * @returns {@link DescribeSavingsPlansCommandOutput} * @see {@link DescribeSavingsPlansCommandInput} for command's `input` shape. * @see {@link DescribeSavingsPlansCommandOutput} for command's `response` shape. * @see {@link SavingsplansClientResolvedConfig | config} for SavingsplansClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An unexpected error occurred.

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

One of the input parameters is not valid.

* * @throws {@link SavingsplansServiceException} *

Base exception class for all service exceptions from Savingsplans service.

* * * @public */ export declare class DescribeSavingsPlansCommand extends DescribeSavingsPlansCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeSavingsPlansRequest; output: DescribeSavingsPlansResponse; }; sdk: { input: DescribeSavingsPlansCommandInput; output: DescribeSavingsPlansCommandOutput; }; }; }