@aws-sdk/client-backup 3.183.0 → 3.186.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 +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Backup.js +273 -266
  4. package/dist-es/BackupClient.js +28 -22
  5. package/dist-es/commands/CreateBackupPlanCommand.js +28 -21
  6. package/dist-es/commands/CreateBackupSelectionCommand.js +28 -21
  7. package/dist-es/commands/CreateBackupVaultCommand.js +28 -21
  8. package/dist-es/commands/CreateFrameworkCommand.js +28 -21
  9. package/dist-es/commands/CreateReportPlanCommand.js +28 -21
  10. package/dist-es/commands/DeleteBackupPlanCommand.js +28 -21
  11. package/dist-es/commands/DeleteBackupSelectionCommand.js +29 -22
  12. package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +29 -22
  13. package/dist-es/commands/DeleteBackupVaultCommand.js +29 -22
  14. package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +29 -22
  15. package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +29 -22
  16. package/dist-es/commands/DeleteFrameworkCommand.js +29 -22
  17. package/dist-es/commands/DeleteRecoveryPointCommand.js +29 -22
  18. package/dist-es/commands/DeleteReportPlanCommand.js +29 -22
  19. package/dist-es/commands/DescribeBackupJobCommand.js +28 -21
  20. package/dist-es/commands/DescribeBackupVaultCommand.js +28 -21
  21. package/dist-es/commands/DescribeCopyJobCommand.js +28 -21
  22. package/dist-es/commands/DescribeFrameworkCommand.js +28 -21
  23. package/dist-es/commands/DescribeGlobalSettingsCommand.js +28 -21
  24. package/dist-es/commands/DescribeProtectedResourceCommand.js +28 -21
  25. package/dist-es/commands/DescribeRecoveryPointCommand.js +28 -21
  26. package/dist-es/commands/DescribeRegionSettingsCommand.js +28 -21
  27. package/dist-es/commands/DescribeReportJobCommand.js +28 -21
  28. package/dist-es/commands/DescribeReportPlanCommand.js +28 -21
  29. package/dist-es/commands/DescribeRestoreJobCommand.js +28 -21
  30. package/dist-es/commands/DisassociateRecoveryPointCommand.js +29 -22
  31. package/dist-es/commands/ExportBackupPlanTemplateCommand.js +28 -21
  32. package/dist-es/commands/GetBackupPlanCommand.js +28 -21
  33. package/dist-es/commands/GetBackupPlanFromJSONCommand.js +28 -21
  34. package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +28 -21
  35. package/dist-es/commands/GetBackupSelectionCommand.js +28 -21
  36. package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +28 -21
  37. package/dist-es/commands/GetBackupVaultNotificationsCommand.js +28 -21
  38. package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +28 -21
  39. package/dist-es/commands/GetSupportedResourceTypesCommand.js +29 -22
  40. package/dist-es/commands/ListBackupJobsCommand.js +28 -21
  41. package/dist-es/commands/ListBackupPlanTemplatesCommand.js +28 -21
  42. package/dist-es/commands/ListBackupPlanVersionsCommand.js +28 -21
  43. package/dist-es/commands/ListBackupPlansCommand.js +28 -21
  44. package/dist-es/commands/ListBackupSelectionsCommand.js +28 -21
  45. package/dist-es/commands/ListBackupVaultsCommand.js +28 -21
  46. package/dist-es/commands/ListCopyJobsCommand.js +28 -21
  47. package/dist-es/commands/ListFrameworksCommand.js +28 -21
  48. package/dist-es/commands/ListProtectedResourcesCommand.js +28 -21
  49. package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +28 -21
  50. package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +28 -21
  51. package/dist-es/commands/ListReportJobsCommand.js +28 -21
  52. package/dist-es/commands/ListReportPlansCommand.js +28 -21
  53. package/dist-es/commands/ListRestoreJobsCommand.js +28 -21
  54. package/dist-es/commands/ListTagsCommand.js +28 -21
  55. package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +29 -22
  56. package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +29 -22
  57. package/dist-es/commands/PutBackupVaultNotificationsCommand.js +29 -22
  58. package/dist-es/commands/StartBackupJobCommand.js +28 -21
  59. package/dist-es/commands/StartCopyJobCommand.js +28 -21
  60. package/dist-es/commands/StartReportJobCommand.js +28 -21
  61. package/dist-es/commands/StartRestoreJobCommand.js +28 -21
  62. package/dist-es/commands/StopBackupJobCommand.js +29 -22
  63. package/dist-es/commands/TagResourceCommand.js +29 -22
  64. package/dist-es/commands/UntagResourceCommand.js +29 -22
  65. package/dist-es/commands/UpdateBackupPlanCommand.js +28 -21
  66. package/dist-es/commands/UpdateFrameworkCommand.js +28 -21
  67. package/dist-es/commands/UpdateGlobalSettingsCommand.js +29 -22
  68. package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +28 -21
  69. package/dist-es/commands/UpdateRegionSettingsCommand.js +29 -22
  70. package/dist-es/commands/UpdateReportPlanCommand.js +28 -21
  71. package/dist-es/endpoints.js +8 -8
  72. package/dist-es/models/BackupServiceException.js +10 -5
  73. package/dist-es/models/models_0.js +299 -607
  74. package/dist-es/pagination/ListBackupJobsPaginator.js +68 -25
  75. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +68 -25
  76. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +68 -25
  77. package/dist-es/pagination/ListBackupPlansPaginator.js +68 -25
  78. package/dist-es/pagination/ListBackupSelectionsPaginator.js +68 -25
  79. package/dist-es/pagination/ListBackupVaultsPaginator.js +68 -25
  80. package/dist-es/pagination/ListCopyJobsPaginator.js +68 -25
  81. package/dist-es/pagination/ListFrameworksPaginator.js +68 -25
  82. package/dist-es/pagination/ListProtectedResourcesPaginator.js +68 -25
  83. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +68 -25
  84. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +68 -25
  85. package/dist-es/pagination/ListReportJobsPaginator.js +68 -25
  86. package/dist-es/pagination/ListReportPlansPaginator.js +68 -25
  87. package/dist-es/pagination/ListRestoreJobsPaginator.js +68 -25
  88. package/dist-es/pagination/ListTagsPaginator.js +68 -25
  89. package/dist-es/protocols/Aws_restJson1.js +6980 -5026
  90. package/dist-es/runtimeConfig.browser.js +12 -26
  91. package/dist-es/runtimeConfig.js +12 -30
  92. package/dist-es/runtimeConfig.native.js +5 -8
  93. package/dist-es/runtimeConfig.shared.js +11 -8
  94. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateBackupPlanInputFilterSensitiveLog, UpdateBackupPlanOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateBackupPlanCommand, serializeAws_restJson1UpdateBackupPlanCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateBackupPlanCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateBackupPlanCommand = (function (_super) {
7
+ __extends(UpdateBackupPlanCommand, _super);
8
+ function UpdateBackupPlanCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateBackupPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateBackupPlanCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateBackupPlanCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateBackupPlanInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateBackupPlanOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateBackupPlanCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateBackupPlanCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateBackupPlanCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateBackupPlanCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateBackupPlanCommand;
38
+ }($Command));
39
+ export { UpdateBackupPlanCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateFrameworkInputFilterSensitiveLog, UpdateFrameworkOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateFrameworkCommand, serializeAws_restJson1UpdateFrameworkCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateFrameworkCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateFrameworkCommand = (function (_super) {
7
+ __extends(UpdateFrameworkCommand, _super);
8
+ function UpdateFrameworkCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateFrameworkCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateFrameworkCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateFrameworkCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateFrameworkInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateFrameworkOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateFrameworkCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateFrameworkCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateFrameworkCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateFrameworkCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateFrameworkCommand;
38
+ }($Command));
39
+ export { UpdateFrameworkCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateGlobalSettingsInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateGlobalSettingsCommand, serializeAws_restJson1UpdateGlobalSettingsCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateGlobalSettingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateGlobalSettingsCommand = (function (_super) {
7
+ __extends(UpdateGlobalSettingsCommand, _super);
8
+ function UpdateGlobalSettingsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateGlobalSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateGlobalSettingsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateGlobalSettingsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateGlobalSettingsInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateGlobalSettingsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateGlobalSettingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateGlobalSettingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateGlobalSettingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateGlobalSettingsCommand;
38
+ }($Command));
39
+ export { UpdateGlobalSettingsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateRecoveryPointLifecycleInputFilterSensitiveLog, UpdateRecoveryPointLifecycleOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand, serializeAws_restJson1UpdateRecoveryPointLifecycleCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateRecoveryPointLifecycleCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateRecoveryPointLifecycleCommand = (function (_super) {
7
+ __extends(UpdateRecoveryPointLifecycleCommand, _super);
8
+ function UpdateRecoveryPointLifecycleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateRecoveryPointLifecycleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateRecoveryPointLifecycleCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateRecoveryPointLifecycleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateRecoveryPointLifecycleInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateRecoveryPointLifecycleOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateRecoveryPointLifecycleCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateRecoveryPointLifecycleCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateRecoveryPointLifecycleCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateRecoveryPointLifecycleCommand;
38
+ }($Command));
39
+ export { UpdateRecoveryPointLifecycleCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateRegionSettingsInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateRegionSettingsCommand, serializeAws_restJson1UpdateRegionSettingsCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateRegionSettingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateRegionSettingsCommand = (function (_super) {
7
+ __extends(UpdateRegionSettingsCommand, _super);
8
+ function UpdateRegionSettingsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateRegionSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateRegionSettingsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateRegionSettingsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateRegionSettingsInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateRegionSettingsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateRegionSettingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateRegionSettingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateRegionSettingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateRegionSettingsCommand;
38
+ }($Command));
39
+ export { UpdateRegionSettingsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateReportPlanInputFilterSensitiveLog, UpdateReportPlanOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateReportPlanCommand, serializeAws_restJson1UpdateReportPlanCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateReportPlanCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateReportPlanCommand = (function (_super) {
7
+ __extends(UpdateReportPlanCommand, _super);
8
+ function UpdateReportPlanCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateReportPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BackupClient";
15
- const commandName = "UpdateReportPlanCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BackupClient";
18
+ var commandName = "UpdateReportPlanCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateReportPlanInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateReportPlanOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateReportPlanCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateReportPlanCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateReportPlanCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateReportPlanCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateReportPlanCommand;
38
+ }($Command));
39
+ export { UpdateReportPlanCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "backup",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "backup", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class BackupServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, BackupServiceException.prototype);
3
+ var BackupServiceException = (function (_super) {
4
+ __extends(BackupServiceException, _super);
5
+ function BackupServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, BackupServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return BackupServiceException;
11
+ }(__ServiceException));
12
+ export { BackupServiceException };