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

Gets the contents of the specified Amazon Web Services Systems Manager document (SSM document).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // GetDocumentRequest * Name: "STRING_VALUE", // required * VersionName: "STRING_VALUE", * DocumentVersion: "STRING_VALUE", * DocumentFormat: "YAML" || "JSON" || "TEXT", * }; * const command = new GetDocumentCommand(input); * const response = await client.send(command); * // { // GetDocumentResult * // Name: "STRING_VALUE", * // CreatedDate: new Date("TIMESTAMP"), * // DisplayName: "STRING_VALUE", * // VersionName: "STRING_VALUE", * // DocumentVersion: "STRING_VALUE", * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", * // StatusInformation: "STRING_VALUE", * // Content: "STRING_VALUE", * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup" || "ManualApprovalPolicy" || "AutoApprovalPolicy", * // DocumentFormat: "YAML" || "JSON" || "TEXT", * // Requires: [ // DocumentRequiresList * // { // DocumentRequires * // Name: "STRING_VALUE", // required * // Version: "STRING_VALUE", * // RequireType: "STRING_VALUE", * // VersionName: "STRING_VALUE", * // }, * // ], * // AttachmentsContent: [ // AttachmentContentList * // { // AttachmentContent * // Name: "STRING_VALUE", * // Size: Number("long"), * // Hash: "STRING_VALUE", * // HashType: "Sha256", * // Url: "STRING_VALUE", * // }, * // ], * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", * // }; * * ``` * * @param GetDocumentCommandInput - {@link GetDocumentCommandInput} * @returns {@link GetDocumentCommandOutput} * @see {@link GetDocumentCommandInput} for command's `input` shape. * @see {@link GetDocumentCommandOutput} 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 InvalidDocumentVersion} (client fault) *

The document version isn't valid or doesn't exist.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class GetDocumentCommand extends GetDocumentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDocumentRequest; output: GetDocumentResult; }; sdk: { input: GetDocumentCommandInput; output: GetDocumentCommandOutput; }; }; }