@aws-sdk/client-backup 3.180.0 → 3.183.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 (94) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +72 -66
  3. package/dist-es/Backup.js +266 -273
  4. package/dist-es/BackupClient.js +22 -28
  5. package/dist-es/commands/CreateBackupPlanCommand.js +21 -28
  6. package/dist-es/commands/CreateBackupSelectionCommand.js +21 -28
  7. package/dist-es/commands/CreateBackupVaultCommand.js +21 -28
  8. package/dist-es/commands/CreateFrameworkCommand.js +21 -28
  9. package/dist-es/commands/CreateReportPlanCommand.js +21 -28
  10. package/dist-es/commands/DeleteBackupPlanCommand.js +21 -28
  11. package/dist-es/commands/DeleteBackupSelectionCommand.js +22 -29
  12. package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +22 -29
  13. package/dist-es/commands/DeleteBackupVaultCommand.js +22 -29
  14. package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +22 -29
  15. package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +22 -29
  16. package/dist-es/commands/DeleteFrameworkCommand.js +22 -29
  17. package/dist-es/commands/DeleteRecoveryPointCommand.js +22 -29
  18. package/dist-es/commands/DeleteReportPlanCommand.js +22 -29
  19. package/dist-es/commands/DescribeBackupJobCommand.js +21 -28
  20. package/dist-es/commands/DescribeBackupVaultCommand.js +21 -28
  21. package/dist-es/commands/DescribeCopyJobCommand.js +21 -28
  22. package/dist-es/commands/DescribeFrameworkCommand.js +21 -28
  23. package/dist-es/commands/DescribeGlobalSettingsCommand.js +21 -28
  24. package/dist-es/commands/DescribeProtectedResourceCommand.js +21 -28
  25. package/dist-es/commands/DescribeRecoveryPointCommand.js +21 -28
  26. package/dist-es/commands/DescribeRegionSettingsCommand.js +21 -28
  27. package/dist-es/commands/DescribeReportJobCommand.js +21 -28
  28. package/dist-es/commands/DescribeReportPlanCommand.js +21 -28
  29. package/dist-es/commands/DescribeRestoreJobCommand.js +21 -28
  30. package/dist-es/commands/DisassociateRecoveryPointCommand.js +22 -29
  31. package/dist-es/commands/ExportBackupPlanTemplateCommand.js +21 -28
  32. package/dist-es/commands/GetBackupPlanCommand.js +21 -28
  33. package/dist-es/commands/GetBackupPlanFromJSONCommand.js +21 -28
  34. package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +21 -28
  35. package/dist-es/commands/GetBackupSelectionCommand.js +21 -28
  36. package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +21 -28
  37. package/dist-es/commands/GetBackupVaultNotificationsCommand.js +21 -28
  38. package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +21 -28
  39. package/dist-es/commands/GetSupportedResourceTypesCommand.js +22 -29
  40. package/dist-es/commands/ListBackupJobsCommand.js +21 -28
  41. package/dist-es/commands/ListBackupPlanTemplatesCommand.js +21 -28
  42. package/dist-es/commands/ListBackupPlanVersionsCommand.js +21 -28
  43. package/dist-es/commands/ListBackupPlansCommand.js +21 -28
  44. package/dist-es/commands/ListBackupSelectionsCommand.js +21 -28
  45. package/dist-es/commands/ListBackupVaultsCommand.js +21 -28
  46. package/dist-es/commands/ListCopyJobsCommand.js +21 -28
  47. package/dist-es/commands/ListFrameworksCommand.js +21 -28
  48. package/dist-es/commands/ListProtectedResourcesCommand.js +21 -28
  49. package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +21 -28
  50. package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +21 -28
  51. package/dist-es/commands/ListReportJobsCommand.js +21 -28
  52. package/dist-es/commands/ListReportPlansCommand.js +21 -28
  53. package/dist-es/commands/ListRestoreJobsCommand.js +21 -28
  54. package/dist-es/commands/ListTagsCommand.js +21 -28
  55. package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +22 -29
  56. package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +22 -29
  57. package/dist-es/commands/PutBackupVaultNotificationsCommand.js +22 -29
  58. package/dist-es/commands/StartBackupJobCommand.js +21 -28
  59. package/dist-es/commands/StartCopyJobCommand.js +21 -28
  60. package/dist-es/commands/StartReportJobCommand.js +21 -28
  61. package/dist-es/commands/StartRestoreJobCommand.js +21 -28
  62. package/dist-es/commands/StopBackupJobCommand.js +22 -29
  63. package/dist-es/commands/TagResourceCommand.js +22 -29
  64. package/dist-es/commands/UntagResourceCommand.js +22 -29
  65. package/dist-es/commands/UpdateBackupPlanCommand.js +21 -28
  66. package/dist-es/commands/UpdateFrameworkCommand.js +21 -28
  67. package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
  68. package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +21 -28
  69. package/dist-es/commands/UpdateRegionSettingsCommand.js +22 -29
  70. package/dist-es/commands/UpdateReportPlanCommand.js +21 -28
  71. package/dist-es/endpoints.js +8 -8
  72. package/dist-es/models/BackupServiceException.js +5 -10
  73. package/dist-es/models/models_0.js +607 -299
  74. package/dist-es/pagination/ListBackupJobsPaginator.js +25 -68
  75. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +25 -68
  76. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +25 -68
  77. package/dist-es/pagination/ListBackupPlansPaginator.js +25 -68
  78. package/dist-es/pagination/ListBackupSelectionsPaginator.js +25 -68
  79. package/dist-es/pagination/ListBackupVaultsPaginator.js +25 -68
  80. package/dist-es/pagination/ListCopyJobsPaginator.js +25 -68
  81. package/dist-es/pagination/ListFrameworksPaginator.js +25 -68
  82. package/dist-es/pagination/ListProtectedResourcesPaginator.js +25 -68
  83. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +25 -68
  84. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +25 -68
  85. package/dist-es/pagination/ListReportJobsPaginator.js +25 -68
  86. package/dist-es/pagination/ListReportPlansPaginator.js +25 -68
  87. package/dist-es/pagination/ListRestoreJobsPaginator.js +25 -68
  88. package/dist-es/pagination/ListTagsPaginator.js +25 -68
  89. package/dist-es/protocols/Aws_restJson1.js +5026 -6967
  90. package/dist-es/runtimeConfig.browser.js +26 -12
  91. package/dist-es/runtimeConfig.js +30 -12
  92. package/dist-es/runtimeConfig.native.js +8 -5
  93. package/dist-es/runtimeConfig.shared.js +8 -11
  94. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeProtectedResourceInputFilterSensitiveLog, DescribeProtectedResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeProtectedResourceCommand, serializeAws_restJson1DescribeProtectedResourceCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeProtectedResourceCommand = (function (_super) {
7
- __extends(DescribeProtectedResourceCommand, _super);
8
- function DescribeProtectedResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeProtectedResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeProtectedResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeProtectedResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeProtectedResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeProtectedResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeProtectedResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeProtectedResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeProtectedResourceCommand(input, context);
33
- };
34
- DescribeProtectedResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeProtectedResourceCommand(output, context);
36
- };
37
- return DescribeProtectedResourceCommand;
38
- }($Command));
39
- export { DescribeProtectedResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeRecoveryPointInputFilterSensitiveLog, DescribeRecoveryPointOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRecoveryPointCommand, serializeAws_restJson1DescribeRecoveryPointCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRecoveryPointCommand = (function (_super) {
7
- __extends(DescribeRecoveryPointCommand, _super);
8
- function DescribeRecoveryPointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRecoveryPointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRecoveryPointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeRecoveryPointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeRecoveryPointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRecoveryPointInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRecoveryPointOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRecoveryPointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeRecoveryPointCommand(input, context);
33
- };
34
- DescribeRecoveryPointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRecoveryPointCommand(output, context);
36
- };
37
- return DescribeRecoveryPointCommand;
38
- }($Command));
39
- export { DescribeRecoveryPointCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeRegionSettingsInputFilterSensitiveLog, DescribeRegionSettingsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRegionSettingsCommand, serializeAws_restJson1DescribeRegionSettingsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRegionSettingsCommand = (function (_super) {
7
- __extends(DescribeRegionSettingsCommand, _super);
8
- function DescribeRegionSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRegionSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRegionSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeRegionSettingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeRegionSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRegionSettingsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRegionSettingsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRegionSettingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeRegionSettingsCommand(input, context);
33
- };
34
- DescribeRegionSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRegionSettingsCommand(output, context);
36
- };
37
- return DescribeRegionSettingsCommand;
38
- }($Command));
39
- export { DescribeRegionSettingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeReportJobInputFilterSensitiveLog, DescribeReportJobOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeReportJobCommand, serializeAws_restJson1DescribeReportJobCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeReportJobCommand = (function (_super) {
7
- __extends(DescribeReportJobCommand, _super);
8
- function DescribeReportJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReportJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeReportJobCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeReportJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReportJobInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReportJobOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReportJobCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeReportJobCommand(input, context);
33
- };
34
- DescribeReportJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeReportJobCommand(output, context);
36
- };
37
- return DescribeReportJobCommand;
38
- }($Command));
39
- export { DescribeReportJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeReportPlanInputFilterSensitiveLog, DescribeReportPlanOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeReportPlanCommand, serializeAws_restJson1DescribeReportPlanCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeReportPlanCommand = (function (_super) {
7
- __extends(DescribeReportPlanCommand, _super);
8
- function DescribeReportPlanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReportPlanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReportPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeReportPlanCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeReportPlanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReportPlanInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReportPlanOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReportPlanCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeReportPlanCommand(input, context);
33
- };
34
- DescribeReportPlanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeReportPlanCommand(output, context);
36
- };
37
- return DescribeReportPlanCommand;
38
- }($Command));
39
- export { DescribeReportPlanCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeRestoreJobInputFilterSensitiveLog, DescribeRestoreJobOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRestoreJobCommand, serializeAws_restJson1DescribeRestoreJobCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRestoreJobCommand = (function (_super) {
7
- __extends(DescribeRestoreJobCommand, _super);
8
- function DescribeRestoreJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRestoreJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRestoreJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DescribeRestoreJobCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DescribeRestoreJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRestoreJobInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRestoreJobOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRestoreJobCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeRestoreJobCommand(input, context);
33
- };
34
- DescribeRestoreJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRestoreJobCommand(output, context);
36
- };
37
- return DescribeRestoreJobCommand;
38
- }($Command));
39
- export { DescribeRestoreJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DisassociateRecoveryPointInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisassociateRecoveryPointCommand, serializeAws_restJson1DisassociateRecoveryPointCommand, } from "../protocols/Aws_restJson1";
6
- var DisassociateRecoveryPointCommand = (function (_super) {
7
- __extends(DisassociateRecoveryPointCommand, _super);
8
- function DisassociateRecoveryPointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateRecoveryPointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateRecoveryPointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "DisassociateRecoveryPointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "DisassociateRecoveryPointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateRecoveryPointInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateRecoveryPointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DisassociateRecoveryPointCommand(input, context);
33
- };
34
- DisassociateRecoveryPointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisassociateRecoveryPointCommand(output, context);
36
- };
37
- return DisassociateRecoveryPointCommand;
38
- }($Command));
39
- export { DisassociateRecoveryPointCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExportBackupPlanTemplateInputFilterSensitiveLog, ExportBackupPlanTemplateOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExportBackupPlanTemplateCommand, serializeAws_restJson1ExportBackupPlanTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var ExportBackupPlanTemplateCommand = (function (_super) {
7
- __extends(ExportBackupPlanTemplateCommand, _super);
8
- function ExportBackupPlanTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportBackupPlanTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportBackupPlanTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "ExportBackupPlanTemplateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "ExportBackupPlanTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportBackupPlanTemplateInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportBackupPlanTemplateOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportBackupPlanTemplateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ExportBackupPlanTemplateCommand(input, context);
33
- };
34
- ExportBackupPlanTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExportBackupPlanTemplateCommand(output, context);
36
- };
37
- return ExportBackupPlanTemplateCommand;
38
- }($Command));
39
- export { ExportBackupPlanTemplateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetBackupPlanInputFilterSensitiveLog, GetBackupPlanOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupPlanCommand, serializeAws_restJson1GetBackupPlanCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupPlanCommand = (function (_super) {
7
- __extends(GetBackupPlanCommand, _super);
8
- function GetBackupPlanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupPlanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "GetBackupPlanCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "GetBackupPlanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupPlanInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupPlanOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupPlanCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetBackupPlanCommand(input, context);
33
- };
34
- GetBackupPlanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupPlanCommand(output, context);
36
- };
37
- return GetBackupPlanCommand;
38
- }($Command));
39
- export { GetBackupPlanCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetBackupPlanFromJSONInputFilterSensitiveLog, GetBackupPlanFromJSONOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupPlanFromJSONCommand, serializeAws_restJson1GetBackupPlanFromJSONCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupPlanFromJSONCommand = (function (_super) {
7
- __extends(GetBackupPlanFromJSONCommand, _super);
8
- function GetBackupPlanFromJSONCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupPlanFromJSONCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupPlanFromJSONCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BackupClient";
18
- var commandName = "GetBackupPlanFromJSONCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "GetBackupPlanFromJSONCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupPlanFromJSONInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupPlanFromJSONOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupPlanFromJSONCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetBackupPlanFromJSONCommand(input, context);
33
- };
34
- GetBackupPlanFromJSONCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupPlanFromJSONCommand(output, context);
36
- };
37
- return GetBackupPlanFromJSONCommand;
38
- }($Command));
39
- export { GetBackupPlanFromJSONCommand };
31
+ }
32
+ }