@aws-sdk/client-backup-gateway 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 (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/BackupGateway.js +78 -85
  3. package/dist-es/BackupGatewayClient.js +22 -28
  4. package/dist-es/commands/AssociateGatewayToServerCommand.js +21 -28
  5. package/dist-es/commands/CreateGatewayCommand.js +21 -28
  6. package/dist-es/commands/DeleteGatewayCommand.js +21 -28
  7. package/dist-es/commands/DeleteHypervisorCommand.js +21 -28
  8. package/dist-es/commands/DisassociateGatewayFromServerCommand.js +21 -28
  9. package/dist-es/commands/GetGatewayCommand.js +21 -28
  10. package/dist-es/commands/GetVirtualMachineCommand.js +21 -28
  11. package/dist-es/commands/ImportHypervisorConfigurationCommand.js +21 -28
  12. package/dist-es/commands/ListGatewaysCommand.js +21 -28
  13. package/dist-es/commands/ListHypervisorsCommand.js +21 -28
  14. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  15. package/dist-es/commands/ListVirtualMachinesCommand.js +21 -28
  16. package/dist-es/commands/PutMaintenanceStartTimeCommand.js +21 -28
  17. package/dist-es/commands/TagResourceCommand.js +21 -28
  18. package/dist-es/commands/TestHypervisorConfigurationCommand.js +21 -28
  19. package/dist-es/commands/UntagResourceCommand.js +21 -28
  20. package/dist-es/commands/UpdateGatewayInformationCommand.js +21 -28
  21. package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +21 -28
  22. package/dist-es/commands/UpdateHypervisorCommand.js +21 -28
  23. package/dist-es/endpoints.js +8 -8
  24. package/dist-es/models/BackupGatewayServiceException.js +5 -10
  25. package/dist-es/models/models_0.js +219 -124
  26. package/dist-es/pagination/ListGatewaysPaginator.js +25 -68
  27. package/dist-es/pagination/ListHypervisorsPaginator.js +25 -68
  28. package/dist-es/pagination/ListVirtualMachinesPaginator.js +25 -68
  29. package/dist-es/protocols/Aws_json1_0.js +1232 -1627
  30. package/dist-es/runtimeConfig.browser.js +26 -12
  31. package/dist-es/runtimeConfig.js +30 -12
  32. package/dist-es/runtimeConfig.native.js +8 -5
  33. package/dist-es/runtimeConfig.shared.js +8 -11
  34. 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 { DeleteHypervisorInputFilterSensitiveLog, DeleteHypervisorOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeleteHypervisorCommand, serializeAws_json1_0DeleteHypervisorCommand, } from "../protocols/Aws_json1_0";
6
- var DeleteHypervisorCommand = (function (_super) {
7
- __extends(DeleteHypervisorCommand, _super);
8
- function DeleteHypervisorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteHypervisorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteHypervisorCommand.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 = "BackupGatewayClient";
18
- var commandName = "DeleteHypervisorCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "DeleteHypervisorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteHypervisorInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteHypervisorOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteHypervisorCommand.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_json1_0DeleteHypervisorCommand(input, context);
33
- };
34
- DeleteHypervisorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeleteHypervisorCommand(output, context);
36
- };
37
- return DeleteHypervisorCommand;
38
- }($Command));
39
- export { DeleteHypervisorCommand };
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 { DisassociateGatewayFromServerInputFilterSensitiveLog, DisassociateGatewayFromServerOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DisassociateGatewayFromServerCommand, serializeAws_json1_0DisassociateGatewayFromServerCommand, } from "../protocols/Aws_json1_0";
6
- var DisassociateGatewayFromServerCommand = (function (_super) {
7
- __extends(DisassociateGatewayFromServerCommand, _super);
8
- function DisassociateGatewayFromServerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateGatewayFromServerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateGatewayFromServerCommand.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 = "BackupGatewayClient";
18
- var commandName = "DisassociateGatewayFromServerCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "DisassociateGatewayFromServerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateGatewayFromServerInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateGatewayFromServerOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateGatewayFromServerCommand.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_json1_0DisassociateGatewayFromServerCommand(input, context);
33
- };
34
- DisassociateGatewayFromServerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DisassociateGatewayFromServerCommand(output, context);
36
- };
37
- return DisassociateGatewayFromServerCommand;
38
- }($Command));
39
- export { DisassociateGatewayFromServerCommand };
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 { GetGatewayInputFilterSensitiveLog, GetGatewayOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetGatewayCommand, serializeAws_json1_0GetGatewayCommand, } from "../protocols/Aws_json1_0";
6
- var GetGatewayCommand = (function (_super) {
7
- __extends(GetGatewayCommand, _super);
8
- function GetGatewayCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGatewayCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGatewayCommand.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 = "BackupGatewayClient";
18
- var commandName = "GetGatewayCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "GetGatewayCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGatewayInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGatewayOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGatewayCommand.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_json1_0GetGatewayCommand(input, context);
33
- };
34
- GetGatewayCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetGatewayCommand(output, context);
36
- };
37
- return GetGatewayCommand;
38
- }($Command));
39
- export { GetGatewayCommand };
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 { GetVirtualMachineInputFilterSensitiveLog, GetVirtualMachineOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetVirtualMachineCommand, serializeAws_json1_0GetVirtualMachineCommand, } from "../protocols/Aws_json1_0";
6
- var GetVirtualMachineCommand = (function (_super) {
7
- __extends(GetVirtualMachineCommand, _super);
8
- function GetVirtualMachineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetVirtualMachineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetVirtualMachineCommand.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 = "BackupGatewayClient";
18
- var commandName = "GetVirtualMachineCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "GetVirtualMachineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetVirtualMachineInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetVirtualMachineOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetVirtualMachineCommand.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_json1_0GetVirtualMachineCommand(input, context);
33
- };
34
- GetVirtualMachineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetVirtualMachineCommand(output, context);
36
- };
37
- return GetVirtualMachineCommand;
38
- }($Command));
39
- export { GetVirtualMachineCommand };
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 { ImportHypervisorConfigurationInputFilterSensitiveLog, ImportHypervisorConfigurationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ImportHypervisorConfigurationCommand, serializeAws_json1_0ImportHypervisorConfigurationCommand, } from "../protocols/Aws_json1_0";
6
- var ImportHypervisorConfigurationCommand = (function (_super) {
7
- __extends(ImportHypervisorConfigurationCommand, _super);
8
- function ImportHypervisorConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ImportHypervisorConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportHypervisorConfigurationCommand.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 = "BackupGatewayClient";
18
- var commandName = "ImportHypervisorConfigurationCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "ImportHypervisorConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportHypervisorConfigurationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ImportHypervisorConfigurationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ImportHypervisorConfigurationCommand.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_json1_0ImportHypervisorConfigurationCommand(input, context);
33
- };
34
- ImportHypervisorConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ImportHypervisorConfigurationCommand(output, context);
36
- };
37
- return ImportHypervisorConfigurationCommand;
38
- }($Command));
39
- export { ImportHypervisorConfigurationCommand };
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 { ListGatewaysInputFilterSensitiveLog, ListGatewaysOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ListGatewaysCommand, serializeAws_json1_0ListGatewaysCommand, } from "../protocols/Aws_json1_0";
6
- var ListGatewaysCommand = (function (_super) {
7
- __extends(ListGatewaysCommand, _super);
8
- function ListGatewaysCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListGatewaysCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListGatewaysCommand.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 = "BackupGatewayClient";
18
- var commandName = "ListGatewaysCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "ListGatewaysCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListGatewaysInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListGatewaysOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListGatewaysCommand.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_json1_0ListGatewaysCommand(input, context);
33
- };
34
- ListGatewaysCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ListGatewaysCommand(output, context);
36
- };
37
- return ListGatewaysCommand;
38
- }($Command));
39
- export { ListGatewaysCommand };
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 { ListHypervisorsInputFilterSensitiveLog, ListHypervisorsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ListHypervisorsCommand, serializeAws_json1_0ListHypervisorsCommand, } from "../protocols/Aws_json1_0";
6
- var ListHypervisorsCommand = (function (_super) {
7
- __extends(ListHypervisorsCommand, _super);
8
- function ListHypervisorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListHypervisorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListHypervisorsCommand.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 = "BackupGatewayClient";
18
- var commandName = "ListHypervisorsCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "ListHypervisorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListHypervisorsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListHypervisorsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListHypervisorsCommand.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_json1_0ListHypervisorsCommand(input, context);
33
- };
34
- ListHypervisorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ListHypervisorsCommand(output, context);
36
- };
37
- return ListHypervisorsCommand;
38
- }($Command));
39
- export { ListHypervisorsCommand };
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 { ListTagsForResourceInputFilterSensitiveLog, ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ListTagsForResourceCommand, serializeAws_json1_0ListTagsForResourceCommand, } from "../protocols/Aws_json1_0";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "BackupGatewayClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_json1_0ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ListVirtualMachinesInputFilterSensitiveLog, ListVirtualMachinesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ListVirtualMachinesCommand, serializeAws_json1_0ListVirtualMachinesCommand, } from "../protocols/Aws_json1_0";
6
- var ListVirtualMachinesCommand = (function (_super) {
7
- __extends(ListVirtualMachinesCommand, _super);
8
- function ListVirtualMachinesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListVirtualMachinesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListVirtualMachinesCommand.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 = "BackupGatewayClient";
18
- var commandName = "ListVirtualMachinesCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "ListVirtualMachinesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListVirtualMachinesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListVirtualMachinesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListVirtualMachinesCommand.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_json1_0ListVirtualMachinesCommand(input, context);
33
- };
34
- ListVirtualMachinesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ListVirtualMachinesCommand(output, context);
36
- };
37
- return ListVirtualMachinesCommand;
38
- }($Command));
39
- export { ListVirtualMachinesCommand };
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 { PutMaintenanceStartTimeInputFilterSensitiveLog, PutMaintenanceStartTimeOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0PutMaintenanceStartTimeCommand, serializeAws_json1_0PutMaintenanceStartTimeCommand, } from "../protocols/Aws_json1_0";
6
- var PutMaintenanceStartTimeCommand = (function (_super) {
7
- __extends(PutMaintenanceStartTimeCommand, _super);
8
- function PutMaintenanceStartTimeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutMaintenanceStartTimeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutMaintenanceStartTimeCommand.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 = "BackupGatewayClient";
18
- var commandName = "PutMaintenanceStartTimeCommand";
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 = "BackupGatewayClient";
15
+ const commandName = "PutMaintenanceStartTimeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutMaintenanceStartTimeInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutMaintenanceStartTimeOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutMaintenanceStartTimeCommand.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_json1_0PutMaintenanceStartTimeCommand(input, context);
33
- };
34
- PutMaintenanceStartTimeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0PutMaintenanceStartTimeCommand(output, context);
36
- };
37
- return PutMaintenanceStartTimeCommand;
38
- }($Command));
39
- export { PutMaintenanceStartTimeCommand };
31
+ }
32
+ }