import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetLegalHoldInput, GetLegalHoldOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetLegalHoldCommand}. */ export interface GetLegalHoldCommandInput extends GetLegalHoldInput { } /** * @public * * The output of {@link GetLegalHoldCommand}. */ export interface GetLegalHoldCommandOutput extends GetLegalHoldOutput, __MetadataBearer { } declare const GetLegalHoldCommand_base: { new (input: GetLegalHoldCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetLegalHoldCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

This action returns details for a specified legal hold. The details are the * body of a legal hold in JSON format, in addition to metadata.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BackupClient, GetLegalHoldCommand } from "@aws-sdk/client-backup"; // ES Modules import * // const { BackupClient, GetLegalHoldCommand } = require("@aws-sdk/client-backup"); // CommonJS import * // import type { BackupClientConfig } from "@aws-sdk/client-backup"; * const config = {}; // type is BackupClientConfig * const client = new BackupClient(config); * const input = { // GetLegalHoldInput * LegalHoldId: "STRING_VALUE", // required * }; * const command = new GetLegalHoldCommand(input); * const response = await client.send(command); * // { // GetLegalHoldOutput * // Title: "STRING_VALUE", * // Status: "CREATING" || "ACTIVE" || "CANCELING" || "CANCELED", * // Description: "STRING_VALUE", * // CancelDescription: "STRING_VALUE", * // LegalHoldId: "STRING_VALUE", * // LegalHoldArn: "STRING_VALUE", * // CreationDate: new Date("TIMESTAMP"), * // CancellationDate: new Date("TIMESTAMP"), * // RetainRecordUntil: new Date("TIMESTAMP"), * // RecoveryPointSelection: { // RecoveryPointSelection * // VaultNames: [ // VaultNames * // "STRING_VALUE", * // ], * // ResourceIdentifiers: [ // ResourceIdentifiers * // "STRING_VALUE", * // ], * // DateRange: { // DateRange * // FromDate: new Date("TIMESTAMP"), // required * // ToDate: new Date("TIMESTAMP"), // required * // }, * // }, * // }; * * ``` * * @param GetLegalHoldCommandInput - {@link GetLegalHoldCommandInput} * @returns {@link GetLegalHoldCommandOutput} * @see {@link GetLegalHoldCommandInput} for command's `input` shape. * @see {@link GetLegalHoldCommandOutput} for command's `response` shape. * @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape. * * @throws {@link InvalidParameterValueException} (client fault) *

Indicates that something is wrong with a parameter's value. For example, the value is * out of range.

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

Indicates that a required parameter is missing.

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

A resource that is required for the action doesn't exist.

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

The request failed due to a temporary failure of the server.

* * @throws {@link BackupServiceException} *

Base exception class for all service exceptions from Backup service.

* * * @public */ export declare class GetLegalHoldCommand extends GetLegalHoldCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetLegalHoldInput; output: GetLegalHoldOutput; }; sdk: { input: GetLegalHoldCommandInput; output: GetLegalHoldCommandOutput; }; }; }