@aws-sdk/client-mgn 3.180.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 (52) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +39 -33
  3. package/dist-es/Mgn.js +134 -141
  4. package/dist-es/MgnClient.js +22 -28
  5. package/dist-es/commands/ChangeServerLifeCycleStateCommand.js +21 -28
  6. package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +21 -28
  7. package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
  8. package/dist-es/commands/DeleteJobCommand.js +21 -28
  9. package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +21 -28
  10. package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
  11. package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
  12. package/dist-es/commands/DeleteVcenterClientCommand.js +22 -29
  13. package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
  14. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  15. package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +21 -28
  16. package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
  17. package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
  18. package/dist-es/commands/DescribeVcenterClientsCommand.js +21 -28
  19. package/dist-es/commands/DisconnectFromServiceCommand.js +21 -28
  20. package/dist-es/commands/FinalizeCutoverCommand.js +21 -28
  21. package/dist-es/commands/GetLaunchConfigurationCommand.js +21 -28
  22. package/dist-es/commands/GetReplicationConfigurationCommand.js +21 -28
  23. package/dist-es/commands/InitializeServiceCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/MarkAsArchivedCommand.js +21 -28
  26. package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
  27. package/dist-es/commands/StartCutoverCommand.js +21 -28
  28. package/dist-es/commands/StartReplicationCommand.js +21 -28
  29. package/dist-es/commands/StartTestCommand.js +21 -28
  30. package/dist-es/commands/TagResourceCommand.js +22 -29
  31. package/dist-es/commands/TerminateTargetInstancesCommand.js +21 -28
  32. package/dist-es/commands/UntagResourceCommand.js +22 -29
  33. package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
  34. package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +21 -28
  35. package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
  36. package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
  37. package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +21 -28
  38. package/dist-es/endpoints.js +8 -8
  39. package/dist-es/models/MgnServiceException.js +5 -10
  40. package/dist-es/models/models_0.js +410 -202
  41. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
  42. package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
  43. package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +25 -68
  44. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
  45. package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
  46. package/dist-es/pagination/DescribeVcenterClientsPaginator.js +25 -68
  47. package/dist-es/protocols/Aws_restJson1.js +2923 -3786
  48. package/dist-es/runtimeConfig.browser.js +26 -12
  49. package/dist-es/runtimeConfig.js +30 -12
  50. package/dist-es/runtimeConfig.native.js +8 -5
  51. package/dist-es/runtimeConfig.shared.js +8 -11
  52. 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 { DescribeJobsRequestFilterSensitiveLog, DescribeJobsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobsCommand, serializeAws_restJson1DescribeJobsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobsCommand = (function (_super) {
7
- __extends(DescribeJobsCommand, _super);
8
- function DescribeJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobsCommand.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 = "MgnClient";
18
- var commandName = "DescribeJobsCommand";
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 = "MgnClient";
15
+ const commandName = "DescribeJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobsCommand.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_restJson1DescribeJobsCommand(input, context);
33
- };
34
- DescribeJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobsCommand(output, context);
36
- };
37
- return DescribeJobsCommand;
38
- }($Command));
39
- export { DescribeJobsCommand };
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 { DescribeLaunchConfigurationTemplatesRequestFilterSensitiveLog, DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand, serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeLaunchConfigurationTemplatesCommand = (function (_super) {
7
- __extends(DescribeLaunchConfigurationTemplatesCommand, _super);
8
- function DescribeLaunchConfigurationTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeLaunchConfigurationTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeLaunchConfigurationTemplatesCommand.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 = "MgnClient";
18
- var commandName = "DescribeLaunchConfigurationTemplatesCommand";
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 = "MgnClient";
15
+ const commandName = "DescribeLaunchConfigurationTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeLaunchConfigurationTemplatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeLaunchConfigurationTemplatesCommand.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_restJson1DescribeLaunchConfigurationTemplatesCommand(input, context);
33
- };
34
- DescribeLaunchConfigurationTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand(output, context);
36
- };
37
- return DescribeLaunchConfigurationTemplatesCommand;
38
- }($Command));
39
- export { DescribeLaunchConfigurationTemplatesCommand };
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 { DescribeReplicationConfigurationTemplatesRequestFilterSensitiveLog, DescribeReplicationConfigurationTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand, serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeReplicationConfigurationTemplatesCommand = (function (_super) {
7
- __extends(DescribeReplicationConfigurationTemplatesCommand, _super);
8
- function DescribeReplicationConfigurationTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReplicationConfigurationTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReplicationConfigurationTemplatesCommand.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 = "MgnClient";
18
- var commandName = "DescribeReplicationConfigurationTemplatesCommand";
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 = "MgnClient";
15
+ const commandName = "DescribeReplicationConfigurationTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReplicationConfigurationTemplatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReplicationConfigurationTemplatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReplicationConfigurationTemplatesCommand.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_restJson1DescribeReplicationConfigurationTemplatesCommand(input, context);
33
- };
34
- DescribeReplicationConfigurationTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand(output, context);
36
- };
37
- return DescribeReplicationConfigurationTemplatesCommand;
38
- }($Command));
39
- export { DescribeReplicationConfigurationTemplatesCommand };
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 { DescribeSourceServersRequestFilterSensitiveLog, DescribeSourceServersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeSourceServersCommand, serializeAws_restJson1DescribeSourceServersCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeSourceServersCommand = (function (_super) {
7
- __extends(DescribeSourceServersCommand, _super);
8
- function DescribeSourceServersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeSourceServersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeSourceServersCommand.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 = "MgnClient";
18
- var commandName = "DescribeSourceServersCommand";
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 = "MgnClient";
15
+ const commandName = "DescribeSourceServersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeSourceServersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeSourceServersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeSourceServersCommand.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_restJson1DescribeSourceServersCommand(input, context);
33
- };
34
- DescribeSourceServersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeSourceServersCommand(output, context);
36
- };
37
- return DescribeSourceServersCommand;
38
- }($Command));
39
- export { DescribeSourceServersCommand };
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 { DescribeVcenterClientsRequestFilterSensitiveLog, DescribeVcenterClientsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeVcenterClientsCommand, serializeAws_restJson1DescribeVcenterClientsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeVcenterClientsCommand = (function (_super) {
7
- __extends(DescribeVcenterClientsCommand, _super);
8
- function DescribeVcenterClientsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeVcenterClientsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeVcenterClientsCommand.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 = "MgnClient";
18
- var commandName = "DescribeVcenterClientsCommand";
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 = "MgnClient";
15
+ const commandName = "DescribeVcenterClientsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeVcenterClientsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeVcenterClientsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeVcenterClientsCommand.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_restJson1DescribeVcenterClientsCommand(input, context);
33
- };
34
- DescribeVcenterClientsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeVcenterClientsCommand(output, context);
36
- };
37
- return DescribeVcenterClientsCommand;
38
- }($Command));
39
- export { DescribeVcenterClientsCommand };
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 { DisconnectFromServiceRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisconnectFromServiceCommand, serializeAws_restJson1DisconnectFromServiceCommand, } from "../protocols/Aws_restJson1";
6
- var DisconnectFromServiceCommand = (function (_super) {
7
- __extends(DisconnectFromServiceCommand, _super);
8
- function DisconnectFromServiceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisconnectFromServiceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisconnectFromServiceCommand.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 = "MgnClient";
18
- var commandName = "DisconnectFromServiceCommand";
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 = "MgnClient";
15
+ const commandName = "DisconnectFromServiceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisconnectFromServiceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisconnectFromServiceCommand.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_restJson1DisconnectFromServiceCommand(input, context);
33
- };
34
- DisconnectFromServiceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisconnectFromServiceCommand(output, context);
36
- };
37
- return DisconnectFromServiceCommand;
38
- }($Command));
39
- export { DisconnectFromServiceCommand };
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 { FinalizeCutoverRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1FinalizeCutoverCommand, serializeAws_restJson1FinalizeCutoverCommand, } from "../protocols/Aws_restJson1";
6
- var FinalizeCutoverCommand = (function (_super) {
7
- __extends(FinalizeCutoverCommand, _super);
8
- function FinalizeCutoverCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class FinalizeCutoverCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- FinalizeCutoverCommand.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 = "MgnClient";
18
- var commandName = "FinalizeCutoverCommand";
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 = "MgnClient";
15
+ const commandName = "FinalizeCutoverCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: FinalizeCutoverRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- FinalizeCutoverCommand.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_restJson1FinalizeCutoverCommand(input, context);
33
- };
34
- FinalizeCutoverCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1FinalizeCutoverCommand(output, context);
36
- };
37
- return FinalizeCutoverCommand;
38
- }($Command));
39
- export { FinalizeCutoverCommand };
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 { GetLaunchConfigurationRequestFilterSensitiveLog, LaunchConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetLaunchConfigurationCommand, serializeAws_restJson1GetLaunchConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetLaunchConfigurationCommand = (function (_super) {
7
- __extends(GetLaunchConfigurationCommand, _super);
8
- function GetLaunchConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetLaunchConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetLaunchConfigurationCommand.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 = "MgnClient";
18
- var commandName = "GetLaunchConfigurationCommand";
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 = "MgnClient";
15
+ const commandName = "GetLaunchConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetLaunchConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: LaunchConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetLaunchConfigurationCommand.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_restJson1GetLaunchConfigurationCommand(input, context);
33
- };
34
- GetLaunchConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetLaunchConfigurationCommand(output, context);
36
- };
37
- return GetLaunchConfigurationCommand;
38
- }($Command));
39
- export { GetLaunchConfigurationCommand };
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 { GetReplicationConfigurationRequestFilterSensitiveLog, ReplicationConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetReplicationConfigurationCommand, serializeAws_restJson1GetReplicationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetReplicationConfigurationCommand = (function (_super) {
7
- __extends(GetReplicationConfigurationCommand, _super);
8
- function GetReplicationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetReplicationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetReplicationConfigurationCommand.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 = "MgnClient";
18
- var commandName = "GetReplicationConfigurationCommand";
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 = "MgnClient";
15
+ const commandName = "GetReplicationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetReplicationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ReplicationConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetReplicationConfigurationCommand.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_restJson1GetReplicationConfigurationCommand(input, context);
33
- };
34
- GetReplicationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetReplicationConfigurationCommand(output, context);
36
- };
37
- return GetReplicationConfigurationCommand;
38
- }($Command));
39
- export { GetReplicationConfigurationCommand };
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 { InitializeServiceRequestFilterSensitiveLog, InitializeServiceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1InitializeServiceCommand, serializeAws_restJson1InitializeServiceCommand, } from "../protocols/Aws_restJson1";
6
- var InitializeServiceCommand = (function (_super) {
7
- __extends(InitializeServiceCommand, _super);
8
- function InitializeServiceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitializeServiceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitializeServiceCommand.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 = "MgnClient";
18
- var commandName = "InitializeServiceCommand";
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 = "MgnClient";
15
+ const commandName = "InitializeServiceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitializeServiceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitializeServiceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitializeServiceCommand.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_restJson1InitializeServiceCommand(input, context);
33
- };
34
- InitializeServiceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1InitializeServiceCommand(output, context);
36
- };
37
- return InitializeServiceCommand;
38
- }($Command));
39
- export { InitializeServiceCommand };
31
+ }
32
+ }