@aws-sdk/client-mgn 3.39.0 → 3.43.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.
- package/CHANGELOG.md +41 -0
- package/dist-cjs/Mgn.js +60 -0
- package/dist-cjs/commands/DeleteVcenterClientCommand.js +36 -0
- package/dist-cjs/commands/DescribeVcenterClientsCommand.js +36 -0
- package/dist-cjs/commands/StartReplicationCommand.js +36 -0
- package/dist-cjs/commands/UpdateSourceServerReplicationTypeCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +57 -1
- package/dist-cjs/pagination/DescribeVcenterClientsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +574 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Mgn.js +60 -0
- package/dist-es/commands/DeleteVcenterClientCommand.js +39 -0
- package/dist-es/commands/DescribeVcenterClientsCommand.js +39 -0
- package/dist-es/commands/StartReplicationCommand.js +39 -0
- package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/DescribeVcenterClientsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +643 -6
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +14 -2
- package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +1 -1
- package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSourceServerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteVcenterClientCommand.d.ts +35 -0
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +35 -0
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -1
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -1
- package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/InitializeServiceCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -1
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -1
- package/dist-types/commands/StartCutoverCommand.d.ts +1 -1
- package/dist-types/commands/StartReplicationCommand.d.ts +35 -0
- package/dist-types/commands/StartTestCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +184 -1
- package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Mgn.d.ts +20 -0
- package/dist-types/ts3.4/MgnClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/DeleteVcenterClientCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVcenterClientsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartReplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSourceServerReplicationTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -1
- package/dist-types/ts3.4/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
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)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
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)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ 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
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
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),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
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),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
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";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -27,27 +27,96 @@ var partitionHash = {
|
|
|
27
27
|
"us-west-2",
|
|
28
28
|
],
|
|
29
29
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
30
|
-
|
|
30
|
+
variants: [
|
|
31
|
+
{
|
|
32
|
+
hostname: "mgn.{region}.amazonaws.com",
|
|
33
|
+
tags: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
hostname: "mgn-fips.{region}.amazonaws.com",
|
|
37
|
+
tags: ["fips"],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
hostname: "mgn-fips.{region}.api.aws",
|
|
41
|
+
tags: ["dualstack", "fips"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
hostname: "mgn.{region}.api.aws",
|
|
45
|
+
tags: ["dualstack"],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
31
48
|
},
|
|
32
49
|
"aws-cn": {
|
|
33
50
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
34
51
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
35
|
-
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "mgn.{region}.amazonaws.com.cn",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "mgn-fips.{region}.amazonaws.com.cn",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
hostname: "mgn-fips.{region}.api.amazonwebservices.com.cn",
|
|
63
|
+
tags: ["dualstack", "fips"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
hostname: "mgn.{region}.api.amazonwebservices.com.cn",
|
|
67
|
+
tags: ["dualstack"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
36
70
|
},
|
|
37
71
|
"aws-iso": {
|
|
38
72
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
73
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
40
|
-
|
|
74
|
+
variants: [
|
|
75
|
+
{
|
|
76
|
+
hostname: "mgn.{region}.c2s.ic.gov",
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hostname: "mgn-fips.{region}.c2s.ic.gov",
|
|
81
|
+
tags: ["fips"],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
41
84
|
},
|
|
42
85
|
"aws-iso-b": {
|
|
43
86
|
regions: ["us-isob-east-1"],
|
|
44
87
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
45
|
-
|
|
88
|
+
variants: [
|
|
89
|
+
{
|
|
90
|
+
hostname: "mgn.{region}.sc2s.sgov.gov",
|
|
91
|
+
tags: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "mgn-fips.{region}.sc2s.sgov.gov",
|
|
95
|
+
tags: ["fips"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
46
98
|
},
|
|
47
99
|
"aws-us-gov": {
|
|
48
100
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
49
101
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
50
|
-
|
|
102
|
+
variants: [
|
|
103
|
+
{
|
|
104
|
+
hostname: "mgn.{region}.amazonaws.com",
|
|
105
|
+
tags: [],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
hostname: "mgn-fips.{region}.amazonaws.com",
|
|
109
|
+
tags: ["fips"],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "mgn-fips.{region}.api.aws",
|
|
113
|
+
tags: ["dualstack", "fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "mgn.{region}.api.aws",
|
|
117
|
+
tags: ["dualstack"],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
51
120
|
},
|
|
52
121
|
};
|
|
53
122
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -214,9 +214,11 @@ export var DataReplicationErrorString;
|
|
|
214
214
|
DataReplicationErrorString["FAILED_TO_LAUNCH_REPLICATION_SERVER"] = "FAILED_TO_LAUNCH_REPLICATION_SERVER";
|
|
215
215
|
DataReplicationErrorString["FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"] = "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT";
|
|
216
216
|
DataReplicationErrorString["FAILED_TO_START_DATA_TRANSFER"] = "FAILED_TO_START_DATA_TRANSFER";
|
|
217
|
+
DataReplicationErrorString["LAST_SNAPSHOT_JOB_FAILED"] = "LAST_SNAPSHOT_JOB_FAILED";
|
|
217
218
|
DataReplicationErrorString["NOT_CONVERGING"] = "NOT_CONVERGING";
|
|
218
219
|
DataReplicationErrorString["SNAPSHOTS_FAILURE"] = "SNAPSHOTS_FAILURE";
|
|
219
220
|
DataReplicationErrorString["UNSTABLE_NETWORK"] = "UNSTABLE_NETWORK";
|
|
221
|
+
DataReplicationErrorString["UNSUPPORTED_VM_CONFIGURATION"] = "UNSUPPORTED_VM_CONFIGURATION";
|
|
220
222
|
})(DataReplicationErrorString || (DataReplicationErrorString = {}));
|
|
221
223
|
export var DataReplicationError;
|
|
222
224
|
(function (DataReplicationError) {
|
|
@@ -261,7 +263,9 @@ export var DataReplicationState;
|
|
|
261
263
|
DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
|
|
262
264
|
DataReplicationState["INITIATING"] = "INITIATING";
|
|
263
265
|
DataReplicationState["PAUSED"] = "PAUSED";
|
|
266
|
+
DataReplicationState["PENDING_SNAPSHOT_SHIPPING"] = "PENDING_SNAPSHOT_SHIPPING";
|
|
264
267
|
DataReplicationState["RESCAN"] = "RESCAN";
|
|
268
|
+
DataReplicationState["SHIPPING_SNAPSHOT"] = "SHIPPING_SNAPSHOT";
|
|
265
269
|
DataReplicationState["STALLED"] = "STALLED";
|
|
266
270
|
DataReplicationState["STOPPED"] = "STOPPED";
|
|
267
271
|
})(DataReplicationState || (DataReplicationState = {}));
|
|
@@ -321,6 +325,7 @@ export var LifeCycleState;
|
|
|
321
325
|
LifeCycleState["CUTOVER"] = "CUTOVER";
|
|
322
326
|
LifeCycleState["CUTTING_OVER"] = "CUTTING_OVER";
|
|
323
327
|
LifeCycleState["DISCONNECTED"] = "DISCONNECTED";
|
|
328
|
+
LifeCycleState["DISCOVERED"] = "DISCOVERED";
|
|
324
329
|
LifeCycleState["NOT_READY"] = "NOT_READY";
|
|
325
330
|
LifeCycleState["READY_FOR_CUTOVER"] = "READY_FOR_CUTOVER";
|
|
326
331
|
LifeCycleState["READY_FOR_TEST"] = "READY_FOR_TEST";
|
|
@@ -331,6 +336,11 @@ export var LifeCycle;
|
|
|
331
336
|
(function (LifeCycle) {
|
|
332
337
|
LifeCycle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
333
338
|
})(LifeCycle || (LifeCycle = {}));
|
|
339
|
+
export var ReplicationType;
|
|
340
|
+
(function (ReplicationType) {
|
|
341
|
+
ReplicationType["AGENT_BASED"] = "AGENT_BASED";
|
|
342
|
+
ReplicationType["SNAPSHOT_SHIPPING"] = "SNAPSHOT_SHIPPING";
|
|
343
|
+
})(ReplicationType || (ReplicationType = {}));
|
|
334
344
|
export var CPU;
|
|
335
345
|
(function (CPU) {
|
|
336
346
|
CPU.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -446,6 +456,14 @@ export var StartCutoverResponse;
|
|
|
446
456
|
(function (StartCutoverResponse) {
|
|
447
457
|
StartCutoverResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.job && { job: Job.filterSensitiveLog(obj.job) }))); };
|
|
448
458
|
})(StartCutoverResponse || (StartCutoverResponse = {}));
|
|
459
|
+
export var ServiceQuotaExceededException;
|
|
460
|
+
(function (ServiceQuotaExceededException) {
|
|
461
|
+
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
462
|
+
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
463
|
+
export var StartReplicationRequest;
|
|
464
|
+
(function (StartReplicationRequest) {
|
|
465
|
+
StartReplicationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
466
|
+
})(StartReplicationRequest || (StartReplicationRequest = {}));
|
|
449
467
|
export var StartTestRequest;
|
|
450
468
|
(function (StartTestRequest) {
|
|
451
469
|
StartTestRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
@@ -470,6 +488,10 @@ export var UpdateReplicationConfigurationRequest;
|
|
|
470
488
|
(function (UpdateReplicationConfigurationRequest) {
|
|
471
489
|
UpdateReplicationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING }))); };
|
|
472
490
|
})(UpdateReplicationConfigurationRequest || (UpdateReplicationConfigurationRequest = {}));
|
|
491
|
+
export var UpdateSourceServerReplicationTypeRequest;
|
|
492
|
+
(function (UpdateSourceServerReplicationTypeRequest) {
|
|
493
|
+
UpdateSourceServerReplicationTypeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
494
|
+
})(UpdateSourceServerReplicationTypeRequest || (UpdateSourceServerReplicationTypeRequest = {}));
|
|
473
495
|
export var TagResourceRequest;
|
|
474
496
|
(function (TagResourceRequest) {
|
|
475
497
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
@@ -478,3 +500,19 @@ export var UntagResourceRequest;
|
|
|
478
500
|
(function (UntagResourceRequest) {
|
|
479
501
|
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tagKeys && { tagKeys: SENSITIVE_STRING }))); };
|
|
480
502
|
})(UntagResourceRequest || (UntagResourceRequest = {}));
|
|
503
|
+
export var DeleteVcenterClientRequest;
|
|
504
|
+
(function (DeleteVcenterClientRequest) {
|
|
505
|
+
DeleteVcenterClientRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
506
|
+
})(DeleteVcenterClientRequest || (DeleteVcenterClientRequest = {}));
|
|
507
|
+
export var DescribeVcenterClientsRequest;
|
|
508
|
+
(function (DescribeVcenterClientsRequest) {
|
|
509
|
+
DescribeVcenterClientsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
510
|
+
})(DescribeVcenterClientsRequest || (DescribeVcenterClientsRequest = {}));
|
|
511
|
+
export var VcenterClient;
|
|
512
|
+
(function (VcenterClient) {
|
|
513
|
+
VcenterClient.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.sourceServerTags && { sourceServerTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
514
|
+
})(VcenterClient || (VcenterClient = {}));
|
|
515
|
+
export var DescribeVcenterClientsResponse;
|
|
516
|
+
(function (DescribeVcenterClientsResponse) {
|
|
517
|
+
DescribeVcenterClientsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return VcenterClient.filterSensitiveLog(item); }) }))); };
|
|
518
|
+
})(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";
|