@aws-sdk/client-backup 3.186.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 +8 -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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var BackupClient = (function (_super) {
13
- __extends(BackupClient, _super);
14
- function BackupClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class BackupClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- BackupClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return BackupClient;
38
- }(__Client));
39
- export { BackupClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CreateBackupPlanInputFilterSensitiveLog, CreateBackupPlanOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateBackupPlanCommand, serializeAws_restJson1CreateBackupPlanCommand, } from "../protocols/Aws_restJson1";
6
- var CreateBackupPlanCommand = (function (_super) {
7
- __extends(CreateBackupPlanCommand, _super);
8
- function CreateBackupPlanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBackupPlanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBackupPlanCommand.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 = "CreateBackupPlanCommand";
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 = "CreateBackupPlanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBackupPlanInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBackupPlanOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBackupPlanCommand.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_restJson1CreateBackupPlanCommand(input, context);
33
- };
34
- CreateBackupPlanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateBackupPlanCommand(output, context);
36
- };
37
- return CreateBackupPlanCommand;
38
- }($Command));
39
- export { CreateBackupPlanCommand };
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 { CreateBackupSelectionInputFilterSensitiveLog, CreateBackupSelectionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateBackupSelectionCommand, serializeAws_restJson1CreateBackupSelectionCommand, } from "../protocols/Aws_restJson1";
6
- var CreateBackupSelectionCommand = (function (_super) {
7
- __extends(CreateBackupSelectionCommand, _super);
8
- function CreateBackupSelectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBackupSelectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBackupSelectionCommand.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 = "CreateBackupSelectionCommand";
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 = "CreateBackupSelectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBackupSelectionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBackupSelectionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBackupSelectionCommand.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_restJson1CreateBackupSelectionCommand(input, context);
33
- };
34
- CreateBackupSelectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateBackupSelectionCommand(output, context);
36
- };
37
- return CreateBackupSelectionCommand;
38
- }($Command));
39
- export { CreateBackupSelectionCommand };
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 { CreateBackupVaultInputFilterSensitiveLog, CreateBackupVaultOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateBackupVaultCommand, serializeAws_restJson1CreateBackupVaultCommand, } from "../protocols/Aws_restJson1";
6
- var CreateBackupVaultCommand = (function (_super) {
7
- __extends(CreateBackupVaultCommand, _super);
8
- function CreateBackupVaultCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBackupVaultCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBackupVaultCommand.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 = "CreateBackupVaultCommand";
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 = "CreateBackupVaultCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBackupVaultInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBackupVaultOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBackupVaultCommand.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_restJson1CreateBackupVaultCommand(input, context);
33
- };
34
- CreateBackupVaultCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateBackupVaultCommand(output, context);
36
- };
37
- return CreateBackupVaultCommand;
38
- }($Command));
39
- export { CreateBackupVaultCommand };
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 { CreateFrameworkInputFilterSensitiveLog, CreateFrameworkOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateFrameworkCommand, serializeAws_restJson1CreateFrameworkCommand, } from "../protocols/Aws_restJson1";
6
- var CreateFrameworkCommand = (function (_super) {
7
- __extends(CreateFrameworkCommand, _super);
8
- function CreateFrameworkCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateFrameworkCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateFrameworkCommand.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 = "CreateFrameworkCommand";
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 = "CreateFrameworkCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateFrameworkInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateFrameworkOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateFrameworkCommand.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_restJson1CreateFrameworkCommand(input, context);
33
- };
34
- CreateFrameworkCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateFrameworkCommand(output, context);
36
- };
37
- return CreateFrameworkCommand;
38
- }($Command));
39
- export { CreateFrameworkCommand };
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 { CreateReportPlanInputFilterSensitiveLog, CreateReportPlanOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateReportPlanCommand, serializeAws_restJson1CreateReportPlanCommand, } from "../protocols/Aws_restJson1";
6
- var CreateReportPlanCommand = (function (_super) {
7
- __extends(CreateReportPlanCommand, _super);
8
- function CreateReportPlanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateReportPlanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateReportPlanCommand.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 = "CreateReportPlanCommand";
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 = "CreateReportPlanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateReportPlanInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateReportPlanOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateReportPlanCommand.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_restJson1CreateReportPlanCommand(input, context);
33
- };
34
- CreateReportPlanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateReportPlanCommand(output, context);
36
- };
37
- return CreateReportPlanCommand;
38
- }($Command));
39
- export { CreateReportPlanCommand };
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 { DeleteBackupPlanInputFilterSensitiveLog, DeleteBackupPlanOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBackupPlanCommand, serializeAws_restJson1DeleteBackupPlanCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBackupPlanCommand = (function (_super) {
7
- __extends(DeleteBackupPlanCommand, _super);
8
- function DeleteBackupPlanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBackupPlanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBackupPlanCommand.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 = "DeleteBackupPlanCommand";
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 = "DeleteBackupPlanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBackupPlanInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBackupPlanOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBackupPlanCommand.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_restJson1DeleteBackupPlanCommand(input, context);
33
- };
34
- DeleteBackupPlanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBackupPlanCommand(output, context);
36
- };
37
- return DeleteBackupPlanCommand;
38
- }($Command));
39
- export { DeleteBackupPlanCommand };
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 { DeleteBackupSelectionInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBackupSelectionCommand, serializeAws_restJson1DeleteBackupSelectionCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBackupSelectionCommand = (function (_super) {
7
- __extends(DeleteBackupSelectionCommand, _super);
8
- function DeleteBackupSelectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBackupSelectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBackupSelectionCommand.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 = "DeleteBackupSelectionCommand";
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 = "DeleteBackupSelectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBackupSelectionInputFilterSensitiveLog,
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
- DeleteBackupSelectionCommand.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_restJson1DeleteBackupSelectionCommand(input, context);
33
- };
34
- DeleteBackupSelectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBackupSelectionCommand(output, context);
36
- };
37
- return DeleteBackupSelectionCommand;
38
- }($Command));
39
- export { DeleteBackupSelectionCommand };
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 { DeleteBackupVaultAccessPolicyInputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommand, serializeAws_restJson1DeleteBackupVaultAccessPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBackupVaultAccessPolicyCommand = (function (_super) {
7
- __extends(DeleteBackupVaultAccessPolicyCommand, _super);
8
- function DeleteBackupVaultAccessPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBackupVaultAccessPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBackupVaultAccessPolicyCommand.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 = "DeleteBackupVaultAccessPolicyCommand";
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 = "DeleteBackupVaultAccessPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBackupVaultAccessPolicyInputFilterSensitiveLog,
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
- DeleteBackupVaultAccessPolicyCommand.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_restJson1DeleteBackupVaultAccessPolicyCommand(input, context);
33
- };
34
- DeleteBackupVaultAccessPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommand(output, context);
36
- };
37
- return DeleteBackupVaultAccessPolicyCommand;
38
- }($Command));
39
- export { DeleteBackupVaultAccessPolicyCommand };
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 { DeleteBackupVaultInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBackupVaultCommand, serializeAws_restJson1DeleteBackupVaultCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBackupVaultCommand = (function (_super) {
7
- __extends(DeleteBackupVaultCommand, _super);
8
- function DeleteBackupVaultCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBackupVaultCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBackupVaultCommand.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 = "DeleteBackupVaultCommand";
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 = "DeleteBackupVaultCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBackupVaultInputFilterSensitiveLog,
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
- DeleteBackupVaultCommand.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_restJson1DeleteBackupVaultCommand(input, context);
33
- };
34
- DeleteBackupVaultCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBackupVaultCommand(output, context);
36
- };
37
- return DeleteBackupVaultCommand;
38
- }($Command));
39
- export { DeleteBackupVaultCommand };
31
+ }
32
+ }