@aws-sdk/client-drs 3.312.0 → 3.315.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/README.md +32 -0
- package/dist-cjs/Drs.js +60 -0
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +46 -0
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +45 -0
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +46 -0
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +39 -10
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +794 -1620
- package/dist-es/Drs.js +60 -0
- package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +42 -0
- package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +41 -0
- package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +42 -0
- package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +32 -8
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +735 -1569
- package/dist-types/Drs.d.ts +32 -0
- package/dist-types/DrsClient.d.ts +6 -2
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +90 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +78 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +82 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +216 -34
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Drs.d.ts +92 -0
- package/dist-types/ts3.4/DrsClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +82 -15
- package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -213,6 +213,14 @@ CreateExtendedSourceServer
|
|
|
213
213
|
|
|
214
214
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/createextendedsourceservercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createextendedsourceservercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createextendedsourceservercommandoutput.html)
|
|
215
215
|
|
|
216
|
+
</details>
|
|
217
|
+
<details>
|
|
218
|
+
<summary>
|
|
219
|
+
CreateLaunchConfigurationTemplate
|
|
220
|
+
</summary>
|
|
221
|
+
|
|
222
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/createlaunchconfigurationtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createlaunchconfigurationtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createlaunchconfigurationtemplatecommandoutput.html)
|
|
223
|
+
|
|
216
224
|
</details>
|
|
217
225
|
<details>
|
|
218
226
|
<summary>
|
|
@@ -229,6 +237,14 @@ DeleteJob
|
|
|
229
237
|
|
|
230
238
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/deletejobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletejobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletejobcommandoutput.html)
|
|
231
239
|
|
|
240
|
+
</details>
|
|
241
|
+
<details>
|
|
242
|
+
<summary>
|
|
243
|
+
DeleteLaunchConfigurationTemplate
|
|
244
|
+
</summary>
|
|
245
|
+
|
|
246
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/deletelaunchconfigurationtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletelaunchconfigurationtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletelaunchconfigurationtemplatecommandoutput.html)
|
|
247
|
+
|
|
232
248
|
</details>
|
|
233
249
|
<details>
|
|
234
250
|
<summary>
|
|
@@ -269,6 +285,14 @@ DescribeJobs
|
|
|
269
285
|
|
|
270
286
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/describejobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describejobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describejobscommandoutput.html)
|
|
271
287
|
|
|
288
|
+
</details>
|
|
289
|
+
<details>
|
|
290
|
+
<summary>
|
|
291
|
+
DescribeLaunchConfigurationTemplates
|
|
292
|
+
</summary>
|
|
293
|
+
|
|
294
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/describelaunchconfigurationtemplatescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describelaunchconfigurationtemplatescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describelaunchconfigurationtemplatescommandoutput.html)
|
|
295
|
+
|
|
272
296
|
</details>
|
|
273
297
|
<details>
|
|
274
298
|
<summary>
|
|
@@ -469,6 +493,14 @@ UpdateLaunchConfiguration
|
|
|
469
493
|
|
|
470
494
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/updatelaunchconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/updatelaunchconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/updatelaunchconfigurationcommandoutput.html)
|
|
471
495
|
|
|
496
|
+
</details>
|
|
497
|
+
<details>
|
|
498
|
+
<summary>
|
|
499
|
+
UpdateLaunchConfigurationTemplate
|
|
500
|
+
</summary>
|
|
501
|
+
|
|
502
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/updatelaunchconfigurationtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/updatelaunchconfigurationtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/updatelaunchconfigurationtemplatecommandoutput.html)
|
|
503
|
+
|
|
472
504
|
</details>
|
|
473
505
|
<details>
|
|
474
506
|
<summary>
|
package/dist-cjs/Drs.js
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Drs = void 0;
|
|
4
4
|
const CreateExtendedSourceServerCommand_1 = require("./commands/CreateExtendedSourceServerCommand");
|
|
5
|
+
const CreateLaunchConfigurationTemplateCommand_1 = require("./commands/CreateLaunchConfigurationTemplateCommand");
|
|
5
6
|
const CreateReplicationConfigurationTemplateCommand_1 = require("./commands/CreateReplicationConfigurationTemplateCommand");
|
|
6
7
|
const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
|
|
8
|
+
const DeleteLaunchConfigurationTemplateCommand_1 = require("./commands/DeleteLaunchConfigurationTemplateCommand");
|
|
7
9
|
const DeleteRecoveryInstanceCommand_1 = require("./commands/DeleteRecoveryInstanceCommand");
|
|
8
10
|
const DeleteReplicationConfigurationTemplateCommand_1 = require("./commands/DeleteReplicationConfigurationTemplateCommand");
|
|
9
11
|
const DeleteSourceServerCommand_1 = require("./commands/DeleteSourceServerCommand");
|
|
10
12
|
const DescribeJobLogItemsCommand_1 = require("./commands/DescribeJobLogItemsCommand");
|
|
11
13
|
const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
|
|
14
|
+
const DescribeLaunchConfigurationTemplatesCommand_1 = require("./commands/DescribeLaunchConfigurationTemplatesCommand");
|
|
12
15
|
const DescribeRecoveryInstancesCommand_1 = require("./commands/DescribeRecoveryInstancesCommand");
|
|
13
16
|
const DescribeRecoverySnapshotsCommand_1 = require("./commands/DescribeRecoverySnapshotsCommand");
|
|
14
17
|
const DescribeReplicationConfigurationTemplatesCommand_1 = require("./commands/DescribeReplicationConfigurationTemplatesCommand");
|
|
@@ -34,6 +37,7 @@ const TerminateRecoveryInstancesCommand_1 = require("./commands/TerminateRecover
|
|
|
34
37
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
35
38
|
const UpdateFailbackReplicationConfigurationCommand_1 = require("./commands/UpdateFailbackReplicationConfigurationCommand");
|
|
36
39
|
const UpdateLaunchConfigurationCommand_1 = require("./commands/UpdateLaunchConfigurationCommand");
|
|
40
|
+
const UpdateLaunchConfigurationTemplateCommand_1 = require("./commands/UpdateLaunchConfigurationTemplateCommand");
|
|
37
41
|
const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplicationConfigurationCommand");
|
|
38
42
|
const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
|
|
39
43
|
const DrsClient_1 = require("./DrsClient");
|
|
@@ -52,6 +56,20 @@ class Drs extends DrsClient_1.DrsClient {
|
|
|
52
56
|
return this.send(command, optionsOrCb);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
59
|
+
createLaunchConfigurationTemplate(args, optionsOrCb, cb) {
|
|
60
|
+
const command = new CreateLaunchConfigurationTemplateCommand_1.CreateLaunchConfigurationTemplateCommand(args);
|
|
61
|
+
if (typeof optionsOrCb === "function") {
|
|
62
|
+
this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
else if (typeof cb === "function") {
|
|
65
|
+
if (typeof optionsOrCb !== "object")
|
|
66
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return this.send(command, optionsOrCb);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
55
73
|
createReplicationConfigurationTemplate(args, optionsOrCb, cb) {
|
|
56
74
|
const command = new CreateReplicationConfigurationTemplateCommand_1.CreateReplicationConfigurationTemplateCommand(args);
|
|
57
75
|
if (typeof optionsOrCb === "function") {
|
|
@@ -80,6 +98,20 @@ class Drs extends DrsClient_1.DrsClient {
|
|
|
80
98
|
return this.send(command, optionsOrCb);
|
|
81
99
|
}
|
|
82
100
|
}
|
|
101
|
+
deleteLaunchConfigurationTemplate(args, optionsOrCb, cb) {
|
|
102
|
+
const command = new DeleteLaunchConfigurationTemplateCommand_1.DeleteLaunchConfigurationTemplateCommand(args);
|
|
103
|
+
if (typeof optionsOrCb === "function") {
|
|
104
|
+
this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
else if (typeof cb === "function") {
|
|
107
|
+
if (typeof optionsOrCb !== "object")
|
|
108
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
83
115
|
deleteRecoveryInstance(args, optionsOrCb, cb) {
|
|
84
116
|
const command = new DeleteRecoveryInstanceCommand_1.DeleteRecoveryInstanceCommand(args);
|
|
85
117
|
if (typeof optionsOrCb === "function") {
|
|
@@ -150,6 +182,20 @@ class Drs extends DrsClient_1.DrsClient {
|
|
|
150
182
|
return this.send(command, optionsOrCb);
|
|
151
183
|
}
|
|
152
184
|
}
|
|
185
|
+
describeLaunchConfigurationTemplates(args, optionsOrCb, cb) {
|
|
186
|
+
const command = new DescribeLaunchConfigurationTemplatesCommand_1.DescribeLaunchConfigurationTemplatesCommand(args);
|
|
187
|
+
if (typeof optionsOrCb === "function") {
|
|
188
|
+
this.send(command, optionsOrCb);
|
|
189
|
+
}
|
|
190
|
+
else if (typeof cb === "function") {
|
|
191
|
+
if (typeof optionsOrCb !== "object")
|
|
192
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
return this.send(command, optionsOrCb);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
153
199
|
describeRecoveryInstances(args, optionsOrCb, cb) {
|
|
154
200
|
const command = new DescribeRecoveryInstancesCommand_1.DescribeRecoveryInstancesCommand(args);
|
|
155
201
|
if (typeof optionsOrCb === "function") {
|
|
@@ -500,6 +546,20 @@ class Drs extends DrsClient_1.DrsClient {
|
|
|
500
546
|
return this.send(command, optionsOrCb);
|
|
501
547
|
}
|
|
502
548
|
}
|
|
549
|
+
updateLaunchConfigurationTemplate(args, optionsOrCb, cb) {
|
|
550
|
+
const command = new UpdateLaunchConfigurationTemplateCommand_1.UpdateLaunchConfigurationTemplateCommand(args);
|
|
551
|
+
if (typeof optionsOrCb === "function") {
|
|
552
|
+
this.send(command, optionsOrCb);
|
|
553
|
+
}
|
|
554
|
+
else if (typeof cb === "function") {
|
|
555
|
+
if (typeof optionsOrCb !== "object")
|
|
556
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
557
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
return this.send(command, optionsOrCb);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
503
563
|
updateReplicationConfiguration(args, optionsOrCb, cb) {
|
|
504
564
|
const command = new UpdateReplicationConfigurationCommand_1.UpdateReplicationConfigurationCommand(args);
|
|
505
565
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLaunchConfigurationTemplateCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateLaunchConfigurationTemplateCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLaunchConfigurationTemplateCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DrsClient";
|
|
28
|
+
const commandName = "CreateLaunchConfigurationTemplateCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateLaunchConfigurationTemplateRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateLaunchConfigurationTemplateResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_CreateLaunchConfigurationTemplateCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_CreateLaunchConfigurationTemplateCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateLaunchConfigurationTemplateCommand = CreateLaunchConfigurationTemplateCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteLaunchConfigurationTemplateCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteLaunchConfigurationTemplateCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLaunchConfigurationTemplateCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DrsClient";
|
|
27
|
+
const commandName = "DeleteLaunchConfigurationTemplateCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_DeleteLaunchConfigurationTemplateCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_DeleteLaunchConfigurationTemplateCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DeleteLaunchConfigurationTemplateCommand = DeleteLaunchConfigurationTemplateCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLaunchConfigurationTemplatesCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DescribeLaunchConfigurationTemplatesCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLaunchConfigurationTemplatesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DrsClient";
|
|
28
|
+
const commandName = "DescribeLaunchConfigurationTemplatesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_DescribeLaunchConfigurationTemplatesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_DescribeLaunchConfigurationTemplatesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeLaunchConfigurationTemplatesCommand = DescribeLaunchConfigurationTemplatesCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateLaunchConfigurationTemplateCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class UpdateLaunchConfigurationTemplateCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateLaunchConfigurationTemplateCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DrsClient";
|
|
28
|
+
const commandName = "UpdateLaunchConfigurationTemplateCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_UpdateLaunchConfigurationTemplateCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_UpdateLaunchConfigurationTemplateCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateLaunchConfigurationTemplateCommand = UpdateLaunchConfigurationTemplateCommand;
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateExtendedSourceServerCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateLaunchConfigurationTemplateCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateReplicationConfigurationTemplateCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteJobCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteLaunchConfigurationTemplateCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./DeleteRecoveryInstanceCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./DeleteReplicationConfigurationTemplateCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./DeleteSourceServerCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./DescribeJobLogItemsCommand"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./DescribeJobsCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DescribeLaunchConfigurationTemplatesCommand"), exports);
|
|
12
15
|
tslib_1.__exportStar(require("./DescribeRecoveryInstancesCommand"), exports);
|
|
13
16
|
tslib_1.__exportStar(require("./DescribeRecoverySnapshotsCommand"), exports);
|
|
14
17
|
tslib_1.__exportStar(require("./DescribeReplicationConfigurationTemplatesCommand"), exports);
|
|
@@ -34,5 +37,6 @@ tslib_1.__exportStar(require("./TerminateRecoveryInstancesCommand"), exports);
|
|
|
34
37
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
35
38
|
tslib_1.__exportStar(require("./UpdateFailbackReplicationConfigurationCommand"), exports);
|
|
36
39
|
tslib_1.__exportStar(require("./UpdateLaunchConfigurationCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./UpdateLaunchConfigurationTemplateCommand"), exports);
|
|
37
41
|
tslib_1.__exportStar(require("./UpdateReplicationConfigurationCommand"), exports);
|
|
38
42
|
tslib_1.__exportStar(require("./UpdateReplicationConfigurationTemplateCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateReplicationConfigurationRequestFilterSensitiveLog = exports.StopReplicationResponseFilterSensitiveLog = exports.StartReplicationResponseFilterSensitiveLog = exports.StartRecoveryResponseFilterSensitiveLog = exports.StartRecoveryRequestFilterSensitiveLog = exports.ReplicationConfigurationFilterSensitiveLog = exports.UpdateReplicationConfigurationTemplateRequestFilterSensitiveLog = exports.TerminateRecoveryInstancesResponseFilterSensitiveLog = exports.StartFailbackLaunchResponseFilterSensitiveLog = exports.StartFailbackLaunchRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListExtensibleSourceServersResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.RecoveryInstanceFilterSensitiveLog = exports.DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog = exports.DescribeJobsResponseFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.ReplicationConfigurationTemplateFilterSensitiveLog = exports.CreateReplicationConfigurationTemplateRequestFilterSensitiveLog = exports.CreateLaunchConfigurationTemplateResponseFilterSensitiveLog = exports.LaunchConfigurationTemplateFilterSensitiveLog = exports.CreateLaunchConfigurationTemplateRequestFilterSensitiveLog = exports.CreateExtendedSourceServerResponseFilterSensitiveLog = exports.SourceServerFilterSensitiveLog = exports.CreateExtendedSourceServerRequestFilterSensitiveLog = exports.ReplicationConfigurationReplicatedDiskStagingDiskType = exports.RecoverySnapshotsOrder = exports.OriginEnvironment = exports.FailbackState = exports.FailbackLaunchType = exports.EC2InstanceState = exports.RecoveryInstanceDataReplicationState = exports.RecoveryInstanceDataReplicationInitiationStepStatus = exports.RecoveryInstanceDataReplicationInitiationStepName = exports.FailbackReplicationError = exports.JobType = exports.JobStatus = exports.InitiatedBy = exports.JobLogEvent = exports.PITPolicyRuleUnits = exports.ReplicationConfigurationEbsEncryption = exports.ReplicationConfigurationDefaultLargeStagingDiskType = exports.ReplicationConfigurationDataPlaneRouting = exports.TargetInstanceTypeRightSizingMethod = exports.LaunchDisposition = exports.ValidationException = exports.ValidationExceptionReason = exports.UninitializedAccountException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ExtensionStatus = exports.ReplicationDirection = exports.LaunchStatus = exports.LastLaunchType = exports.LastLaunchResult = exports.DataReplicationState = exports.DataReplicationInitiationStepStatus = exports.DataReplicationInitiationStepName = exports.DataReplicationErrorString = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateReplicationConfigurationRequestFilterSensitiveLog = exports.StopReplicationResponseFilterSensitiveLog = exports.StartReplicationResponseFilterSensitiveLog = exports.StartRecoveryResponseFilterSensitiveLog = exports.StartRecoveryRequestFilterSensitiveLog = exports.ReplicationConfigurationFilterSensitiveLog = exports.UpdateReplicationConfigurationTemplateRequestFilterSensitiveLog = exports.TerminateRecoveryInstancesResponseFilterSensitiveLog = exports.StartFailbackLaunchResponseFilterSensitiveLog = exports.StartFailbackLaunchRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListExtensibleSourceServersResponseFilterSensitiveLog = exports.StagingSourceServerFilterSensitiveLog = exports.UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog = exports.DescribeSourceServersResponseFilterSensitiveLog = exports.DescribeReplicationConfigurationTemplatesResponseFilterSensitiveLog = exports.DescribeRecoveryInstancesResponseFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const DrsServiceException_1 = require("./DrsServiceException");
|
|
7
7
|
class AccessDeniedException extends DrsServiceException_1.DrsServiceException {
|
|
@@ -208,6 +208,14 @@ class ValidationException extends DrsServiceException_1.DrsServiceException {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
exports.ValidationException = ValidationException;
|
|
211
|
+
exports.LaunchDisposition = {
|
|
212
|
+
STARTED: "STARTED",
|
|
213
|
+
STOPPED: "STOPPED",
|
|
214
|
+
};
|
|
215
|
+
exports.TargetInstanceTypeRightSizingMethod = {
|
|
216
|
+
BASIC: "BASIC",
|
|
217
|
+
NONE: "NONE",
|
|
218
|
+
};
|
|
211
219
|
exports.ReplicationConfigurationDataPlaneRouting = {
|
|
212
220
|
PRIVATE_IP: "PRIVATE_IP",
|
|
213
221
|
PUBLIC_IP: "PUBLIC_IP",
|
|
@@ -358,14 +366,6 @@ exports.RecoverySnapshotsOrder = {
|
|
|
358
366
|
ASC: "ASC",
|
|
359
367
|
DESC: "DESC",
|
|
360
368
|
};
|
|
361
|
-
exports.LaunchDisposition = {
|
|
362
|
-
STARTED: "STARTED",
|
|
363
|
-
STOPPED: "STOPPED",
|
|
364
|
-
};
|
|
365
|
-
exports.TargetInstanceTypeRightSizingMethod = {
|
|
366
|
-
BASIC: "BASIC",
|
|
367
|
-
NONE: "NONE",
|
|
368
|
-
};
|
|
369
369
|
exports.ReplicationConfigurationReplicatedDiskStagingDiskType = {
|
|
370
370
|
AUTO: "AUTO",
|
|
371
371
|
GP2: "GP2",
|
|
@@ -390,6 +390,23 @@ const CreateExtendedSourceServerResponseFilterSensitiveLog = (obj) => ({
|
|
|
390
390
|
...(obj.sourceServer && { sourceServer: (0, exports.SourceServerFilterSensitiveLog)(obj.sourceServer) }),
|
|
391
391
|
});
|
|
392
392
|
exports.CreateExtendedSourceServerResponseFilterSensitiveLog = CreateExtendedSourceServerResponseFilterSensitiveLog;
|
|
393
|
+
const CreateLaunchConfigurationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
396
|
+
});
|
|
397
|
+
exports.CreateLaunchConfigurationTemplateRequestFilterSensitiveLog = CreateLaunchConfigurationTemplateRequestFilterSensitiveLog;
|
|
398
|
+
const LaunchConfigurationTemplateFilterSensitiveLog = (obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
401
|
+
});
|
|
402
|
+
exports.LaunchConfigurationTemplateFilterSensitiveLog = LaunchConfigurationTemplateFilterSensitiveLog;
|
|
403
|
+
const CreateLaunchConfigurationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
...(obj.launchConfigurationTemplate && {
|
|
406
|
+
launchConfigurationTemplate: (0, exports.LaunchConfigurationTemplateFilterSensitiveLog)(obj.launchConfigurationTemplate),
|
|
407
|
+
}),
|
|
408
|
+
});
|
|
409
|
+
exports.CreateLaunchConfigurationTemplateResponseFilterSensitiveLog = CreateLaunchConfigurationTemplateResponseFilterSensitiveLog;
|
|
393
410
|
const CreateReplicationConfigurationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
394
411
|
...obj,
|
|
395
412
|
...(obj.stagingAreaTags && { stagingAreaTags: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -412,6 +429,11 @@ const DescribeJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
412
429
|
...(obj.items && { items: obj.items.map((item) => (0, exports.JobFilterSensitiveLog)(item)) }),
|
|
413
430
|
});
|
|
414
431
|
exports.DescribeJobsResponseFilterSensitiveLog = DescribeJobsResponseFilterSensitiveLog;
|
|
432
|
+
const DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog = (obj) => ({
|
|
433
|
+
...obj,
|
|
434
|
+
...(obj.items && { items: obj.items.map((item) => (0, exports.LaunchConfigurationTemplateFilterSensitiveLog)(item)) }),
|
|
435
|
+
});
|
|
436
|
+
exports.DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog = DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog;
|
|
415
437
|
const RecoveryInstanceFilterSensitiveLog = (obj) => ({
|
|
416
438
|
...obj,
|
|
417
439
|
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -432,6 +454,13 @@ const DescribeSourceServersResponseFilterSensitiveLog = (obj) => ({
|
|
|
432
454
|
...(obj.items && { items: obj.items.map((item) => (0, exports.SourceServerFilterSensitiveLog)(item)) }),
|
|
433
455
|
});
|
|
434
456
|
exports.DescribeSourceServersResponseFilterSensitiveLog = DescribeSourceServersResponseFilterSensitiveLog;
|
|
457
|
+
const UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
458
|
+
...obj,
|
|
459
|
+
...(obj.launchConfigurationTemplate && {
|
|
460
|
+
launchConfigurationTemplate: (0, exports.LaunchConfigurationTemplateFilterSensitiveLog)(obj.launchConfigurationTemplate),
|
|
461
|
+
}),
|
|
462
|
+
});
|
|
463
|
+
exports.UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog = UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog;
|
|
435
464
|
const StagingSourceServerFilterSensitiveLog = (obj) => ({
|
|
436
465
|
...obj,
|
|
437
466
|
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeLaunchConfigurationTemplates = void 0;
|
|
4
|
+
const DescribeLaunchConfigurationTemplatesCommand_1 = require("../commands/DescribeLaunchConfigurationTemplatesCommand");
|
|
5
|
+
const DrsClient_1 = require("../DrsClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new DescribeLaunchConfigurationTemplatesCommand_1.DescribeLaunchConfigurationTemplatesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateDescribeLaunchConfigurationTemplates(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof DrsClient_1.DrsClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateDescribeLaunchConfigurationTemplates = paginateDescribeLaunchConfigurationTemplates;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeJobLogItemsPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeJobsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DescribeLaunchConfigurationTemplatesPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DescribeRecoveryInstancesPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DescribeRecoverySnapshotsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeReplicationConfigurationTemplatesPaginator"), exports);
|