@aws-sdk/client-mgn 3.42.0 → 3.47.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 (56) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/Mgn.js +60 -0
  3. package/dist-cjs/commands/DeleteVcenterClientCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeVcenterClientsCommand.js +36 -0
  5. package/dist-cjs/commands/StartReplicationCommand.js +36 -0
  6. package/dist-cjs/commands/UpdateSourceServerReplicationTypeCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/endpoints.js +1 -0
  9. package/dist-cjs/models/models_0.js +51 -44
  10. package/dist-cjs/pagination/DescribeVcenterClientsPaginator.js +35 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +574 -1
  13. package/dist-cjs/runtimeConfig.browser.js +7 -2
  14. package/dist-cjs/runtimeConfig.js +9 -3
  15. package/dist-es/Mgn.js +60 -0
  16. package/dist-es/commands/DeleteVcenterClientCommand.js +39 -0
  17. package/dist-es/commands/DescribeVcenterClientsCommand.js +39 -0
  18. package/dist-es/commands/StartReplicationCommand.js +39 -0
  19. package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +39 -0
  20. package/dist-es/commands/index.js +4 -0
  21. package/dist-es/endpoints.js +1 -0
  22. package/dist-es/models/models_0.js +34 -28
  23. package/dist-es/pagination/DescribeVcenterClientsPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +643 -6
  26. package/dist-es/runtimeConfig.browser.js +12 -3
  27. package/dist-es/runtimeConfig.js +13 -6
  28. package/dist-types/Mgn.d.ts +28 -0
  29. package/dist-types/MgnClient.d.ts +11 -3
  30. package/dist-types/commands/DeleteVcenterClientCommand.d.ts +35 -0
  31. package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +35 -0
  32. package/dist-types/commands/StartReplicationCommand.d.ts +35 -0
  33. package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +35 -0
  34. package/dist-types/commands/index.d.ts +4 -0
  35. package/dist-types/models/models_0.d.ts +178 -43
  36. package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
  37. package/dist-types/pagination/index.d.ts +1 -0
  38. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  39. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  40. package/dist-types/runtimeConfig.d.ts +4 -3
  41. package/dist-types/runtimeConfig.native.d.ts +1 -0
  42. package/dist-types/ts3.4/Mgn.d.ts +20 -0
  43. package/dist-types/ts3.4/MgnClient.d.ts +9 -3
  44. package/dist-types/ts3.4/commands/DeleteVcenterClientCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/DescribeVcenterClientsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/StartReplicationCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/UpdateSourceServerReplicationTypeCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +110 -29
  50. package/dist-types/ts3.4/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  56. package/package.json +38 -45
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
package/dist-es/Mgn.js CHANGED
@@ -4,10 +4,12 @@ import { CreateReplicationConfigurationTemplateCommand, } from "./commands/Creat
4
4
  import { DeleteJobCommand } from "./commands/DeleteJobCommand";
5
5
  import { DeleteReplicationConfigurationTemplateCommand, } from "./commands/DeleteReplicationConfigurationTemplateCommand";
6
6
  import { DeleteSourceServerCommand, } from "./commands/DeleteSourceServerCommand";
7
+ import { DeleteVcenterClientCommand, } from "./commands/DeleteVcenterClientCommand";
7
8
  import { DescribeJobLogItemsCommand, } from "./commands/DescribeJobLogItemsCommand";
8
9
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
9
10
  import { DescribeReplicationConfigurationTemplatesCommand, } from "./commands/DescribeReplicationConfigurationTemplatesCommand";
10
11
  import { DescribeSourceServersCommand, } from "./commands/DescribeSourceServersCommand";
12
+ import { DescribeVcenterClientsCommand, } from "./commands/DescribeVcenterClientsCommand";
11
13
  import { DisconnectFromServiceCommand, } from "./commands/DisconnectFromServiceCommand";
12
14
  import { FinalizeCutoverCommand, } from "./commands/FinalizeCutoverCommand";
13
15
  import { GetLaunchConfigurationCommand, } from "./commands/GetLaunchConfigurationCommand";
@@ -17,6 +19,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
17
19
  import { MarkAsArchivedCommand, } from "./commands/MarkAsArchivedCommand";
18
20
  import { RetryDataReplicationCommand, } from "./commands/RetryDataReplicationCommand";
19
21
  import { StartCutoverCommand, } from "./commands/StartCutoverCommand";
22
+ import { StartReplicationCommand, } from "./commands/StartReplicationCommand";
20
23
  import { StartTestCommand } from "./commands/StartTestCommand";
21
24
  import { TagResourceCommand } from "./commands/TagResourceCommand";
22
25
  import { TerminateTargetInstancesCommand, } from "./commands/TerminateTargetInstancesCommand";
@@ -24,6 +27,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
24
27
  import { UpdateLaunchConfigurationCommand, } from "./commands/UpdateLaunchConfigurationCommand";
25
28
  import { UpdateReplicationConfigurationCommand, } from "./commands/UpdateReplicationConfigurationCommand";
26
29
  import { UpdateReplicationConfigurationTemplateCommand, } from "./commands/UpdateReplicationConfigurationTemplateCommand";
30
+ import { UpdateSourceServerReplicationTypeCommand, } from "./commands/UpdateSourceServerReplicationTypeCommand";
27
31
  import { MgnClient } from "./MgnClient";
28
32
  var Mgn = (function (_super) {
29
33
  __extends(Mgn, _super);
@@ -100,6 +104,20 @@ var Mgn = (function (_super) {
100
104
  return this.send(command, optionsOrCb);
101
105
  }
102
106
  };
107
+ Mgn.prototype.deleteVcenterClient = function (args, optionsOrCb, cb) {
108
+ var command = new DeleteVcenterClientCommand(args);
109
+ if (typeof optionsOrCb === "function") {
110
+ this.send(command, optionsOrCb);
111
+ }
112
+ else if (typeof cb === "function") {
113
+ if (typeof optionsOrCb !== "object")
114
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
115
+ this.send(command, optionsOrCb || {}, cb);
116
+ }
117
+ else {
118
+ return this.send(command, optionsOrCb);
119
+ }
120
+ };
103
121
  Mgn.prototype.describeJobLogItems = function (args, optionsOrCb, cb) {
104
122
  var command = new DescribeJobLogItemsCommand(args);
105
123
  if (typeof optionsOrCb === "function") {
@@ -156,6 +174,20 @@ var Mgn = (function (_super) {
156
174
  return this.send(command, optionsOrCb);
157
175
  }
158
176
  };
177
+ Mgn.prototype.describeVcenterClients = function (args, optionsOrCb, cb) {
178
+ var command = new DescribeVcenterClientsCommand(args);
179
+ if (typeof optionsOrCb === "function") {
180
+ this.send(command, optionsOrCb);
181
+ }
182
+ else if (typeof cb === "function") {
183
+ if (typeof optionsOrCb !== "object")
184
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
185
+ this.send(command, optionsOrCb || {}, cb);
186
+ }
187
+ else {
188
+ return this.send(command, optionsOrCb);
189
+ }
190
+ };
159
191
  Mgn.prototype.disconnectFromService = function (args, optionsOrCb, cb) {
160
192
  var command = new DisconnectFromServiceCommand(args);
161
193
  if (typeof optionsOrCb === "function") {
@@ -282,6 +314,20 @@ var Mgn = (function (_super) {
282
314
  return this.send(command, optionsOrCb);
283
315
  }
284
316
  };
317
+ Mgn.prototype.startReplication = function (args, optionsOrCb, cb) {
318
+ var command = new StartReplicationCommand(args);
319
+ if (typeof optionsOrCb === "function") {
320
+ this.send(command, optionsOrCb);
321
+ }
322
+ else if (typeof cb === "function") {
323
+ if (typeof optionsOrCb !== "object")
324
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
325
+ this.send(command, optionsOrCb || {}, cb);
326
+ }
327
+ else {
328
+ return this.send(command, optionsOrCb);
329
+ }
330
+ };
285
331
  Mgn.prototype.startTest = function (args, optionsOrCb, cb) {
286
332
  var command = new StartTestCommand(args);
287
333
  if (typeof optionsOrCb === "function") {
@@ -380,6 +426,20 @@ var Mgn = (function (_super) {
380
426
  return this.send(command, optionsOrCb);
381
427
  }
382
428
  };
429
+ Mgn.prototype.updateSourceServerReplicationType = function (args, optionsOrCb, cb) {
430
+ var command = new UpdateSourceServerReplicationTypeCommand(args);
431
+ if (typeof optionsOrCb === "function") {
432
+ this.send(command, optionsOrCb);
433
+ }
434
+ else if (typeof cb === "function") {
435
+ if (typeof optionsOrCb !== "object")
436
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
437
+ this.send(command, optionsOrCb || {}, cb);
438
+ }
439
+ else {
440
+ return this.send(command, optionsOrCb);
441
+ }
442
+ };
383
443
  return Mgn;
384
444
  }(MgnClient));
385
445
  export { Mgn };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteVcenterClientRequest } from "../models/models_0";
5
+ 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;
12
+ }
13
+ DeleteVcenterClientCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: DeleteVcenterClientRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
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) {
32
+ return serializeAws_restJson1DeleteVcenterClientCommand(input, context);
33
+ };
34
+ DeleteVcenterClientCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteVcenterClientCommand(output, context);
36
+ };
37
+ return DeleteVcenterClientCommand;
38
+ }($Command));
39
+ export { DeleteVcenterClientCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeVcenterClientsRequest, DescribeVcenterClientsResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ DescribeVcenterClientsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: DescribeVcenterClientsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeVcenterClientsResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_restJson1DescribeVcenterClientsCommand(input, context);
33
+ };
34
+ DescribeVcenterClientsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeVcenterClientsCommand(output, context);
36
+ };
37
+ return DescribeVcenterClientsCommand;
38
+ }($Command));
39
+ export { DescribeVcenterClientsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SourceServer, StartReplicationRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartReplicationCommand, serializeAws_restJson1StartReplicationCommand, } from "../protocols/Aws_restJson1";
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;
12
+ }
13
+ StartReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "StartReplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: StartReplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SourceServer.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_restJson1StartReplicationCommand(input, context);
33
+ };
34
+ StartReplicationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1StartReplicationCommand(output, context);
36
+ };
37
+ return StartReplicationCommand;
38
+ }($Command));
39
+ export { StartReplicationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SourceServer, UpdateSourceServerReplicationTypeRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand, serializeAws_restJson1UpdateSourceServerReplicationTypeCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateSourceServerReplicationTypeCommand = (function (_super) {
7
+ __extends(UpdateSourceServerReplicationTypeCommand, _super);
8
+ function UpdateSourceServerReplicationTypeCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateSourceServerReplicationTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "UpdateSourceServerReplicationTypeCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateSourceServerReplicationTypeRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SourceServer.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateSourceServerReplicationTypeCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateSourceServerReplicationTypeCommand(input, context);
33
+ };
34
+ UpdateSourceServerReplicationTypeCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand(output, context);
36
+ };
37
+ return UpdateSourceServerReplicationTypeCommand;
38
+ }($Command));
39
+ export { UpdateSourceServerReplicationTypeCommand };
@@ -3,10 +3,12 @@ export * from "./CreateReplicationConfigurationTemplateCommand";
3
3
  export * from "./DeleteJobCommand";
4
4
  export * from "./DeleteReplicationConfigurationTemplateCommand";
5
5
  export * from "./DeleteSourceServerCommand";
6
+ export * from "./DeleteVcenterClientCommand";
6
7
  export * from "./DescribeJobLogItemsCommand";
7
8
  export * from "./DescribeJobsCommand";
8
9
  export * from "./DescribeReplicationConfigurationTemplatesCommand";
9
10
  export * from "./DescribeSourceServersCommand";
11
+ export * from "./DescribeVcenterClientsCommand";
10
12
  export * from "./DisconnectFromServiceCommand";
11
13
  export * from "./FinalizeCutoverCommand";
12
14
  export * from "./GetLaunchConfigurationCommand";
@@ -16,6 +18,7 @@ export * from "./ListTagsForResourceCommand";
16
18
  export * from "./MarkAsArchivedCommand";
17
19
  export * from "./RetryDataReplicationCommand";
18
20
  export * from "./StartCutoverCommand";
21
+ export * from "./StartReplicationCommand";
19
22
  export * from "./StartTestCommand";
20
23
  export * from "./TagResourceCommand";
21
24
  export * from "./TerminateTargetInstancesCommand";
@@ -23,3 +26,4 @@ export * from "./UntagResourceCommand";
23
26
  export * from "./UpdateLaunchConfigurationCommand";
24
27
  export * from "./UpdateReplicationConfigurationCommand";
25
28
  export * from "./UpdateReplicationConfigurationTemplateCommand";
29
+ export * from "./UpdateSourceServerReplicationTypeCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -1,9 +1,5 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
- export var AccessDeniedException;
4
- (function (AccessDeniedException) {
5
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AccessDeniedException || (AccessDeniedException = {}));
7
3
  export var InitializeServiceRequest;
8
4
  (function (InitializeServiceRequest) {
9
5
  InitializeServiceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -23,14 +19,6 @@ export var ValidationExceptionReason;
23
19
  ValidationExceptionReason["OTHER"] = "other";
24
20
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
25
21
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
26
- export var ValidationException;
27
- (function (ValidationException) {
28
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(ValidationException || (ValidationException = {}));
30
- export var ConflictException;
31
- (function (ConflictException) {
32
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
- })(ConflictException || (ConflictException = {}));
34
22
  export var DeleteJobRequest;
35
23
  (function (DeleteJobRequest) {
36
24
  DeleteJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -39,14 +27,6 @@ export var DeleteJobResponse;
39
27
  (function (DeleteJobResponse) {
40
28
  DeleteJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
29
  })(DeleteJobResponse || (DeleteJobResponse = {}));
42
- export var ResourceNotFoundException;
43
- (function (ResourceNotFoundException) {
44
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
46
- export var UninitializedAccountException;
47
- (function (UninitializedAccountException) {
48
- UninitializedAccountException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
- })(UninitializedAccountException || (UninitializedAccountException = {}));
50
30
  export var DescribeJobLogItemsRequest;
51
31
  (function (DescribeJobLogItemsRequest) {
52
32
  DescribeJobLogItemsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -128,10 +108,6 @@ export var DescribeJobsResponse;
128
108
  (function (DescribeJobsResponse) {
129
109
  DescribeJobsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return Job.filterSensitiveLog(item); }) }))); };
130
110
  })(DescribeJobsResponse || (DescribeJobsResponse = {}));
131
- export var InternalServerException;
132
- (function (InternalServerException) {
133
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- })(InternalServerException || (InternalServerException = {}));
135
111
  export var ListTagsForResourceRequest;
136
112
  (function (ListTagsForResourceRequest) {
137
113
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -140,10 +116,6 @@ export var ListTagsForResourceResponse;
140
116
  (function (ListTagsForResourceResponse) {
141
117
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
142
118
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
143
- export var ThrottlingException;
144
- (function (ThrottlingException) {
145
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
- })(ThrottlingException || (ThrottlingException = {}));
147
119
  export var ReplicationConfigurationDataPlaneRouting;
148
120
  (function (ReplicationConfigurationDataPlaneRouting) {
149
121
  ReplicationConfigurationDataPlaneRouting["PRIVATE_IP"] = "PRIVATE_IP";
@@ -214,9 +186,11 @@ export var DataReplicationErrorString;
214
186
  DataReplicationErrorString["FAILED_TO_LAUNCH_REPLICATION_SERVER"] = "FAILED_TO_LAUNCH_REPLICATION_SERVER";
215
187
  DataReplicationErrorString["FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"] = "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT";
216
188
  DataReplicationErrorString["FAILED_TO_START_DATA_TRANSFER"] = "FAILED_TO_START_DATA_TRANSFER";
189
+ DataReplicationErrorString["LAST_SNAPSHOT_JOB_FAILED"] = "LAST_SNAPSHOT_JOB_FAILED";
217
190
  DataReplicationErrorString["NOT_CONVERGING"] = "NOT_CONVERGING";
218
191
  DataReplicationErrorString["SNAPSHOTS_FAILURE"] = "SNAPSHOTS_FAILURE";
219
192
  DataReplicationErrorString["UNSTABLE_NETWORK"] = "UNSTABLE_NETWORK";
193
+ DataReplicationErrorString["UNSUPPORTED_VM_CONFIGURATION"] = "UNSUPPORTED_VM_CONFIGURATION";
220
194
  })(DataReplicationErrorString || (DataReplicationErrorString = {}));
221
195
  export var DataReplicationError;
222
196
  (function (DataReplicationError) {
@@ -261,7 +235,9 @@ export var DataReplicationState;
261
235
  DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
262
236
  DataReplicationState["INITIATING"] = "INITIATING";
263
237
  DataReplicationState["PAUSED"] = "PAUSED";
238
+ DataReplicationState["PENDING_SNAPSHOT_SHIPPING"] = "PENDING_SNAPSHOT_SHIPPING";
264
239
  DataReplicationState["RESCAN"] = "RESCAN";
240
+ DataReplicationState["SHIPPING_SNAPSHOT"] = "SHIPPING_SNAPSHOT";
265
241
  DataReplicationState["STALLED"] = "STALLED";
266
242
  DataReplicationState["STOPPED"] = "STOPPED";
267
243
  })(DataReplicationState || (DataReplicationState = {}));
@@ -321,6 +297,7 @@ export var LifeCycleState;
321
297
  LifeCycleState["CUTOVER"] = "CUTOVER";
322
298
  LifeCycleState["CUTTING_OVER"] = "CUTTING_OVER";
323
299
  LifeCycleState["DISCONNECTED"] = "DISCONNECTED";
300
+ LifeCycleState["DISCOVERED"] = "DISCOVERED";
324
301
  LifeCycleState["NOT_READY"] = "NOT_READY";
325
302
  LifeCycleState["READY_FOR_CUTOVER"] = "READY_FOR_CUTOVER";
326
303
  LifeCycleState["READY_FOR_TEST"] = "READY_FOR_TEST";
@@ -331,6 +308,11 @@ export var LifeCycle;
331
308
  (function (LifeCycle) {
332
309
  LifeCycle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
333
310
  })(LifeCycle || (LifeCycle = {}));
311
+ export var ReplicationType;
312
+ (function (ReplicationType) {
313
+ ReplicationType["AGENT_BASED"] = "AGENT_BASED";
314
+ ReplicationType["SNAPSHOT_SHIPPING"] = "SNAPSHOT_SHIPPING";
315
+ })(ReplicationType || (ReplicationType = {}));
334
316
  export var CPU;
335
317
  (function (CPU) {
336
318
  CPU.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -446,6 +428,10 @@ export var StartCutoverResponse;
446
428
  (function (StartCutoverResponse) {
447
429
  StartCutoverResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.job && { job: Job.filterSensitiveLog(obj.job) }))); };
448
430
  })(StartCutoverResponse || (StartCutoverResponse = {}));
431
+ export var StartReplicationRequest;
432
+ (function (StartReplicationRequest) {
433
+ StartReplicationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
434
+ })(StartReplicationRequest || (StartReplicationRequest = {}));
449
435
  export var StartTestRequest;
450
436
  (function (StartTestRequest) {
451
437
  StartTestRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
@@ -470,6 +456,10 @@ export var UpdateReplicationConfigurationRequest;
470
456
  (function (UpdateReplicationConfigurationRequest) {
471
457
  UpdateReplicationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING }))); };
472
458
  })(UpdateReplicationConfigurationRequest || (UpdateReplicationConfigurationRequest = {}));
459
+ export var UpdateSourceServerReplicationTypeRequest;
460
+ (function (UpdateSourceServerReplicationTypeRequest) {
461
+ UpdateSourceServerReplicationTypeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
462
+ })(UpdateSourceServerReplicationTypeRequest || (UpdateSourceServerReplicationTypeRequest = {}));
473
463
  export var TagResourceRequest;
474
464
  (function (TagResourceRequest) {
475
465
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
@@ -478,3 +468,19 @@ export var UntagResourceRequest;
478
468
  (function (UntagResourceRequest) {
479
469
  UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tagKeys && { tagKeys: SENSITIVE_STRING }))); };
480
470
  })(UntagResourceRequest || (UntagResourceRequest = {}));
471
+ export var DeleteVcenterClientRequest;
472
+ (function (DeleteVcenterClientRequest) {
473
+ DeleteVcenterClientRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
474
+ })(DeleteVcenterClientRequest || (DeleteVcenterClientRequest = {}));
475
+ export var DescribeVcenterClientsRequest;
476
+ (function (DescribeVcenterClientsRequest) {
477
+ DescribeVcenterClientsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
478
+ })(DescribeVcenterClientsRequest || (DescribeVcenterClientsRequest = {}));
479
+ export var VcenterClient;
480
+ (function (VcenterClient) {
481
+ VcenterClient.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.sourceServerTags && { sourceServerTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
482
+ })(VcenterClient || (VcenterClient = {}));
483
+ export var DescribeVcenterClientsResponse;
484
+ (function (DescribeVcenterClientsResponse) {
485
+ DescribeVcenterClientsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return VcenterClient.filterSensitiveLog(item); }) }))); };
486
+ })(DescribeVcenterClientsResponse || (DescribeVcenterClientsResponse = {}));
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeVcenterClientsCommand, } from "../commands/DescribeVcenterClientsCommand";
3
+ import { Mgn } from "../Mgn";
4
+ import { MgnClient } from "../MgnClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeVcenterClientsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeVcenterClients.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeVcenterClients(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateDescribeVcenterClients_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Mgn)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof MgnClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Mgn | MgnClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.nextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -2,4 +2,5 @@ export * from "./DescribeJobLogItemsPaginator";
2
2
  export * from "./DescribeJobsPaginator";
3
3
  export * from "./DescribeReplicationConfigurationTemplatesPaginator";
4
4
  export * from "./DescribeSourceServersPaginator";
5
+ export * from "./DescribeVcenterClientsPaginator";
5
6
  export * from "./Interfaces";