@aws-sdk/client-backup 3.185.0 → 3.188.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 (93) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Backup.js +266 -273
  3. package/dist-es/BackupClient.js +22 -28
  4. package/dist-es/commands/CreateBackupPlanCommand.js +21 -28
  5. package/dist-es/commands/CreateBackupSelectionCommand.js +21 -28
  6. package/dist-es/commands/CreateBackupVaultCommand.js +21 -28
  7. package/dist-es/commands/CreateFrameworkCommand.js +21 -28
  8. package/dist-es/commands/CreateReportPlanCommand.js +21 -28
  9. package/dist-es/commands/DeleteBackupPlanCommand.js +21 -28
  10. package/dist-es/commands/DeleteBackupSelectionCommand.js +22 -29
  11. package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +22 -29
  12. package/dist-es/commands/DeleteBackupVaultCommand.js +22 -29
  13. package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +22 -29
  14. package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +22 -29
  15. package/dist-es/commands/DeleteFrameworkCommand.js +22 -29
  16. package/dist-es/commands/DeleteRecoveryPointCommand.js +22 -29
  17. package/dist-es/commands/DeleteReportPlanCommand.js +22 -29
  18. package/dist-es/commands/DescribeBackupJobCommand.js +21 -28
  19. package/dist-es/commands/DescribeBackupVaultCommand.js +21 -28
  20. package/dist-es/commands/DescribeCopyJobCommand.js +21 -28
  21. package/dist-es/commands/DescribeFrameworkCommand.js +21 -28
  22. package/dist-es/commands/DescribeGlobalSettingsCommand.js +21 -28
  23. package/dist-es/commands/DescribeProtectedResourceCommand.js +21 -28
  24. package/dist-es/commands/DescribeRecoveryPointCommand.js +21 -28
  25. package/dist-es/commands/DescribeRegionSettingsCommand.js +21 -28
  26. package/dist-es/commands/DescribeReportJobCommand.js +21 -28
  27. package/dist-es/commands/DescribeReportPlanCommand.js +21 -28
  28. package/dist-es/commands/DescribeRestoreJobCommand.js +21 -28
  29. package/dist-es/commands/DisassociateRecoveryPointCommand.js +22 -29
  30. package/dist-es/commands/ExportBackupPlanTemplateCommand.js +21 -28
  31. package/dist-es/commands/GetBackupPlanCommand.js +21 -28
  32. package/dist-es/commands/GetBackupPlanFromJSONCommand.js +21 -28
  33. package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +21 -28
  34. package/dist-es/commands/GetBackupSelectionCommand.js +21 -28
  35. package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +21 -28
  36. package/dist-es/commands/GetBackupVaultNotificationsCommand.js +21 -28
  37. package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +21 -28
  38. package/dist-es/commands/GetSupportedResourceTypesCommand.js +22 -29
  39. package/dist-es/commands/ListBackupJobsCommand.js +21 -28
  40. package/dist-es/commands/ListBackupPlanTemplatesCommand.js +21 -28
  41. package/dist-es/commands/ListBackupPlanVersionsCommand.js +21 -28
  42. package/dist-es/commands/ListBackupPlansCommand.js +21 -28
  43. package/dist-es/commands/ListBackupSelectionsCommand.js +21 -28
  44. package/dist-es/commands/ListBackupVaultsCommand.js +21 -28
  45. package/dist-es/commands/ListCopyJobsCommand.js +21 -28
  46. package/dist-es/commands/ListFrameworksCommand.js +21 -28
  47. package/dist-es/commands/ListProtectedResourcesCommand.js +21 -28
  48. package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +21 -28
  49. package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +21 -28
  50. package/dist-es/commands/ListReportJobsCommand.js +21 -28
  51. package/dist-es/commands/ListReportPlansCommand.js +21 -28
  52. package/dist-es/commands/ListRestoreJobsCommand.js +21 -28
  53. package/dist-es/commands/ListTagsCommand.js +21 -28
  54. package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +22 -29
  55. package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +22 -29
  56. package/dist-es/commands/PutBackupVaultNotificationsCommand.js +22 -29
  57. package/dist-es/commands/StartBackupJobCommand.js +21 -28
  58. package/dist-es/commands/StartCopyJobCommand.js +21 -28
  59. package/dist-es/commands/StartReportJobCommand.js +21 -28
  60. package/dist-es/commands/StartRestoreJobCommand.js +21 -28
  61. package/dist-es/commands/StopBackupJobCommand.js +22 -29
  62. package/dist-es/commands/TagResourceCommand.js +22 -29
  63. package/dist-es/commands/UntagResourceCommand.js +22 -29
  64. package/dist-es/commands/UpdateBackupPlanCommand.js +21 -28
  65. package/dist-es/commands/UpdateFrameworkCommand.js +21 -28
  66. package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
  67. package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +21 -28
  68. package/dist-es/commands/UpdateRegionSettingsCommand.js +22 -29
  69. package/dist-es/commands/UpdateReportPlanCommand.js +21 -28
  70. package/dist-es/endpoints.js +8 -8
  71. package/dist-es/models/BackupServiceException.js +5 -10
  72. package/dist-es/models/models_0.js +607 -299
  73. package/dist-es/pagination/ListBackupJobsPaginator.js +25 -68
  74. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +25 -68
  75. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +25 -68
  76. package/dist-es/pagination/ListBackupPlansPaginator.js +25 -68
  77. package/dist-es/pagination/ListBackupSelectionsPaginator.js +25 -68
  78. package/dist-es/pagination/ListBackupVaultsPaginator.js +25 -68
  79. package/dist-es/pagination/ListCopyJobsPaginator.js +25 -68
  80. package/dist-es/pagination/ListFrameworksPaginator.js +25 -68
  81. package/dist-es/pagination/ListProtectedResourcesPaginator.js +25 -68
  82. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +25 -68
  83. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +25 -68
  84. package/dist-es/pagination/ListReportJobsPaginator.js +25 -68
  85. package/dist-es/pagination/ListReportPlansPaginator.js +25 -68
  86. package/dist-es/pagination/ListRestoreJobsPaginator.js +25 -68
  87. package/dist-es/pagination/ListTagsPaginator.js +25 -68
  88. package/dist-es/protocols/Aws_restJson1.js +5026 -6980
  89. package/dist-es/runtimeConfig.browser.js +26 -12
  90. package/dist-es/runtimeConfig.js +30 -12
  91. package/dist-es/runtimeConfig.native.js +8 -5
  92. package/dist-es/runtimeConfig.shared.js +8 -11
  93. 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 { GetBackupPlanFromTemplateInputFilterSensitiveLog, GetBackupPlanFromTemplateOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupPlanFromTemplateCommand, serializeAws_restJson1GetBackupPlanFromTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupPlanFromTemplateCommand = (function (_super) {
7
- __extends(GetBackupPlanFromTemplateCommand, _super);
8
- function GetBackupPlanFromTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupPlanFromTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupPlanFromTemplateCommand.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 = "GetBackupPlanFromTemplateCommand";
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 = "GetBackupPlanFromTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupPlanFromTemplateInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupPlanFromTemplateOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupPlanFromTemplateCommand.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_restJson1GetBackupPlanFromTemplateCommand(input, context);
33
- };
34
- GetBackupPlanFromTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupPlanFromTemplateCommand(output, context);
36
- };
37
- return GetBackupPlanFromTemplateCommand;
38
- }($Command));
39
- export { GetBackupPlanFromTemplateCommand };
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 { GetBackupSelectionInputFilterSensitiveLog, GetBackupSelectionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupSelectionCommand, serializeAws_restJson1GetBackupSelectionCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupSelectionCommand = (function (_super) {
7
- __extends(GetBackupSelectionCommand, _super);
8
- function GetBackupSelectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupSelectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupSelectionCommand.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 = "GetBackupSelectionCommand";
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 = "GetBackupSelectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupSelectionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupSelectionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupSelectionCommand.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_restJson1GetBackupSelectionCommand(input, context);
33
- };
34
- GetBackupSelectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupSelectionCommand(output, context);
36
- };
37
- return GetBackupSelectionCommand;
38
- }($Command));
39
- export { GetBackupSelectionCommand };
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 { GetBackupVaultAccessPolicyInputFilterSensitiveLog, GetBackupVaultAccessPolicyOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupVaultAccessPolicyCommand, serializeAws_restJson1GetBackupVaultAccessPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupVaultAccessPolicyCommand = (function (_super) {
7
- __extends(GetBackupVaultAccessPolicyCommand, _super);
8
- function GetBackupVaultAccessPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupVaultAccessPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupVaultAccessPolicyCommand.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 = "GetBackupVaultAccessPolicyCommand";
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 = "GetBackupVaultAccessPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupVaultAccessPolicyInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupVaultAccessPolicyOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupVaultAccessPolicyCommand.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_restJson1GetBackupVaultAccessPolicyCommand(input, context);
33
- };
34
- GetBackupVaultAccessPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupVaultAccessPolicyCommand(output, context);
36
- };
37
- return GetBackupVaultAccessPolicyCommand;
38
- }($Command));
39
- export { GetBackupVaultAccessPolicyCommand };
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 { GetBackupVaultNotificationsInputFilterSensitiveLog, GetBackupVaultNotificationsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackupVaultNotificationsCommand, serializeAws_restJson1GetBackupVaultNotificationsCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackupVaultNotificationsCommand = (function (_super) {
7
- __extends(GetBackupVaultNotificationsCommand, _super);
8
- function GetBackupVaultNotificationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackupVaultNotificationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackupVaultNotificationsCommand.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 = "GetBackupVaultNotificationsCommand";
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 = "GetBackupVaultNotificationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackupVaultNotificationsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackupVaultNotificationsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackupVaultNotificationsCommand.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_restJson1GetBackupVaultNotificationsCommand(input, context);
33
- };
34
- GetBackupVaultNotificationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackupVaultNotificationsCommand(output, context);
36
- };
37
- return GetBackupVaultNotificationsCommand;
38
- }($Command));
39
- export { GetBackupVaultNotificationsCommand };
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 { GetRecoveryPointRestoreMetadataInputFilterSensitiveLog, GetRecoveryPointRestoreMetadataOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand, serializeAws_restJson1GetRecoveryPointRestoreMetadataCommand, } from "../protocols/Aws_restJson1";
6
- var GetRecoveryPointRestoreMetadataCommand = (function (_super) {
7
- __extends(GetRecoveryPointRestoreMetadataCommand, _super);
8
- function GetRecoveryPointRestoreMetadataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRecoveryPointRestoreMetadataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRecoveryPointRestoreMetadataCommand.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 = "GetRecoveryPointRestoreMetadataCommand";
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 = "GetRecoveryPointRestoreMetadataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRecoveryPointRestoreMetadataInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRecoveryPointRestoreMetadataOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRecoveryPointRestoreMetadataCommand.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_restJson1GetRecoveryPointRestoreMetadataCommand(input, context);
33
- };
34
- GetRecoveryPointRestoreMetadataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand(output, context);
36
- };
37
- return GetRecoveryPointRestoreMetadataCommand;
38
- }($Command));
39
- export { GetRecoveryPointRestoreMetadataCommand };
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 { GetSupportedResourceTypesOutputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetSupportedResourceTypesCommand, serializeAws_restJson1GetSupportedResourceTypesCommand, } from "../protocols/Aws_restJson1";
6
- var GetSupportedResourceTypesCommand = (function (_super) {
7
- __extends(GetSupportedResourceTypesCommand, _super);
8
- function GetSupportedResourceTypesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSupportedResourceTypesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSupportedResourceTypesCommand.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 = "GetSupportedResourceTypesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
23
- inputFilterSensitiveLog: function (input) { return input; },
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BackupClient";
15
+ const commandName = "GetSupportedResourceTypesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
20
+ inputFilterSensitiveLog: (input) => input,
24
21
  outputFilterSensitiveLog: GetSupportedResourceTypesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSupportedResourceTypesCommand.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_restJson1GetSupportedResourceTypesCommand(input, context);
33
- };
34
- GetSupportedResourceTypesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetSupportedResourceTypesCommand(output, context);
36
- };
37
- return GetSupportedResourceTypesCommand;
38
- }($Command));
39
- export { GetSupportedResourceTypesCommand };
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 { ListBackupJobsInputFilterSensitiveLog, ListBackupJobsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackupJobsCommand, serializeAws_restJson1ListBackupJobsCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackupJobsCommand = (function (_super) {
7
- __extends(ListBackupJobsCommand, _super);
8
- function ListBackupJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackupJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackupJobsCommand.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 = "ListBackupJobsCommand";
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 = "ListBackupJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackupJobsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackupJobsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackupJobsCommand.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_restJson1ListBackupJobsCommand(input, context);
33
- };
34
- ListBackupJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackupJobsCommand(output, context);
36
- };
37
- return ListBackupJobsCommand;
38
- }($Command));
39
- export { ListBackupJobsCommand };
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 { ListBackupPlanTemplatesInputFilterSensitiveLog, ListBackupPlanTemplatesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackupPlanTemplatesCommand, serializeAws_restJson1ListBackupPlanTemplatesCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackupPlanTemplatesCommand = (function (_super) {
7
- __extends(ListBackupPlanTemplatesCommand, _super);
8
- function ListBackupPlanTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackupPlanTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackupPlanTemplatesCommand.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 = "ListBackupPlanTemplatesCommand";
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 = "ListBackupPlanTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackupPlanTemplatesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackupPlanTemplatesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackupPlanTemplatesCommand.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_restJson1ListBackupPlanTemplatesCommand(input, context);
33
- };
34
- ListBackupPlanTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackupPlanTemplatesCommand(output, context);
36
- };
37
- return ListBackupPlanTemplatesCommand;
38
- }($Command));
39
- export { ListBackupPlanTemplatesCommand };
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 { ListBackupPlanVersionsInputFilterSensitiveLog, ListBackupPlanVersionsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackupPlanVersionsCommand, serializeAws_restJson1ListBackupPlanVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackupPlanVersionsCommand = (function (_super) {
7
- __extends(ListBackupPlanVersionsCommand, _super);
8
- function ListBackupPlanVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackupPlanVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackupPlanVersionsCommand.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 = "ListBackupPlanVersionsCommand";
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 = "ListBackupPlanVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackupPlanVersionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackupPlanVersionsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackupPlanVersionsCommand.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_restJson1ListBackupPlanVersionsCommand(input, context);
33
- };
34
- ListBackupPlanVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackupPlanVersionsCommand(output, context);
36
- };
37
- return ListBackupPlanVersionsCommand;
38
- }($Command));
39
- export { ListBackupPlanVersionsCommand };
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 { ListBackupPlansInputFilterSensitiveLog, ListBackupPlansOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListBackupPlansCommand, serializeAws_restJson1ListBackupPlansCommand, } from "../protocols/Aws_restJson1";
6
- var ListBackupPlansCommand = (function (_super) {
7
- __extends(ListBackupPlansCommand, _super);
8
- function ListBackupPlansCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBackupPlansCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBackupPlansCommand.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 = "ListBackupPlansCommand";
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 = "ListBackupPlansCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBackupPlansInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBackupPlansOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBackupPlansCommand.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_restJson1ListBackupPlansCommand(input, context);
33
- };
34
- ListBackupPlansCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListBackupPlansCommand(output, context);
36
- };
37
- return ListBackupPlansCommand;
38
- }($Command));
39
- export { ListBackupPlansCommand };
31
+ }
32
+ }