@aws-sdk/client-backup 3.216.0 → 3.222.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 +29 -28
package/dist-es/Backup.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BackupClient } from "./BackupClient";
|
|
2
|
+
import { CancelLegalHoldCommand, } from "./commands/CancelLegalHoldCommand";
|
|
2
3
|
import { CreateBackupPlanCommand, } from "./commands/CreateBackupPlanCommand";
|
|
3
4
|
import { CreateBackupSelectionCommand, } from "./commands/CreateBackupSelectionCommand";
|
|
4
5
|
import { CreateBackupVaultCommand, } from "./commands/CreateBackupVaultCommand";
|
|
5
6
|
import { CreateFrameworkCommand, } from "./commands/CreateFrameworkCommand";
|
|
7
|
+
import { CreateLegalHoldCommand, } from "./commands/CreateLegalHoldCommand";
|
|
6
8
|
import { CreateReportPlanCommand, } from "./commands/CreateReportPlanCommand";
|
|
7
9
|
import { DeleteBackupPlanCommand, } from "./commands/DeleteBackupPlanCommand";
|
|
8
10
|
import { DeleteBackupSelectionCommand, } from "./commands/DeleteBackupSelectionCommand";
|
|
@@ -25,6 +27,7 @@ import { DescribeReportJobCommand, } from "./commands/DescribeReportJobCommand";
|
|
|
25
27
|
import { DescribeReportPlanCommand, } from "./commands/DescribeReportPlanCommand";
|
|
26
28
|
import { DescribeRestoreJobCommand, } from "./commands/DescribeRestoreJobCommand";
|
|
27
29
|
import { DisassociateRecoveryPointCommand, } from "./commands/DisassociateRecoveryPointCommand";
|
|
30
|
+
import { DisassociateRecoveryPointFromParentCommand, } from "./commands/DisassociateRecoveryPointFromParentCommand";
|
|
28
31
|
import { ExportBackupPlanTemplateCommand, } from "./commands/ExportBackupPlanTemplateCommand";
|
|
29
32
|
import { GetBackupPlanCommand, } from "./commands/GetBackupPlanCommand";
|
|
30
33
|
import { GetBackupPlanFromJSONCommand, } from "./commands/GetBackupPlanFromJSONCommand";
|
|
@@ -32,6 +35,7 @@ import { GetBackupPlanFromTemplateCommand, } from "./commands/GetBackupPlanFromT
|
|
|
32
35
|
import { GetBackupSelectionCommand, } from "./commands/GetBackupSelectionCommand";
|
|
33
36
|
import { GetBackupVaultAccessPolicyCommand, } from "./commands/GetBackupVaultAccessPolicyCommand";
|
|
34
37
|
import { GetBackupVaultNotificationsCommand, } from "./commands/GetBackupVaultNotificationsCommand";
|
|
38
|
+
import { GetLegalHoldCommand, } from "./commands/GetLegalHoldCommand";
|
|
35
39
|
import { GetRecoveryPointRestoreMetadataCommand, } from "./commands/GetRecoveryPointRestoreMetadataCommand";
|
|
36
40
|
import { GetSupportedResourceTypesCommand, } from "./commands/GetSupportedResourceTypesCommand";
|
|
37
41
|
import { ListBackupJobsCommand, } from "./commands/ListBackupJobsCommand";
|
|
@@ -42,8 +46,10 @@ import { ListBackupSelectionsCommand, } from "./commands/ListBackupSelectionsCom
|
|
|
42
46
|
import { ListBackupVaultsCommand, } from "./commands/ListBackupVaultsCommand";
|
|
43
47
|
import { ListCopyJobsCommand, } from "./commands/ListCopyJobsCommand";
|
|
44
48
|
import { ListFrameworksCommand, } from "./commands/ListFrameworksCommand";
|
|
49
|
+
import { ListLegalHoldsCommand, } from "./commands/ListLegalHoldsCommand";
|
|
45
50
|
import { ListProtectedResourcesCommand, } from "./commands/ListProtectedResourcesCommand";
|
|
46
51
|
import { ListRecoveryPointsByBackupVaultCommand, } from "./commands/ListRecoveryPointsByBackupVaultCommand";
|
|
52
|
+
import { ListRecoveryPointsByLegalHoldCommand, } from "./commands/ListRecoveryPointsByLegalHoldCommand";
|
|
47
53
|
import { ListRecoveryPointsByResourceCommand, } from "./commands/ListRecoveryPointsByResourceCommand";
|
|
48
54
|
import { ListReportJobsCommand, } from "./commands/ListReportJobsCommand";
|
|
49
55
|
import { ListReportPlansCommand, } from "./commands/ListReportPlansCommand";
|
|
@@ -66,6 +72,20 @@ import { UpdateRecoveryPointLifecycleCommand, } from "./commands/UpdateRecoveryP
|
|
|
66
72
|
import { UpdateRegionSettingsCommand, } from "./commands/UpdateRegionSettingsCommand";
|
|
67
73
|
import { UpdateReportPlanCommand, } from "./commands/UpdateReportPlanCommand";
|
|
68
74
|
export class Backup extends BackupClient {
|
|
75
|
+
cancelLegalHold(args, optionsOrCb, cb) {
|
|
76
|
+
const command = new CancelLegalHoldCommand(args);
|
|
77
|
+
if (typeof optionsOrCb === "function") {
|
|
78
|
+
this.send(command, optionsOrCb);
|
|
79
|
+
}
|
|
80
|
+
else if (typeof cb === "function") {
|
|
81
|
+
if (typeof optionsOrCb !== "object")
|
|
82
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return this.send(command, optionsOrCb);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
69
89
|
createBackupPlan(args, optionsOrCb, cb) {
|
|
70
90
|
const command = new CreateBackupPlanCommand(args);
|
|
71
91
|
if (typeof optionsOrCb === "function") {
|
|
@@ -122,6 +142,20 @@ export class Backup extends BackupClient {
|
|
|
122
142
|
return this.send(command, optionsOrCb);
|
|
123
143
|
}
|
|
124
144
|
}
|
|
145
|
+
createLegalHold(args, optionsOrCb, cb) {
|
|
146
|
+
const command = new CreateLegalHoldCommand(args);
|
|
147
|
+
if (typeof optionsOrCb === "function") {
|
|
148
|
+
this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
else if (typeof cb === "function") {
|
|
151
|
+
if (typeof optionsOrCb !== "object")
|
|
152
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
return this.send(command, optionsOrCb);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
125
159
|
createReportPlan(args, optionsOrCb, cb) {
|
|
126
160
|
const command = new CreateReportPlanCommand(args);
|
|
127
161
|
if (typeof optionsOrCb === "function") {
|
|
@@ -430,6 +464,20 @@ export class Backup extends BackupClient {
|
|
|
430
464
|
return this.send(command, optionsOrCb);
|
|
431
465
|
}
|
|
432
466
|
}
|
|
467
|
+
disassociateRecoveryPointFromParent(args, optionsOrCb, cb) {
|
|
468
|
+
const command = new DisassociateRecoveryPointFromParentCommand(args);
|
|
469
|
+
if (typeof optionsOrCb === "function") {
|
|
470
|
+
this.send(command, optionsOrCb);
|
|
471
|
+
}
|
|
472
|
+
else if (typeof cb === "function") {
|
|
473
|
+
if (typeof optionsOrCb !== "object")
|
|
474
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
475
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
return this.send(command, optionsOrCb);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
433
481
|
exportBackupPlanTemplate(args, optionsOrCb, cb) {
|
|
434
482
|
const command = new ExportBackupPlanTemplateCommand(args);
|
|
435
483
|
if (typeof optionsOrCb === "function") {
|
|
@@ -528,6 +576,20 @@ export class Backup extends BackupClient {
|
|
|
528
576
|
return this.send(command, optionsOrCb);
|
|
529
577
|
}
|
|
530
578
|
}
|
|
579
|
+
getLegalHold(args, optionsOrCb, cb) {
|
|
580
|
+
const command = new GetLegalHoldCommand(args);
|
|
581
|
+
if (typeof optionsOrCb === "function") {
|
|
582
|
+
this.send(command, optionsOrCb);
|
|
583
|
+
}
|
|
584
|
+
else if (typeof cb === "function") {
|
|
585
|
+
if (typeof optionsOrCb !== "object")
|
|
586
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
587
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
return this.send(command, optionsOrCb);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
531
593
|
getRecoveryPointRestoreMetadata(args, optionsOrCb, cb) {
|
|
532
594
|
const command = new GetRecoveryPointRestoreMetadataCommand(args);
|
|
533
595
|
if (typeof optionsOrCb === "function") {
|
|
@@ -668,6 +730,20 @@ export class Backup extends BackupClient {
|
|
|
668
730
|
return this.send(command, optionsOrCb);
|
|
669
731
|
}
|
|
670
732
|
}
|
|
733
|
+
listLegalHolds(args, optionsOrCb, cb) {
|
|
734
|
+
const command = new ListLegalHoldsCommand(args);
|
|
735
|
+
if (typeof optionsOrCb === "function") {
|
|
736
|
+
this.send(command, optionsOrCb);
|
|
737
|
+
}
|
|
738
|
+
else if (typeof cb === "function") {
|
|
739
|
+
if (typeof optionsOrCb !== "object")
|
|
740
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
741
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
return this.send(command, optionsOrCb);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
671
747
|
listProtectedResources(args, optionsOrCb, cb) {
|
|
672
748
|
const command = new ListProtectedResourcesCommand(args);
|
|
673
749
|
if (typeof optionsOrCb === "function") {
|
|
@@ -696,6 +772,20 @@ export class Backup extends BackupClient {
|
|
|
696
772
|
return this.send(command, optionsOrCb);
|
|
697
773
|
}
|
|
698
774
|
}
|
|
775
|
+
listRecoveryPointsByLegalHold(args, optionsOrCb, cb) {
|
|
776
|
+
const command = new ListRecoveryPointsByLegalHoldCommand(args);
|
|
777
|
+
if (typeof optionsOrCb === "function") {
|
|
778
|
+
this.send(command, optionsOrCb);
|
|
779
|
+
}
|
|
780
|
+
else if (typeof cb === "function") {
|
|
781
|
+
if (typeof optionsOrCb !== "object")
|
|
782
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
783
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
784
|
+
}
|
|
785
|
+
else {
|
|
786
|
+
return this.send(command, optionsOrCb);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
699
789
|
listRecoveryPointsByResource(args, optionsOrCb, cb) {
|
|
700
790
|
const command = new ListRecoveryPointsByResourceCommand(args);
|
|
701
791
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CancelLegalHoldInputFilterSensitiveLog, CancelLegalHoldOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CancelLegalHoldCommand, serializeAws_restJson1CancelLegalHoldCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CancelLegalHoldCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CancelLegalHoldCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "CancelLegalHoldCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CancelLegalHoldInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CancelLegalHoldOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CancelLegalHoldCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CancelLegalHoldCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateLegalHoldInputFilterSensitiveLog, CreateLegalHoldOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateLegalHoldCommand, serializeAws_restJson1CreateLegalHoldCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateLegalHoldCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateLegalHoldCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "CreateLegalHoldCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateLegalHoldInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateLegalHoldOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateLegalHoldCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateLegalHoldCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DisassociateRecoveryPointFromParentInputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DisassociateRecoveryPointFromParentCommand, serializeAws_restJson1DisassociateRecoveryPointFromParentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DisassociateRecoveryPointFromParentCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateRecoveryPointFromParentCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "DisassociateRecoveryPointFromParentCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DisassociateRecoveryPointFromParentInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DisassociateRecoveryPointFromParentCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DisassociateRecoveryPointFromParentCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetLegalHoldInputFilterSensitiveLog, GetLegalHoldOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetLegalHoldCommand, serializeAws_restJson1GetLegalHoldCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetLegalHoldCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetLegalHoldCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "GetLegalHoldCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetLegalHoldInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetLegalHoldOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetLegalHoldCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetLegalHoldCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListLegalHoldsInputFilterSensitiveLog, ListLegalHoldsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListLegalHoldsCommand, serializeAws_restJson1ListLegalHoldsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListLegalHoldsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListLegalHoldsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "ListLegalHoldsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListLegalHoldsInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListLegalHoldsOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListLegalHoldsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListLegalHoldsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListRecoveryPointsByLegalHoldInputFilterSensitiveLog, ListRecoveryPointsByLegalHoldOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListRecoveryPointsByLegalHoldCommand, serializeAws_restJson1ListRecoveryPointsByLegalHoldCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListRecoveryPointsByLegalHoldCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListRecoveryPointsByLegalHoldCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BackupClient";
|
|
25
|
+
const commandName = "ListRecoveryPointsByLegalHoldCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListRecoveryPointsByLegalHoldInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListRecoveryPointsByLegalHoldOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListRecoveryPointsByLegalHoldCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListRecoveryPointsByLegalHoldCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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";
|