@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.
Files changed (62) hide show
  1. package/README.md +7 -7
  2. package/dist-cjs/Backup.js +90 -0
  3. package/dist-cjs/commands/CancelLegalHoldCommand.js +46 -0
  4. package/dist-cjs/commands/CreateLegalHoldCommand.js +46 -0
  5. package/dist-cjs/commands/DisassociateRecoveryPointFromParentCommand.js +46 -0
  6. package/dist-cjs/commands/GetLegalHoldCommand.js +46 -0
  7. package/dist-cjs/commands/ListLegalHoldsCommand.js +46 -0
  8. package/dist-cjs/commands/ListRecoveryPointsByLegalHoldCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +1 -1
  11. package/dist-cjs/models/models_0.js +116 -46
  12. package/dist-cjs/pagination/ListLegalHoldsPaginator.js +36 -0
  13. package/dist-cjs/pagination/ListRecoveryPointsByLegalHoldPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +2 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +615 -3
  16. package/dist-es/Backup.js +90 -0
  17. package/dist-es/commands/CancelLegalHoldCommand.js +42 -0
  18. package/dist-es/commands/CreateLegalHoldCommand.js +42 -0
  19. package/dist-es/commands/DisassociateRecoveryPointFromParentCommand.js +42 -0
  20. package/dist-es/commands/GetLegalHoldCommand.js +42 -0
  21. package/dist-es/commands/ListLegalHoldsCommand.js +42 -0
  22. package/dist-es/commands/ListRecoveryPointsByLegalHoldCommand.js +42 -0
  23. package/dist-es/commands/index.js +6 -0
  24. package/dist-es/endpoint/ruleset.js +1 -1
  25. package/dist-es/models/models_0.js +90 -35
  26. package/dist-es/pagination/ListLegalHoldsPaginator.js +32 -0
  27. package/dist-es/pagination/ListRecoveryPointsByLegalHoldPaginator.js +32 -0
  28. package/dist-es/pagination/index.js +2 -0
  29. package/dist-es/protocols/Aws_restJson1.js +600 -0
  30. package/dist-types/Backup.d.ts +63 -0
  31. package/dist-types/BackupClient.d.ts +8 -2
  32. package/dist-types/commands/CancelLegalHoldCommand.d.ts +38 -0
  33. package/dist-types/commands/CreateLegalHoldCommand.d.ts +40 -0
  34. package/dist-types/commands/DeleteRecoveryPointCommand.d.ts +10 -0
  35. package/dist-types/commands/DisassociateRecoveryPointFromParentCommand.d.ts +38 -0
  36. package/dist-types/commands/GetLegalHoldCommand.d.ts +38 -0
  37. package/dist-types/commands/ListLegalHoldsCommand.d.ts +37 -0
  38. package/dist-types/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +38 -0
  39. package/dist-types/commands/StopBackupJobCommand.d.ts +4 -0
  40. package/dist-types/commands/index.d.ts +6 -0
  41. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  42. package/dist-types/models/models_0.d.ts +653 -128
  43. package/dist-types/pagination/ListLegalHoldsPaginator.d.ts +4 -0
  44. package/dist-types/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +4 -0
  45. package/dist-types/pagination/index.d.ts +2 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  47. package/dist-types/ts3.4/Backup.d.ts +108 -0
  48. package/dist-types/ts3.4/BackupClient.d.ts +36 -0
  49. package/dist-types/ts3.4/commands/CancelLegalHoldCommand.d.ts +37 -0
  50. package/dist-types/ts3.4/commands/CreateLegalHoldCommand.d.ts +37 -0
  51. package/dist-types/ts3.4/commands/DisassociateRecoveryPointFromParentCommand.d.ts +37 -0
  52. package/dist-types/ts3.4/commands/GetLegalHoldCommand.d.ts +34 -0
  53. package/dist-types/ts3.4/commands/ListLegalHoldsCommand.d.ts +34 -0
  54. package/dist-types/ts3.4/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +41 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  57. package/dist-types/ts3.4/models/models_0.d.ts +210 -55
  58. package/dist-types/ts3.4/pagination/ListLegalHoldsPaginator.d.ts +11 -0
  59. package/dist-types/ts3.4/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +11 -0
  60. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  61. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  62. package/package.json +29 -28
package/README.md CHANGED
@@ -31,16 +31,16 @@ using your favorite package manager:
31
31
 
32
32
  The AWS SDK is modulized by clients and commands.
33
33
  To send a request, you only need to import the `BackupClient` and
34
- the commands you need, for example `CreateBackupPlanCommand`:
34
+ the commands you need, for example `CancelLegalHoldCommand`:
35
35
 
36
36
  ```js
37
37
  // ES5 example
38
- const { BackupClient, CreateBackupPlanCommand } = require("@aws-sdk/client-backup");
38
+ const { BackupClient, CancelLegalHoldCommand } = require("@aws-sdk/client-backup");
39
39
  ```
40
40
 
41
41
  ```ts
42
42
  // ES6+ example
43
- import { BackupClient, CreateBackupPlanCommand } from "@aws-sdk/client-backup";
43
+ import { BackupClient, CancelLegalHoldCommand } from "@aws-sdk/client-backup";
44
44
  ```
45
45
 
46
46
  ### Usage
@@ -59,7 +59,7 @@ const client = new BackupClient({ region: "REGION" });
59
59
  const params = {
60
60
  /** input parameters */
61
61
  };
62
- const command = new CreateBackupPlanCommand(params);
62
+ const command = new CancelLegalHoldCommand(params);
63
63
  ```
64
64
 
65
65
  #### Async/await
@@ -138,7 +138,7 @@ const client = new AWS.Backup({ region: "REGION" });
138
138
 
139
139
  // async/await.
140
140
  try {
141
- const data = await client.createBackupPlan(params);
141
+ const data = await client.cancelLegalHold(params);
142
142
  // process data.
143
143
  } catch (error) {
144
144
  // error handling.
@@ -146,7 +146,7 @@ try {
146
146
 
147
147
  // Promises.
148
148
  client
149
- .createBackupPlan(params)
149
+ .cancelLegalHold(params)
150
150
  .then((data) => {
151
151
  // process data.
152
152
  })
@@ -155,7 +155,7 @@ client
155
155
  });
156
156
 
157
157
  // callbacks.
158
- client.createBackupPlan(params, (err, data) => {
158
+ client.cancelLegalHold(params, (err, data) => {
159
159
  // process err and data.
160
160
  });
161
161
  ```
@@ -2,10 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Backup = void 0;
4
4
  const BackupClient_1 = require("./BackupClient");
5
+ const CancelLegalHoldCommand_1 = require("./commands/CancelLegalHoldCommand");
5
6
  const CreateBackupPlanCommand_1 = require("./commands/CreateBackupPlanCommand");
6
7
  const CreateBackupSelectionCommand_1 = require("./commands/CreateBackupSelectionCommand");
7
8
  const CreateBackupVaultCommand_1 = require("./commands/CreateBackupVaultCommand");
8
9
  const CreateFrameworkCommand_1 = require("./commands/CreateFrameworkCommand");
10
+ const CreateLegalHoldCommand_1 = require("./commands/CreateLegalHoldCommand");
9
11
  const CreateReportPlanCommand_1 = require("./commands/CreateReportPlanCommand");
10
12
  const DeleteBackupPlanCommand_1 = require("./commands/DeleteBackupPlanCommand");
11
13
  const DeleteBackupSelectionCommand_1 = require("./commands/DeleteBackupSelectionCommand");
@@ -28,6 +30,7 @@ const DescribeReportJobCommand_1 = require("./commands/DescribeReportJobCommand"
28
30
  const DescribeReportPlanCommand_1 = require("./commands/DescribeReportPlanCommand");
29
31
  const DescribeRestoreJobCommand_1 = require("./commands/DescribeRestoreJobCommand");
30
32
  const DisassociateRecoveryPointCommand_1 = require("./commands/DisassociateRecoveryPointCommand");
33
+ const DisassociateRecoveryPointFromParentCommand_1 = require("./commands/DisassociateRecoveryPointFromParentCommand");
31
34
  const ExportBackupPlanTemplateCommand_1 = require("./commands/ExportBackupPlanTemplateCommand");
32
35
  const GetBackupPlanCommand_1 = require("./commands/GetBackupPlanCommand");
33
36
  const GetBackupPlanFromJSONCommand_1 = require("./commands/GetBackupPlanFromJSONCommand");
@@ -35,6 +38,7 @@ const GetBackupPlanFromTemplateCommand_1 = require("./commands/GetBackupPlanFrom
35
38
  const GetBackupSelectionCommand_1 = require("./commands/GetBackupSelectionCommand");
36
39
  const GetBackupVaultAccessPolicyCommand_1 = require("./commands/GetBackupVaultAccessPolicyCommand");
37
40
  const GetBackupVaultNotificationsCommand_1 = require("./commands/GetBackupVaultNotificationsCommand");
41
+ const GetLegalHoldCommand_1 = require("./commands/GetLegalHoldCommand");
38
42
  const GetRecoveryPointRestoreMetadataCommand_1 = require("./commands/GetRecoveryPointRestoreMetadataCommand");
39
43
  const GetSupportedResourceTypesCommand_1 = require("./commands/GetSupportedResourceTypesCommand");
40
44
  const ListBackupJobsCommand_1 = require("./commands/ListBackupJobsCommand");
@@ -45,8 +49,10 @@ const ListBackupSelectionsCommand_1 = require("./commands/ListBackupSelectionsCo
45
49
  const ListBackupVaultsCommand_1 = require("./commands/ListBackupVaultsCommand");
46
50
  const ListCopyJobsCommand_1 = require("./commands/ListCopyJobsCommand");
47
51
  const ListFrameworksCommand_1 = require("./commands/ListFrameworksCommand");
52
+ const ListLegalHoldsCommand_1 = require("./commands/ListLegalHoldsCommand");
48
53
  const ListProtectedResourcesCommand_1 = require("./commands/ListProtectedResourcesCommand");
49
54
  const ListRecoveryPointsByBackupVaultCommand_1 = require("./commands/ListRecoveryPointsByBackupVaultCommand");
55
+ const ListRecoveryPointsByLegalHoldCommand_1 = require("./commands/ListRecoveryPointsByLegalHoldCommand");
50
56
  const ListRecoveryPointsByResourceCommand_1 = require("./commands/ListRecoveryPointsByResourceCommand");
51
57
  const ListReportJobsCommand_1 = require("./commands/ListReportJobsCommand");
52
58
  const ListReportPlansCommand_1 = require("./commands/ListReportPlansCommand");
@@ -69,6 +75,20 @@ const UpdateRecoveryPointLifecycleCommand_1 = require("./commands/UpdateRecovery
69
75
  const UpdateRegionSettingsCommand_1 = require("./commands/UpdateRegionSettingsCommand");
70
76
  const UpdateReportPlanCommand_1 = require("./commands/UpdateReportPlanCommand");
71
77
  class Backup extends BackupClient_1.BackupClient {
78
+ cancelLegalHold(args, optionsOrCb, cb) {
79
+ const command = new CancelLegalHoldCommand_1.CancelLegalHoldCommand(args);
80
+ if (typeof optionsOrCb === "function") {
81
+ this.send(command, optionsOrCb);
82
+ }
83
+ else if (typeof cb === "function") {
84
+ if (typeof optionsOrCb !== "object")
85
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ this.send(command, optionsOrCb || {}, cb);
87
+ }
88
+ else {
89
+ return this.send(command, optionsOrCb);
90
+ }
91
+ }
72
92
  createBackupPlan(args, optionsOrCb, cb) {
73
93
  const command = new CreateBackupPlanCommand_1.CreateBackupPlanCommand(args);
74
94
  if (typeof optionsOrCb === "function") {
@@ -125,6 +145,20 @@ class Backup extends BackupClient_1.BackupClient {
125
145
  return this.send(command, optionsOrCb);
126
146
  }
127
147
  }
148
+ createLegalHold(args, optionsOrCb, cb) {
149
+ const command = new CreateLegalHoldCommand_1.CreateLegalHoldCommand(args);
150
+ if (typeof optionsOrCb === "function") {
151
+ this.send(command, optionsOrCb);
152
+ }
153
+ else if (typeof cb === "function") {
154
+ if (typeof optionsOrCb !== "object")
155
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ this.send(command, optionsOrCb || {}, cb);
157
+ }
158
+ else {
159
+ return this.send(command, optionsOrCb);
160
+ }
161
+ }
128
162
  createReportPlan(args, optionsOrCb, cb) {
129
163
  const command = new CreateReportPlanCommand_1.CreateReportPlanCommand(args);
130
164
  if (typeof optionsOrCb === "function") {
@@ -433,6 +467,20 @@ class Backup extends BackupClient_1.BackupClient {
433
467
  return this.send(command, optionsOrCb);
434
468
  }
435
469
  }
470
+ disassociateRecoveryPointFromParent(args, optionsOrCb, cb) {
471
+ const command = new DisassociateRecoveryPointFromParentCommand_1.DisassociateRecoveryPointFromParentCommand(args);
472
+ if (typeof optionsOrCb === "function") {
473
+ this.send(command, optionsOrCb);
474
+ }
475
+ else if (typeof cb === "function") {
476
+ if (typeof optionsOrCb !== "object")
477
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
478
+ this.send(command, optionsOrCb || {}, cb);
479
+ }
480
+ else {
481
+ return this.send(command, optionsOrCb);
482
+ }
483
+ }
436
484
  exportBackupPlanTemplate(args, optionsOrCb, cb) {
437
485
  const command = new ExportBackupPlanTemplateCommand_1.ExportBackupPlanTemplateCommand(args);
438
486
  if (typeof optionsOrCb === "function") {
@@ -531,6 +579,20 @@ class Backup extends BackupClient_1.BackupClient {
531
579
  return this.send(command, optionsOrCb);
532
580
  }
533
581
  }
582
+ getLegalHold(args, optionsOrCb, cb) {
583
+ const command = new GetLegalHoldCommand_1.GetLegalHoldCommand(args);
584
+ if (typeof optionsOrCb === "function") {
585
+ this.send(command, optionsOrCb);
586
+ }
587
+ else if (typeof cb === "function") {
588
+ if (typeof optionsOrCb !== "object")
589
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
590
+ this.send(command, optionsOrCb || {}, cb);
591
+ }
592
+ else {
593
+ return this.send(command, optionsOrCb);
594
+ }
595
+ }
534
596
  getRecoveryPointRestoreMetadata(args, optionsOrCb, cb) {
535
597
  const command = new GetRecoveryPointRestoreMetadataCommand_1.GetRecoveryPointRestoreMetadataCommand(args);
536
598
  if (typeof optionsOrCb === "function") {
@@ -671,6 +733,20 @@ class Backup extends BackupClient_1.BackupClient {
671
733
  return this.send(command, optionsOrCb);
672
734
  }
673
735
  }
736
+ listLegalHolds(args, optionsOrCb, cb) {
737
+ const command = new ListLegalHoldsCommand_1.ListLegalHoldsCommand(args);
738
+ if (typeof optionsOrCb === "function") {
739
+ this.send(command, optionsOrCb);
740
+ }
741
+ else if (typeof cb === "function") {
742
+ if (typeof optionsOrCb !== "object")
743
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
744
+ this.send(command, optionsOrCb || {}, cb);
745
+ }
746
+ else {
747
+ return this.send(command, optionsOrCb);
748
+ }
749
+ }
674
750
  listProtectedResources(args, optionsOrCb, cb) {
675
751
  const command = new ListProtectedResourcesCommand_1.ListProtectedResourcesCommand(args);
676
752
  if (typeof optionsOrCb === "function") {
@@ -699,6 +775,20 @@ class Backup extends BackupClient_1.BackupClient {
699
775
  return this.send(command, optionsOrCb);
700
776
  }
701
777
  }
778
+ listRecoveryPointsByLegalHold(args, optionsOrCb, cb) {
779
+ const command = new ListRecoveryPointsByLegalHoldCommand_1.ListRecoveryPointsByLegalHoldCommand(args);
780
+ if (typeof optionsOrCb === "function") {
781
+ this.send(command, optionsOrCb);
782
+ }
783
+ else if (typeof cb === "function") {
784
+ if (typeof optionsOrCb !== "object")
785
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
786
+ this.send(command, optionsOrCb || {}, cb);
787
+ }
788
+ else {
789
+ return this.send(command, optionsOrCb);
790
+ }
791
+ }
702
792
  listRecoveryPointsByResource(args, optionsOrCb, cb) {
703
793
  const command = new ListRecoveryPointsByResourceCommand_1.ListRecoveryPointsByResourceCommand(args);
704
794
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelLegalHoldCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class CancelLegalHoldCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CancelLegalHoldCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "CancelLegalHoldCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CancelLegalHoldInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CancelLegalHoldOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1CancelLegalHoldCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CancelLegalHoldCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CancelLegalHoldCommand = CancelLegalHoldCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLegalHoldCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class CreateLegalHoldCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLegalHoldCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "CreateLegalHoldCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateLegalHoldInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateLegalHoldOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateLegalHoldCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateLegalHoldCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateLegalHoldCommand = CreateLegalHoldCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisassociateRecoveryPointFromParentCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class DisassociateRecoveryPointFromParentCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisassociateRecoveryPointFromParentCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "DisassociateRecoveryPointFromParentCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DisassociateRecoveryPointFromParentInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: (output) => output,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1DisassociateRecoveryPointFromParentCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DisassociateRecoveryPointFromParentCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DisassociateRecoveryPointFromParentCommand = DisassociateRecoveryPointFromParentCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetLegalHoldCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class GetLegalHoldCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetLegalHoldCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "GetLegalHoldCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetLegalHoldInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetLegalHoldOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetLegalHoldCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetLegalHoldCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetLegalHoldCommand = GetLegalHoldCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListLegalHoldsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListLegalHoldsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListLegalHoldsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "ListLegalHoldsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.ListLegalHoldsInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.ListLegalHoldsOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListLegalHoldsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListLegalHoldsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListLegalHoldsCommand = ListLegalHoldsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRecoveryPointsByLegalHoldCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListRecoveryPointsByLegalHoldCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRecoveryPointsByLegalHoldCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "BackupClient";
28
+ const commandName = "ListRecoveryPointsByLegalHoldCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.ListRecoveryPointsByLegalHoldInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.ListRecoveryPointsByLegalHoldOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListRecoveryPointsByLegalHoldCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListRecoveryPointsByLegalHoldCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListRecoveryPointsByLegalHoldCommand = ListRecoveryPointsByLegalHoldCommand;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CancelLegalHoldCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateBackupPlanCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateBackupSelectionCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateBackupVaultCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateFrameworkCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateLegalHoldCommand"), exports);
8
10
  tslib_1.__exportStar(require("./CreateReportPlanCommand"), exports);
9
11
  tslib_1.__exportStar(require("./DeleteBackupPlanCommand"), exports);
10
12
  tslib_1.__exportStar(require("./DeleteBackupSelectionCommand"), exports);
@@ -27,6 +29,7 @@ tslib_1.__exportStar(require("./DescribeReportJobCommand"), exports);
27
29
  tslib_1.__exportStar(require("./DescribeReportPlanCommand"), exports);
28
30
  tslib_1.__exportStar(require("./DescribeRestoreJobCommand"), exports);
29
31
  tslib_1.__exportStar(require("./DisassociateRecoveryPointCommand"), exports);
32
+ tslib_1.__exportStar(require("./DisassociateRecoveryPointFromParentCommand"), exports);
30
33
  tslib_1.__exportStar(require("./ExportBackupPlanTemplateCommand"), exports);
31
34
  tslib_1.__exportStar(require("./GetBackupPlanCommand"), exports);
32
35
  tslib_1.__exportStar(require("./GetBackupPlanFromJSONCommand"), exports);
@@ -34,6 +37,7 @@ tslib_1.__exportStar(require("./GetBackupPlanFromTemplateCommand"), exports);
34
37
  tslib_1.__exportStar(require("./GetBackupSelectionCommand"), exports);
35
38
  tslib_1.__exportStar(require("./GetBackupVaultAccessPolicyCommand"), exports);
36
39
  tslib_1.__exportStar(require("./GetBackupVaultNotificationsCommand"), exports);
40
+ tslib_1.__exportStar(require("./GetLegalHoldCommand"), exports);
37
41
  tslib_1.__exportStar(require("./GetRecoveryPointRestoreMetadataCommand"), exports);
38
42
  tslib_1.__exportStar(require("./GetSupportedResourceTypesCommand"), exports);
39
43
  tslib_1.__exportStar(require("./ListBackupJobsCommand"), exports);
@@ -44,8 +48,10 @@ tslib_1.__exportStar(require("./ListBackupSelectionsCommand"), exports);
44
48
  tslib_1.__exportStar(require("./ListBackupVaultsCommand"), exports);
45
49
  tslib_1.__exportStar(require("./ListCopyJobsCommand"), exports);
46
50
  tslib_1.__exportStar(require("./ListFrameworksCommand"), exports);
51
+ tslib_1.__exportStar(require("./ListLegalHoldsCommand"), exports);
47
52
  tslib_1.__exportStar(require("./ListProtectedResourcesCommand"), exports);
48
53
  tslib_1.__exportStar(require("./ListRecoveryPointsByBackupVaultCommand"), exports);
54
+ tslib_1.__exportStar(require("./ListRecoveryPointsByLegalHoldCommand"), exports);
49
55
  tslib_1.__exportStar(require("./ListRecoveryPointsByResourceCommand"), exports);
50
56
  tslib_1.__exportStar(require("./ListReportJobsCommand"), exports);
51
57
  tslib_1.__exportStar(require("./ListReportPlansCommand"), exports);
@@ -6,7 +6,7 @@ exports.ruleSet = {
6
6
  parameters: {
7
7
  Region: {
8
8
  builtIn: "AWS::Region",
9
- required: false,
9
+ required: true,
10
10
  documentation: "The AWS region used to dispatch the request.",
11
11
  type: "String",
12
12
  },