import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeReservedInstancesListingsRequest, DescribeReservedInstancesListingsResult } from "../models/models_4"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeReservedInstancesListingsCommand}. */ export interface DescribeReservedInstancesListingsCommandInput extends DescribeReservedInstancesListingsRequest { } /** * @public * * The output of {@link DescribeReservedInstancesListingsCommand}. */ export interface DescribeReservedInstancesListingsCommandOutput extends DescribeReservedInstancesListingsResult, __MetadataBearer { } declare const DescribeReservedInstancesListingsCommand_base: { new (input: DescribeReservedInstancesListingsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeReservedInstancesListingsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes your account's Reserved Instance listings in the Reserved Instance * Marketplace.

*

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance * capacity that they no longer need with buyers who want to purchase additional capacity. * Reserved Instances bought and sold through the Reserved Instance Marketplace work like any * other Reserved Instances.

*

As a seller, you choose to list some or all of your Reserved Instances, and you specify * the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved * Instance Marketplace and are available for purchase.

*

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the * Marketplace matches what you're searching for with what's available. The Marketplace first * sells the lowest priced Reserved Instances to you, and continues to sell available Reserved * Instance listings to you until your demand is met. You are charged based on the total price of * all of the listings that you purchase.

*

For more information, see Sell in the Reserved Instance * Marketplace in the Amazon EC2 User Guide.

* *

The order of the elements in the response, including those within nested structures, * might vary. Applications should not assume the elements appear in a particular order.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeReservedInstancesListingsCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeReservedInstancesListingsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeReservedInstancesListingsRequest * ReservedInstancesId: "STRING_VALUE", * ReservedInstancesListingId: "STRING_VALUE", * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeReservedInstancesListingsCommand(input); * const response = await client.send(command); * // { // DescribeReservedInstancesListingsResult * // ReservedInstancesListings: [ // ReservedInstancesListingList * // { // ReservedInstancesListing * // ClientToken: "STRING_VALUE", * // CreateDate: new Date("TIMESTAMP"), * // InstanceCounts: [ // InstanceCountList * // { // InstanceCount * // InstanceCount: Number("int"), * // State: "available" || "sold" || "cancelled" || "pending", * // }, * // ], * // PriceSchedules: [ // PriceScheduleList * // { // PriceSchedule * // Active: true || false, * // CurrencyCode: "USD", * // Price: Number("double"), * // Term: Number("long"), * // }, * // ], * // ReservedInstancesId: "STRING_VALUE", * // ReservedInstancesListingId: "STRING_VALUE", * // Status: "active" || "pending" || "cancelled" || "closed", * // StatusMessage: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // UpdateDate: new Date("TIMESTAMP"), * // }, * // ], * // }; * * ``` * * @param DescribeReservedInstancesListingsCommandInput - {@link DescribeReservedInstancesListingsCommandInput} * @returns {@link DescribeReservedInstancesListingsCommandOutput} * @see {@link DescribeReservedInstancesListingsCommandInput} for command's `input` shape. * @see {@link DescribeReservedInstancesListingsCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class DescribeReservedInstancesListingsCommand extends DescribeReservedInstancesListingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeReservedInstancesListingsRequest; output: DescribeReservedInstancesListingsResult; }; sdk: { input: DescribeReservedInstancesListingsCommandInput; output: DescribeReservedInstancesListingsCommandOutput; }; }; }