@aws-sdk/client-mgn 3.185.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 (51) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Mgn.js +134 -141
  3. package/dist-es/MgnClient.js +22 -28
  4. package/dist-es/commands/ChangeServerLifeCycleStateCommand.js +21 -28
  5. package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +21 -28
  6. package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
  7. package/dist-es/commands/DeleteJobCommand.js +21 -28
  8. package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +21 -28
  9. package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
  10. package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
  11. package/dist-es/commands/DeleteVcenterClientCommand.js +22 -29
  12. package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
  13. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  14. package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +21 -28
  15. package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
  16. package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
  17. package/dist-es/commands/DescribeVcenterClientsCommand.js +21 -28
  18. package/dist-es/commands/DisconnectFromServiceCommand.js +21 -28
  19. package/dist-es/commands/FinalizeCutoverCommand.js +21 -28
  20. package/dist-es/commands/GetLaunchConfigurationCommand.js +21 -28
  21. package/dist-es/commands/GetReplicationConfigurationCommand.js +21 -28
  22. package/dist-es/commands/InitializeServiceCommand.js +21 -28
  23. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  24. package/dist-es/commands/MarkAsArchivedCommand.js +21 -28
  25. package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
  26. package/dist-es/commands/StartCutoverCommand.js +21 -28
  27. package/dist-es/commands/StartReplicationCommand.js +21 -28
  28. package/dist-es/commands/StartTestCommand.js +21 -28
  29. package/dist-es/commands/TagResourceCommand.js +22 -29
  30. package/dist-es/commands/TerminateTargetInstancesCommand.js +21 -28
  31. package/dist-es/commands/UntagResourceCommand.js +22 -29
  32. package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
  33. package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +21 -28
  34. package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
  35. package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
  36. package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +21 -28
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/MgnServiceException.js +5 -10
  39. package/dist-es/models/models_0.js +410 -202
  40. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
  41. package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
  42. package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +25 -68
  43. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
  44. package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
  45. package/dist-es/pagination/DescribeVcenterClientsPaginator.js +25 -68
  46. package/dist-es/protocols/Aws_restJson1.js +2923 -3799
  47. package/dist-es/runtimeConfig.browser.js +26 -12
  48. package/dist-es/runtimeConfig.js +30 -12
  49. package/dist-es/runtimeConfig.native.js +8 -5
  50. package/dist-es/runtimeConfig.shared.js +8 -11
  51. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var MgnClient = (function (_super) {
13
- __extends(MgnClient, _super);
14
- function MgnClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class MgnClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- MgnClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return MgnClient;
38
- }(__Client));
39
- export { MgnClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ChangeServerLifeCycleStateRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ChangeServerLifeCycleStateCommand, serializeAws_restJson1ChangeServerLifeCycleStateCommand, } from "../protocols/Aws_restJson1";
6
- var ChangeServerLifeCycleStateCommand = (function (_super) {
7
- __extends(ChangeServerLifeCycleStateCommand, _super);
8
- function ChangeServerLifeCycleStateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ChangeServerLifeCycleStateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ChangeServerLifeCycleStateCommand.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 = "ChangeServerLifeCycleStateCommand";
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 = "ChangeServerLifeCycleStateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ChangeServerLifeCycleStateRequestFilterSensitiveLog,
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
- ChangeServerLifeCycleStateCommand.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_restJson1ChangeServerLifeCycleStateCommand(input, context);
33
- };
34
- ChangeServerLifeCycleStateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ChangeServerLifeCycleStateCommand(output, context);
36
- };
37
- return ChangeServerLifeCycleStateCommand;
38
- }($Command));
39
- export { ChangeServerLifeCycleStateCommand };
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 { CreateLaunchConfigurationTemplateRequestFilterSensitiveLog, LaunchConfigurationTemplateFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand, serializeAws_restJson1CreateLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateLaunchConfigurationTemplateCommand = (function (_super) {
7
- __extends(CreateLaunchConfigurationTemplateCommand, _super);
8
- function CreateLaunchConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLaunchConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLaunchConfigurationTemplateCommand.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 = "CreateLaunchConfigurationTemplateCommand";
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 = "CreateLaunchConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLaunchConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: LaunchConfigurationTemplateFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLaunchConfigurationTemplateCommand.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_restJson1CreateLaunchConfigurationTemplateCommand(input, context);
33
- };
34
- CreateLaunchConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand(output, context);
36
- };
37
- return CreateLaunchConfigurationTemplateCommand;
38
- }($Command));
39
- export { CreateLaunchConfigurationTemplateCommand };
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 { CreateReplicationConfigurationTemplateRequestFilterSensitiveLog, ReplicationConfigurationTemplateFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand, serializeAws_restJson1CreateReplicationConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateReplicationConfigurationTemplateCommand = (function (_super) {
7
- __extends(CreateReplicationConfigurationTemplateCommand, _super);
8
- function CreateReplicationConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateReplicationConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateReplicationConfigurationTemplateCommand.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 = "CreateReplicationConfigurationTemplateCommand";
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 = "CreateReplicationConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateReplicationConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ReplicationConfigurationTemplateFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateReplicationConfigurationTemplateCommand.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_restJson1CreateReplicationConfigurationTemplateCommand(input, context);
33
- };
34
- CreateReplicationConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand(output, context);
36
- };
37
- return CreateReplicationConfigurationTemplateCommand;
38
- }($Command));
39
- export { CreateReplicationConfigurationTemplateCommand };
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 { DeleteJobRequestFilterSensitiveLog, DeleteJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteJobCommand, serializeAws_restJson1DeleteJobCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteJobCommand = (function (_super) {
7
- __extends(DeleteJobCommand, _super);
8
- function DeleteJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteJobCommand.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 = "DeleteJobCommand";
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 = "DeleteJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteJobCommand.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_restJson1DeleteJobCommand(input, context);
33
- };
34
- DeleteJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteJobCommand(output, context);
36
- };
37
- return DeleteJobCommand;
38
- }($Command));
39
- export { DeleteJobCommand };
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 { DeleteLaunchConfigurationTemplateRequestFilterSensitiveLog, DeleteLaunchConfigurationTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand, serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteLaunchConfigurationTemplateCommand = (function (_super) {
7
- __extends(DeleteLaunchConfigurationTemplateCommand, _super);
8
- function DeleteLaunchConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteLaunchConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteLaunchConfigurationTemplateCommand.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 = "DeleteLaunchConfigurationTemplateCommand";
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 = "DeleteLaunchConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteLaunchConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteLaunchConfigurationTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteLaunchConfigurationTemplateCommand.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_restJson1DeleteLaunchConfigurationTemplateCommand(input, context);
33
- };
34
- DeleteLaunchConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand(output, context);
36
- };
37
- return DeleteLaunchConfigurationTemplateCommand;
38
- }($Command));
39
- export { DeleteLaunchConfigurationTemplateCommand };
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 { DeleteReplicationConfigurationTemplateRequestFilterSensitiveLog, DeleteReplicationConfigurationTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand, serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteReplicationConfigurationTemplateCommand = (function (_super) {
7
- __extends(DeleteReplicationConfigurationTemplateCommand, _super);
8
- function DeleteReplicationConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteReplicationConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteReplicationConfigurationTemplateCommand.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 = "DeleteReplicationConfigurationTemplateCommand";
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 = "DeleteReplicationConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteReplicationConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteReplicationConfigurationTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteReplicationConfigurationTemplateCommand.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_restJson1DeleteReplicationConfigurationTemplateCommand(input, context);
33
- };
34
- DeleteReplicationConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand(output, context);
36
- };
37
- return DeleteReplicationConfigurationTemplateCommand;
38
- }($Command));
39
- export { DeleteReplicationConfigurationTemplateCommand };
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 { DeleteSourceServerRequestFilterSensitiveLog, DeleteSourceServerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSourceServerCommand, serializeAws_restJson1DeleteSourceServerCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSourceServerCommand = (function (_super) {
7
- __extends(DeleteSourceServerCommand, _super);
8
- function DeleteSourceServerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSourceServerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSourceServerCommand.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 = "DeleteSourceServerCommand";
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 = "DeleteSourceServerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSourceServerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSourceServerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSourceServerCommand.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_restJson1DeleteSourceServerCommand(input, context);
33
- };
34
- DeleteSourceServerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSourceServerCommand(output, context);
36
- };
37
- return DeleteSourceServerCommand;
38
- }($Command));
39
- export { DeleteSourceServerCommand };
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 { DeleteVcenterClientRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteVcenterClientCommand, serializeAws_restJson1DeleteVcenterClientCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteVcenterClientCommand = (function (_super) {
7
- __extends(DeleteVcenterClientCommand, _super);
8
- function DeleteVcenterClientCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteVcenterClientCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteVcenterClientCommand.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 = "DeleteVcenterClientCommand";
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 = "DeleteVcenterClientCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteVcenterClientRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteVcenterClientCommand.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_restJson1DeleteVcenterClientCommand(input, context);
33
- };
34
- DeleteVcenterClientCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteVcenterClientCommand(output, context);
36
- };
37
- return DeleteVcenterClientCommand;
38
- }($Command));
39
- export { DeleteVcenterClientCommand };
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 { DescribeJobLogItemsRequestFilterSensitiveLog, DescribeJobLogItemsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobLogItemsCommand, serializeAws_restJson1DescribeJobLogItemsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobLogItemsCommand = (function (_super) {
7
- __extends(DescribeJobLogItemsCommand, _super);
8
- function DescribeJobLogItemsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobLogItemsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobLogItemsCommand.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 = "DescribeJobLogItemsCommand";
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 = "DescribeJobLogItemsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobLogItemsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobLogItemsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobLogItemsCommand.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_restJson1DescribeJobLogItemsCommand(input, context);
33
- };
34
- DescribeJobLogItemsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobLogItemsCommand(output, context);
36
- };
37
- return DescribeJobLogItemsCommand;
38
- }($Command));
39
- export { DescribeJobLogItemsCommand };
31
+ }
32
+ }