@@ -13,6 +13,11 @@ import {
13
13
DeleteConnectorProfileCommandOutput ,
14
14
} from "./commands/DeleteConnectorProfileCommand" ;
15
15
import { DeleteFlowCommand , DeleteFlowCommandInput , DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand" ;
16
+ import {
17
+ DescribeConnectorCommand ,
18
+ DescribeConnectorCommandInput ,
19
+ DescribeConnectorCommandOutput ,
20
+ } from "./commands/DescribeConnectorCommand" ;
16
21
import {
17
22
DescribeConnectorEntityCommand ,
18
23
DescribeConnectorEntityCommandInput ,
@@ -43,15 +48,30 @@ import {
43
48
ListConnectorEntitiesCommandInput ,
44
49
ListConnectorEntitiesCommandOutput ,
45
50
} from "./commands/ListConnectorEntitiesCommand" ;
51
+ import {
52
+ ListConnectorsCommand ,
53
+ ListConnectorsCommandInput ,
54
+ ListConnectorsCommandOutput ,
55
+ } from "./commands/ListConnectorsCommand" ;
46
56
import { ListFlowsCommand , ListFlowsCommandInput , ListFlowsCommandOutput } from "./commands/ListFlowsCommand" ;
47
57
import {
48
58
ListTagsForResourceCommand ,
49
59
ListTagsForResourceCommandInput ,
50
60
ListTagsForResourceCommandOutput ,
51
61
} from "./commands/ListTagsForResourceCommand" ;
62
+ import {
63
+ RegisterConnectorCommand ,
64
+ RegisterConnectorCommandInput ,
65
+ RegisterConnectorCommandOutput ,
66
+ } from "./commands/RegisterConnectorCommand" ;
52
67
import { StartFlowCommand , StartFlowCommandInput , StartFlowCommandOutput } from "./commands/StartFlowCommand" ;
53
68
import { StopFlowCommand , StopFlowCommandInput , StopFlowCommandOutput } from "./commands/StopFlowCommand" ;
54
69
import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
70
+ import {
71
+ UnregisterConnectorCommand ,
72
+ UnregisterConnectorCommandInput ,
73
+ UnregisterConnectorCommandOutput ,
74
+ } from "./commands/UnregisterConnectorCommand" ;
55
75
import {
56
76
UntagResourceCommand ,
57
77
UntagResourceCommandInput ,
@@ -109,10 +129,10 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
109
129
*/
110
130
export class Appflow extends AppflowClient {
111
131
/**
112
- * <p> Creates a new connector profile associated with your Amazon Web Services account. There is a soft quota
113
- * of 100 connector profiles per Amazon Web Services account. If you need more connector profiles than this quota
114
- * allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support
115
- * channel. </p>
132
+ * <p> Creates a new connector profile associated with your Amazon Web Services account. There
133
+ * is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
134
+ * connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team
135
+ * through the Amazon AppFlow support channel. </p>
116
136
*/
117
137
public createConnectorProfile (
118
138
args : CreateConnectorProfileCommandInput ,
@@ -232,6 +252,40 @@ export class Appflow extends AppflowClient {
232
252
}
233
253
}
234
254
255
+ /**
256
+ * <p>Describes the given custom connector registered in your Amazon Web Services account. This
257
+ * API can be used for custom connectors that are registered in your account and also for Amazon
258
+ * authored connectors.</p>
259
+ */
260
+ public describeConnector (
261
+ args : DescribeConnectorCommandInput ,
262
+ options ?: __HttpHandlerOptions
263
+ ) : Promise < DescribeConnectorCommandOutput > ;
264
+ public describeConnector (
265
+ args : DescribeConnectorCommandInput ,
266
+ cb : ( err : any , data ?: DescribeConnectorCommandOutput ) => void
267
+ ) : void ;
268
+ public describeConnector (
269
+ args : DescribeConnectorCommandInput ,
270
+ options : __HttpHandlerOptions ,
271
+ cb : ( err : any , data ?: DescribeConnectorCommandOutput ) => void
272
+ ) : void ;
273
+ public describeConnector (
274
+ args : DescribeConnectorCommandInput ,
275
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeConnectorCommandOutput ) => void ) ,
276
+ cb ?: ( err : any , data ?: DescribeConnectorCommandOutput ) => void
277
+ ) : Promise < DescribeConnectorCommandOutput > | void {
278
+ const command = new DescribeConnectorCommand ( args ) ;
279
+ if ( typeof optionsOrCb === "function" ) {
280
+ this . send ( command , optionsOrCb ) ;
281
+ } else if ( typeof cb === "function" ) {
282
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
283
+ this . send ( command , optionsOrCb || { } , cb ) ;
284
+ } else {
285
+ return this . send ( command , optionsOrCb ) ;
286
+ }
287
+ }
288
+
235
289
/**
236
290
* <p> Provides details regarding the entity used with the connector, with a description of the
237
291
* data model for each entity. </p>
@@ -433,6 +487,40 @@ export class Appflow extends AppflowClient {
433
487
}
434
488
}
435
489
490
+ /**
491
+ * <p>Returns the list of all registered custom connectors in your Amazon Web Services account.
492
+ * This API lists only custom connectors registered in this account, not the Amazon Web Services
493
+ * authored connectors. </p>
494
+ */
495
+ public listConnectors (
496
+ args : ListConnectorsCommandInput ,
497
+ options ?: __HttpHandlerOptions
498
+ ) : Promise < ListConnectorsCommandOutput > ;
499
+ public listConnectors (
500
+ args : ListConnectorsCommandInput ,
501
+ cb : ( err : any , data ?: ListConnectorsCommandOutput ) => void
502
+ ) : void ;
503
+ public listConnectors (
504
+ args : ListConnectorsCommandInput ,
505
+ options : __HttpHandlerOptions ,
506
+ cb : ( err : any , data ?: ListConnectorsCommandOutput ) => void
507
+ ) : void ;
508
+ public listConnectors (
509
+ args : ListConnectorsCommandInput ,
510
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListConnectorsCommandOutput ) => void ) ,
511
+ cb ?: ( err : any , data ?: ListConnectorsCommandOutput ) => void
512
+ ) : Promise < ListConnectorsCommandOutput > | void {
513
+ const command = new ListConnectorsCommand ( args ) ;
514
+ if ( typeof optionsOrCb === "function" ) {
515
+ this . send ( command , optionsOrCb ) ;
516
+ } else if ( typeof cb === "function" ) {
517
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
518
+ this . send ( command , optionsOrCb || { } , cb ) ;
519
+ } else {
520
+ return this . send ( command , optionsOrCb ) ;
521
+ }
522
+ }
523
+
436
524
/**
437
525
* <p> Lists all of the flows associated with your account. </p>
438
526
*/
@@ -491,6 +579,39 @@ export class Appflow extends AppflowClient {
491
579
}
492
580
}
493
581
582
+ /**
583
+ * <p>Registers a new connector with your Amazon Web Services account. Before you can register
584
+ * the connector, you must deploy lambda in your account.</p>
585
+ */
586
+ public registerConnector (
587
+ args : RegisterConnectorCommandInput ,
588
+ options ?: __HttpHandlerOptions
589
+ ) : Promise < RegisterConnectorCommandOutput > ;
590
+ public registerConnector (
591
+ args : RegisterConnectorCommandInput ,
592
+ cb : ( err : any , data ?: RegisterConnectorCommandOutput ) => void
593
+ ) : void ;
594
+ public registerConnector (
595
+ args : RegisterConnectorCommandInput ,
596
+ options : __HttpHandlerOptions ,
597
+ cb : ( err : any , data ?: RegisterConnectorCommandOutput ) => void
598
+ ) : void ;
599
+ public registerConnector (
600
+ args : RegisterConnectorCommandInput ,
601
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: RegisterConnectorCommandOutput ) => void ) ,
602
+ cb ?: ( err : any , data ?: RegisterConnectorCommandOutput ) => void
603
+ ) : Promise < RegisterConnectorCommandOutput > | void {
604
+ const command = new RegisterConnectorCommand ( args ) ;
605
+ if ( typeof optionsOrCb === "function" ) {
606
+ this . send ( command , optionsOrCb ) ;
607
+ } else if ( typeof cb === "function" ) {
608
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
609
+ this . send ( command , optionsOrCb || { } , cb ) ;
610
+ } else {
611
+ return this . send ( command , optionsOrCb ) ;
612
+ }
613
+ }
614
+
494
615
/**
495
616
* <p> Activates an existing flow. For on-demand flows, this operation runs the flow
496
617
* immediately. For schedule and event-triggered flows, this operation activates the flow. </p>
@@ -572,6 +693,39 @@ export class Appflow extends AppflowClient {
572
693
}
573
694
}
574
695
696
+ /**
697
+ * <p>Unregisters the custom connector registered in your account that matches the
698
+ * connectorLabel provided in the request.</p>
699
+ */
700
+ public unregisterConnector (
701
+ args : UnregisterConnectorCommandInput ,
702
+ options ?: __HttpHandlerOptions
703
+ ) : Promise < UnregisterConnectorCommandOutput > ;
704
+ public unregisterConnector (
705
+ args : UnregisterConnectorCommandInput ,
706
+ cb : ( err : any , data ?: UnregisterConnectorCommandOutput ) => void
707
+ ) : void ;
708
+ public unregisterConnector (
709
+ args : UnregisterConnectorCommandInput ,
710
+ options : __HttpHandlerOptions ,
711
+ cb : ( err : any , data ?: UnregisterConnectorCommandOutput ) => void
712
+ ) : void ;
713
+ public unregisterConnector (
714
+ args : UnregisterConnectorCommandInput ,
715
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UnregisterConnectorCommandOutput ) => void ) ,
716
+ cb ?: ( err : any , data ?: UnregisterConnectorCommandOutput ) => void
717
+ ) : Promise < UnregisterConnectorCommandOutput > | void {
718
+ const command = new UnregisterConnectorCommand ( args ) ;
719
+ if ( typeof optionsOrCb === "function" ) {
720
+ this . send ( command , optionsOrCb ) ;
721
+ } else if ( typeof cb === "function" ) {
722
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
723
+ this . send ( command , optionsOrCb || { } , cb ) ;
724
+ } else {
725
+ return this . send ( command , optionsOrCb ) ;
726
+ }
727
+ }
728
+
575
729
/**
576
730
* <p> Removes a tag from the specified flow. </p>
577
731
*/
0 commit comments