@aws-sdk/client-mgn 3.40.0 → 3.45.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 +9 -0
- 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-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 +9 -0
- 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-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +6 -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/ts3.4/Mgn.d.ts +20 -0
- package/dist-types/ts3.4/MgnClient.d.ts +6 -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/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-mgn
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
48
|
|
|
8
49
|
|
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
|
@@ -14,6 +14,7 @@ const partitionHash = {
|
|
|
14
14
|
"ap-south-1",
|
|
15
15
|
"ap-southeast-1",
|
|
16
16
|
"ap-southeast-2",
|
|
17
|
+
"ap-southeast-3",
|
|
17
18
|
"ca-central-1",
|
|
18
19
|
"eu-central-1",
|
|
19
20
|
"eu-north-1",
|
|
@@ -78,6 +79,10 @@ const partitionHash = {
|
|
|
78
79
|
hostname: "mgn.{region}.c2s.ic.gov",
|
|
79
80
|
tags: [],
|
|
80
81
|
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "mgn-fips.{region}.c2s.ic.gov",
|
|
84
|
+
tags: ["fips"],
|
|
85
|
+
},
|
|
81
86
|
],
|
|
82
87
|
},
|
|
83
88
|
"aws-iso-b": {
|
|
@@ -88,6 +93,10 @@ const partitionHash = {
|
|
|
88
93
|
hostname: "mgn.{region}.sc2s.sgov.gov",
|
|
89
94
|
tags: [],
|
|
90
95
|
},
|
|
96
|
+
{
|
|
97
|
+
hostname: "mgn-fips.{region}.sc2s.sgov.gov",
|
|
98
|
+
tags: ["fips"],
|
|
99
|
+
},
|
|
91
100
|
],
|
|
92
101
|
},
|
|
93
102
|
"aws-us-gov": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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.ThrottlingException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.InternalServerException = 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.UninitializedAccountException = exports.ResourceNotFoundException = exports.DeleteJobResponse = exports.DeleteJobRequest = exports.ConflictException = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.InitializeServiceResponse = exports.InitializeServiceRequest = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.UpdateSourceServerReplicationTypeRequest = exports.UpdateReplicationConfigurationRequest = exports.UpdateLaunchConfigurationRequest = exports.TerminateTargetInstancesResponse = exports.TerminateTargetInstancesRequest = exports.StartTestResponse = exports.StartTestRequest = exports.StartReplicationRequest = exports.ServiceQuotaExceededException = 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 = exports.LifeCycleLastCutover = exports.LifeCycleLastCutoverReverted = exports.LifeCycleLastCutoverInitiated = exports.LifeCycleLastCutoverFinalized = exports.LaunchedInstance = exports.FirstBoot = exports.DataReplicationInfo = void 0;
|
|
5
|
+
exports.DescribeVcenterClientsResponse = exports.VcenterClient = exports.DescribeVcenterClientsRequest = exports.DeleteVcenterClientRequest = exports.UntagResourceRequest = exports.TagResourceRequest = void 0;
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
var AccessDeniedException;
|
|
7
8
|
(function (AccessDeniedException) {
|
|
@@ -290,9 +291,11 @@ var DataReplicationErrorString;
|
|
|
290
291
|
DataReplicationErrorString["FAILED_TO_LAUNCH_REPLICATION_SERVER"] = "FAILED_TO_LAUNCH_REPLICATION_SERVER";
|
|
291
292
|
DataReplicationErrorString["FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"] = "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT";
|
|
292
293
|
DataReplicationErrorString["FAILED_TO_START_DATA_TRANSFER"] = "FAILED_TO_START_DATA_TRANSFER";
|
|
294
|
+
DataReplicationErrorString["LAST_SNAPSHOT_JOB_FAILED"] = "LAST_SNAPSHOT_JOB_FAILED";
|
|
293
295
|
DataReplicationErrorString["NOT_CONVERGING"] = "NOT_CONVERGING";
|
|
294
296
|
DataReplicationErrorString["SNAPSHOTS_FAILURE"] = "SNAPSHOTS_FAILURE";
|
|
295
297
|
DataReplicationErrorString["UNSTABLE_NETWORK"] = "UNSTABLE_NETWORK";
|
|
298
|
+
DataReplicationErrorString["UNSUPPORTED_VM_CONFIGURATION"] = "UNSUPPORTED_VM_CONFIGURATION";
|
|
296
299
|
})(DataReplicationErrorString = exports.DataReplicationErrorString || (exports.DataReplicationErrorString = {}));
|
|
297
300
|
var DataReplicationError;
|
|
298
301
|
(function (DataReplicationError) {
|
|
@@ -343,7 +346,9 @@ var DataReplicationState;
|
|
|
343
346
|
DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
|
|
344
347
|
DataReplicationState["INITIATING"] = "INITIATING";
|
|
345
348
|
DataReplicationState["PAUSED"] = "PAUSED";
|
|
349
|
+
DataReplicationState["PENDING_SNAPSHOT_SHIPPING"] = "PENDING_SNAPSHOT_SHIPPING";
|
|
346
350
|
DataReplicationState["RESCAN"] = "RESCAN";
|
|
351
|
+
DataReplicationState["SHIPPING_SNAPSHOT"] = "SHIPPING_SNAPSHOT";
|
|
347
352
|
DataReplicationState["STALLED"] = "STALLED";
|
|
348
353
|
DataReplicationState["STOPPED"] = "STOPPED";
|
|
349
354
|
})(DataReplicationState = exports.DataReplicationState || (exports.DataReplicationState = {}));
|
|
@@ -425,6 +430,7 @@ var LifeCycleState;
|
|
|
425
430
|
LifeCycleState["CUTOVER"] = "CUTOVER";
|
|
426
431
|
LifeCycleState["CUTTING_OVER"] = "CUTTING_OVER";
|
|
427
432
|
LifeCycleState["DISCONNECTED"] = "DISCONNECTED";
|
|
433
|
+
LifeCycleState["DISCOVERED"] = "DISCOVERED";
|
|
428
434
|
LifeCycleState["NOT_READY"] = "NOT_READY";
|
|
429
435
|
LifeCycleState["READY_FOR_CUTOVER"] = "READY_FOR_CUTOVER";
|
|
430
436
|
LifeCycleState["READY_FOR_TEST"] = "READY_FOR_TEST";
|
|
@@ -437,6 +443,11 @@ var LifeCycle;
|
|
|
437
443
|
...obj,
|
|
438
444
|
});
|
|
439
445
|
})(LifeCycle = exports.LifeCycle || (exports.LifeCycle = {}));
|
|
446
|
+
var ReplicationType;
|
|
447
|
+
(function (ReplicationType) {
|
|
448
|
+
ReplicationType["AGENT_BASED"] = "AGENT_BASED";
|
|
449
|
+
ReplicationType["SNAPSHOT_SHIPPING"] = "SNAPSHOT_SHIPPING";
|
|
450
|
+
})(ReplicationType = exports.ReplicationType || (exports.ReplicationType = {}));
|
|
440
451
|
var CPU;
|
|
441
452
|
(function (CPU) {
|
|
442
453
|
CPU.filterSensitiveLog = (obj) => ({
|
|
@@ -605,6 +616,18 @@ var StartCutoverResponse;
|
|
|
605
616
|
...(obj.job && { job: Job.filterSensitiveLog(obj.job) }),
|
|
606
617
|
});
|
|
607
618
|
})(StartCutoverResponse = exports.StartCutoverResponse || (exports.StartCutoverResponse = {}));
|
|
619
|
+
var ServiceQuotaExceededException;
|
|
620
|
+
(function (ServiceQuotaExceededException) {
|
|
621
|
+
ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
|
|
622
|
+
...obj,
|
|
623
|
+
});
|
|
624
|
+
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
|
|
625
|
+
var StartReplicationRequest;
|
|
626
|
+
(function (StartReplicationRequest) {
|
|
627
|
+
StartReplicationRequest.filterSensitiveLog = (obj) => ({
|
|
628
|
+
...obj,
|
|
629
|
+
});
|
|
630
|
+
})(StartReplicationRequest = exports.StartReplicationRequest || (exports.StartReplicationRequest = {}));
|
|
608
631
|
var StartTestRequest;
|
|
609
632
|
(function (StartTestRequest) {
|
|
610
633
|
StartTestRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -646,6 +669,12 @@ var UpdateReplicationConfigurationRequest;
|
|
|
646
669
|
...(obj.stagingAreaTags && { stagingAreaTags: smithy_client_1.SENSITIVE_STRING }),
|
|
647
670
|
});
|
|
648
671
|
})(UpdateReplicationConfigurationRequest = exports.UpdateReplicationConfigurationRequest || (exports.UpdateReplicationConfigurationRequest = {}));
|
|
672
|
+
var UpdateSourceServerReplicationTypeRequest;
|
|
673
|
+
(function (UpdateSourceServerReplicationTypeRequest) {
|
|
674
|
+
UpdateSourceServerReplicationTypeRequest.filterSensitiveLog = (obj) => ({
|
|
675
|
+
...obj,
|
|
676
|
+
});
|
|
677
|
+
})(UpdateSourceServerReplicationTypeRequest = exports.UpdateSourceServerReplicationTypeRequest || (exports.UpdateSourceServerReplicationTypeRequest = {}));
|
|
649
678
|
var TagResourceRequest;
|
|
650
679
|
(function (TagResourceRequest) {
|
|
651
680
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -660,3 +689,30 @@ var UntagResourceRequest;
|
|
|
660
689
|
...(obj.tagKeys && { tagKeys: smithy_client_1.SENSITIVE_STRING }),
|
|
661
690
|
});
|
|
662
691
|
})(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {}));
|
|
692
|
+
var DeleteVcenterClientRequest;
|
|
693
|
+
(function (DeleteVcenterClientRequest) {
|
|
694
|
+
DeleteVcenterClientRequest.filterSensitiveLog = (obj) => ({
|
|
695
|
+
...obj,
|
|
696
|
+
});
|
|
697
|
+
})(DeleteVcenterClientRequest = exports.DeleteVcenterClientRequest || (exports.DeleteVcenterClientRequest = {}));
|
|
698
|
+
var DescribeVcenterClientsRequest;
|
|
699
|
+
(function (DescribeVcenterClientsRequest) {
|
|
700
|
+
DescribeVcenterClientsRequest.filterSensitiveLog = (obj) => ({
|
|
701
|
+
...obj,
|
|
702
|
+
});
|
|
703
|
+
})(DescribeVcenterClientsRequest = exports.DescribeVcenterClientsRequest || (exports.DescribeVcenterClientsRequest = {}));
|
|
704
|
+
var VcenterClient;
|
|
705
|
+
(function (VcenterClient) {
|
|
706
|
+
VcenterClient.filterSensitiveLog = (obj) => ({
|
|
707
|
+
...obj,
|
|
708
|
+
...(obj.sourceServerTags && { sourceServerTags: smithy_client_1.SENSITIVE_STRING }),
|
|
709
|
+
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
710
|
+
});
|
|
711
|
+
})(VcenterClient = exports.VcenterClient || (exports.VcenterClient = {}));
|
|
712
|
+
var DescribeVcenterClientsResponse;
|
|
713
|
+
(function (DescribeVcenterClientsResponse) {
|
|
714
|
+
DescribeVcenterClientsResponse.filterSensitiveLog = (obj) => ({
|
|
715
|
+
...obj,
|
|
716
|
+
...(obj.items && { items: obj.items.map((item) => VcenterClient.filterSensitiveLog(item)) }),
|
|
717
|
+
});
|
|
718
|
+
})(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);
|