import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient"; import type { ListVersionsRequest, ListVersionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListVersionsCommand}. */ export interface ListVersionsCommandInput extends ListVersionsRequest { } /** * @public * * The output of {@link ListVersionsCommand}. */ export interface ListVersionsCommandOutput extends ListVersionsResponse, __MetadataBearer { } declare const ListVersionsCommand_base: { new (input: ListVersionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListVersionsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists available versions of Grafana. These are available when calling CreateWorkspace. Optionally, include a workspace to list the versions to which it can be upgraded.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GrafanaClient, ListVersionsCommand } from "@aws-sdk/client-grafana"; // ES Modules import * // const { GrafanaClient, ListVersionsCommand } = require("@aws-sdk/client-grafana"); // CommonJS import * // import type { GrafanaClientConfig } from "@aws-sdk/client-grafana"; * const config = {}; // type is GrafanaClientConfig * const client = new GrafanaClient(config); * const input = { // ListVersionsRequest * maxResults: Number("int"), * nextToken: "STRING_VALUE", * workspaceId: "STRING_VALUE", * }; * const command = new ListVersionsCommand(input); * const response = await client.send(command); * // { // ListVersionsResponse * // nextToken: "STRING_VALUE", * // grafanaVersions: [ // GrafanaVersionList * // "STRING_VALUE", * // ], * // }; * * ``` * * @param ListVersionsCommandInput - {@link ListVersionsCommandInput} * @returns {@link ListVersionsCommandOutput} * @see {@link ListVersionsCommandInput} for command's `input` shape. * @see {@link ListVersionsCommandOutput} for command's `response` shape. * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

Unexpected error while processing the request. Retry the request.

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

The request references a resource that does not exist.

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

The request was denied because of request throttling. Retry the request.

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

The value of a parameter in the request caused an error.

* * @throws {@link GrafanaServiceException} *

Base exception class for all service exceptions from Grafana service.

* * * @public */ export declare class ListVersionsCommand extends ListVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListVersionsRequest; output: ListVersionsResponse; }; sdk: { input: ListVersionsCommandInput; output: ListVersionsCommandOutput; }; }; }