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 { CancelReservedInstancesListingRequest, CancelReservedInstancesListingResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CancelReservedInstancesListingCommand}. */ export interface CancelReservedInstancesListingCommandInput extends CancelReservedInstancesListingRequest { } /** * @public * * The output of {@link CancelReservedInstancesListingCommand}. */ export interface CancelReservedInstancesListingCommandOutput extends CancelReservedInstancesListingResult, __MetadataBearer { } declare const CancelReservedInstancesListingCommand_base: { new (input: CancelReservedInstancesListingCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CancelReservedInstancesListingCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Cancels the specified Reserved Instance listing in the Reserved Instance * Marketplace.

*

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

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, CancelReservedInstancesListingCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, CancelReservedInstancesListingCommand } = 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 = { // CancelReservedInstancesListingRequest * ReservedInstancesListingId: "STRING_VALUE", // required * }; * const command = new CancelReservedInstancesListingCommand(input); * const response = await client.send(command); * // { // CancelReservedInstancesListingResult * // 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 CancelReservedInstancesListingCommandInput - {@link CancelReservedInstancesListingCommandInput} * @returns {@link CancelReservedInstancesListingCommandOutput} * @see {@link CancelReservedInstancesListingCommandInput} for command's `input` shape. * @see {@link CancelReservedInstancesListingCommandOutput} 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 CancelReservedInstancesListingCommand extends CancelReservedInstancesListingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelReservedInstancesListingRequest; output: CancelReservedInstancesListingResult; }; sdk: { input: CancelReservedInstancesListingCommandInput; output: CancelReservedInstancesListingCommandOutput; }; }; }