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

Returns a list of Amazon OpenSearch Service package versions, along with their creation * time, commit message, and plugin properties (if the package is a zip plugin package). For more * information, see Custom packages for Amazon * OpenSearch Service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, GetPackageVersionHistoryCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, GetPackageVersionHistoryCommand } = 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 = { // GetPackageVersionHistoryRequest * PackageID: "STRING_VALUE", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new GetPackageVersionHistoryCommand(input); * const response = await client.send(command); * // { // GetPackageVersionHistoryResponse * // PackageID: "STRING_VALUE", * // PackageVersionHistoryList: [ // PackageVersionHistoryList * // { // PackageVersionHistory * // PackageVersion: "STRING_VALUE", * // CommitMessage: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // PluginProperties: { // PluginProperties * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // Version: "STRING_VALUE", * // ClassName: "STRING_VALUE", * // UncompressedSizeInBytes: Number("long"), * // }, * // PackageConfiguration: { // PackageConfiguration * // LicenseRequirement: "REQUIRED" || "OPTIONAL" || "NONE", // required * // LicenseFilepath: "STRING_VALUE", * // ConfigurationRequirement: "REQUIRED" || "OPTIONAL" || "NONE", // required * // RequiresRestartForConfigurationUpdate: true || false, * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetPackageVersionHistoryCommandInput - {@link GetPackageVersionHistoryCommandInput} * @returns {@link GetPackageVersionHistoryCommandOutput} * @see {@link GetPackageVersionHistoryCommandInput} for command's `input` shape. * @see {@link GetPackageVersionHistoryCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

An error occurred because you don't have permissions to access the resource.

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

An error occurred while processing the request.

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

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

* * @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 GetPackageVersionHistoryCommand extends GetPackageVersionHistoryCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPackageVersionHistoryRequest; output: GetPackageVersionHistoryResponse; }; sdk: { input: GetPackageVersionHistoryCommandInput; output: GetPackageVersionHistoryCommandOutput; }; }; }