import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListLegalHoldsInput, ListLegalHoldsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListLegalHoldsCommand}. */ export interface ListLegalHoldsCommandInput extends ListLegalHoldsInput { } /** * @public * * The output of {@link ListLegalHoldsCommand}. */ export interface ListLegalHoldsCommandOutput extends ListLegalHoldsOutput, __MetadataBearer { } declare const ListLegalHoldsCommand_base: { new (input: ListLegalHoldsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListLegalHoldsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

This action returns metadata about active and previous legal holds.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BackupClient, ListLegalHoldsCommand } from "@aws-sdk/client-backup"; // ES Modules import * // const { BackupClient, ListLegalHoldsCommand } = 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 = { // ListLegalHoldsInput * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListLegalHoldsCommand(input); * const response = await client.send(command); * // { // ListLegalHoldsOutput * // NextToken: "STRING_VALUE", * // LegalHolds: [ // LegalHoldsList * // { // LegalHold * // Title: "STRING_VALUE", * // Status: "CREATING" || "ACTIVE" || "CANCELING" || "CANCELED", * // Description: "STRING_VALUE", * // LegalHoldId: "STRING_VALUE", * // LegalHoldArn: "STRING_VALUE", * // CreationDate: new Date("TIMESTAMP"), * // CancellationDate: new Date("TIMESTAMP"), * // }, * // ], * // }; * * ``` * * @param ListLegalHoldsCommandInput - {@link ListLegalHoldsCommandInput} * @returns {@link ListLegalHoldsCommandOutput} * @see {@link ListLegalHoldsCommandInput} for command's `input` shape. * @see {@link ListLegalHoldsCommandOutput} 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 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 ListLegalHoldsCommand extends ListLegalHoldsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListLegalHoldsInput; output: ListLegalHoldsOutput; }; sdk: { input: ListLegalHoldsCommandInput; output: ListLegalHoldsCommandOutput; }; }; }