@aws-sdk/client-backup 3.216.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist-cjs/Backup.js +90 -0
- package/dist-cjs/commands/CancelLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/CreateLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/DisassociateRecoveryPointFromParentCommand.js +46 -0
- package/dist-cjs/commands/GetLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/ListLegalHoldsCommand.js +46 -0
- package/dist-cjs/commands/ListRecoveryPointsByLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +116 -46
- package/dist-cjs/pagination/ListLegalHoldsPaginator.js +36 -0
- package/dist-cjs/pagination/ListRecoveryPointsByLegalHoldPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +615 -3
- package/dist-es/Backup.js +90 -0
- package/dist-es/commands/CancelLegalHoldCommand.js +42 -0
- package/dist-es/commands/CreateLegalHoldCommand.js +42 -0
- package/dist-es/commands/DisassociateRecoveryPointFromParentCommand.js +42 -0
- package/dist-es/commands/GetLegalHoldCommand.js +42 -0
- package/dist-es/commands/ListLegalHoldsCommand.js +42 -0
- package/dist-es/commands/ListRecoveryPointsByLegalHoldCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +90 -35
- package/dist-es/pagination/ListLegalHoldsPaginator.js +32 -0
- package/dist-es/pagination/ListRecoveryPointsByLegalHoldPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +600 -0
- package/dist-types/Backup.d.ts +63 -0
- package/dist-types/BackupClient.d.ts +8 -2
- package/dist-types/commands/CancelLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/CreateLegalHoldCommand.d.ts +40 -0
- package/dist-types/commands/DeleteRecoveryPointCommand.d.ts +10 -0
- package/dist-types/commands/DisassociateRecoveryPointFromParentCommand.d.ts +38 -0
- package/dist-types/commands/GetLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/ListLegalHoldsCommand.d.ts +37 -0
- package/dist-types/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/StopBackupJobCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +653 -128
- package/dist-types/pagination/ListLegalHoldsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Backup.d.ts +108 -0
- package/dist-types/ts3.4/BackupClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CancelLegalHoldCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateLegalHoldCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DisassociateRecoveryPointFromParentCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetLegalHoldCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListLegalHoldsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +210 -55
- package/dist-types/ts3.4/pagination/ListLegalHoldsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +3 -3
package/dist-types/Backup.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { BackupClient } from "./BackupClient";
|
|
3
|
+
import { CancelLegalHoldCommandInput, CancelLegalHoldCommandOutput } from "./commands/CancelLegalHoldCommand";
|
|
3
4
|
import { CreateBackupPlanCommandInput, CreateBackupPlanCommandOutput } from "./commands/CreateBackupPlanCommand";
|
|
4
5
|
import { CreateBackupSelectionCommandInput, CreateBackupSelectionCommandOutput } from "./commands/CreateBackupSelectionCommand";
|
|
5
6
|
import { CreateBackupVaultCommandInput, CreateBackupVaultCommandOutput } from "./commands/CreateBackupVaultCommand";
|
|
6
7
|
import { CreateFrameworkCommandInput, CreateFrameworkCommandOutput } from "./commands/CreateFrameworkCommand";
|
|
8
|
+
import { CreateLegalHoldCommandInput, CreateLegalHoldCommandOutput } from "./commands/CreateLegalHoldCommand";
|
|
7
9
|
import { CreateReportPlanCommandInput, CreateReportPlanCommandOutput } from "./commands/CreateReportPlanCommand";
|
|
8
10
|
import { DeleteBackupPlanCommandInput, DeleteBackupPlanCommandOutput } from "./commands/DeleteBackupPlanCommand";
|
|
9
11
|
import { DeleteBackupSelectionCommandInput, DeleteBackupSelectionCommandOutput } from "./commands/DeleteBackupSelectionCommand";
|
|
@@ -26,6 +28,7 @@ import { DescribeReportJobCommandInput, DescribeReportJobCommandOutput } from ".
|
|
|
26
28
|
import { DescribeReportPlanCommandInput, DescribeReportPlanCommandOutput } from "./commands/DescribeReportPlanCommand";
|
|
27
29
|
import { DescribeRestoreJobCommandInput, DescribeRestoreJobCommandOutput } from "./commands/DescribeRestoreJobCommand";
|
|
28
30
|
import { DisassociateRecoveryPointCommandInput, DisassociateRecoveryPointCommandOutput } from "./commands/DisassociateRecoveryPointCommand";
|
|
31
|
+
import { DisassociateRecoveryPointFromParentCommandInput, DisassociateRecoveryPointFromParentCommandOutput } from "./commands/DisassociateRecoveryPointFromParentCommand";
|
|
29
32
|
import { ExportBackupPlanTemplateCommandInput, ExportBackupPlanTemplateCommandOutput } from "./commands/ExportBackupPlanTemplateCommand";
|
|
30
33
|
import { GetBackupPlanCommandInput, GetBackupPlanCommandOutput } from "./commands/GetBackupPlanCommand";
|
|
31
34
|
import { GetBackupPlanFromJSONCommandInput, GetBackupPlanFromJSONCommandOutput } from "./commands/GetBackupPlanFromJSONCommand";
|
|
@@ -33,6 +36,7 @@ import { GetBackupPlanFromTemplateCommandInput, GetBackupPlanFromTemplateCommand
|
|
|
33
36
|
import { GetBackupSelectionCommandInput, GetBackupSelectionCommandOutput } from "./commands/GetBackupSelectionCommand";
|
|
34
37
|
import { GetBackupVaultAccessPolicyCommandInput, GetBackupVaultAccessPolicyCommandOutput } from "./commands/GetBackupVaultAccessPolicyCommand";
|
|
35
38
|
import { GetBackupVaultNotificationsCommandInput, GetBackupVaultNotificationsCommandOutput } from "./commands/GetBackupVaultNotificationsCommand";
|
|
39
|
+
import { GetLegalHoldCommandInput, GetLegalHoldCommandOutput } from "./commands/GetLegalHoldCommand";
|
|
36
40
|
import { GetRecoveryPointRestoreMetadataCommandInput, GetRecoveryPointRestoreMetadataCommandOutput } from "./commands/GetRecoveryPointRestoreMetadataCommand";
|
|
37
41
|
import { GetSupportedResourceTypesCommandInput, GetSupportedResourceTypesCommandOutput } from "./commands/GetSupportedResourceTypesCommand";
|
|
38
42
|
import { ListBackupJobsCommandInput, ListBackupJobsCommandOutput } from "./commands/ListBackupJobsCommand";
|
|
@@ -43,8 +47,10 @@ import { ListBackupSelectionsCommandInput, ListBackupSelectionsCommandOutput } f
|
|
|
43
47
|
import { ListBackupVaultsCommandInput, ListBackupVaultsCommandOutput } from "./commands/ListBackupVaultsCommand";
|
|
44
48
|
import { ListCopyJobsCommandInput, ListCopyJobsCommandOutput } from "./commands/ListCopyJobsCommand";
|
|
45
49
|
import { ListFrameworksCommandInput, ListFrameworksCommandOutput } from "./commands/ListFrameworksCommand";
|
|
50
|
+
import { ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput } from "./commands/ListLegalHoldsCommand";
|
|
46
51
|
import { ListProtectedResourcesCommandInput, ListProtectedResourcesCommandOutput } from "./commands/ListProtectedResourcesCommand";
|
|
47
52
|
import { ListRecoveryPointsByBackupVaultCommandInput, ListRecoveryPointsByBackupVaultCommandOutput } from "./commands/ListRecoveryPointsByBackupVaultCommand";
|
|
53
|
+
import { ListRecoveryPointsByLegalHoldCommandInput, ListRecoveryPointsByLegalHoldCommandOutput } from "./commands/ListRecoveryPointsByLegalHoldCommand";
|
|
48
54
|
import { ListRecoveryPointsByResourceCommandInput, ListRecoveryPointsByResourceCommandOutput } from "./commands/ListRecoveryPointsByResourceCommand";
|
|
49
55
|
import { ListReportJobsCommandInput, ListReportJobsCommandOutput } from "./commands/ListReportJobsCommand";
|
|
50
56
|
import { ListReportPlansCommandInput, ListReportPlansCommandOutput } from "./commands/ListReportPlansCommand";
|
|
@@ -74,6 +80,13 @@ import { UpdateReportPlanCommandInput, UpdateReportPlanCommandOutput } from "./c
|
|
|
74
80
|
* auditing.</p>
|
|
75
81
|
*/
|
|
76
82
|
export declare class Backup extends BackupClient {
|
|
83
|
+
/**
|
|
84
|
+
* <p>This action removes the specified legal hold on a recovery point.
|
|
85
|
+
* This action can only be performed by a user with sufficient permissions.</p>
|
|
86
|
+
*/
|
|
87
|
+
cancelLegalHold(args: CancelLegalHoldCommandInput, options?: __HttpHandlerOptions): Promise<CancelLegalHoldCommandOutput>;
|
|
88
|
+
cancelLegalHold(args: CancelLegalHoldCommandInput, cb: (err: any, data?: CancelLegalHoldCommandOutput) => void): void;
|
|
89
|
+
cancelLegalHold(args: CancelLegalHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelLegalHoldCommandOutput) => void): void;
|
|
77
90
|
/**
|
|
78
91
|
* <p>Creates a backup plan using a backup plan name and backup rules. A backup plan is a
|
|
79
92
|
* document that contains information that Backup uses to schedule tasks that
|
|
@@ -112,6 +125,15 @@ export declare class Backup extends BackupClient {
|
|
|
112
125
|
createFramework(args: CreateFrameworkCommandInput, options?: __HttpHandlerOptions): Promise<CreateFrameworkCommandOutput>;
|
|
113
126
|
createFramework(args: CreateFrameworkCommandInput, cb: (err: any, data?: CreateFrameworkCommandOutput) => void): void;
|
|
114
127
|
createFramework(args: CreateFrameworkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFrameworkCommandOutput) => void): void;
|
|
128
|
+
/**
|
|
129
|
+
* <p>This action creates a legal hold on a recovery point (backup). A legal hold
|
|
130
|
+
* is a restraint on altering or deleting a backup until an authorized user cancels the
|
|
131
|
+
* legal hold. Any actions to delete or disassociate a recovery point will fail with
|
|
132
|
+
* an error if one or more active legal holds are on the recovery point.</p>
|
|
133
|
+
*/
|
|
134
|
+
createLegalHold(args: CreateLegalHoldCommandInput, options?: __HttpHandlerOptions): Promise<CreateLegalHoldCommandOutput>;
|
|
135
|
+
createLegalHold(args: CreateLegalHoldCommandInput, cb: (err: any, data?: CreateLegalHoldCommandOutput) => void): void;
|
|
136
|
+
createLegalHold(args: CreateLegalHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLegalHoldCommandOutput) => void): void;
|
|
115
137
|
/**
|
|
116
138
|
* <p>Creates a report plan. A report plan is a document that contains information about the
|
|
117
139
|
* contents of the report and where Backup will deliver it.</p>
|
|
@@ -176,6 +198,16 @@ export declare class Backup extends BackupClient {
|
|
|
176
198
|
* <p>Deletes the recovery point specified by a recovery point ID.</p>
|
|
177
199
|
* <p>If the recovery point ID belongs to a continuous backup, calling this endpoint deletes
|
|
178
200
|
* the existing continuous backup and stops future continuous backup.</p>
|
|
201
|
+
* <p>When an IAM role's permissions are insufficient to call this API, the service sends back
|
|
202
|
+
* an HTTP 200 response with an empty HTTP body, but the recovery point is not deleted.
|
|
203
|
+
* Instead, it enters an <code>EXPIRED</code> state.</p>
|
|
204
|
+
* <p>
|
|
205
|
+
* <code>EXPIRED</code> recovery points can be deleted with this API once the IAM role
|
|
206
|
+
* has the <code>iam:CreateServiceLinkedRole</code> action. To learn more about adding this role, see
|
|
207
|
+
* <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/deleting-backups.html#deleting-backups-troubleshooting">
|
|
208
|
+
* Troubleshooting manual deletions</a>.</p>
|
|
209
|
+
* <p>If the user or role is deleted or the permission within the role is removed,
|
|
210
|
+
* the deletion will not be successful and will enter an <code>EXPIRED</code> state.</p>
|
|
179
211
|
*/
|
|
180
212
|
deleteRecoveryPoint(args: DeleteRecoveryPointCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecoveryPointCommandOutput>;
|
|
181
213
|
deleteRecoveryPoint(args: DeleteRecoveryPointCommandInput, cb: (err: any, data?: DeleteRecoveryPointCommandOutput) => void): void;
|
|
@@ -272,6 +304,13 @@ export declare class Backup extends BackupClient {
|
|
|
272
304
|
disassociateRecoveryPoint(args: DisassociateRecoveryPointCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateRecoveryPointCommandOutput>;
|
|
273
305
|
disassociateRecoveryPoint(args: DisassociateRecoveryPointCommandInput, cb: (err: any, data?: DisassociateRecoveryPointCommandOutput) => void): void;
|
|
274
306
|
disassociateRecoveryPoint(args: DisassociateRecoveryPointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateRecoveryPointCommandOutput) => void): void;
|
|
307
|
+
/**
|
|
308
|
+
* <p>This action to a specific child (nested) recovery point removes the relationship
|
|
309
|
+
* between the specified recovery point and its parent (composite) recovery point.</p>
|
|
310
|
+
*/
|
|
311
|
+
disassociateRecoveryPointFromParent(args: DisassociateRecoveryPointFromParentCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateRecoveryPointFromParentCommandOutput>;
|
|
312
|
+
disassociateRecoveryPointFromParent(args: DisassociateRecoveryPointFromParentCommandInput, cb: (err: any, data?: DisassociateRecoveryPointFromParentCommandOutput) => void): void;
|
|
313
|
+
disassociateRecoveryPointFromParent(args: DisassociateRecoveryPointFromParentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateRecoveryPointFromParentCommandOutput) => void): void;
|
|
275
314
|
/**
|
|
276
315
|
* <p>Returns the backup plan that is specified by the plan ID as a backup template.</p>
|
|
277
316
|
*/
|
|
@@ -317,6 +356,13 @@ export declare class Backup extends BackupClient {
|
|
|
317
356
|
getBackupVaultNotifications(args: GetBackupVaultNotificationsCommandInput, options?: __HttpHandlerOptions): Promise<GetBackupVaultNotificationsCommandOutput>;
|
|
318
357
|
getBackupVaultNotifications(args: GetBackupVaultNotificationsCommandInput, cb: (err: any, data?: GetBackupVaultNotificationsCommandOutput) => void): void;
|
|
319
358
|
getBackupVaultNotifications(args: GetBackupVaultNotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackupVaultNotificationsCommandOutput) => void): void;
|
|
359
|
+
/**
|
|
360
|
+
* <p>This action returns details for a specified legal hold. The details are the
|
|
361
|
+
* body of a legal hold in JSON format, in addition to metadata.</p>
|
|
362
|
+
*/
|
|
363
|
+
getLegalHold(args: GetLegalHoldCommandInput, options?: __HttpHandlerOptions): Promise<GetLegalHoldCommandOutput>;
|
|
364
|
+
getLegalHold(args: GetLegalHoldCommandInput, cb: (err: any, data?: GetLegalHoldCommandOutput) => void): void;
|
|
365
|
+
getLegalHold(args: GetLegalHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLegalHoldCommandOutput) => void): void;
|
|
320
366
|
/**
|
|
321
367
|
* <p>Returns a set of metadata key-value pairs that were used to create the backup.</p>
|
|
322
368
|
*/
|
|
@@ -384,6 +430,12 @@ export declare class Backup extends BackupClient {
|
|
|
384
430
|
listFrameworks(args: ListFrameworksCommandInput, options?: __HttpHandlerOptions): Promise<ListFrameworksCommandOutput>;
|
|
385
431
|
listFrameworks(args: ListFrameworksCommandInput, cb: (err: any, data?: ListFrameworksCommandOutput) => void): void;
|
|
386
432
|
listFrameworks(args: ListFrameworksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFrameworksCommandOutput) => void): void;
|
|
433
|
+
/**
|
|
434
|
+
* <p>This action returns metadata about active and previous legal holds.</p>
|
|
435
|
+
*/
|
|
436
|
+
listLegalHolds(args: ListLegalHoldsCommandInput, options?: __HttpHandlerOptions): Promise<ListLegalHoldsCommandOutput>;
|
|
437
|
+
listLegalHolds(args: ListLegalHoldsCommandInput, cb: (err: any, data?: ListLegalHoldsCommandOutput) => void): void;
|
|
438
|
+
listLegalHolds(args: ListLegalHoldsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLegalHoldsCommandOutput) => void): void;
|
|
387
439
|
/**
|
|
388
440
|
* <p>Returns an array of resources successfully backed up by Backup, including
|
|
389
441
|
* the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a
|
|
@@ -398,6 +450,13 @@ export declare class Backup extends BackupClient {
|
|
|
398
450
|
listRecoveryPointsByBackupVault(args: ListRecoveryPointsByBackupVaultCommandInput, options?: __HttpHandlerOptions): Promise<ListRecoveryPointsByBackupVaultCommandOutput>;
|
|
399
451
|
listRecoveryPointsByBackupVault(args: ListRecoveryPointsByBackupVaultCommandInput, cb: (err: any, data?: ListRecoveryPointsByBackupVaultCommandOutput) => void): void;
|
|
400
452
|
listRecoveryPointsByBackupVault(args: ListRecoveryPointsByBackupVaultCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecoveryPointsByBackupVaultCommandOutput) => void): void;
|
|
453
|
+
/**
|
|
454
|
+
* <p>This action returns recovery point ARNs (Amazon Resource Names) of the
|
|
455
|
+
* specified legal hold.</p>
|
|
456
|
+
*/
|
|
457
|
+
listRecoveryPointsByLegalHold(args: ListRecoveryPointsByLegalHoldCommandInput, options?: __HttpHandlerOptions): Promise<ListRecoveryPointsByLegalHoldCommandOutput>;
|
|
458
|
+
listRecoveryPointsByLegalHold(args: ListRecoveryPointsByLegalHoldCommandInput, cb: (err: any, data?: ListRecoveryPointsByLegalHoldCommandOutput) => void): void;
|
|
459
|
+
listRecoveryPointsByLegalHold(args: ListRecoveryPointsByLegalHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecoveryPointsByLegalHoldCommandOutput) => void): void;
|
|
401
460
|
/**
|
|
402
461
|
* <p>Returns detailed information about all the recovery points of the type specified by a
|
|
403
462
|
* resource Amazon Resource Name (ARN).</p>
|
|
@@ -495,6 +554,10 @@ export declare class Backup extends BackupClient {
|
|
|
495
554
|
startRestoreJob(args: StartRestoreJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartRestoreJobCommandOutput) => void): void;
|
|
496
555
|
/**
|
|
497
556
|
* <p>Attempts to cancel a job to create a one-time backup of a resource.</p>
|
|
557
|
+
* <p>This action is not supported for the following services:
|
|
558
|
+
* Amazon FSx for Windows File Server, Amazon FSx for Lustre, FSx for ONTAP
|
|
559
|
+
* , Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora,
|
|
560
|
+
* and Amazon Neptune.</p>
|
|
498
561
|
*/
|
|
499
562
|
stopBackupJob(args: StopBackupJobCommandInput, options?: __HttpHandlerOptions): Promise<StopBackupJobCommandOutput>;
|
|
500
563
|
stopBackupJob(args: StopBackupJobCommandInput, cb: (err: any, data?: StopBackupJobCommandOutput) => void): void;
|
|
@@ -7,10 +7,12 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
|
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
8
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
9
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
|
+
import { CancelLegalHoldCommandInput, CancelLegalHoldCommandOutput } from "./commands/CancelLegalHoldCommand";
|
|
10
11
|
import { CreateBackupPlanCommandInput, CreateBackupPlanCommandOutput } from "./commands/CreateBackupPlanCommand";
|
|
11
12
|
import { CreateBackupSelectionCommandInput, CreateBackupSelectionCommandOutput } from "./commands/CreateBackupSelectionCommand";
|
|
12
13
|
import { CreateBackupVaultCommandInput, CreateBackupVaultCommandOutput } from "./commands/CreateBackupVaultCommand";
|
|
13
14
|
import { CreateFrameworkCommandInput, CreateFrameworkCommandOutput } from "./commands/CreateFrameworkCommand";
|
|
15
|
+
import { CreateLegalHoldCommandInput, CreateLegalHoldCommandOutput } from "./commands/CreateLegalHoldCommand";
|
|
14
16
|
import { CreateReportPlanCommandInput, CreateReportPlanCommandOutput } from "./commands/CreateReportPlanCommand";
|
|
15
17
|
import { DeleteBackupPlanCommandInput, DeleteBackupPlanCommandOutput } from "./commands/DeleteBackupPlanCommand";
|
|
16
18
|
import { DeleteBackupSelectionCommandInput, DeleteBackupSelectionCommandOutput } from "./commands/DeleteBackupSelectionCommand";
|
|
@@ -33,6 +35,7 @@ import { DescribeReportJobCommandInput, DescribeReportJobCommandOutput } from ".
|
|
|
33
35
|
import { DescribeReportPlanCommandInput, DescribeReportPlanCommandOutput } from "./commands/DescribeReportPlanCommand";
|
|
34
36
|
import { DescribeRestoreJobCommandInput, DescribeRestoreJobCommandOutput } from "./commands/DescribeRestoreJobCommand";
|
|
35
37
|
import { DisassociateRecoveryPointCommandInput, DisassociateRecoveryPointCommandOutput } from "./commands/DisassociateRecoveryPointCommand";
|
|
38
|
+
import { DisassociateRecoveryPointFromParentCommandInput, DisassociateRecoveryPointFromParentCommandOutput } from "./commands/DisassociateRecoveryPointFromParentCommand";
|
|
36
39
|
import { ExportBackupPlanTemplateCommandInput, ExportBackupPlanTemplateCommandOutput } from "./commands/ExportBackupPlanTemplateCommand";
|
|
37
40
|
import { GetBackupPlanCommandInput, GetBackupPlanCommandOutput } from "./commands/GetBackupPlanCommand";
|
|
38
41
|
import { GetBackupPlanFromJSONCommandInput, GetBackupPlanFromJSONCommandOutput } from "./commands/GetBackupPlanFromJSONCommand";
|
|
@@ -40,6 +43,7 @@ import { GetBackupPlanFromTemplateCommandInput, GetBackupPlanFromTemplateCommand
|
|
|
40
43
|
import { GetBackupSelectionCommandInput, GetBackupSelectionCommandOutput } from "./commands/GetBackupSelectionCommand";
|
|
41
44
|
import { GetBackupVaultAccessPolicyCommandInput, GetBackupVaultAccessPolicyCommandOutput } from "./commands/GetBackupVaultAccessPolicyCommand";
|
|
42
45
|
import { GetBackupVaultNotificationsCommandInput, GetBackupVaultNotificationsCommandOutput } from "./commands/GetBackupVaultNotificationsCommand";
|
|
46
|
+
import { GetLegalHoldCommandInput, GetLegalHoldCommandOutput } from "./commands/GetLegalHoldCommand";
|
|
43
47
|
import { GetRecoveryPointRestoreMetadataCommandInput, GetRecoveryPointRestoreMetadataCommandOutput } from "./commands/GetRecoveryPointRestoreMetadataCommand";
|
|
44
48
|
import { GetSupportedResourceTypesCommandInput, GetSupportedResourceTypesCommandOutput } from "./commands/GetSupportedResourceTypesCommand";
|
|
45
49
|
import { ListBackupJobsCommandInput, ListBackupJobsCommandOutput } from "./commands/ListBackupJobsCommand";
|
|
@@ -50,8 +54,10 @@ import { ListBackupSelectionsCommandInput, ListBackupSelectionsCommandOutput } f
|
|
|
50
54
|
import { ListBackupVaultsCommandInput, ListBackupVaultsCommandOutput } from "./commands/ListBackupVaultsCommand";
|
|
51
55
|
import { ListCopyJobsCommandInput, ListCopyJobsCommandOutput } from "./commands/ListCopyJobsCommand";
|
|
52
56
|
import { ListFrameworksCommandInput, ListFrameworksCommandOutput } from "./commands/ListFrameworksCommand";
|
|
57
|
+
import { ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput } from "./commands/ListLegalHoldsCommand";
|
|
53
58
|
import { ListProtectedResourcesCommandInput, ListProtectedResourcesCommandOutput } from "./commands/ListProtectedResourcesCommand";
|
|
54
59
|
import { ListRecoveryPointsByBackupVaultCommandInput, ListRecoveryPointsByBackupVaultCommandOutput } from "./commands/ListRecoveryPointsByBackupVaultCommand";
|
|
60
|
+
import { ListRecoveryPointsByLegalHoldCommandInput, ListRecoveryPointsByLegalHoldCommandOutput } from "./commands/ListRecoveryPointsByLegalHoldCommand";
|
|
55
61
|
import { ListRecoveryPointsByResourceCommandInput, ListRecoveryPointsByResourceCommandOutput } from "./commands/ListRecoveryPointsByResourceCommand";
|
|
56
62
|
import { ListReportJobsCommandInput, ListReportJobsCommandOutput } from "./commands/ListReportJobsCommand";
|
|
57
63
|
import { ListReportPlansCommandInput, ListReportPlansCommandOutput } from "./commands/ListReportPlansCommand";
|
|
@@ -74,8 +80,8 @@ import { UpdateRecoveryPointLifecycleCommandInput, UpdateRecoveryPointLifecycleC
|
|
|
74
80
|
import { UpdateRegionSettingsCommandInput, UpdateRegionSettingsCommandOutput } from "./commands/UpdateRegionSettingsCommand";
|
|
75
81
|
import { UpdateReportPlanCommandInput, UpdateReportPlanCommandOutput } from "./commands/UpdateReportPlanCommand";
|
|
76
82
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
77
|
-
export declare type ServiceInputTypes = CreateBackupPlanCommandInput | CreateBackupSelectionCommandInput | CreateBackupVaultCommandInput | CreateFrameworkCommandInput | CreateReportPlanCommandInput | DeleteBackupPlanCommandInput | DeleteBackupSelectionCommandInput | DeleteBackupVaultAccessPolicyCommandInput | DeleteBackupVaultCommandInput | DeleteBackupVaultLockConfigurationCommandInput | DeleteBackupVaultNotificationsCommandInput | DeleteFrameworkCommandInput | DeleteRecoveryPointCommandInput | DeleteReportPlanCommandInput | DescribeBackupJobCommandInput | DescribeBackupVaultCommandInput | DescribeCopyJobCommandInput | DescribeFrameworkCommandInput | DescribeGlobalSettingsCommandInput | DescribeProtectedResourceCommandInput | DescribeRecoveryPointCommandInput | DescribeRegionSettingsCommandInput | DescribeReportJobCommandInput | DescribeReportPlanCommandInput | DescribeRestoreJobCommandInput | DisassociateRecoveryPointCommandInput | ExportBackupPlanTemplateCommandInput | GetBackupPlanCommandInput | GetBackupPlanFromJSONCommandInput | GetBackupPlanFromTemplateCommandInput | GetBackupSelectionCommandInput | GetBackupVaultAccessPolicyCommandInput | GetBackupVaultNotificationsCommandInput | GetRecoveryPointRestoreMetadataCommandInput | GetSupportedResourceTypesCommandInput | ListBackupJobsCommandInput | ListBackupPlanTemplatesCommandInput | ListBackupPlanVersionsCommandInput | ListBackupPlansCommandInput | ListBackupSelectionsCommandInput | ListBackupVaultsCommandInput | ListCopyJobsCommandInput | ListFrameworksCommandInput | ListProtectedResourcesCommandInput | ListRecoveryPointsByBackupVaultCommandInput | ListRecoveryPointsByResourceCommandInput | ListReportJobsCommandInput | ListReportPlansCommandInput | ListRestoreJobsCommandInput | ListTagsCommandInput | PutBackupVaultAccessPolicyCommandInput | PutBackupVaultLockConfigurationCommandInput | PutBackupVaultNotificationsCommandInput | StartBackupJobCommandInput | StartCopyJobCommandInput | StartReportJobCommandInput | StartRestoreJobCommandInput | StopBackupJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBackupPlanCommandInput | UpdateFrameworkCommandInput | UpdateGlobalSettingsCommandInput | UpdateRecoveryPointLifecycleCommandInput | UpdateRegionSettingsCommandInput | UpdateReportPlanCommandInput;
|
|
78
|
-
export declare type ServiceOutputTypes = CreateBackupPlanCommandOutput | CreateBackupSelectionCommandOutput | CreateBackupVaultCommandOutput | CreateFrameworkCommandOutput | CreateReportPlanCommandOutput | DeleteBackupPlanCommandOutput | DeleteBackupSelectionCommandOutput | DeleteBackupVaultAccessPolicyCommandOutput | DeleteBackupVaultCommandOutput | DeleteBackupVaultLockConfigurationCommandOutput | DeleteBackupVaultNotificationsCommandOutput | DeleteFrameworkCommandOutput | DeleteRecoveryPointCommandOutput | DeleteReportPlanCommandOutput | DescribeBackupJobCommandOutput | DescribeBackupVaultCommandOutput | DescribeCopyJobCommandOutput | DescribeFrameworkCommandOutput | DescribeGlobalSettingsCommandOutput | DescribeProtectedResourceCommandOutput | DescribeRecoveryPointCommandOutput | DescribeRegionSettingsCommandOutput | DescribeReportJobCommandOutput | DescribeReportPlanCommandOutput | DescribeRestoreJobCommandOutput | DisassociateRecoveryPointCommandOutput | ExportBackupPlanTemplateCommandOutput | GetBackupPlanCommandOutput | GetBackupPlanFromJSONCommandOutput | GetBackupPlanFromTemplateCommandOutput | GetBackupSelectionCommandOutput | GetBackupVaultAccessPolicyCommandOutput | GetBackupVaultNotificationsCommandOutput | GetRecoveryPointRestoreMetadataCommandOutput | GetSupportedResourceTypesCommandOutput | ListBackupJobsCommandOutput | ListBackupPlanTemplatesCommandOutput | ListBackupPlanVersionsCommandOutput | ListBackupPlansCommandOutput | ListBackupSelectionsCommandOutput | ListBackupVaultsCommandOutput | ListCopyJobsCommandOutput | ListFrameworksCommandOutput | ListProtectedResourcesCommandOutput | ListRecoveryPointsByBackupVaultCommandOutput | ListRecoveryPointsByResourceCommandOutput | ListReportJobsCommandOutput | ListReportPlansCommandOutput | ListRestoreJobsCommandOutput | ListTagsCommandOutput | PutBackupVaultAccessPolicyCommandOutput | PutBackupVaultLockConfigurationCommandOutput | PutBackupVaultNotificationsCommandOutput | StartBackupJobCommandOutput | StartCopyJobCommandOutput | StartReportJobCommandOutput | StartRestoreJobCommandOutput | StopBackupJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBackupPlanCommandOutput | UpdateFrameworkCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateRecoveryPointLifecycleCommandOutput | UpdateRegionSettingsCommandOutput | UpdateReportPlanCommandOutput;
|
|
83
|
+
export declare type ServiceInputTypes = CancelLegalHoldCommandInput | CreateBackupPlanCommandInput | CreateBackupSelectionCommandInput | CreateBackupVaultCommandInput | CreateFrameworkCommandInput | CreateLegalHoldCommandInput | CreateReportPlanCommandInput | DeleteBackupPlanCommandInput | DeleteBackupSelectionCommandInput | DeleteBackupVaultAccessPolicyCommandInput | DeleteBackupVaultCommandInput | DeleteBackupVaultLockConfigurationCommandInput | DeleteBackupVaultNotificationsCommandInput | DeleteFrameworkCommandInput | DeleteRecoveryPointCommandInput | DeleteReportPlanCommandInput | DescribeBackupJobCommandInput | DescribeBackupVaultCommandInput | DescribeCopyJobCommandInput | DescribeFrameworkCommandInput | DescribeGlobalSettingsCommandInput | DescribeProtectedResourceCommandInput | DescribeRecoveryPointCommandInput | DescribeRegionSettingsCommandInput | DescribeReportJobCommandInput | DescribeReportPlanCommandInput | DescribeRestoreJobCommandInput | DisassociateRecoveryPointCommandInput | DisassociateRecoveryPointFromParentCommandInput | ExportBackupPlanTemplateCommandInput | GetBackupPlanCommandInput | GetBackupPlanFromJSONCommandInput | GetBackupPlanFromTemplateCommandInput | GetBackupSelectionCommandInput | GetBackupVaultAccessPolicyCommandInput | GetBackupVaultNotificationsCommandInput | GetLegalHoldCommandInput | GetRecoveryPointRestoreMetadataCommandInput | GetSupportedResourceTypesCommandInput | ListBackupJobsCommandInput | ListBackupPlanTemplatesCommandInput | ListBackupPlanVersionsCommandInput | ListBackupPlansCommandInput | ListBackupSelectionsCommandInput | ListBackupVaultsCommandInput | ListCopyJobsCommandInput | ListFrameworksCommandInput | ListLegalHoldsCommandInput | ListProtectedResourcesCommandInput | ListRecoveryPointsByBackupVaultCommandInput | ListRecoveryPointsByLegalHoldCommandInput | ListRecoveryPointsByResourceCommandInput | ListReportJobsCommandInput | ListReportPlansCommandInput | ListRestoreJobsCommandInput | ListTagsCommandInput | PutBackupVaultAccessPolicyCommandInput | PutBackupVaultLockConfigurationCommandInput | PutBackupVaultNotificationsCommandInput | StartBackupJobCommandInput | StartCopyJobCommandInput | StartReportJobCommandInput | StartRestoreJobCommandInput | StopBackupJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBackupPlanCommandInput | UpdateFrameworkCommandInput | UpdateGlobalSettingsCommandInput | UpdateRecoveryPointLifecycleCommandInput | UpdateRegionSettingsCommandInput | UpdateReportPlanCommandInput;
|
|
84
|
+
export declare type ServiceOutputTypes = CancelLegalHoldCommandOutput | CreateBackupPlanCommandOutput | CreateBackupSelectionCommandOutput | CreateBackupVaultCommandOutput | CreateFrameworkCommandOutput | CreateLegalHoldCommandOutput | CreateReportPlanCommandOutput | DeleteBackupPlanCommandOutput | DeleteBackupSelectionCommandOutput | DeleteBackupVaultAccessPolicyCommandOutput | DeleteBackupVaultCommandOutput | DeleteBackupVaultLockConfigurationCommandOutput | DeleteBackupVaultNotificationsCommandOutput | DeleteFrameworkCommandOutput | DeleteRecoveryPointCommandOutput | DeleteReportPlanCommandOutput | DescribeBackupJobCommandOutput | DescribeBackupVaultCommandOutput | DescribeCopyJobCommandOutput | DescribeFrameworkCommandOutput | DescribeGlobalSettingsCommandOutput | DescribeProtectedResourceCommandOutput | DescribeRecoveryPointCommandOutput | DescribeRegionSettingsCommandOutput | DescribeReportJobCommandOutput | DescribeReportPlanCommandOutput | DescribeRestoreJobCommandOutput | DisassociateRecoveryPointCommandOutput | DisassociateRecoveryPointFromParentCommandOutput | ExportBackupPlanTemplateCommandOutput | GetBackupPlanCommandOutput | GetBackupPlanFromJSONCommandOutput | GetBackupPlanFromTemplateCommandOutput | GetBackupSelectionCommandOutput | GetBackupVaultAccessPolicyCommandOutput | GetBackupVaultNotificationsCommandOutput | GetLegalHoldCommandOutput | GetRecoveryPointRestoreMetadataCommandOutput | GetSupportedResourceTypesCommandOutput | ListBackupJobsCommandOutput | ListBackupPlanTemplatesCommandOutput | ListBackupPlanVersionsCommandOutput | ListBackupPlansCommandOutput | ListBackupSelectionsCommandOutput | ListBackupVaultsCommandOutput | ListCopyJobsCommandOutput | ListFrameworksCommandOutput | ListLegalHoldsCommandOutput | ListProtectedResourcesCommandOutput | ListRecoveryPointsByBackupVaultCommandOutput | ListRecoveryPointsByLegalHoldCommandOutput | ListRecoveryPointsByResourceCommandOutput | ListReportJobsCommandOutput | ListReportPlansCommandOutput | ListRestoreJobsCommandOutput | ListTagsCommandOutput | PutBackupVaultAccessPolicyCommandOutput | PutBackupVaultLockConfigurationCommandOutput | PutBackupVaultNotificationsCommandOutput | StartBackupJobCommandOutput | StartCopyJobCommandOutput | StartReportJobCommandOutput | StartRestoreJobCommandOutput | StopBackupJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBackupPlanCommandOutput | UpdateFrameworkCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateRecoveryPointLifecycleCommandOutput | UpdateRegionSettingsCommandOutput | UpdateReportPlanCommandOutput;
|
|
79
85
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
80
86
|
/**
|
|
81
87
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { CancelLegalHoldInput, CancelLegalHoldOutput } from "../models/models_0";
|
|
6
|
+
export interface CancelLegalHoldCommandInput extends CancelLegalHoldInput {
|
|
7
|
+
}
|
|
8
|
+
export interface CancelLegalHoldCommandOutput extends CancelLegalHoldOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action removes the specified legal hold on a recovery point.
|
|
12
|
+
* This action can only be performed by a user with sufficient permissions.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { BackupClient, CancelLegalHoldCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
17
|
+
* // const { BackupClient, CancelLegalHoldCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
18
|
+
* const client = new BackupClient(config);
|
|
19
|
+
* const command = new CancelLegalHoldCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link CancelLegalHoldCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link CancelLegalHoldCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class CancelLegalHoldCommand extends $Command<CancelLegalHoldCommandInput, CancelLegalHoldCommandOutput, BackupClientResolvedConfig> {
|
|
29
|
+
readonly input: CancelLegalHoldCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: CancelLegalHoldCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelLegalHoldCommandInput, CancelLegalHoldCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { CreateLegalHoldInput, CreateLegalHoldOutput } from "../models/models_0";
|
|
6
|
+
export interface CreateLegalHoldCommandInput extends CreateLegalHoldInput {
|
|
7
|
+
}
|
|
8
|
+
export interface CreateLegalHoldCommandOutput extends CreateLegalHoldOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action creates a legal hold on a recovery point (backup). A legal hold
|
|
12
|
+
* is a restraint on altering or deleting a backup until an authorized user cancels the
|
|
13
|
+
* legal hold. Any actions to delete or disassociate a recovery point will fail with
|
|
14
|
+
* an error if one or more active legal holds are on the recovery point.</p>
|
|
15
|
+
* @example
|
|
16
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
+
* ```javascript
|
|
18
|
+
* import { BackupClient, CreateLegalHoldCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
19
|
+
* // const { BackupClient, CreateLegalHoldCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
20
|
+
* const client = new BackupClient(config);
|
|
21
|
+
* const command = new CreateLegalHoldCommand(input);
|
|
22
|
+
* const response = await client.send(command);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see {@link CreateLegalHoldCommandInput} for command's `input` shape.
|
|
26
|
+
* @see {@link CreateLegalHoldCommandOutput} for command's `response` shape.
|
|
27
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class CreateLegalHoldCommand extends $Command<CreateLegalHoldCommandInput, CreateLegalHoldCommandOutput, BackupClientResolvedConfig> {
|
|
31
|
+
readonly input: CreateLegalHoldCommandInput;
|
|
32
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
33
|
+
constructor(input: CreateLegalHoldCommandInput);
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLegalHoldCommandInput, CreateLegalHoldCommandOutput>;
|
|
38
|
+
private serialize;
|
|
39
|
+
private deserialize;
|
|
40
|
+
}
|
|
@@ -11,6 +11,16 @@ export interface DeleteRecoveryPointCommandOutput extends __MetadataBearer {
|
|
|
11
11
|
* <p>Deletes the recovery point specified by a recovery point ID.</p>
|
|
12
12
|
* <p>If the recovery point ID belongs to a continuous backup, calling this endpoint deletes
|
|
13
13
|
* the existing continuous backup and stops future continuous backup.</p>
|
|
14
|
+
* <p>When an IAM role's permissions are insufficient to call this API, the service sends back
|
|
15
|
+
* an HTTP 200 response with an empty HTTP body, but the recovery point is not deleted.
|
|
16
|
+
* Instead, it enters an <code>EXPIRED</code> state.</p>
|
|
17
|
+
* <p>
|
|
18
|
+
* <code>EXPIRED</code> recovery points can be deleted with this API once the IAM role
|
|
19
|
+
* has the <code>iam:CreateServiceLinkedRole</code> action. To learn more about adding this role, see
|
|
20
|
+
* <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/deleting-backups.html#deleting-backups-troubleshooting">
|
|
21
|
+
* Troubleshooting manual deletions</a>.</p>
|
|
22
|
+
* <p>If the user or role is deleted or the permission within the role is removed,
|
|
23
|
+
* the deletion will not be successful and will enter an <code>EXPIRED</code> state.</p>
|
|
14
24
|
* @example
|
|
15
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
26
|
* ```javascript
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { DisassociateRecoveryPointFromParentInput } from "../models/models_0";
|
|
6
|
+
export interface DisassociateRecoveryPointFromParentCommandInput extends DisassociateRecoveryPointFromParentInput {
|
|
7
|
+
}
|
|
8
|
+
export interface DisassociateRecoveryPointFromParentCommandOutput extends __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action to a specific child (nested) recovery point removes the relationship
|
|
12
|
+
* between the specified recovery point and its parent (composite) recovery point.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { BackupClient, DisassociateRecoveryPointFromParentCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
17
|
+
* // const { BackupClient, DisassociateRecoveryPointFromParentCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
18
|
+
* const client = new BackupClient(config);
|
|
19
|
+
* const command = new DisassociateRecoveryPointFromParentCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link DisassociateRecoveryPointFromParentCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link DisassociateRecoveryPointFromParentCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class DisassociateRecoveryPointFromParentCommand extends $Command<DisassociateRecoveryPointFromParentCommandInput, DisassociateRecoveryPointFromParentCommandOutput, BackupClientResolvedConfig> {
|
|
29
|
+
readonly input: DisassociateRecoveryPointFromParentCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DisassociateRecoveryPointFromParentCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisassociateRecoveryPointFromParentCommandInput, DisassociateRecoveryPointFromParentCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { GetLegalHoldInput, GetLegalHoldOutput } from "../models/models_0";
|
|
6
|
+
export interface GetLegalHoldCommandInput extends GetLegalHoldInput {
|
|
7
|
+
}
|
|
8
|
+
export interface GetLegalHoldCommandOutput extends GetLegalHoldOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action returns details for a specified legal hold. The details are the
|
|
12
|
+
* body of a legal hold in JSON format, in addition to metadata.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { BackupClient, GetLegalHoldCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
17
|
+
* // const { BackupClient, GetLegalHoldCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
18
|
+
* const client = new BackupClient(config);
|
|
19
|
+
* const command = new GetLegalHoldCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link GetLegalHoldCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link GetLegalHoldCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetLegalHoldCommand extends $Command<GetLegalHoldCommandInput, GetLegalHoldCommandOutput, BackupClientResolvedConfig> {
|
|
29
|
+
readonly input: GetLegalHoldCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: GetLegalHoldCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLegalHoldCommandInput, GetLegalHoldCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { ListLegalHoldsInput, ListLegalHoldsOutput } from "../models/models_0";
|
|
6
|
+
export interface ListLegalHoldsCommandInput extends ListLegalHoldsInput {
|
|
7
|
+
}
|
|
8
|
+
export interface ListLegalHoldsCommandOutput extends ListLegalHoldsOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action returns metadata about active and previous legal holds.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { BackupClient, ListLegalHoldsCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
16
|
+
* // const { BackupClient, ListLegalHoldsCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
17
|
+
* const client = new BackupClient(config);
|
|
18
|
+
* const command = new ListLegalHoldsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ListLegalHoldsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ListLegalHoldsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ListLegalHoldsCommand extends $Command<ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput, BackupClientResolvedConfig> {
|
|
28
|
+
readonly input: ListLegalHoldsCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListLegalHoldsCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
|
|
5
|
+
import { ListRecoveryPointsByLegalHoldInput, ListRecoveryPointsByLegalHoldOutput } from "../models/models_0";
|
|
6
|
+
export interface ListRecoveryPointsByLegalHoldCommandInput extends ListRecoveryPointsByLegalHoldInput {
|
|
7
|
+
}
|
|
8
|
+
export interface ListRecoveryPointsByLegalHoldCommandOutput extends ListRecoveryPointsByLegalHoldOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This action returns recovery point ARNs (Amazon Resource Names) of the
|
|
12
|
+
* specified legal hold.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { BackupClient, ListRecoveryPointsByLegalHoldCommand } from "@aws-sdk/client-backup"; // ES Modules import
|
|
17
|
+
* // const { BackupClient, ListRecoveryPointsByLegalHoldCommand } = require("@aws-sdk/client-backup"); // CommonJS import
|
|
18
|
+
* const client = new BackupClient(config);
|
|
19
|
+
* const command = new ListRecoveryPointsByLegalHoldCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link ListRecoveryPointsByLegalHoldCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link ListRecoveryPointsByLegalHoldCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class ListRecoveryPointsByLegalHoldCommand extends $Command<ListRecoveryPointsByLegalHoldCommandInput, ListRecoveryPointsByLegalHoldCommandOutput, BackupClientResolvedConfig> {
|
|
29
|
+
readonly input: ListRecoveryPointsByLegalHoldCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: ListRecoveryPointsByLegalHoldCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRecoveryPointsByLegalHoldCommandInput, ListRecoveryPointsByLegalHoldCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -9,6 +9,10 @@ export interface StopBackupJobCommandOutput extends __MetadataBearer {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Attempts to cancel a job to create a one-time backup of a resource.</p>
|
|
12
|
+
* <p>This action is not supported for the following services:
|
|
13
|
+
* Amazon FSx for Windows File Server, Amazon FSx for Lustre, FSx for ONTAP
|
|
14
|
+
* , Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora,
|
|
15
|
+
* and Amazon Neptune.</p>
|
|
12
16
|
* @example
|
|
13
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
18
|
* ```javascript
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from "./CancelLegalHoldCommand";
|
|
1
2
|
export * from "./CreateBackupPlanCommand";
|
|
2
3
|
export * from "./CreateBackupSelectionCommand";
|
|
3
4
|
export * from "./CreateBackupVaultCommand";
|
|
4
5
|
export * from "./CreateFrameworkCommand";
|
|
6
|
+
export * from "./CreateLegalHoldCommand";
|
|
5
7
|
export * from "./CreateReportPlanCommand";
|
|
6
8
|
export * from "./DeleteBackupPlanCommand";
|
|
7
9
|
export * from "./DeleteBackupSelectionCommand";
|
|
@@ -24,6 +26,7 @@ export * from "./DescribeReportJobCommand";
|
|
|
24
26
|
export * from "./DescribeReportPlanCommand";
|
|
25
27
|
export * from "./DescribeRestoreJobCommand";
|
|
26
28
|
export * from "./DisassociateRecoveryPointCommand";
|
|
29
|
+
export * from "./DisassociateRecoveryPointFromParentCommand";
|
|
27
30
|
export * from "./ExportBackupPlanTemplateCommand";
|
|
28
31
|
export * from "./GetBackupPlanCommand";
|
|
29
32
|
export * from "./GetBackupPlanFromJSONCommand";
|
|
@@ -31,6 +34,7 @@ export * from "./GetBackupPlanFromTemplateCommand";
|
|
|
31
34
|
export * from "./GetBackupSelectionCommand";
|
|
32
35
|
export * from "./GetBackupVaultAccessPolicyCommand";
|
|
33
36
|
export * from "./GetBackupVaultNotificationsCommand";
|
|
37
|
+
export * from "./GetLegalHoldCommand";
|
|
34
38
|
export * from "./GetRecoveryPointRestoreMetadataCommand";
|
|
35
39
|
export * from "./GetSupportedResourceTypesCommand";
|
|
36
40
|
export * from "./ListBackupJobsCommand";
|
|
@@ -41,8 +45,10 @@ export * from "./ListBackupSelectionsCommand";
|
|
|
41
45
|
export * from "./ListBackupVaultsCommand";
|
|
42
46
|
export * from "./ListCopyJobsCommand";
|
|
43
47
|
export * from "./ListFrameworksCommand";
|
|
48
|
+
export * from "./ListLegalHoldsCommand";
|
|
44
49
|
export * from "./ListProtectedResourcesCommand";
|
|
45
50
|
export * from "./ListRecoveryPointsByBackupVaultCommand";
|
|
51
|
+
export * from "./ListRecoveryPointsByLegalHoldCommand";
|
|
46
52
|
export * from "./ListRecoveryPointsByResourceCommand";
|
|
47
53
|
export * from "./ListReportJobsCommand";
|
|
48
54
|
export * from "./ListReportPlansCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|