import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { ListDocumentVersionsRequest, ListDocumentVersionsResult } from "../models/models_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListDocumentVersionsCommand}. */ export interface ListDocumentVersionsCommandInput extends ListDocumentVersionsRequest { } /** * @public * * The output of {@link ListDocumentVersionsCommand}. */ export interface ListDocumentVersionsCommandOutput extends ListDocumentVersionsResult, __MetadataBearer { } declare const ListDocumentVersionsCommand_base: { new (input: ListDocumentVersionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ListDocumentVersionsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

List all versions for a document.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, ListDocumentVersionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, ListDocumentVersionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // ListDocumentVersionsRequest * Name: "STRING_VALUE", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListDocumentVersionsCommand(input); * const response = await client.send(command); * // { // ListDocumentVersionsResult * // DocumentVersions: [ // DocumentVersionList * // { // DocumentVersionInfo * // Name: "STRING_VALUE", * // DisplayName: "STRING_VALUE", * // DocumentVersion: "STRING_VALUE", * // VersionName: "STRING_VALUE", * // CreatedDate: new Date("TIMESTAMP"), * // IsDefaultVersion: true || false, * // DocumentFormat: "YAML" || "JSON" || "TEXT", * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", * // StatusInformation: "STRING_VALUE", * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListDocumentVersionsCommandInput - {@link ListDocumentVersionsCommandInput} * @returns {@link ListDocumentVersionsCommandOutput} * @see {@link ListDocumentVersionsCommandInput} for command's `input` shape. * @see {@link ListDocumentVersionsCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

The specified SSM document doesn't exist.

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

The specified token isn't valid.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class ListDocumentVersionsCommand extends ListDocumentVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListDocumentVersionsRequest; output: ListDocumentVersionsResult; }; sdk: { input: ListDocumentVersionsCommandInput; output: ListDocumentVersionsCommandOutput; }; }; }