@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.
- package/CHANGELOG.md +50 -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 +1 -0
- package/dist-cjs/models/models_0.js +51 -44
- 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 +7 -2
- package/dist-cjs/runtimeConfig.js +9 -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 +1 -0
- package/dist-es/models/models_0.js +34 -28
- 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 +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +11 -3
- package/dist-types/commands/DeleteVcenterClientCommand.d.ts +35 -0
- package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +35 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +35 -0
- 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 +178 -43
- 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 +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Mgn.d.ts +20 -0
- package/dist-types/ts3.4/MgnClient.d.ts +9 -3
- 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 +110 -29
- 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 +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
57
|
|
|
8
58
|
**Note:** Version bump only for package @aws-sdk/client-mgn
|
package/dist-cjs/Mgn.js
CHANGED
|
@@ -6,10 +6,12 @@ const CreateReplicationConfigurationTemplateCommand_1 = require("./commands/Crea
|
|
|
6
6
|
const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
|
|
7
7
|
const DeleteReplicationConfigurationTemplateCommand_1 = require("./commands/DeleteReplicationConfigurationTemplateCommand");
|
|
8
8
|
const DeleteSourceServerCommand_1 = require("./commands/DeleteSourceServerCommand");
|
|
9
|
+
const DeleteVcenterClientCommand_1 = require("./commands/DeleteVcenterClientCommand");
|
|
9
10
|
const DescribeJobLogItemsCommand_1 = require("./commands/DescribeJobLogItemsCommand");
|
|
10
11
|
const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
|
|
11
12
|
const DescribeReplicationConfigurationTemplatesCommand_1 = require("./commands/DescribeReplicationConfigurationTemplatesCommand");
|
|
12
13
|
const DescribeSourceServersCommand_1 = require("./commands/DescribeSourceServersCommand");
|
|
14
|
+
const DescribeVcenterClientsCommand_1 = require("./commands/DescribeVcenterClientsCommand");
|
|
13
15
|
const DisconnectFromServiceCommand_1 = require("./commands/DisconnectFromServiceCommand");
|
|
14
16
|
const FinalizeCutoverCommand_1 = require("./commands/FinalizeCutoverCommand");
|
|
15
17
|
const GetLaunchConfigurationCommand_1 = require("./commands/GetLaunchConfigurationCommand");
|
|
@@ -19,6 +21,7 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
|
|
|
19
21
|
const MarkAsArchivedCommand_1 = require("./commands/MarkAsArchivedCommand");
|
|
20
22
|
const RetryDataReplicationCommand_1 = require("./commands/RetryDataReplicationCommand");
|
|
21
23
|
const StartCutoverCommand_1 = require("./commands/StartCutoverCommand");
|
|
24
|
+
const StartReplicationCommand_1 = require("./commands/StartReplicationCommand");
|
|
22
25
|
const StartTestCommand_1 = require("./commands/StartTestCommand");
|
|
23
26
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
24
27
|
const TerminateTargetInstancesCommand_1 = require("./commands/TerminateTargetInstancesCommand");
|
|
@@ -26,6 +29,7 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
26
29
|
const UpdateLaunchConfigurationCommand_1 = require("./commands/UpdateLaunchConfigurationCommand");
|
|
27
30
|
const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplicationConfigurationCommand");
|
|
28
31
|
const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
|
|
32
|
+
const UpdateSourceServerReplicationTypeCommand_1 = require("./commands/UpdateSourceServerReplicationTypeCommand");
|
|
29
33
|
const MgnClient_1 = require("./MgnClient");
|
|
30
34
|
class Mgn extends MgnClient_1.MgnClient {
|
|
31
35
|
changeServerLifeCycleState(args, optionsOrCb, cb) {
|
|
@@ -98,6 +102,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
98
102
|
return this.send(command, optionsOrCb);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
105
|
+
deleteVcenterClient(args, optionsOrCb, cb) {
|
|
106
|
+
const command = new DeleteVcenterClientCommand_1.DeleteVcenterClientCommand(args);
|
|
107
|
+
if (typeof optionsOrCb === "function") {
|
|
108
|
+
this.send(command, optionsOrCb);
|
|
109
|
+
}
|
|
110
|
+
else if (typeof cb === "function") {
|
|
111
|
+
if (typeof optionsOrCb !== "object")
|
|
112
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return this.send(command, optionsOrCb);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
101
119
|
describeJobLogItems(args, optionsOrCb, cb) {
|
|
102
120
|
const command = new DescribeJobLogItemsCommand_1.DescribeJobLogItemsCommand(args);
|
|
103
121
|
if (typeof optionsOrCb === "function") {
|
|
@@ -154,6 +172,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
154
172
|
return this.send(command, optionsOrCb);
|
|
155
173
|
}
|
|
156
174
|
}
|
|
175
|
+
describeVcenterClients(args, optionsOrCb, cb) {
|
|
176
|
+
const command = new DescribeVcenterClientsCommand_1.DescribeVcenterClientsCommand(args);
|
|
177
|
+
if (typeof optionsOrCb === "function") {
|
|
178
|
+
this.send(command, optionsOrCb);
|
|
179
|
+
}
|
|
180
|
+
else if (typeof cb === "function") {
|
|
181
|
+
if (typeof optionsOrCb !== "object")
|
|
182
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
return this.send(command, optionsOrCb);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
157
189
|
disconnectFromService(args, optionsOrCb, cb) {
|
|
158
190
|
const command = new DisconnectFromServiceCommand_1.DisconnectFromServiceCommand(args);
|
|
159
191
|
if (typeof optionsOrCb === "function") {
|
|
@@ -280,6 +312,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
280
312
|
return this.send(command, optionsOrCb);
|
|
281
313
|
}
|
|
282
314
|
}
|
|
315
|
+
startReplication(args, optionsOrCb, cb) {
|
|
316
|
+
const command = new StartReplicationCommand_1.StartReplicationCommand(args);
|
|
317
|
+
if (typeof optionsOrCb === "function") {
|
|
318
|
+
this.send(command, optionsOrCb);
|
|
319
|
+
}
|
|
320
|
+
else if (typeof cb === "function") {
|
|
321
|
+
if (typeof optionsOrCb !== "object")
|
|
322
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
323
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
return this.send(command, optionsOrCb);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
283
329
|
startTest(args, optionsOrCb, cb) {
|
|
284
330
|
const command = new StartTestCommand_1.StartTestCommand(args);
|
|
285
331
|
if (typeof optionsOrCb === "function") {
|
|
@@ -378,5 +424,19 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
378
424
|
return this.send(command, optionsOrCb);
|
|
379
425
|
}
|
|
380
426
|
}
|
|
427
|
+
updateSourceServerReplicationType(args, optionsOrCb, cb) {
|
|
428
|
+
const command = new UpdateSourceServerReplicationTypeCommand_1.UpdateSourceServerReplicationTypeCommand(args);
|
|
429
|
+
if (typeof optionsOrCb === "function") {
|
|
430
|
+
this.send(command, optionsOrCb);
|
|
431
|
+
}
|
|
432
|
+
else if (typeof cb === "function") {
|
|
433
|
+
if (typeof optionsOrCb !== "object")
|
|
434
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
return this.send(command, optionsOrCb);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
381
441
|
}
|
|
382
442
|
exports.Mgn = Mgn;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVcenterClientCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteVcenterClientCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MgnClient";
|
|
18
|
+
const commandName = "DeleteVcenterClientCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteVcenterClientRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteVcenterClientCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteVcenterClientCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteVcenterClientCommand = DeleteVcenterClientCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeVcenterClientsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DescribeVcenterClientsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MgnClient";
|
|
18
|
+
const commandName = "DescribeVcenterClientsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeVcenterClientsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeVcenterClientsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DescribeVcenterClientsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DescribeVcenterClientsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeVcenterClientsCommand = DescribeVcenterClientsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartReplicationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class StartReplicationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MgnClient";
|
|
18
|
+
const commandName = "StartReplicationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StartReplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.SourceServer.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1StartReplicationCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1StartReplicationCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartReplicationCommand = StartReplicationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSourceServerReplicationTypeCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateSourceServerReplicationTypeCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MgnClient";
|
|
18
|
+
const commandName = "UpdateSourceServerReplicationTypeCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateSourceServerReplicationTypeRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.SourceServer.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateSourceServerReplicationTypeCommand = UpdateSourceServerReplicationTypeCommand;
|
|
@@ -6,10 +6,12 @@ tslib_1.__exportStar(require("./CreateReplicationConfigurationTemplateCommand"),
|
|
|
6
6
|
tslib_1.__exportStar(require("./DeleteJobCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DeleteReplicationConfigurationTemplateCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./DeleteSourceServerCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeleteVcenterClientCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeJobLogItemsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeJobsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DescribeReplicationConfigurationTemplatesCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./DescribeSourceServersCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DescribeVcenterClientsCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DisconnectFromServiceCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./FinalizeCutoverCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetLaunchConfigurationCommand"), exports);
|
|
@@ -19,6 +21,7 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
|
19
21
|
tslib_1.__exportStar(require("./MarkAsArchivedCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./RetryDataReplicationCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./StartCutoverCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./StartReplicationCommand"), exports);
|
|
22
25
|
tslib_1.__exportStar(require("./StartTestCommand"), exports);
|
|
23
26
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
24
27
|
tslib_1.__exportStar(require("./TerminateTargetInstancesCommand"), exports);
|
|
@@ -26,3 +29,4 @@ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
|
26
29
|
tslib_1.__exportStar(require("./UpdateLaunchConfigurationCommand"), exports);
|
|
27
30
|
tslib_1.__exportStar(require("./UpdateReplicationConfigurationCommand"), exports);
|
|
28
31
|
tslib_1.__exportStar(require("./UpdateReplicationConfigurationTemplateCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./UpdateSourceServerReplicationTypeCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataReplicationInfoReplicatedDisk = exports.DataReplicationState = exports.DataReplicationInitiation = exports.DataReplicationInitiationStep = exports.DataReplicationInitiationStepStatus = exports.DataReplicationInitiationStepName = exports.DataReplicationError = exports.DataReplicationErrorString = exports.ChangeServerLifeCycleStateRequest = exports.ChangeServerLifeCycleStateSourceServerLifecycle = exports.ChangeServerLifeCycleStateSourceServerLifecycleState = exports.UpdateReplicationConfigurationTemplateRequest = exports.DescribeReplicationConfigurationTemplatesResponse = exports.DescribeReplicationConfigurationTemplatesRequest = exports.DeleteReplicationConfigurationTemplateResponse = exports.DeleteReplicationConfigurationTemplateRequest = exports.ReplicationConfigurationTemplate = exports.CreateReplicationConfigurationTemplateRequest = exports.ReplicationConfigurationEbsEncryption = exports.ReplicationConfigurationDefaultLargeStagingDiskType = exports.ReplicationConfigurationDataPlaneRouting = exports.
|
|
4
|
-
exports.UntagResourceRequest = exports.TagResourceRequest = exports.UpdateReplicationConfigurationRequest = exports.UpdateLaunchConfigurationRequest = exports.TerminateTargetInstancesResponse = exports.TerminateTargetInstancesRequest = exports.StartTestResponse = exports.StartTestRequest = exports.StartCutoverResponse = exports.StartCutoverRequest = exports.RetryDataReplicationRequest = exports.MarkAsArchivedRequest = exports.ReplicationConfiguration = exports.ReplicationConfigurationReplicatedDisk = exports.ReplicationConfigurationReplicatedDiskStagingDiskType = exports.GetReplicationConfigurationRequest = exports.LaunchConfiguration = exports.TargetInstanceTypeRightSizingMethod = exports.Licensing = exports.LaunchDisposition = exports.GetLaunchConfigurationRequest = exports.FinalizeCutoverRequest = exports.DisconnectFromServiceRequest = exports.DescribeSourceServersResponse = exports.DescribeSourceServersRequest = exports.DescribeSourceServersRequestFilters = exports.DeleteSourceServerResponse = exports.DeleteSourceServerRequest = exports.SourceServer = exports.SourceProperties = exports.OS = exports.NetworkInterface = exports.IdentificationHints = exports.Disk = exports.CPU = exports.LifeCycle = exports.LifeCycleState = exports.LifeCycleLastTest = exports.LifeCycleLastTestReverted = exports.LifeCycleLastTestInitiated = exports.LifeCycleLastTestFinalized =
|
|
3
|
+
exports.LifeCycleLastCutover = exports.LifeCycleLastCutoverReverted = exports.LifeCycleLastCutoverInitiated = exports.LifeCycleLastCutoverFinalized = exports.LaunchedInstance = exports.FirstBoot = exports.DataReplicationInfo = exports.DataReplicationInfoReplicatedDisk = exports.DataReplicationState = exports.DataReplicationInitiation = exports.DataReplicationInitiationStep = exports.DataReplicationInitiationStepStatus = exports.DataReplicationInitiationStepName = exports.DataReplicationError = exports.DataReplicationErrorString = exports.ChangeServerLifeCycleStateRequest = exports.ChangeServerLifeCycleStateSourceServerLifecycle = exports.ChangeServerLifeCycleStateSourceServerLifecycleState = exports.UpdateReplicationConfigurationTemplateRequest = exports.DescribeReplicationConfigurationTemplatesResponse = exports.DescribeReplicationConfigurationTemplatesRequest = exports.DeleteReplicationConfigurationTemplateResponse = exports.DeleteReplicationConfigurationTemplateRequest = exports.ReplicationConfigurationTemplate = exports.CreateReplicationConfigurationTemplateRequest = exports.ReplicationConfigurationEbsEncryption = exports.ReplicationConfigurationDefaultLargeStagingDiskType = exports.ReplicationConfigurationDataPlaneRouting = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.DescribeJobsResponse = exports.Job = exports.JobType = exports.JobStatus = exports.ParticipatingServer = exports.LaunchStatus = exports.InitiatedBy = exports.DescribeJobsRequest = exports.DescribeJobsRequestFilters = exports.DescribeJobLogItemsResponse = exports.JobLog = exports.JobLogEventData = exports.JobLogEvent = exports.DescribeJobLogItemsRequest = exports.DeleteJobResponse = exports.DeleteJobRequest = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.InitializeServiceResponse = exports.InitializeServiceRequest = void 0;
|
|
4
|
+
exports.DescribeVcenterClientsResponse = exports.VcenterClient = exports.DescribeVcenterClientsRequest = exports.DeleteVcenterClientRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.UpdateSourceServerReplicationTypeRequest = exports.UpdateReplicationConfigurationRequest = exports.UpdateLaunchConfigurationRequest = exports.TerminateTargetInstancesResponse = exports.TerminateTargetInstancesRequest = exports.StartTestResponse = exports.StartTestRequest = exports.StartReplicationRequest = exports.StartCutoverResponse = exports.StartCutoverRequest = exports.RetryDataReplicationRequest = exports.MarkAsArchivedRequest = exports.ReplicationConfiguration = exports.ReplicationConfigurationReplicatedDisk = exports.ReplicationConfigurationReplicatedDiskStagingDiskType = exports.GetReplicationConfigurationRequest = exports.LaunchConfiguration = exports.TargetInstanceTypeRightSizingMethod = exports.Licensing = exports.LaunchDisposition = exports.GetLaunchConfigurationRequest = exports.FinalizeCutoverRequest = exports.DisconnectFromServiceRequest = exports.DescribeSourceServersResponse = exports.DescribeSourceServersRequest = exports.DescribeSourceServersRequestFilters = exports.DeleteSourceServerResponse = exports.DeleteSourceServerRequest = exports.SourceServer = exports.SourceProperties = exports.OS = exports.NetworkInterface = exports.IdentificationHints = exports.Disk = exports.CPU = exports.ReplicationType = exports.LifeCycle = exports.LifeCycleState = exports.LifeCycleLastTest = exports.LifeCycleLastTestReverted = exports.LifeCycleLastTestInitiated = exports.LifeCycleLastTestFinalized = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
-
var AccessDeniedException;
|
|
7
|
-
(function (AccessDeniedException) {
|
|
8
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
9
|
-
...obj,
|
|
10
|
-
});
|
|
11
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
12
6
|
var InitializeServiceRequest;
|
|
13
7
|
(function (InitializeServiceRequest) {
|
|
14
8
|
InitializeServiceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -34,18 +28,6 @@ var ValidationExceptionReason;
|
|
|
34
28
|
ValidationExceptionReason["OTHER"] = "other";
|
|
35
29
|
ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
|
|
36
30
|
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
37
|
-
var ValidationException;
|
|
38
|
-
(function (ValidationException) {
|
|
39
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
40
|
-
...obj,
|
|
41
|
-
});
|
|
42
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
43
|
-
var ConflictException;
|
|
44
|
-
(function (ConflictException) {
|
|
45
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
46
|
-
...obj,
|
|
47
|
-
});
|
|
48
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
49
31
|
var DeleteJobRequest;
|
|
50
32
|
(function (DeleteJobRequest) {
|
|
51
33
|
DeleteJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -58,18 +40,6 @@ var DeleteJobResponse;
|
|
|
58
40
|
...obj,
|
|
59
41
|
});
|
|
60
42
|
})(DeleteJobResponse = exports.DeleteJobResponse || (exports.DeleteJobResponse = {}));
|
|
61
|
-
var ResourceNotFoundException;
|
|
62
|
-
(function (ResourceNotFoundException) {
|
|
63
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
64
|
-
...obj,
|
|
65
|
-
});
|
|
66
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
67
|
-
var UninitializedAccountException;
|
|
68
|
-
(function (UninitializedAccountException) {
|
|
69
|
-
UninitializedAccountException.filterSensitiveLog = (obj) => ({
|
|
70
|
-
...obj,
|
|
71
|
-
});
|
|
72
|
-
})(UninitializedAccountException = exports.UninitializedAccountException || (exports.UninitializedAccountException = {}));
|
|
73
43
|
var DescribeJobLogItemsRequest;
|
|
74
44
|
(function (DescribeJobLogItemsRequest) {
|
|
75
45
|
DescribeJobLogItemsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -171,12 +141,6 @@ var DescribeJobsResponse;
|
|
|
171
141
|
...(obj.items && { items: obj.items.map((item) => Job.filterSensitiveLog(item)) }),
|
|
172
142
|
});
|
|
173
143
|
})(DescribeJobsResponse = exports.DescribeJobsResponse || (exports.DescribeJobsResponse = {}));
|
|
174
|
-
var InternalServerException;
|
|
175
|
-
(function (InternalServerException) {
|
|
176
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
180
144
|
var ListTagsForResourceRequest;
|
|
181
145
|
(function (ListTagsForResourceRequest) {
|
|
182
146
|
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -190,12 +154,6 @@ var ListTagsForResourceResponse;
|
|
|
190
154
|
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
191
155
|
});
|
|
192
156
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
193
|
-
var ThrottlingException;
|
|
194
|
-
(function (ThrottlingException) {
|
|
195
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
196
|
-
...obj,
|
|
197
|
-
});
|
|
198
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
199
157
|
var ReplicationConfigurationDataPlaneRouting;
|
|
200
158
|
(function (ReplicationConfigurationDataPlaneRouting) {
|
|
201
159
|
ReplicationConfigurationDataPlaneRouting["PRIVATE_IP"] = "PRIVATE_IP";
|
|
@@ -290,9 +248,11 @@ var DataReplicationErrorString;
|
|
|
290
248
|
DataReplicationErrorString["FAILED_TO_LAUNCH_REPLICATION_SERVER"] = "FAILED_TO_LAUNCH_REPLICATION_SERVER";
|
|
291
249
|
DataReplicationErrorString["FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"] = "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT";
|
|
292
250
|
DataReplicationErrorString["FAILED_TO_START_DATA_TRANSFER"] = "FAILED_TO_START_DATA_TRANSFER";
|
|
251
|
+
DataReplicationErrorString["LAST_SNAPSHOT_JOB_FAILED"] = "LAST_SNAPSHOT_JOB_FAILED";
|
|
293
252
|
DataReplicationErrorString["NOT_CONVERGING"] = "NOT_CONVERGING";
|
|
294
253
|
DataReplicationErrorString["SNAPSHOTS_FAILURE"] = "SNAPSHOTS_FAILURE";
|
|
295
254
|
DataReplicationErrorString["UNSTABLE_NETWORK"] = "UNSTABLE_NETWORK";
|
|
255
|
+
DataReplicationErrorString["UNSUPPORTED_VM_CONFIGURATION"] = "UNSUPPORTED_VM_CONFIGURATION";
|
|
296
256
|
})(DataReplicationErrorString = exports.DataReplicationErrorString || (exports.DataReplicationErrorString = {}));
|
|
297
257
|
var DataReplicationError;
|
|
298
258
|
(function (DataReplicationError) {
|
|
@@ -343,7 +303,9 @@ var DataReplicationState;
|
|
|
343
303
|
DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
|
|
344
304
|
DataReplicationState["INITIATING"] = "INITIATING";
|
|
345
305
|
DataReplicationState["PAUSED"] = "PAUSED";
|
|
306
|
+
DataReplicationState["PENDING_SNAPSHOT_SHIPPING"] = "PENDING_SNAPSHOT_SHIPPING";
|
|
346
307
|
DataReplicationState["RESCAN"] = "RESCAN";
|
|
308
|
+
DataReplicationState["SHIPPING_SNAPSHOT"] = "SHIPPING_SNAPSHOT";
|
|
347
309
|
DataReplicationState["STALLED"] = "STALLED";
|
|
348
310
|
DataReplicationState["STOPPED"] = "STOPPED";
|
|
349
311
|
})(DataReplicationState = exports.DataReplicationState || (exports.DataReplicationState = {}));
|
|
@@ -425,6 +387,7 @@ var LifeCycleState;
|
|
|
425
387
|
LifeCycleState["CUTOVER"] = "CUTOVER";
|
|
426
388
|
LifeCycleState["CUTTING_OVER"] = "CUTTING_OVER";
|
|
427
389
|
LifeCycleState["DISCONNECTED"] = "DISCONNECTED";
|
|
390
|
+
LifeCycleState["DISCOVERED"] = "DISCOVERED";
|
|
428
391
|
LifeCycleState["NOT_READY"] = "NOT_READY";
|
|
429
392
|
LifeCycleState["READY_FOR_CUTOVER"] = "READY_FOR_CUTOVER";
|
|
430
393
|
LifeCycleState["READY_FOR_TEST"] = "READY_FOR_TEST";
|
|
@@ -437,6 +400,11 @@ var LifeCycle;
|
|
|
437
400
|
...obj,
|
|
438
401
|
});
|
|
439
402
|
})(LifeCycle = exports.LifeCycle || (exports.LifeCycle = {}));
|
|
403
|
+
var ReplicationType;
|
|
404
|
+
(function (ReplicationType) {
|
|
405
|
+
ReplicationType["AGENT_BASED"] = "AGENT_BASED";
|
|
406
|
+
ReplicationType["SNAPSHOT_SHIPPING"] = "SNAPSHOT_SHIPPING";
|
|
407
|
+
})(ReplicationType = exports.ReplicationType || (exports.ReplicationType = {}));
|
|
440
408
|
var CPU;
|
|
441
409
|
(function (CPU) {
|
|
442
410
|
CPU.filterSensitiveLog = (obj) => ({
|
|
@@ -605,6 +573,12 @@ var StartCutoverResponse;
|
|
|
605
573
|
...(obj.job && { job: Job.filterSensitiveLog(obj.job) }),
|
|
606
574
|
});
|
|
607
575
|
})(StartCutoverResponse = exports.StartCutoverResponse || (exports.StartCutoverResponse = {}));
|
|
576
|
+
var StartReplicationRequest;
|
|
577
|
+
(function (StartReplicationRequest) {
|
|
578
|
+
StartReplicationRequest.filterSensitiveLog = (obj) => ({
|
|
579
|
+
...obj,
|
|
580
|
+
});
|
|
581
|
+
})(StartReplicationRequest = exports.StartReplicationRequest || (exports.StartReplicationRequest = {}));
|
|
608
582
|
var StartTestRequest;
|
|
609
583
|
(function (StartTestRequest) {
|
|
610
584
|
StartTestRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -646,6 +620,12 @@ var UpdateReplicationConfigurationRequest;
|
|
|
646
620
|
...(obj.stagingAreaTags && { stagingAreaTags: smithy_client_1.SENSITIVE_STRING }),
|
|
647
621
|
});
|
|
648
622
|
})(UpdateReplicationConfigurationRequest = exports.UpdateReplicationConfigurationRequest || (exports.UpdateReplicationConfigurationRequest = {}));
|
|
623
|
+
var UpdateSourceServerReplicationTypeRequest;
|
|
624
|
+
(function (UpdateSourceServerReplicationTypeRequest) {
|
|
625
|
+
UpdateSourceServerReplicationTypeRequest.filterSensitiveLog = (obj) => ({
|
|
626
|
+
...obj,
|
|
627
|
+
});
|
|
628
|
+
})(UpdateSourceServerReplicationTypeRequest = exports.UpdateSourceServerReplicationTypeRequest || (exports.UpdateSourceServerReplicationTypeRequest = {}));
|
|
649
629
|
var TagResourceRequest;
|
|
650
630
|
(function (TagResourceRequest) {
|
|
651
631
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -660,3 +640,30 @@ var UntagResourceRequest;
|
|
|
660
640
|
...(obj.tagKeys && { tagKeys: smithy_client_1.SENSITIVE_STRING }),
|
|
661
641
|
});
|
|
662
642
|
})(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {}));
|
|
643
|
+
var DeleteVcenterClientRequest;
|
|
644
|
+
(function (DeleteVcenterClientRequest) {
|
|
645
|
+
DeleteVcenterClientRequest.filterSensitiveLog = (obj) => ({
|
|
646
|
+
...obj,
|
|
647
|
+
});
|
|
648
|
+
})(DeleteVcenterClientRequest = exports.DeleteVcenterClientRequest || (exports.DeleteVcenterClientRequest = {}));
|
|
649
|
+
var DescribeVcenterClientsRequest;
|
|
650
|
+
(function (DescribeVcenterClientsRequest) {
|
|
651
|
+
DescribeVcenterClientsRequest.filterSensitiveLog = (obj) => ({
|
|
652
|
+
...obj,
|
|
653
|
+
});
|
|
654
|
+
})(DescribeVcenterClientsRequest = exports.DescribeVcenterClientsRequest || (exports.DescribeVcenterClientsRequest = {}));
|
|
655
|
+
var VcenterClient;
|
|
656
|
+
(function (VcenterClient) {
|
|
657
|
+
VcenterClient.filterSensitiveLog = (obj) => ({
|
|
658
|
+
...obj,
|
|
659
|
+
...(obj.sourceServerTags && { sourceServerTags: smithy_client_1.SENSITIVE_STRING }),
|
|
660
|
+
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
661
|
+
});
|
|
662
|
+
})(VcenterClient = exports.VcenterClient || (exports.VcenterClient = {}));
|
|
663
|
+
var DescribeVcenterClientsResponse;
|
|
664
|
+
(function (DescribeVcenterClientsResponse) {
|
|
665
|
+
DescribeVcenterClientsResponse.filterSensitiveLog = (obj) => ({
|
|
666
|
+
...obj,
|
|
667
|
+
...(obj.items && { items: obj.items.map((item) => VcenterClient.filterSensitiveLog(item)) }),
|
|
668
|
+
});
|
|
669
|
+
})(DescribeVcenterClientsResponse = exports.DescribeVcenterClientsResponse || (exports.DescribeVcenterClientsResponse = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeVcenterClients = void 0;
|
|
4
|
+
const DescribeVcenterClientsCommand_1 = require("../commands/DescribeVcenterClientsCommand");
|
|
5
|
+
const Mgn_1 = require("../Mgn");
|
|
6
|
+
const MgnClient_1 = require("../MgnClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new DescribeVcenterClientsCommand_1.DescribeVcenterClientsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.describeVcenterClients(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateDescribeVcenterClients(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Mgn_1.Mgn) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof MgnClient_1.MgnClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.nextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateDescribeVcenterClients = paginateDescribeVcenterClients;
|
|
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./DescribeJobLogItemsPaginator"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeJobsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeReplicationConfigurationTemplatesPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DescribeSourceServersPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DescribeVcenterClientsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|