@@ -13,6 +13,11 @@ import {
1313 DeleteConnectorProfileCommandOutput ,
1414} from "./commands/DeleteConnectorProfileCommand" ;
1515import { DeleteFlowCommand , DeleteFlowCommandInput , DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand" ;
16+ import {
17+ DescribeConnectorCommand ,
18+ DescribeConnectorCommandInput ,
19+ DescribeConnectorCommandOutput ,
20+ } from "./commands/DescribeConnectorCommand" ;
1621import {
1722 DescribeConnectorEntityCommand ,
1823 DescribeConnectorEntityCommandInput ,
@@ -43,15 +48,30 @@ import {
4348 ListConnectorEntitiesCommandInput ,
4449 ListConnectorEntitiesCommandOutput ,
4550} from "./commands/ListConnectorEntitiesCommand" ;
51+ import {
52+ ListConnectorsCommand ,
53+ ListConnectorsCommandInput ,
54+ ListConnectorsCommandOutput ,
55+ } from "./commands/ListConnectorsCommand" ;
4656import { ListFlowsCommand , ListFlowsCommandInput , ListFlowsCommandOutput } from "./commands/ListFlowsCommand" ;
4757import {
4858 ListTagsForResourceCommand ,
4959 ListTagsForResourceCommandInput ,
5060 ListTagsForResourceCommandOutput ,
5161} from "./commands/ListTagsForResourceCommand" ;
62+ import {
63+ RegisterConnectorCommand ,
64+ RegisterConnectorCommandInput ,
65+ RegisterConnectorCommandOutput ,
66+ } from "./commands/RegisterConnectorCommand" ;
5267import { StartFlowCommand , StartFlowCommandInput , StartFlowCommandOutput } from "./commands/StartFlowCommand" ;
5368import { StopFlowCommand , StopFlowCommandInput , StopFlowCommandOutput } from "./commands/StopFlowCommand" ;
5469import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
70+ import {
71+ UnregisterConnectorCommand ,
72+ UnregisterConnectorCommandInput ,
73+ UnregisterConnectorCommandOutput ,
74+ } from "./commands/UnregisterConnectorCommand" ;
5575import {
5676 UntagResourceCommand ,
5777 UntagResourceCommandInput ,
@@ -109,10 +129,10 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
109129 */
110130export class Appflow extends AppflowClient {
111131 /**
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>
116136 */
117137 public createConnectorProfile (
118138 args : CreateConnectorProfileCommandInput ,
@@ -232,6 +252,40 @@ export class Appflow extends AppflowClient {
232252 }
233253 }
234254
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+
235289 /**
236290 * <p> Provides details regarding the entity used with the connector, with a description of the
237291 * data model for each entity. </p>
@@ -433,6 +487,40 @@ export class Appflow extends AppflowClient {
433487 }
434488 }
435489
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+
436524 /**
437525 * <p> Lists all of the flows associated with your account. </p>
438526 */
@@ -491,6 +579,39 @@ export class Appflow extends AppflowClient {
491579 }
492580 }
493581
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+
494615 /**
495616 * <p> Activates an existing flow. For on-demand flows, this operation runs the flow
496617 * immediately. For schedule and event-triggered flows, this operation activates the flow. </p>
@@ -572,6 +693,39 @@ export class Appflow extends AppflowClient {
572693 }
573694 }
574695
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+
575729 /**
576730 * <p> Removes a tag from the specified flow. </p>
577731 */
0 commit comments