@@ -6,12 +6,22 @@ import {
6
6
ChangeServerLifeCycleStateCommandInput ,
7
7
ChangeServerLifeCycleStateCommandOutput ,
8
8
} from "./commands/ChangeServerLifeCycleStateCommand" ;
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
DeleteReplicationConfigurationTemplateCommand ,
17
27
DeleteReplicationConfigurationTemplateCommandInput ,
@@ -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
DescribeReplicationConfigurationTemplatesCommand ,
42
57
DescribeReplicationConfigurationTemplatesCommandInput ,
@@ -119,6 +134,11 @@ import {
119
134
UpdateLaunchConfigurationCommandInput ,
120
135
UpdateLaunchConfigurationCommandOutput ,
121
136
} from "./commands/UpdateLaunchConfigurationCommand" ;
137
+ import {
138
+ UpdateLaunchConfigurationTemplateCommand ,
139
+ UpdateLaunchConfigurationTemplateCommandInput ,
140
+ UpdateLaunchConfigurationTemplateCommandOutput ,
141
+ } from "./commands/UpdateLaunchConfigurationTemplateCommand" ;
122
142
import {
123
143
UpdateReplicationConfigurationCommand ,
124
144
UpdateReplicationConfigurationCommandInput ,
@@ -172,6 +192,38 @@ export class Mgn extends MgnClient {
172
192
}
173
193
}
174
194
195
+ /**
196
+ * <p>Creates a new ReplicationConfigurationTemplate.</p>
197
+ */
198
+ public createLaunchConfigurationTemplate (
199
+ args : CreateLaunchConfigurationTemplateCommandInput ,
200
+ options ?: __HttpHandlerOptions
201
+ ) : Promise < CreateLaunchConfigurationTemplateCommandOutput > ;
202
+ public createLaunchConfigurationTemplate (
203
+ args : CreateLaunchConfigurationTemplateCommandInput ,
204
+ cb : ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
205
+ ) : void ;
206
+ public createLaunchConfigurationTemplate (
207
+ args : CreateLaunchConfigurationTemplateCommandInput ,
208
+ options : __HttpHandlerOptions ,
209
+ cb : ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
210
+ ) : void ;
211
+ public createLaunchConfigurationTemplate (
212
+ args : CreateLaunchConfigurationTemplateCommandInput ,
213
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void ) ,
214
+ cb ?: ( err : any , data ?: CreateLaunchConfigurationTemplateCommandOutput ) => void
215
+ ) : Promise < CreateLaunchConfigurationTemplateCommandOutput > | void {
216
+ const command = new CreateLaunchConfigurationTemplateCommand ( args ) ;
217
+ if ( typeof optionsOrCb === "function" ) {
218
+ this . send ( command , optionsOrCb ) ;
219
+ } else if ( typeof cb === "function" ) {
220
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
221
+ this . send ( command , optionsOrCb || { } , cb ) ;
222
+ } else {
223
+ return this . send ( command , optionsOrCb ) ;
224
+ }
225
+ }
226
+
175
227
/**
176
228
* <p>Creates a new ReplicationConfigurationTemplate.</p>
177
229
*/
@@ -232,6 +284,38 @@ export class Mgn extends MgnClient {
232
284
}
233
285
}
234
286
287
+ /**
288
+ * <p>Creates a new ReplicationConfigurationTemplate.</p>
289
+ */
290
+ public deleteLaunchConfigurationTemplate (
291
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
292
+ options ?: __HttpHandlerOptions
293
+ ) : Promise < DeleteLaunchConfigurationTemplateCommandOutput > ;
294
+ public deleteLaunchConfigurationTemplate (
295
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
296
+ cb : ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
297
+ ) : void ;
298
+ public deleteLaunchConfigurationTemplate (
299
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
300
+ options : __HttpHandlerOptions ,
301
+ cb : ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
302
+ ) : void ;
303
+ public deleteLaunchConfigurationTemplate (
304
+ args : DeleteLaunchConfigurationTemplateCommandInput ,
305
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void ) ,
306
+ cb ?: ( err : any , data ?: DeleteLaunchConfigurationTemplateCommandOutput ) => void
307
+ ) : Promise < DeleteLaunchConfigurationTemplateCommandOutput > | void {
308
+ const command = new DeleteLaunchConfigurationTemplateCommand ( args ) ;
309
+ if ( typeof optionsOrCb === "function" ) {
310
+ this . send ( command , optionsOrCb ) ;
311
+ } else if ( typeof cb === "function" ) {
312
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
313
+ this . send ( command , optionsOrCb || { } , cb ) ;
314
+ } else {
315
+ return this . send ( command , optionsOrCb ) ;
316
+ }
317
+ }
318
+
235
319
/**
236
320
* <p>Deletes a single Replication Configuration Template by ID</p>
237
321
*/
@@ -391,6 +475,38 @@ export class Mgn extends MgnClient {
391
475
}
392
476
}
393
477
478
+ /**
479
+ * <p>Creates a new ReplicationConfigurationTemplate.</p>
480
+ */
481
+ public describeLaunchConfigurationTemplates (
482
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
483
+ options ?: __HttpHandlerOptions
484
+ ) : Promise < DescribeLaunchConfigurationTemplatesCommandOutput > ;
485
+ public describeLaunchConfigurationTemplates (
486
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
487
+ cb : ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
488
+ ) : void ;
489
+ public describeLaunchConfigurationTemplates (
490
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
491
+ options : __HttpHandlerOptions ,
492
+ cb : ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
493
+ ) : void ;
494
+ public describeLaunchConfigurationTemplates (
495
+ args : DescribeLaunchConfigurationTemplatesCommandInput ,
496
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void ) ,
497
+ cb ?: ( err : any , data ?: DescribeLaunchConfigurationTemplatesCommandOutput ) => void
498
+ ) : Promise < DescribeLaunchConfigurationTemplatesCommandOutput > | void {
499
+ const command = new DescribeLaunchConfigurationTemplatesCommand ( args ) ;
500
+ if ( typeof optionsOrCb === "function" ) {
501
+ this . send ( command , optionsOrCb ) ;
502
+ } else if ( typeof cb === "function" ) {
503
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
504
+ this . send ( command , optionsOrCb || { } , cb ) ;
505
+ } else {
506
+ return this . send ( command , optionsOrCb ) ;
507
+ }
508
+ }
509
+
394
510
/**
395
511
* <p>Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.</p>
396
512
*/
@@ -954,6 +1070,38 @@ export class Mgn extends MgnClient {
954
1070
}
955
1071
}
956
1072
1073
+ /**
1074
+ * <p>Creates a new ReplicationConfigurationTemplate.</p>
1075
+ */
1076
+ public updateLaunchConfigurationTemplate (
1077
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1078
+ options ?: __HttpHandlerOptions
1079
+ ) : Promise < UpdateLaunchConfigurationTemplateCommandOutput > ;
1080
+ public updateLaunchConfigurationTemplate (
1081
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1082
+ cb : ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1083
+ ) : void ;
1084
+ public updateLaunchConfigurationTemplate (
1085
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1086
+ options : __HttpHandlerOptions ,
1087
+ cb : ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1088
+ ) : void ;
1089
+ public updateLaunchConfigurationTemplate (
1090
+ args : UpdateLaunchConfigurationTemplateCommandInput ,
1091
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void ) ,
1092
+ cb ?: ( err : any , data ?: UpdateLaunchConfigurationTemplateCommandOutput ) => void
1093
+ ) : Promise < UpdateLaunchConfigurationTemplateCommandOutput > | void {
1094
+ const command = new UpdateLaunchConfigurationTemplateCommand ( args ) ;
1095
+ if ( typeof optionsOrCb === "function" ) {
1096
+ this . send ( command , optionsOrCb ) ;
1097
+ } else if ( typeof cb === "function" ) {
1098
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1099
+ this . send ( command , optionsOrCb || { } , cb ) ;
1100
+ } else {
1101
+ return this . send ( command , optionsOrCb ) ;
1102
+ }
1103
+ }
1104
+
957
1105
/**
958
1106
* <p>Allows you to update multiple ReplicationConfigurations by Source Server ID.</p>
959
1107
*/
0 commit comments