@@ -17,6 +17,11 @@ import {
17
17
CreateEntityCommandOutput ,
18
18
} from "./commands/CreateEntityCommand" ;
19
19
import { CreateSceneCommand , CreateSceneCommandInput , CreateSceneCommandOutput } from "./commands/CreateSceneCommand" ;
20
+ import {
21
+ CreateSyncJobCommand ,
22
+ CreateSyncJobCommandInput ,
23
+ CreateSyncJobCommandOutput ,
24
+ } from "./commands/CreateSyncJobCommand" ;
20
25
import {
21
26
CreateWorkspaceCommand ,
22
27
CreateWorkspaceCommandInput ,
@@ -33,6 +38,11 @@ import {
33
38
DeleteEntityCommandOutput ,
34
39
} from "./commands/DeleteEntityCommand" ;
35
40
import { DeleteSceneCommand , DeleteSceneCommandInput , DeleteSceneCommandOutput } from "./commands/DeleteSceneCommand" ;
41
+ import {
42
+ DeleteSyncJobCommand ,
43
+ DeleteSyncJobCommandInput ,
44
+ DeleteSyncJobCommandOutput ,
45
+ } from "./commands/DeleteSyncJobCommand" ;
36
46
import {
37
47
DeleteWorkspaceCommand ,
38
48
DeleteWorkspaceCommandInput ,
@@ -65,6 +75,7 @@ import {
65
75
GetPropertyValueHistoryCommandOutput ,
66
76
} from "./commands/GetPropertyValueHistoryCommand" ;
67
77
import { GetSceneCommand , GetSceneCommandInput , GetSceneCommandOutput } from "./commands/GetSceneCommand" ;
78
+ import { GetSyncJobCommand , GetSyncJobCommandInput , GetSyncJobCommandOutput } from "./commands/GetSyncJobCommand" ;
68
79
import {
69
80
GetWorkspaceCommand ,
70
81
GetWorkspaceCommandInput ,
@@ -81,6 +92,16 @@ import {
81
92
ListEntitiesCommandOutput ,
82
93
} from "./commands/ListEntitiesCommand" ;
83
94
import { ListScenesCommand , ListScenesCommandInput , ListScenesCommandOutput } from "./commands/ListScenesCommand" ;
95
+ import {
96
+ ListSyncJobsCommand ,
97
+ ListSyncJobsCommandInput ,
98
+ ListSyncJobsCommandOutput ,
99
+ } from "./commands/ListSyncJobsCommand" ;
100
+ import {
101
+ ListSyncResourcesCommand ,
102
+ ListSyncResourcesCommandInput ,
103
+ ListSyncResourcesCommandOutput ,
104
+ } from "./commands/ListSyncResourcesCommand" ;
84
105
import {
85
106
ListTagsForResourceCommand ,
86
107
ListTagsForResourceCommandInput ,
@@ -247,6 +268,38 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
247
268
}
248
269
}
249
270
271
+ /**
272
+ * <p>This action creates a SyncJob.</p>
273
+ */
274
+ public createSyncJob (
275
+ args : CreateSyncJobCommandInput ,
276
+ options ?: __HttpHandlerOptions
277
+ ) : Promise < CreateSyncJobCommandOutput > ;
278
+ public createSyncJob (
279
+ args : CreateSyncJobCommandInput ,
280
+ cb : ( err : any , data ?: CreateSyncJobCommandOutput ) => void
281
+ ) : void ;
282
+ public createSyncJob (
283
+ args : CreateSyncJobCommandInput ,
284
+ options : __HttpHandlerOptions ,
285
+ cb : ( err : any , data ?: CreateSyncJobCommandOutput ) => void
286
+ ) : void ;
287
+ public createSyncJob (
288
+ args : CreateSyncJobCommandInput ,
289
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateSyncJobCommandOutput ) => void ) ,
290
+ cb ?: ( err : any , data ?: CreateSyncJobCommandOutput ) => void
291
+ ) : Promise < CreateSyncJobCommandOutput > | void {
292
+ const command = new CreateSyncJobCommand ( args ) ;
293
+ if ( typeof optionsOrCb === "function" ) {
294
+ this . send ( command , optionsOrCb ) ;
295
+ } else if ( typeof cb === "function" ) {
296
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
297
+ this . send ( command , optionsOrCb || { } , cb ) ;
298
+ } else {
299
+ return this . send ( command , optionsOrCb ) ;
300
+ }
301
+ }
302
+
250
303
/**
251
304
* <p>Creates a workplace.</p>
252
305
*/
@@ -366,6 +419,38 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
366
419
}
367
420
}
368
421
422
+ /**
423
+ * <p>Delete the SyncJob.</p>
424
+ */
425
+ public deleteSyncJob (
426
+ args : DeleteSyncJobCommandInput ,
427
+ options ?: __HttpHandlerOptions
428
+ ) : Promise < DeleteSyncJobCommandOutput > ;
429
+ public deleteSyncJob (
430
+ args : DeleteSyncJobCommandInput ,
431
+ cb : ( err : any , data ?: DeleteSyncJobCommandOutput ) => void
432
+ ) : void ;
433
+ public deleteSyncJob (
434
+ args : DeleteSyncJobCommandInput ,
435
+ options : __HttpHandlerOptions ,
436
+ cb : ( err : any , data ?: DeleteSyncJobCommandOutput ) => void
437
+ ) : void ;
438
+ public deleteSyncJob (
439
+ args : DeleteSyncJobCommandInput ,
440
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteSyncJobCommandOutput ) => void ) ,
441
+ cb ?: ( err : any , data ?: DeleteSyncJobCommandOutput ) => void
442
+ ) : Promise < DeleteSyncJobCommandOutput > | void {
443
+ const command = new DeleteSyncJobCommand ( args ) ;
444
+ if ( typeof optionsOrCb === "function" ) {
445
+ this . send ( command , optionsOrCb ) ;
446
+ } else if ( typeof cb === "function" ) {
447
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
448
+ this . send ( command , optionsOrCb || { } , cb ) ;
449
+ } else {
450
+ return this . send ( command , optionsOrCb ) ;
451
+ }
452
+ }
453
+
369
454
/**
370
455
* <p>Deletes a workspace.</p>
371
456
*/
@@ -610,6 +695,32 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
610
695
}
611
696
}
612
697
698
+ /**
699
+ * <p>Gets the SyncJob.</p>
700
+ */
701
+ public getSyncJob ( args : GetSyncJobCommandInput , options ?: __HttpHandlerOptions ) : Promise < GetSyncJobCommandOutput > ;
702
+ public getSyncJob ( args : GetSyncJobCommandInput , cb : ( err : any , data ?: GetSyncJobCommandOutput ) => void ) : void ;
703
+ public getSyncJob (
704
+ args : GetSyncJobCommandInput ,
705
+ options : __HttpHandlerOptions ,
706
+ cb : ( err : any , data ?: GetSyncJobCommandOutput ) => void
707
+ ) : void ;
708
+ public getSyncJob (
709
+ args : GetSyncJobCommandInput ,
710
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetSyncJobCommandOutput ) => void ) ,
711
+ cb ?: ( err : any , data ?: GetSyncJobCommandOutput ) => void
712
+ ) : Promise < GetSyncJobCommandOutput > | void {
713
+ const command = new GetSyncJobCommand ( args ) ;
714
+ if ( typeof optionsOrCb === "function" ) {
715
+ this . send ( command , optionsOrCb ) ;
716
+ } else if ( typeof cb === "function" ) {
717
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
718
+ this . send ( command , optionsOrCb || { } , cb ) ;
719
+ } else {
720
+ return this . send ( command , optionsOrCb ) ;
721
+ }
722
+ }
723
+
613
724
/**
614
725
* <p>Retrieves information about a workspace.</p>
615
726
*/
@@ -726,6 +837,67 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
726
837
}
727
838
}
728
839
840
+ /**
841
+ * <p>List all SyncJobs.</p>
842
+ */
843
+ public listSyncJobs (
844
+ args : ListSyncJobsCommandInput ,
845
+ options ?: __HttpHandlerOptions
846
+ ) : Promise < ListSyncJobsCommandOutput > ;
847
+ public listSyncJobs ( args : ListSyncJobsCommandInput , cb : ( err : any , data ?: ListSyncJobsCommandOutput ) => void ) : void ;
848
+ public listSyncJobs (
849
+ args : ListSyncJobsCommandInput ,
850
+ options : __HttpHandlerOptions ,
851
+ cb : ( err : any , data ?: ListSyncJobsCommandOutput ) => void
852
+ ) : void ;
853
+ public listSyncJobs (
854
+ args : ListSyncJobsCommandInput ,
855
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListSyncJobsCommandOutput ) => void ) ,
856
+ cb ?: ( err : any , data ?: ListSyncJobsCommandOutput ) => void
857
+ ) : Promise < ListSyncJobsCommandOutput > | void {
858
+ const command = new ListSyncJobsCommand ( args ) ;
859
+ if ( typeof optionsOrCb === "function" ) {
860
+ this . send ( command , optionsOrCb ) ;
861
+ } else if ( typeof cb === "function" ) {
862
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
863
+ this . send ( command , optionsOrCb || { } , cb ) ;
864
+ } else {
865
+ return this . send ( command , optionsOrCb ) ;
866
+ }
867
+ }
868
+
869
+ /**
870
+ * <p>Lists the sync resources.</p>
871
+ */
872
+ public listSyncResources (
873
+ args : ListSyncResourcesCommandInput ,
874
+ options ?: __HttpHandlerOptions
875
+ ) : Promise < ListSyncResourcesCommandOutput > ;
876
+ public listSyncResources (
877
+ args : ListSyncResourcesCommandInput ,
878
+ cb : ( err : any , data ?: ListSyncResourcesCommandOutput ) => void
879
+ ) : void ;
880
+ public listSyncResources (
881
+ args : ListSyncResourcesCommandInput ,
882
+ options : __HttpHandlerOptions ,
883
+ cb : ( err : any , data ?: ListSyncResourcesCommandOutput ) => void
884
+ ) : void ;
885
+ public listSyncResources (
886
+ args : ListSyncResourcesCommandInput ,
887
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListSyncResourcesCommandOutput ) => void ) ,
888
+ cb ?: ( err : any , data ?: ListSyncResourcesCommandOutput ) => void
889
+ ) : Promise < ListSyncResourcesCommandOutput > | void {
890
+ const command = new ListSyncResourcesCommand ( args ) ;
891
+ if ( typeof optionsOrCb === "function" ) {
892
+ this . send ( command , optionsOrCb ) ;
893
+ } else if ( typeof cb === "function" ) {
894
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
895
+ this . send ( command , optionsOrCb || { } , cb ) ;
896
+ } else {
897
+ return this . send ( command , optionsOrCb ) ;
898
+ }
899
+ }
900
+
729
901
/**
730
902
* <p>Lists all tags associated with a resource.</p>
731
903
*/
0 commit comments