@aws-sdk/client-mgn 3.110.0 → 3.118.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 +27 -0
- package/dist-cjs/Mgn.js +60 -0
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +36 -0
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +105 -3
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +531 -2
- package/dist-es/Mgn.js +60 -0
- package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +39 -0
- package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +73 -0
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +604 -2
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +6 -2
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +307 -1
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.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/CreateLaunchConfigurationTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLaunchConfigurationTemplateCommand.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 +185 -1
- package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.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 +4 -4
package/dist-es/Mgn.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { ChangeServerLifeCycleStateCommand, } from "./commands/ChangeServerLifeCycleStateCommand";
|
|
3
|
+
import { CreateLaunchConfigurationTemplateCommand, } from "./commands/CreateLaunchConfigurationTemplateCommand";
|
|
3
4
|
import { CreateReplicationConfigurationTemplateCommand, } from "./commands/CreateReplicationConfigurationTemplateCommand";
|
|
4
5
|
import { DeleteJobCommand } from "./commands/DeleteJobCommand";
|
|
6
|
+
import { DeleteLaunchConfigurationTemplateCommand, } from "./commands/DeleteLaunchConfigurationTemplateCommand";
|
|
5
7
|
import { DeleteReplicationConfigurationTemplateCommand, } from "./commands/DeleteReplicationConfigurationTemplateCommand";
|
|
6
8
|
import { DeleteSourceServerCommand, } from "./commands/DeleteSourceServerCommand";
|
|
7
9
|
import { DeleteVcenterClientCommand, } from "./commands/DeleteVcenterClientCommand";
|
|
8
10
|
import { DescribeJobLogItemsCommand, } from "./commands/DescribeJobLogItemsCommand";
|
|
9
11
|
import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
|
|
12
|
+
import { DescribeLaunchConfigurationTemplatesCommand, } from "./commands/DescribeLaunchConfigurationTemplatesCommand";
|
|
10
13
|
import { DescribeReplicationConfigurationTemplatesCommand, } from "./commands/DescribeReplicationConfigurationTemplatesCommand";
|
|
11
14
|
import { DescribeSourceServersCommand, } from "./commands/DescribeSourceServersCommand";
|
|
12
15
|
import { DescribeVcenterClientsCommand, } from "./commands/DescribeVcenterClientsCommand";
|
|
@@ -25,6 +28,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
25
28
|
import { TerminateTargetInstancesCommand, } from "./commands/TerminateTargetInstancesCommand";
|
|
26
29
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
27
30
|
import { UpdateLaunchConfigurationCommand, } from "./commands/UpdateLaunchConfigurationCommand";
|
|
31
|
+
import { UpdateLaunchConfigurationTemplateCommand, } from "./commands/UpdateLaunchConfigurationTemplateCommand";
|
|
28
32
|
import { UpdateReplicationConfigurationCommand, } from "./commands/UpdateReplicationConfigurationCommand";
|
|
29
33
|
import { UpdateReplicationConfigurationTemplateCommand, } from "./commands/UpdateReplicationConfigurationTemplateCommand";
|
|
30
34
|
import { UpdateSourceServerReplicationTypeCommand, } from "./commands/UpdateSourceServerReplicationTypeCommand";
|
|
@@ -48,6 +52,20 @@ var Mgn = (function (_super) {
|
|
|
48
52
|
return this.send(command, optionsOrCb);
|
|
49
53
|
}
|
|
50
54
|
};
|
|
55
|
+
Mgn.prototype.createLaunchConfigurationTemplate = function (args, optionsOrCb, cb) {
|
|
56
|
+
var command = new CreateLaunchConfigurationTemplateCommand(args);
|
|
57
|
+
if (typeof optionsOrCb === "function") {
|
|
58
|
+
this.send(command, optionsOrCb);
|
|
59
|
+
}
|
|
60
|
+
else if (typeof cb === "function") {
|
|
61
|
+
if (typeof optionsOrCb !== "object")
|
|
62
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
63
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
return this.send(command, optionsOrCb);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
51
69
|
Mgn.prototype.createReplicationConfigurationTemplate = function (args, optionsOrCb, cb) {
|
|
52
70
|
var command = new CreateReplicationConfigurationTemplateCommand(args);
|
|
53
71
|
if (typeof optionsOrCb === "function") {
|
|
@@ -76,6 +94,20 @@ var Mgn = (function (_super) {
|
|
|
76
94
|
return this.send(command, optionsOrCb);
|
|
77
95
|
}
|
|
78
96
|
};
|
|
97
|
+
Mgn.prototype.deleteLaunchConfigurationTemplate = function (args, optionsOrCb, cb) {
|
|
98
|
+
var command = new DeleteLaunchConfigurationTemplateCommand(args);
|
|
99
|
+
if (typeof optionsOrCb === "function") {
|
|
100
|
+
this.send(command, optionsOrCb);
|
|
101
|
+
}
|
|
102
|
+
else if (typeof cb === "function") {
|
|
103
|
+
if (typeof optionsOrCb !== "object")
|
|
104
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
105
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
return this.send(command, optionsOrCb);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
79
111
|
Mgn.prototype.deleteReplicationConfigurationTemplate = function (args, optionsOrCb, cb) {
|
|
80
112
|
var command = new DeleteReplicationConfigurationTemplateCommand(args);
|
|
81
113
|
if (typeof optionsOrCb === "function") {
|
|
@@ -146,6 +178,20 @@ var Mgn = (function (_super) {
|
|
|
146
178
|
return this.send(command, optionsOrCb);
|
|
147
179
|
}
|
|
148
180
|
};
|
|
181
|
+
Mgn.prototype.describeLaunchConfigurationTemplates = function (args, optionsOrCb, cb) {
|
|
182
|
+
var command = new DescribeLaunchConfigurationTemplatesCommand(args);
|
|
183
|
+
if (typeof optionsOrCb === "function") {
|
|
184
|
+
this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
else if (typeof cb === "function") {
|
|
187
|
+
if (typeof optionsOrCb !== "object")
|
|
188
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
189
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
return this.send(command, optionsOrCb);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
149
195
|
Mgn.prototype.describeReplicationConfigurationTemplates = function (args, optionsOrCb, cb) {
|
|
150
196
|
var command = new DescribeReplicationConfigurationTemplatesCommand(args);
|
|
151
197
|
if (typeof optionsOrCb === "function") {
|
|
@@ -398,6 +444,20 @@ var Mgn = (function (_super) {
|
|
|
398
444
|
return this.send(command, optionsOrCb);
|
|
399
445
|
}
|
|
400
446
|
};
|
|
447
|
+
Mgn.prototype.updateLaunchConfigurationTemplate = function (args, optionsOrCb, cb) {
|
|
448
|
+
var command = new UpdateLaunchConfigurationTemplateCommand(args);
|
|
449
|
+
if (typeof optionsOrCb === "function") {
|
|
450
|
+
this.send(command, optionsOrCb);
|
|
451
|
+
}
|
|
452
|
+
else if (typeof cb === "function") {
|
|
453
|
+
if (typeof optionsOrCb !== "object")
|
|
454
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
455
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
return this.send(command, optionsOrCb);
|
|
459
|
+
}
|
|
460
|
+
};
|
|
401
461
|
Mgn.prototype.updateReplicationConfiguration = function (args, optionsOrCb, cb) {
|
|
402
462
|
var command = new UpdateReplicationConfigurationCommand(args);
|
|
403
463
|
if (typeof optionsOrCb === "function") {
|
|
@@ -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 { CreateLaunchConfigurationTemplateRequest, LaunchConfigurationTemplate } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand, serializeAws_restJson1CreateLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateLaunchConfigurationTemplateCommand = (function (_super) {
|
|
7
|
+
__extends(CreateLaunchConfigurationTemplateCommand, _super);
|
|
8
|
+
function CreateLaunchConfigurationTemplateCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateLaunchConfigurationTemplateCommand.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 = "CreateLaunchConfigurationTemplateCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateLaunchConfigurationTemplateRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: LaunchConfigurationTemplate.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateLaunchConfigurationTemplateCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateLaunchConfigurationTemplateCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateLaunchConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateLaunchConfigurationTemplateCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateLaunchConfigurationTemplateCommand };
|
|
@@ -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 { DeleteLaunchConfigurationTemplateRequest, DeleteLaunchConfigurationTemplateResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand, serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteLaunchConfigurationTemplateCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteLaunchConfigurationTemplateCommand, _super);
|
|
8
|
+
function DeleteLaunchConfigurationTemplateCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteLaunchConfigurationTemplateCommand.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 = "DeleteLaunchConfigurationTemplateCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteLaunchConfigurationTemplateRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteLaunchConfigurationTemplateResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteLaunchConfigurationTemplateCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteLaunchConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteLaunchConfigurationTemplateCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteLaunchConfigurationTemplateCommand };
|
|
@@ -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 { DescribeLaunchConfigurationTemplatesRequest, DescribeLaunchConfigurationTemplatesResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand, serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeLaunchConfigurationTemplatesCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeLaunchConfigurationTemplatesCommand, _super);
|
|
8
|
+
function DescribeLaunchConfigurationTemplatesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeLaunchConfigurationTemplatesCommand.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 = "DescribeLaunchConfigurationTemplatesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeLaunchConfigurationTemplatesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeLaunchConfigurationTemplatesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeLaunchConfigurationTemplatesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeLaunchConfigurationTemplatesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeLaunchConfigurationTemplatesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeLaunchConfigurationTemplatesCommand };
|
|
@@ -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 { LaunchConfigurationTemplate, UpdateLaunchConfigurationTemplateRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand, serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateLaunchConfigurationTemplateCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateLaunchConfigurationTemplateCommand, _super);
|
|
8
|
+
function UpdateLaunchConfigurationTemplateCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateLaunchConfigurationTemplateCommand.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 = "UpdateLaunchConfigurationTemplateCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateLaunchConfigurationTemplateRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: LaunchConfigurationTemplate.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateLaunchConfigurationTemplateCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateLaunchConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateLaunchConfigurationTemplateCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateLaunchConfigurationTemplateCommand };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from "./ChangeServerLifeCycleStateCommand";
|
|
2
|
+
export * from "./CreateLaunchConfigurationTemplateCommand";
|
|
2
3
|
export * from "./CreateReplicationConfigurationTemplateCommand";
|
|
3
4
|
export * from "./DeleteJobCommand";
|
|
5
|
+
export * from "./DeleteLaunchConfigurationTemplateCommand";
|
|
4
6
|
export * from "./DeleteReplicationConfigurationTemplateCommand";
|
|
5
7
|
export * from "./DeleteSourceServerCommand";
|
|
6
8
|
export * from "./DeleteVcenterClientCommand";
|
|
7
9
|
export * from "./DescribeJobLogItemsCommand";
|
|
8
10
|
export * from "./DescribeJobsCommand";
|
|
11
|
+
export * from "./DescribeLaunchConfigurationTemplatesCommand";
|
|
9
12
|
export * from "./DescribeReplicationConfigurationTemplatesCommand";
|
|
10
13
|
export * from "./DescribeSourceServersCommand";
|
|
11
14
|
export * from "./DescribeVcenterClientsCommand";
|
|
@@ -24,6 +27,7 @@ export * from "./TagResourceCommand";
|
|
|
24
27
|
export * from "./TerminateTargetInstancesCommand";
|
|
25
28
|
export * from "./UntagResourceCommand";
|
|
26
29
|
export * from "./UpdateLaunchConfigurationCommand";
|
|
30
|
+
export * from "./UpdateLaunchConfigurationTemplateCommand";
|
|
27
31
|
export * from "./UpdateReplicationConfigurationCommand";
|
|
28
32
|
export * from "./UpdateReplicationConfigurationTemplateCommand";
|
|
29
33
|
export * from "./UpdateSourceServerReplicationTypeCommand";
|
|
@@ -48,6 +48,10 @@ var ValidationException = (function (_super) {
|
|
|
48
48
|
return ValidationException;
|
|
49
49
|
}(__BaseException));
|
|
50
50
|
export { ValidationException };
|
|
51
|
+
export var ErrorDetails;
|
|
52
|
+
(function (ErrorDetails) {
|
|
53
|
+
ErrorDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
54
|
+
})(ErrorDetails || (ErrorDetails = {}));
|
|
51
55
|
var ConflictException = (function (_super) {
|
|
52
56
|
__extends(ConflictException, _super);
|
|
53
57
|
function ConflictException(opts) {
|
|
@@ -58,6 +62,7 @@ var ConflictException = (function (_super) {
|
|
|
58
62
|
_this.code = opts.code;
|
|
59
63
|
_this.resourceId = opts.resourceId;
|
|
60
64
|
_this.resourceType = opts.resourceType;
|
|
65
|
+
_this.errors = opts.errors;
|
|
61
66
|
return _this;
|
|
62
67
|
}
|
|
63
68
|
return ConflictException;
|
|
@@ -157,6 +162,37 @@ export var LaunchStatus;
|
|
|
157
162
|
LaunchStatus["PENDING"] = "PENDING";
|
|
158
163
|
LaunchStatus["TERMINATED"] = "TERMINATED";
|
|
159
164
|
})(LaunchStatus || (LaunchStatus = {}));
|
|
165
|
+
export var PostLaunchActionExecutionStatus;
|
|
166
|
+
(function (PostLaunchActionExecutionStatus) {
|
|
167
|
+
PostLaunchActionExecutionStatus["FAILED"] = "FAILED";
|
|
168
|
+
PostLaunchActionExecutionStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
169
|
+
PostLaunchActionExecutionStatus["SUCCESS"] = "SUCCESS";
|
|
170
|
+
})(PostLaunchActionExecutionStatus || (PostLaunchActionExecutionStatus = {}));
|
|
171
|
+
export var SsmParameterStoreParameterType;
|
|
172
|
+
(function (SsmParameterStoreParameterType) {
|
|
173
|
+
SsmParameterStoreParameterType["STRING"] = "STRING";
|
|
174
|
+
})(SsmParameterStoreParameterType || (SsmParameterStoreParameterType = {}));
|
|
175
|
+
export var SsmParameterStoreParameter;
|
|
176
|
+
(function (SsmParameterStoreParameter) {
|
|
177
|
+
SsmParameterStoreParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
+
})(SsmParameterStoreParameter || (SsmParameterStoreParameter = {}));
|
|
179
|
+
export var SsmDocument;
|
|
180
|
+
(function (SsmDocument) {
|
|
181
|
+
SsmDocument.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
+
})(SsmDocument || (SsmDocument = {}));
|
|
183
|
+
export var SsmDocumentType;
|
|
184
|
+
(function (SsmDocumentType) {
|
|
185
|
+
SsmDocumentType["AUTOMATION"] = "AUTOMATION";
|
|
186
|
+
SsmDocumentType["COMMAND"] = "COMMAND";
|
|
187
|
+
})(SsmDocumentType || (SsmDocumentType = {}));
|
|
188
|
+
export var JobPostLaunchActionsLaunchStatus;
|
|
189
|
+
(function (JobPostLaunchActionsLaunchStatus) {
|
|
190
|
+
JobPostLaunchActionsLaunchStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
|
+
})(JobPostLaunchActionsLaunchStatus || (JobPostLaunchActionsLaunchStatus = {}));
|
|
192
|
+
export var PostLaunchActionsStatus;
|
|
193
|
+
(function (PostLaunchActionsStatus) {
|
|
194
|
+
PostLaunchActionsStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
195
|
+
})(PostLaunchActionsStatus || (PostLaunchActionsStatus = {}));
|
|
160
196
|
export var ParticipatingServer;
|
|
161
197
|
(function (ParticipatingServer) {
|
|
162
198
|
ParticipatingServer.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -180,6 +216,43 @@ export var DescribeJobsResponse;
|
|
|
180
216
|
(function (DescribeJobsResponse) {
|
|
181
217
|
DescribeJobsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return Job.filterSensitiveLog(item); }) }))); };
|
|
182
218
|
})(DescribeJobsResponse || (DescribeJobsResponse = {}));
|
|
219
|
+
export var PostLaunchActionsDeploymentType;
|
|
220
|
+
(function (PostLaunchActionsDeploymentType) {
|
|
221
|
+
PostLaunchActionsDeploymentType["CUTOVER_ONLY"] = "CUTOVER_ONLY";
|
|
222
|
+
PostLaunchActionsDeploymentType["TEST_AND_CUTOVER"] = "TEST_AND_CUTOVER";
|
|
223
|
+
})(PostLaunchActionsDeploymentType || (PostLaunchActionsDeploymentType = {}));
|
|
224
|
+
export var PostLaunchActions;
|
|
225
|
+
(function (PostLaunchActions) {
|
|
226
|
+
PostLaunchActions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
227
|
+
})(PostLaunchActions || (PostLaunchActions = {}));
|
|
228
|
+
export var CreateLaunchConfigurationTemplateRequest;
|
|
229
|
+
(function (CreateLaunchConfigurationTemplateRequest) {
|
|
230
|
+
CreateLaunchConfigurationTemplateRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
231
|
+
})(CreateLaunchConfigurationTemplateRequest || (CreateLaunchConfigurationTemplateRequest = {}));
|
|
232
|
+
export var LaunchConfigurationTemplate;
|
|
233
|
+
(function (LaunchConfigurationTemplate) {
|
|
234
|
+
LaunchConfigurationTemplate.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
235
|
+
})(LaunchConfigurationTemplate || (LaunchConfigurationTemplate = {}));
|
|
236
|
+
export var DeleteLaunchConfigurationTemplateRequest;
|
|
237
|
+
(function (DeleteLaunchConfigurationTemplateRequest) {
|
|
238
|
+
DeleteLaunchConfigurationTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
239
|
+
})(DeleteLaunchConfigurationTemplateRequest || (DeleteLaunchConfigurationTemplateRequest = {}));
|
|
240
|
+
export var DeleteLaunchConfigurationTemplateResponse;
|
|
241
|
+
(function (DeleteLaunchConfigurationTemplateResponse) {
|
|
242
|
+
DeleteLaunchConfigurationTemplateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
243
|
+
})(DeleteLaunchConfigurationTemplateResponse || (DeleteLaunchConfigurationTemplateResponse = {}));
|
|
244
|
+
export var DescribeLaunchConfigurationTemplatesRequest;
|
|
245
|
+
(function (DescribeLaunchConfigurationTemplatesRequest) {
|
|
246
|
+
DescribeLaunchConfigurationTemplatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
|
+
})(DescribeLaunchConfigurationTemplatesRequest || (DescribeLaunchConfigurationTemplatesRequest = {}));
|
|
248
|
+
export var DescribeLaunchConfigurationTemplatesResponse;
|
|
249
|
+
(function (DescribeLaunchConfigurationTemplatesResponse) {
|
|
250
|
+
DescribeLaunchConfigurationTemplatesResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return LaunchConfigurationTemplate.filterSensitiveLog(item); }) }))); };
|
|
251
|
+
})(DescribeLaunchConfigurationTemplatesResponse || (DescribeLaunchConfigurationTemplatesResponse = {}));
|
|
252
|
+
export var UpdateLaunchConfigurationTemplateRequest;
|
|
253
|
+
(function (UpdateLaunchConfigurationTemplateRequest) {
|
|
254
|
+
UpdateLaunchConfigurationTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
255
|
+
})(UpdateLaunchConfigurationTemplateRequest || (UpdateLaunchConfigurationTemplateRequest = {}));
|
|
183
256
|
var InternalServerException = (function (_super) {
|
|
184
257
|
__extends(InternalServerException, _super);
|
|
185
258
|
function InternalServerException(opts) {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { DescribeLaunchConfigurationTemplatesCommand, } from "../commands/DescribeLaunchConfigurationTemplatesCommand";
|
|
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 DescribeLaunchConfigurationTemplatesCommand(input)], __read(args), false))];
|
|
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.describeLaunchConfigurationTemplates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateDescribeLaunchConfigurationTemplates(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 paginateDescribeLaunchConfigurationTemplates_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
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), false)))];
|
|
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), false)))];
|
|
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
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./DescribeJobLogItemsPaginator";
|
|
2
2
|
export * from "./DescribeJobsPaginator";
|
|
3
|
+
export * from "./DescribeLaunchConfigurationTemplatesPaginator";
|
|
3
4
|
export * from "./DescribeReplicationConfigurationTemplatesPaginator";
|
|
4
5
|
export * from "./DescribeSourceServersPaginator";
|
|
5
6
|
export * from "./DescribeVcenterClientsPaginator";
|