@@ -6,12 +6,22 @@ import {
6
6
CreateExtendedSourceServerCommandInput ,
7
7
CreateExtendedSourceServerCommandOutput ,
8
8
} from "./commands/CreateExtendedSourceServerCommand" ;
9
+ import {
10
+ CreateLaunchConfigurationTemplateCommand ,
11
+ CreateLaunchConfigurationTemplateCommandInput ,
12
+ CreateLaunchConfigurationTemplateCommandOutput ,
13
+ } from "./commands/CreateLaunchConfigurationTemplateCommand" ;
9
14
import {
10
15
CreateReplicationConfigurationTemplateCommand ,
11
16
CreateReplicationConfigurationTemplateCommandInput ,
12
17
CreateReplicationConfigurationTemplateCommandOutput ,
13
18
} from "./commands/CreateReplicationConfigurationTemplateCommand" ;
14
19
import { DeleteJobCommand , DeleteJobCommandInput , DeleteJobCommandOutput } from "./commands/DeleteJobCommand" ;
20
+ import {
21
+ DeleteLaunchConfigurationTemplateCommand ,
22
+ DeleteLaunchConfigurationTemplateCommandInput ,
23
+ DeleteLaunchConfigurationTemplateCommandOutput ,
24
+ } from "./commands/DeleteLaunchConfigurationTemplateCommand" ;
15
25
import {
16
26
DeleteRecoveryInstanceCommand ,
17
27
DeleteRecoveryInstanceCommandInput ,
@@ -37,6 +47,11 @@ import {
37
47
DescribeJobsCommandInput ,
38
48
DescribeJobsCommandOutput ,
39
49
} from "./commands/DescribeJobsCommand" ;
50
+ import {
51
+ DescribeLaunchConfigurationTemplatesCommand ,
52
+ DescribeLaunchConfigurationTemplatesCommandInput ,
53
+ DescribeLaunchConfigurationTemplatesCommandOutput ,
54
+ } from "./commands/DescribeLaunchConfigurationTemplatesCommand" ;
40
55
import {
41
56
DescribeRecoveryInstancesCommand ,
42
57
DescribeRecoveryInstancesCommandInput ,
@@ -158,6 +173,11 @@ import {
158
173
UpdateLaunchConfigurationCommandInput ,
159
174
UpdateLaunchConfigurationCommandOutput ,
160
175
} from "./commands/UpdateLaunchConfigurationCommand" ;
176
+ import {
177
+ UpdateLaunchConfigurationTemplateCommand ,
178
+ UpdateLaunchConfigurationTemplateCommandInput ,
179
+ UpdateLaunchConfigurationTemplateCommandOutput ,
180
+ } from "./commands/UpdateLaunchConfigurationTemplateCommand" ;
161
181
import {
162
182
UpdateReplicationConfigurationCommand ,
163
183
UpdateReplicationConfigurationCommandInput ,
@@ -208,6 +228,39 @@ export class Drs extends DrsClient {
208
228
}
209
229
}
210
230
231
+ /**
232
+ * @public
233
+ * <p>Creates a new Launch Configuration Template.</p>
234
+ */
235
+ public createLaunchConfigurationTemplate (
236
+ args : CreateLaunchConfigurationTemplateCommandInput ,
237
+ options ?: __HttpHandlerOptions
238
+ ) : Promise < CreateLaunchConfigurationTemplateCommandOutput > ;
239
+ public createLaunchConfigurationTemplate (
240
+ args : CreateLaunchConfigurationTemplateCommandInput ,
241
+ cb : ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
242
+ ) : void ;
243
+ public createLaunchConfigurationTemplate (
244
+ args : CreateLaunchConfigurationTemplateCommandInput ,
245
+ options : __HttpHandlerOptions ,
246
+ cb : ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
247
+ ) : void ;
248
+ public createLaunchConfigurationTemplate (
249
+ args : CreateLaunchConfigurationTemplateCommandInput ,
250
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void ) ,
251
+ cb ?: ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
252
+ ) : Promise < CreateLaunchConfigurationTemplateCommandOutput > | void {
253
+ const command = new CreateLaunchConfigurationTemplateCommand ( args ) ;
254
+ if ( typeof optionsOrCb === "function" ) {
255
+ this . send ( command , optionsOrCb ) ;
256
+ } else if ( typeof cb === "function" ) {
257
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
258
+ this . send ( command , optionsOrCb || { } , cb ) ;
259
+ } else {
260
+ return this . send ( command , optionsOrCb ) ;
261
+ }
262
+ }
263
+
211
264
/**
212
265
* @public
213
266
* <p>Creates a new ReplicationConfigurationTemplate.</p>
@@ -270,6 +323,39 @@ export class Drs extends DrsClient {
270
323
}
271
324
}
272
325
326
+ /**
327
+ * @public
328
+ * <p>Deletes a single Launch Configuration Template by ID.</p>
329
+ */
330
+ public deleteLaunchConfigurationTemplate (
331
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
332
+ options ?: __HttpHandlerOptions
333
+ ) : Promise < DeleteLaunchConfigurationTemplateCommandOutput > ;
334
+ public deleteLaunchConfigurationTemplate (
335
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
336
+ cb : ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
337
+ ) : void ;
338
+ public deleteLaunchConfigurationTemplate (
339
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
340
+ options : __HttpHandlerOptions ,
341
+ cb : ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
342
+ ) : void ;
343
+ public deleteLaunchConfigurationTemplate (
344
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
345
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void ) ,
346
+ cb ?: ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
347
+ ) : Promise < DeleteLaunchConfigurationTemplateCommandOutput > | void {
348
+ const command = new DeleteLaunchConfigurationTemplateCommand ( args ) ;
349
+ if ( typeof optionsOrCb === "function" ) {
350
+ this . send ( command , optionsOrCb ) ;
351
+ } else if ( typeof cb === "function" ) {
352
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
353
+ this . send ( command , optionsOrCb || { } , cb ) ;
354
+ } else {
355
+ return this . send ( command , optionsOrCb ) ;
356
+ }
357
+ }
358
+
273
359
/**
274
360
* @public
275
361
* <p>Deletes a single Recovery Instance by ID. This deletes the Recovery Instance resource from Elastic Disaster Recovery. The Recovery Instance must be disconnected first in order to delete it.</p>
@@ -434,6 +520,39 @@ export class Drs extends DrsClient {
434
520
}
435
521
}
436
522
523
+ /**
524
+ * @public
525
+ * <p>Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs</p>
526
+ */
527
+ public describeLaunchConfigurationTemplates (
528
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
529
+ options ?: __HttpHandlerOptions
530
+ ) : Promise < DescribeLaunchConfigurationTemplatesCommandOutput > ;
531
+ public describeLaunchConfigurationTemplates (
532
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
533
+ cb : ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
534
+ ) : void ;
535
+ public describeLaunchConfigurationTemplates (
536
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
537
+ options : __HttpHandlerOptions ,
538
+ cb : ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
539
+ ) : void ;
540
+ public describeLaunchConfigurationTemplates (
541
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
542
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void ) ,
543
+ cb ?: ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
544
+ ) : Promise < DescribeLaunchConfigurationTemplatesCommandOutput > | void {
545
+ const command = new DescribeLaunchConfigurationTemplatesCommand ( args ) ;
546
+ if ( typeof optionsOrCb === "function" ) {
547
+ this . send ( command , optionsOrCb ) ;
548
+ } else if ( typeof cb === "function" ) {
549
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
550
+ this . send ( command , optionsOrCb || { } , cb ) ;
551
+ } else {
552
+ return this . send ( command , optionsOrCb ) ;
553
+ }
554
+ }
555
+
437
556
/**
438
557
* @public
439
558
* <p>Lists all Recovery Instances or multiple Recovery Instances by ID.</p>
@@ -1264,6 +1383,39 @@ export class Drs extends DrsClient {
1264
1383
}
1265
1384
}
1266
1385
1386
+ /**
1387
+ * @public
1388
+ * <p>Updates an existing Launch Configuration Template by ID.</p>
1389
+ */
1390
+ public updateLaunchConfigurationTemplate (
1391
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1392
+ options ?: __HttpHandlerOptions
1393
+ ) : Promise < UpdateLaunchConfigurationTemplateCommandOutput > ;
1394
+ public updateLaunchConfigurationTemplate (
1395
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1396
+ cb : ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1397
+ ) : void ;
1398
+ public updateLaunchConfigurationTemplate (
1399
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1400
+ options : __HttpHandlerOptions ,
1401
+ cb : ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1402
+ ) : void ;
1403
+ public updateLaunchConfigurationTemplate (
1404
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1405
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void ) ,
1406
+ cb ?: ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1407
+ ) : Promise < UpdateLaunchConfigurationTemplateCommandOutput > | void {
1408
+ const command = new UpdateLaunchConfigurationTemplateCommand ( args ) ;
1409
+ if ( typeof optionsOrCb === "function" ) {
1410
+ this . send ( command , optionsOrCb ) ;
1411
+ } else if ( typeof cb === "function" ) {
1412
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1413
+ this . send ( command , optionsOrCb || { } , cb ) ;
1414
+ } else {
1415
+ return this . send ( command , optionsOrCb ) ;
1416
+ }
1417
+ }
1418
+
1267
1419
/**
1268
1420
* @public
1269
1421
* <p>Allows you to update a ReplicationConfiguration by Source Server ID.</p>
0 commit comments