@aws-sdk/client-mgn 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 (52) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Mgn.js +141 -134
  4. package/dist-es/MgnClient.js +28 -22
  5. package/dist-es/commands/ChangeServerLifeCycleStateCommand.js +28 -21
  6. package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +28 -21
  7. package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +28 -21
  8. package/dist-es/commands/DeleteJobCommand.js +28 -21
  9. package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +28 -21
  10. package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +28 -21
  11. package/dist-es/commands/DeleteSourceServerCommand.js +28 -21
  12. package/dist-es/commands/DeleteVcenterClientCommand.js +29 -22
  13. package/dist-es/commands/DescribeJobLogItemsCommand.js +28 -21
  14. package/dist-es/commands/DescribeJobsCommand.js +28 -21
  15. package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +28 -21
  16. package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +28 -21
  17. package/dist-es/commands/DescribeSourceServersCommand.js +28 -21
  18. package/dist-es/commands/DescribeVcenterClientsCommand.js +28 -21
  19. package/dist-es/commands/DisconnectFromServiceCommand.js +28 -21
  20. package/dist-es/commands/FinalizeCutoverCommand.js +28 -21
  21. package/dist-es/commands/GetLaunchConfigurationCommand.js +28 -21
  22. package/dist-es/commands/GetReplicationConfigurationCommand.js +28 -21
  23. package/dist-es/commands/InitializeServiceCommand.js +28 -21
  24. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  25. package/dist-es/commands/MarkAsArchivedCommand.js +28 -21
  26. package/dist-es/commands/RetryDataReplicationCommand.js +28 -21
  27. package/dist-es/commands/StartCutoverCommand.js +28 -21
  28. package/dist-es/commands/StartReplicationCommand.js +28 -21
  29. package/dist-es/commands/StartTestCommand.js +28 -21
  30. package/dist-es/commands/TagResourceCommand.js +29 -22
  31. package/dist-es/commands/TerminateTargetInstancesCommand.js +28 -21
  32. package/dist-es/commands/UntagResourceCommand.js +29 -22
  33. package/dist-es/commands/UpdateLaunchConfigurationCommand.js +28 -21
  34. package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +28 -21
  35. package/dist-es/commands/UpdateReplicationConfigurationCommand.js +28 -21
  36. package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +28 -21
  37. package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +28 -21
  38. package/dist-es/endpoints.js +8 -8
  39. package/dist-es/models/MgnServiceException.js +10 -5
  40. package/dist-es/models/models_0.js +202 -410
  41. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +68 -25
  42. package/dist-es/pagination/DescribeJobsPaginator.js +68 -25
  43. package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +68 -25
  44. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +68 -25
  45. package/dist-es/pagination/DescribeSourceServersPaginator.js +68 -25
  46. package/dist-es/pagination/DescribeVcenterClientsPaginator.js +68 -25
  47. package/dist-es/protocols/Aws_restJson1.js +3799 -2923
  48. package/dist-es/runtimeConfig.browser.js +12 -26
  49. package/dist-es/runtimeConfig.js +12 -30
  50. package/dist-es/runtimeConfig.native.js +5 -8
  51. package/dist-es/runtimeConfig.shared.js +11 -8
  52. 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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.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 = "MgnClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
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
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -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 { MarkAsArchivedRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1MarkAsArchivedCommand, serializeAws_restJson1MarkAsArchivedCommand, } from "../protocols/Aws_restJson1";
5
- export class MarkAsArchivedCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var MarkAsArchivedCommand = (function (_super) {
7
+ __extends(MarkAsArchivedCommand, _super);
8
+ function MarkAsArchivedCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ MarkAsArchivedCommand.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 = "MgnClient";
15
- const commandName = "MarkAsArchivedCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "MarkAsArchivedCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: MarkAsArchivedRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
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
+ MarkAsArchivedCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1MarkAsArchivedCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ MarkAsArchivedCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1MarkAsArchivedCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return MarkAsArchivedCommand;
38
+ }($Command));
39
+ export { MarkAsArchivedCommand };
@@ -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 { RetryDataReplicationRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1RetryDataReplicationCommand, serializeAws_restJson1RetryDataReplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class RetryDataReplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RetryDataReplicationCommand = (function (_super) {
7
+ __extends(RetryDataReplicationCommand, _super);
8
+ function RetryDataReplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RetryDataReplicationCommand.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 = "MgnClient";
15
- const commandName = "RetryDataReplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "RetryDataReplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RetryDataReplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
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
+ RetryDataReplicationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1RetryDataReplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RetryDataReplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1RetryDataReplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RetryDataReplicationCommand;
38
+ }($Command));
39
+ export { RetryDataReplicationCommand };
@@ -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 { StartCutoverRequestFilterSensitiveLog, StartCutoverResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartCutoverCommand, serializeAws_restJson1StartCutoverCommand, } from "../protocols/Aws_restJson1";
5
- export class StartCutoverCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartCutoverCommand = (function (_super) {
7
+ __extends(StartCutoverCommand, _super);
8
+ function StartCutoverCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartCutoverCommand.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 = "MgnClient";
15
- const commandName = "StartCutoverCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "StartCutoverCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartCutoverRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartCutoverResponseFilterSensitiveLog,
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
+ StartCutoverCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1StartCutoverCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartCutoverCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartCutoverCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartCutoverCommand;
38
+ }($Command));
39
+ export { StartCutoverCommand };
@@ -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 { SourceServerFilterSensitiveLog, StartReplicationRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartReplicationCommand, serializeAws_restJson1StartReplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class StartReplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartReplicationCommand = (function (_super) {
7
+ __extends(StartReplicationCommand, _super);
8
+ function StartReplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartReplicationCommand.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 = "MgnClient";
15
- const commandName = "StartReplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "StartReplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartReplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
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
+ StartReplicationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1StartReplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartReplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartReplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartReplicationCommand;
38
+ }($Command));
39
+ export { StartReplicationCommand };
@@ -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 { StartTestRequestFilterSensitiveLog, StartTestResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartTestCommand, serializeAws_restJson1StartTestCommand, } from "../protocols/Aws_restJson1";
5
- export class StartTestCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartTestCommand = (function (_super) {
7
+ __extends(StartTestCommand, _super);
8
+ function StartTestCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartTestCommand.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 = "MgnClient";
15
- const commandName = "StartTestCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "StartTestCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartTestRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartTestResponseFilterSensitiveLog,
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
+ StartTestCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1StartTestCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartTestCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartTestCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartTestCommand;
38
+ }($Command));
39
+ export { StartTestCommand };
@@ -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 { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.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 = "MgnClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
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
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -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 { TerminateTargetInstancesRequestFilterSensitiveLog, TerminateTargetInstancesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TerminateTargetInstancesCommand, serializeAws_restJson1TerminateTargetInstancesCommand, } from "../protocols/Aws_restJson1";
5
- export class TerminateTargetInstancesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TerminateTargetInstancesCommand = (function (_super) {
7
+ __extends(TerminateTargetInstancesCommand, _super);
8
+ function TerminateTargetInstancesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TerminateTargetInstancesCommand.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 = "MgnClient";
15
- const commandName = "TerminateTargetInstancesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "TerminateTargetInstancesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TerminateTargetInstancesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TerminateTargetInstancesResponseFilterSensitiveLog,
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
+ TerminateTargetInstancesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TerminateTargetInstancesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TerminateTargetInstancesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TerminateTargetInstancesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TerminateTargetInstancesCommand;
38
+ }($Command));
39
+ export { TerminateTargetInstancesCommand };
@@ -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 { UntagResourceRequestFilterSensitiveLog } 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 = "MgnClient";
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 = "MgnClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
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 { LaunchConfigurationFilterSensitiveLog, UpdateLaunchConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateLaunchConfigurationCommand, serializeAws_restJson1UpdateLaunchConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateLaunchConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateLaunchConfigurationCommand = (function (_super) {
7
+ __extends(UpdateLaunchConfigurationCommand, _super);
8
+ function UpdateLaunchConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateLaunchConfigurationCommand.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 = "MgnClient";
15
- const commandName = "UpdateLaunchConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MgnClient";
18
+ var commandName = "UpdateLaunchConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateLaunchConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: LaunchConfigurationFilterSensitiveLog,
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
+ UpdateLaunchConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateLaunchConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateLaunchConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateLaunchConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateLaunchConfigurationCommand;
38
+ }($Command));
39
+ export { UpdateLaunchConfigurationCommand };