import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AppIntegrationsClient } from "./AppIntegrationsClient" ; import { CreateDataIntegrationCommand , CreateDataIntegrationCommandInput , CreateDataIntegrationCommandOutput , } from "./commands/CreateDataIntegrationCommand" ; import { CreateEventIntegrationCommand , CreateEventIntegrationCommandInput , CreateEventIntegrationCommandOutput , } from "./commands/CreateEventIntegrationCommand" ; import { DeleteDataIntegrationCommand , DeleteDataIntegrationCommandInput , DeleteDataIntegrationCommandOutput , } from "./commands/DeleteDataIntegrationCommand" ; import { DeleteEventIntegrationCommand , DeleteEventIntegrationCommandInput , DeleteEventIntegrationCommandOutput , } from "./commands/DeleteEventIntegrationCommand" ; import { GetDataIntegrationCommand , GetDataIntegrationCommandInput , GetDataIntegrationCommandOutput , } from "./commands/GetDataIntegrationCommand" ; import { GetEventIntegrationCommand , GetEventIntegrationCommandInput , GetEventIntegrationCommandOutput , } from "./commands/GetEventIntegrationCommand" ; import { ListDataIntegrationAssociationsCommand , ListDataIntegrationAssociationsCommandInput , ListDataIntegrationAssociationsCommandOutput , } from "./commands/ListDataIntegrationAssociationsCommand" ; import { ListDataIntegrationsCommand , ListDataIntegrationsCommandInput , ListDataIntegrationsCommandOutput , } from "./commands/ListDataIntegrationsCommand" ; import { ListEventIntegrationAssociationsCommand , ListEventIntegrationAssociationsCommandInput , ListEventIntegrationAssociationsCommandOutput , } from "./commands/ListEventIntegrationAssociationsCommand" ; import { ListEventIntegrationsCommand , ListEventIntegrationsCommandInput , ListEventIntegrationsCommandOutput , } from "./commands/ListEventIntegrationsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateDataIntegrationCommand , UpdateDataIntegrationCommandInput , UpdateDataIntegrationCommandOutput , } from "./commands/UpdateDataIntegrationCommand" ; import { UpdateEventIntegrationCommand , UpdateEventIntegrationCommandInput , UpdateEventIntegrationCommandOutput , } from "./commands/UpdateEventIntegrationCommand" ; /**
 * <p>The Amazon AppIntegrations service enables you to configure and reuse connections to external
 *       applications.</p>
 *          <p>For information about how you can use external applications with Amazon Connect, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
 *       integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver information to agents using Amazon Connect Wisdom</a>
 *        in the <i>Amazon Connect Administrator Guide</i>.</p>
 */ export class AppIntegrations extends AppIntegrationsClient { /**
     * <p>Creates and persists a DataIntegration resource.</p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     *       Use a different DataIntegration, or recreate the DataIntegration using the
     *       <code>CreateDataIntegration</code> API.</p>
     *          </note>
     */ public createDataIntegration ( args , options ? ) ; public createDataIntegration ( args , cb ) ; public createDataIntegration ( args , options , cb ) ; public createDataIntegration ( args , optionsOrCb ? , cb ? ) { const command = new CreateDataIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates an EventIntegration, given a specified name, description, and a reference to an
     *       Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No
     *       objects are created in the your account, only metadata that is persisted on the
     *       EventIntegration control plane.</p>
     */ public createEventIntegration ( args , options ? ) ; public createEventIntegration ( args , cb ) ; public createEventIntegration ( args , options , cb ) ; public createEventIntegration ( args , optionsOrCb ? , cb ? ) { const command = new CreateEventIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the DataIntegration. Only DataIntegrations that don't have any
     *       DataIntegrationAssociations can be deleted. Deleting a DataIntegration also deletes the
     *       underlying Amazon AppFlow flow and service linked role. </p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     * Use a different DataIntegration, or recreate the DataIntegration using the
     * <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p>
     *          </note>
     */ public deleteDataIntegration ( args , options ? ) ; public deleteDataIntegration ( args , cb ) ; public deleteDataIntegration ( args , options , cb ) ; public deleteDataIntegration ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDataIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the specified existing event integration. If the event integration is associated
     *       with clients, the request is rejected.</p>
     */ public deleteEventIntegration ( args , options ? ) ; public deleteEventIntegration ( args , cb ) ; public deleteEventIntegration ( args , options , cb ) ; public deleteEventIntegration ( args , optionsOrCb ? , cb ? ) { const command = new DeleteEventIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns information about the DataIntegration.</p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     * Use a different DataIntegration, or recreate the DataIntegration using the
     * <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p>
     *          </note>
     */ public getDataIntegration ( args , options ? ) ; public getDataIntegration ( args , cb ) ; public getDataIntegration ( args , options , cb ) ; public getDataIntegration ( args , optionsOrCb ? , cb ? ) { const command = new GetDataIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns information about the event integration.</p>
     */ public getEventIntegration ( args , options ? ) ; public getEventIntegration ( args , cb ) ; public getEventIntegration ( args , options , cb ) ; public getEventIntegration ( args , optionsOrCb ? , cb ? ) { const command = new GetEventIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns a paginated list of DataIntegration associations in the account.</p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     * Use a different DataIntegration, or recreate the DataIntegration using the
     * <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p>
     *          </note>
     */ public listDataIntegrationAssociations ( args , options ? ) ; public listDataIntegrationAssociations ( args , cb ) ; public listDataIntegrationAssociations ( args , options , cb ) ; public listDataIntegrationAssociations ( args , optionsOrCb ? , cb ? ) { const command = new ListDataIntegrationAssociationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns a paginated list of DataIntegrations in the account.</p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     * Use a different DataIntegration, or recreate the DataIntegration using the
     * <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p>
     *          </note>
     */ public listDataIntegrations ( args , options ? ) ; public listDataIntegrations ( args , cb ) ; public listDataIntegrations ( args , options , cb ) ; public listDataIntegrations ( args , optionsOrCb ? , cb ? ) { const command = new ListDataIntegrationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns a paginated list of event integration associations in the account. </p>
     */ public listEventIntegrationAssociations ( args , options ? ) ; public listEventIntegrationAssociations ( args , cb ) ; public listEventIntegrationAssociations ( args , options , cb ) ; public listEventIntegrationAssociations ( args , optionsOrCb ? , cb ? ) { const command = new ListEventIntegrationAssociationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns a paginated list of event integrations in the account.</p>
     */ public listEventIntegrations ( args , options ? ) ; public listEventIntegrations ( args , cb ) ; public listEventIntegrations ( args , options , cb ) ; public listEventIntegrations ( args , optionsOrCb ? , cb ? ) { const command = new ListEventIntegrationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the tags for the specified resource.</p>
     */ public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds the specified tags to the specified resource.</p>
     */ public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes the specified tags from the specified resource.</p>
     */ public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the description of a DataIntegration.</p>
     *          <note>
     *             <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated.
     * Use a different DataIntegration, or recreate the DataIntegration using the
     * <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p>
     *          </note>
     */ public updateDataIntegration ( args , options ? ) ; public updateDataIntegration ( args , cb ) ; public updateDataIntegration ( args , options , cb ) ; public updateDataIntegration ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDataIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the description of an event integration.</p>
     */ public updateEventIntegration ( args , options ? ) ; public updateEventIntegration ( args , cb ) ; public updateEventIntegration ( args , options , cb ) ; public updateEventIntegration ( args , optionsOrCb ? , cb ? ) { const command = new UpdateEventIntegrationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }