import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetReservedNodeExchangeOfferingsInputMessage, GetReservedNodeExchangeOfferingsOutputMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetReservedNodeExchangeOfferingsCommand}. */ export interface GetReservedNodeExchangeOfferingsCommandInput extends GetReservedNodeExchangeOfferingsInputMessage { } /** * @public * * The output of {@link GetReservedNodeExchangeOfferingsCommand}. */ export interface GetReservedNodeExchangeOfferingsCommandOutput extends GetReservedNodeExchangeOfferingsOutputMessage, __MetadataBearer { } declare const GetReservedNodeExchangeOfferingsCommand_base: { new (input: GetReservedNodeExchangeOfferingsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetReservedNodeExchangeOfferingsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns an array of DC2 ReservedNodeOfferings that matches the payment type, term, * and usage price of the given DC1 reserved node.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, GetReservedNodeExchangeOfferingsCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, GetReservedNodeExchangeOfferingsCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // GetReservedNodeExchangeOfferingsInputMessage * ReservedNodeId: "STRING_VALUE", // required * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new GetReservedNodeExchangeOfferingsCommand(input); * const response = await client.send(command); * // { // GetReservedNodeExchangeOfferingsOutputMessage * // Marker: "STRING_VALUE", * // ReservedNodeOfferings: [ // ReservedNodeOfferingList * // { // ReservedNodeOffering * // ReservedNodeOfferingId: "STRING_VALUE", * // NodeType: "STRING_VALUE", * // Duration: Number("int"), * // FixedPrice: Number("double"), * // UsagePrice: Number("double"), * // CurrencyCode: "STRING_VALUE", * // OfferingType: "STRING_VALUE", * // RecurringCharges: [ // RecurringChargeList * // { // RecurringCharge * // RecurringChargeAmount: Number("double"), * // RecurringChargeFrequency: "STRING_VALUE", * // }, * // ], * // ReservedNodeOfferingType: "Regular" || "Upgradable", * // }, * // ], * // }; * * ``` * * @param GetReservedNodeExchangeOfferingsCommandInput - {@link GetReservedNodeExchangeOfferingsCommandInput} * @returns {@link GetReservedNodeExchangeOfferingsCommandOutput} * @see {@link GetReservedNodeExchangeOfferingsCommandInput} for command's `input` shape. * @see {@link GetReservedNodeExchangeOfferingsCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link DependentServiceUnavailableFault} (client fault) *

Your request cannot be completed because a dependent internal service is * temporarily unavailable. Wait 30 to 60 seconds and try again.

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

Indicates that the Reserved Node being exchanged is not in an active state.

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

Indicates that the reserved node has already been exchanged.

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

The specified reserved compute node not found.

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

Specified offering does not exist.

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

The requested operation isn't supported.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class GetReservedNodeExchangeOfferingsCommand extends GetReservedNodeExchangeOfferingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetReservedNodeExchangeOfferingsInputMessage; output: GetReservedNodeExchangeOfferingsOutputMessage; }; sdk: { input: GetReservedNodeExchangeOfferingsCommandInput; output: GetReservedNodeExchangeOfferingsCommandOutput; }; }; }