import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PurchaseReservedInstanceOfferingRequest, PurchaseReservedInstanceOfferingResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PurchaseReservedInstanceOfferingCommand}. */ export interface PurchaseReservedInstanceOfferingCommandInput extends PurchaseReservedInstanceOfferingRequest { } /** * @public * * The output of {@link PurchaseReservedInstanceOfferingCommand}. */ export interface PurchaseReservedInstanceOfferingCommandOutput extends PurchaseReservedInstanceOfferingResponse, __MetadataBearer { } declare const PurchaseReservedInstanceOfferingCommand_base: { new (input: PurchaseReservedInstanceOfferingCommandInput): import("@smithy/core/client").CommandImpl; new (input: PurchaseReservedInstanceOfferingCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Allows you to purchase Amazon OpenSearch Service Reserved Instances.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, PurchaseReservedInstanceOfferingCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, PurchaseReservedInstanceOfferingCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // PurchaseReservedInstanceOfferingRequest * ReservedInstanceOfferingId: "STRING_VALUE", // required * ReservationName: "STRING_VALUE", // required * InstanceCount: Number("int"), * }; * const command = new PurchaseReservedInstanceOfferingCommand(input); * const response = await client.send(command); * // { // PurchaseReservedInstanceOfferingResponse * // ReservedInstanceId: "STRING_VALUE", * // ReservationName: "STRING_VALUE", * // }; * * ``` * * @param PurchaseReservedInstanceOfferingCommandInput - {@link PurchaseReservedInstanceOfferingCommandInput} * @returns {@link PurchaseReservedInstanceOfferingCommandOutput} * @see {@link PurchaseReservedInstanceOfferingCommandInput} for command's `input` shape. * @see {@link PurchaseReservedInstanceOfferingCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link DisabledOperationException} (client fault) *

An error occured because the client wanted to access an unsupported operation.

* * @throws {@link InternalException} (server fault) *

Request processing failed because of an unknown error, exception, or internal failure.

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

An exception for trying to create more than the allowed number of resources or sub-resources.

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

An exception for creating a resource that already exists.

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

An exception for accessing or deleting a resource that doesn't exist.

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

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class PurchaseReservedInstanceOfferingCommand extends PurchaseReservedInstanceOfferingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PurchaseReservedInstanceOfferingRequest; output: PurchaseReservedInstanceOfferingResponse; }; sdk: { input: PurchaseReservedInstanceOfferingCommandInput; output: PurchaseReservedInstanceOfferingCommandOutput; }; }; }