@aws-sdk/client-backup-gateway 3.181.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 { TagResourceInputFilterSensitiveLog, TagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0TagResourceCommand, serializeAws_json1_0TagResourceCommand, } from "../protocols/Aws_json1_0";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_0TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { TestHypervisorConfigurationInputFilterSensitiveLog, TestHypervisorConfigurationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0TestHypervisorConfigurationCommand, serializeAws_json1_0TestHypervisorConfigurationCommand, } from "../protocols/Aws_json1_0";
6
- var TestHypervisorConfigurationCommand = (function (_super) {
7
- __extends(TestHypervisorConfigurationCommand, _super);
8
- function TestHypervisorConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TestHypervisorConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TestHypervisorConfigurationCommand.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 = "TestHypervisorConfigurationCommand";
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 = "TestHypervisorConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TestHypervisorConfigurationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TestHypervisorConfigurationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TestHypervisorConfigurationCommand.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_0TestHypervisorConfigurationCommand(input, context);
33
- };
34
- TestHypervisorConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0TestHypervisorConfigurationCommand(output, context);
36
- };
37
- return TestHypervisorConfigurationCommand;
38
- }($Command));
39
- export { TestHypervisorConfigurationCommand };
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 { UntagResourceInputFilterSensitiveLog, UntagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UntagResourceCommand, serializeAws_json1_0UntagResourceCommand, } from "../protocols/Aws_json1_0";
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;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceOutputFilterSensitiveLog,
25
22
  };
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) {
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_0UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
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 { UpdateGatewayInformationInputFilterSensitiveLog, UpdateGatewayInformationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UpdateGatewayInformationCommand, serializeAws_json1_0UpdateGatewayInformationCommand, } from "../protocols/Aws_json1_0";
6
- var UpdateGatewayInformationCommand = (function (_super) {
7
- __extends(UpdateGatewayInformationCommand, _super);
8
- function UpdateGatewayInformationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateGatewayInformationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateGatewayInformationCommand.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 = "UpdateGatewayInformationCommand";
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 = "UpdateGatewayInformationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateGatewayInformationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateGatewayInformationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateGatewayInformationCommand.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_0UpdateGatewayInformationCommand(input, context);
33
- };
34
- UpdateGatewayInformationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UpdateGatewayInformationCommand(output, context);
36
- };
37
- return UpdateGatewayInformationCommand;
38
- }($Command));
39
- export { UpdateGatewayInformationCommand };
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 { UpdateGatewaySoftwareNowInputFilterSensitiveLog, UpdateGatewaySoftwareNowOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UpdateGatewaySoftwareNowCommand, serializeAws_json1_0UpdateGatewaySoftwareNowCommand, } from "../protocols/Aws_json1_0";
6
- var UpdateGatewaySoftwareNowCommand = (function (_super) {
7
- __extends(UpdateGatewaySoftwareNowCommand, _super);
8
- function UpdateGatewaySoftwareNowCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateGatewaySoftwareNowCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateGatewaySoftwareNowCommand.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 = "UpdateGatewaySoftwareNowCommand";
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 = "UpdateGatewaySoftwareNowCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateGatewaySoftwareNowInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateGatewaySoftwareNowOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateGatewaySoftwareNowCommand.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_0UpdateGatewaySoftwareNowCommand(input, context);
33
- };
34
- UpdateGatewaySoftwareNowCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UpdateGatewaySoftwareNowCommand(output, context);
36
- };
37
- return UpdateGatewaySoftwareNowCommand;
38
- }($Command));
39
- export { UpdateGatewaySoftwareNowCommand };
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 { UpdateHypervisorInputFilterSensitiveLog, UpdateHypervisorOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UpdateHypervisorCommand, serializeAws_json1_0UpdateHypervisorCommand, } from "../protocols/Aws_json1_0";
6
- var UpdateHypervisorCommand = (function (_super) {
7
- __extends(UpdateHypervisorCommand, _super);
8
- function UpdateHypervisorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateHypervisorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateHypervisorCommand.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 = "UpdateHypervisorCommand";
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 = "UpdateHypervisorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateHypervisorInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateHypervisorOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateHypervisorCommand.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_0UpdateHypervisorCommand(input, context);
33
- };
34
- UpdateHypervisorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UpdateHypervisorCommand(output, context);
36
- };
37
- return UpdateHypervisorCommand;
38
- }($Command));
39
- export { UpdateHypervisorCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
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-gateway", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "backup-gateway",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var BackupGatewayServiceException = (function (_super) {
4
- __extends(BackupGatewayServiceException, _super);
5
- function BackupGatewayServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, BackupGatewayServiceException.prototype);
8
- return _this;
2
+ export class BackupGatewayServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, BackupGatewayServiceException.prototype);
9
6
  }
10
- return BackupGatewayServiceException;
11
- }(__ServiceException));
12
- export { BackupGatewayServiceException };
7
+ }