@@ -6,12 +6,22 @@ import {
66 ChangeServerLifeCycleStateCommandInput ,
77 ChangeServerLifeCycleStateCommandOutput ,
88} from "./commands/ChangeServerLifeCycleStateCommand" ;
9+ import {
10+ CreateLaunchConfigurationTemplateCommand ,
11+ CreateLaunchConfigurationTemplateCommandInput ,
12+ CreateLaunchConfigurationTemplateCommandOutput ,
13+ } from "./commands/CreateLaunchConfigurationTemplateCommand" ;
914import {
1015 CreateReplicationConfigurationTemplateCommand ,
1116 CreateReplicationConfigurationTemplateCommandInput ,
1217 CreateReplicationConfigurationTemplateCommandOutput ,
1318} from "./commands/CreateReplicationConfigurationTemplateCommand" ;
1419import { DeleteJobCommand , DeleteJobCommandInput , DeleteJobCommandOutput } from "./commands/DeleteJobCommand" ;
20+ import {
21+ DeleteLaunchConfigurationTemplateCommand ,
22+ DeleteLaunchConfigurationTemplateCommandInput ,
23+ DeleteLaunchConfigurationTemplateCommandOutput ,
24+ } from "./commands/DeleteLaunchConfigurationTemplateCommand" ;
1525import {
1626 DeleteReplicationConfigurationTemplateCommand ,
1727 DeleteReplicationConfigurationTemplateCommandInput ,
@@ -37,6 +47,11 @@ import {
3747 DescribeJobsCommandInput ,
3848 DescribeJobsCommandOutput ,
3949} from "./commands/DescribeJobsCommand" ;
50+ import {
51+ DescribeLaunchConfigurationTemplatesCommand ,
52+ DescribeLaunchConfigurationTemplatesCommandInput ,
53+ DescribeLaunchConfigurationTemplatesCommandOutput ,
54+ } from "./commands/DescribeLaunchConfigurationTemplatesCommand" ;
4055import {
4156 DescribeReplicationConfigurationTemplatesCommand ,
4257 DescribeReplicationConfigurationTemplatesCommandInput ,
@@ -119,6 +134,11 @@ import {
119134 UpdateLaunchConfigurationCommandInput ,
120135 UpdateLaunchConfigurationCommandOutput ,
121136} from "./commands/UpdateLaunchConfigurationCommand" ;
137+ import {
138+ UpdateLaunchConfigurationTemplateCommand ,
139+ UpdateLaunchConfigurationTemplateCommandInput ,
140+ UpdateLaunchConfigurationTemplateCommandOutput ,
141+ } from "./commands/UpdateLaunchConfigurationTemplateCommand" ;
122142import {
123143 UpdateReplicationConfigurationCommand ,
124144 UpdateReplicationConfigurationCommandInput ,
@@ -172,6 +192,38 @@ export class Mgn extends MgnClient {
172192 }
173193 }
174194
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+
175227 /**
176228 * <p>Creates a new ReplicationConfigurationTemplate.</p>
177229 */
@@ -232,6 +284,38 @@ export class Mgn extends MgnClient {
232284 }
233285 }
234286
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+
235319 /**
236320 * <p>Deletes a single Replication Configuration Template by ID</p>
237321 */
@@ -391,6 +475,38 @@ export class Mgn extends MgnClient {
391475 }
392476 }
393477
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+
394510 /**
395511 * <p>Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.</p>
396512 */
@@ -954,6 +1070,38 @@ export class Mgn extends MgnClient {
9541070 }
9551071 }
9561072
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+
9571105 /**
9581106 * <p>Allows you to update multiple ReplicationConfigurations by Source Server ID.</p>
9591107 */
0 commit comments