import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetBackupPlanInput, GetBackupPlanOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetBackupPlanCommand}. */ export interface GetBackupPlanCommandInput extends GetBackupPlanInput { } /** * @public * * The output of {@link GetBackupPlanCommand}. */ export interface GetBackupPlanCommandOutput extends GetBackupPlanOutput, __MetadataBearer { } declare const GetBackupPlanCommand_base: { new (input: GetBackupPlanCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetBackupPlanCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns BackupPlan details for the specified BackupPlanId. The * details are the body of a backup plan in JSON format, in addition to plan metadata.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BackupClient, GetBackupPlanCommand } from "@aws-sdk/client-backup"; // ES Modules import * // const { BackupClient, GetBackupPlanCommand } = 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 = { // GetBackupPlanInput * BackupPlanId: "STRING_VALUE", // required * VersionId: "STRING_VALUE", * MaxScheduledRunsPreview: Number("int"), * }; * const command = new GetBackupPlanCommand(input); * const response = await client.send(command); * // { // GetBackupPlanOutput * // BackupPlan: { // BackupPlan * // BackupPlanName: "STRING_VALUE", // required * // Rules: [ // BackupRules // required * // { // BackupRule * // RuleName: "STRING_VALUE", // required * // TargetBackupVaultName: "STRING_VALUE", // required * // TargetLogicallyAirGappedBackupVaultArn: "STRING_VALUE", * // ScheduleExpression: "STRING_VALUE", * // StartWindowMinutes: Number("long"), * // CompletionWindowMinutes: Number("long"), * // Lifecycle: { // Lifecycle * // MoveToColdStorageAfterDays: Number("long"), * // DeleteAfterDays: Number("long"), * // OptInToArchiveForSupportedResources: true || false, * // DeleteAfterEvent: "DELETE_AFTER_COPY", * // }, * // RecoveryPointTags: { // Tags * // "": "STRING_VALUE", * // }, * // RuleId: "STRING_VALUE", * // CopyActions: [ // CopyActions * // { // CopyAction * // Lifecycle: { * // MoveToColdStorageAfterDays: Number("long"), * // DeleteAfterDays: Number("long"), * // OptInToArchiveForSupportedResources: true || false, * // DeleteAfterEvent: "DELETE_AFTER_COPY", * // }, * // DestinationBackupVaultArn: "STRING_VALUE", // required * // }, * // ], * // EnableContinuousBackup: true || false, * // ScheduleExpressionTimezone: "STRING_VALUE", * // IndexActions: [ // IndexActions * // { // IndexAction * // ResourceTypes: [ // ResourceTypes * // "STRING_VALUE", * // ], * // }, * // ], * // ScanActions: [ // ScanActions * // { // ScanAction * // MalwareScanner: "GUARDDUTY", * // ScanMode: "FULL_SCAN" || "INCREMENTAL_SCAN", * // }, * // ], * // }, * // ], * // AdvancedBackupSettings: [ // AdvancedBackupSettings * // { // AdvancedBackupSetting * // ResourceType: "STRING_VALUE", * // BackupOptions: { // BackupOptions * // "": "STRING_VALUE", * // }, * // }, * // ], * // ScanSettings: [ // ScanSettings * // { // ScanSetting * // MalwareScanner: "GUARDDUTY", * // ResourceTypes: [ * // "STRING_VALUE", * // ], * // ScannerRoleArn: "STRING_VALUE", * // }, * // ], * // }, * // BackupPlanId: "STRING_VALUE", * // BackupPlanArn: "STRING_VALUE", * // VersionId: "STRING_VALUE", * // CreatorRequestId: "STRING_VALUE", * // CreationDate: new Date("TIMESTAMP"), * // DeletionDate: new Date("TIMESTAMP"), * // LastExecutionDate: new Date("TIMESTAMP"), * // AdvancedBackupSettings: [ * // { * // ResourceType: "STRING_VALUE", * // BackupOptions: { * // "": "STRING_VALUE", * // }, * // }, * // ], * // ScheduledRunsPreview: [ // ScheduledRunsPreview * // { // ScheduledPlanExecutionMember * // ExecutionTime: new Date("TIMESTAMP"), * // RuleId: "STRING_VALUE", * // RuleExecutionType: "CONTINUOUS" || "SNAPSHOTS" || "CONTINUOUS_AND_SNAPSHOTS", * // }, * // ], * // }; * * ``` * * @param GetBackupPlanCommandInput - {@link GetBackupPlanCommandInput} * @returns {@link GetBackupPlanCommandOutput} * @see {@link GetBackupPlanCommandInput} for command's `input` shape. * @see {@link GetBackupPlanCommandOutput} 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 GetBackupPlanCommand extends GetBackupPlanCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetBackupPlanInput; output: GetBackupPlanOutput; }; sdk: { input: GetBackupPlanCommandInput; output: GetBackupPlanCommandOutput; }; }; }