import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AppSyncClient } from "./AppSyncClient" ; import { AssociateApiCommand , AssociateApiCommandInput , AssociateApiCommandOutput , } from "./commands/AssociateApiCommand" ; import { CreateApiCacheCommand , CreateApiCacheCommandInput , CreateApiCacheCommandOutput , } from "./commands/CreateApiCacheCommand" ; import { CreateApiKeyCommand , CreateApiKeyCommandInput , CreateApiKeyCommandOutput , } from "./commands/CreateApiKeyCommand" ; import { CreateDataSourceCommand , CreateDataSourceCommandInput , CreateDataSourceCommandOutput , } from "./commands/CreateDataSourceCommand" ; import { CreateDomainNameCommand , CreateDomainNameCommandInput , CreateDomainNameCommandOutput , } from "./commands/CreateDomainNameCommand" ; import { CreateFunctionCommand , CreateFunctionCommandInput , CreateFunctionCommandOutput , } from "./commands/CreateFunctionCommand" ; import { CreateGraphqlApiCommand , CreateGraphqlApiCommandInput , CreateGraphqlApiCommandOutput , } from "./commands/CreateGraphqlApiCommand" ; import { CreateResolverCommand , CreateResolverCommandInput , CreateResolverCommandOutput , } from "./commands/CreateResolverCommand" ; import { CreateTypeCommand , CreateTypeCommandInput , CreateTypeCommandOutput } from "./commands/CreateTypeCommand" ; import { DeleteApiCacheCommand , DeleteApiCacheCommandInput , DeleteApiCacheCommandOutput , } from "./commands/DeleteApiCacheCommand" ; import { DeleteApiKeyCommand , DeleteApiKeyCommandInput , DeleteApiKeyCommandOutput , } from "./commands/DeleteApiKeyCommand" ; import { DeleteDataSourceCommand , DeleteDataSourceCommandInput , DeleteDataSourceCommandOutput , } from "./commands/DeleteDataSourceCommand" ; import { DeleteDomainNameCommand , DeleteDomainNameCommandInput , DeleteDomainNameCommandOutput , } from "./commands/DeleteDomainNameCommand" ; import { DeleteFunctionCommand , DeleteFunctionCommandInput , DeleteFunctionCommandOutput , } from "./commands/DeleteFunctionCommand" ; import { DeleteGraphqlApiCommand , DeleteGraphqlApiCommandInput , DeleteGraphqlApiCommandOutput , } from "./commands/DeleteGraphqlApiCommand" ; import { DeleteResolverCommand , DeleteResolverCommandInput , DeleteResolverCommandOutput , } from "./commands/DeleteResolverCommand" ; import { DeleteTypeCommand , DeleteTypeCommandInput , DeleteTypeCommandOutput } from "./commands/DeleteTypeCommand" ; import { DisassociateApiCommand , DisassociateApiCommandInput , DisassociateApiCommandOutput , } from "./commands/DisassociateApiCommand" ; import { FlushApiCacheCommand , FlushApiCacheCommandInput , FlushApiCacheCommandOutput , } from "./commands/FlushApiCacheCommand" ; import { GetApiAssociationCommand , GetApiAssociationCommandInput , GetApiAssociationCommandOutput , } from "./commands/GetApiAssociationCommand" ; import { GetApiCacheCommand , GetApiCacheCommandInput , GetApiCacheCommandOutput } from "./commands/GetApiCacheCommand" ; import { GetDataSourceCommand , GetDataSourceCommandInput , GetDataSourceCommandOutput , } from "./commands/GetDataSourceCommand" ; import { GetDomainNameCommand , GetDomainNameCommandInput , GetDomainNameCommandOutput , } from "./commands/GetDomainNameCommand" ; import { GetFunctionCommand , GetFunctionCommandInput , GetFunctionCommandOutput } from "./commands/GetFunctionCommand" ; import { GetGraphqlApiCommand , GetGraphqlApiCommandInput , GetGraphqlApiCommandOutput , } from "./commands/GetGraphqlApiCommand" ; import { GetIntrospectionSchemaCommand , GetIntrospectionSchemaCommandInput , GetIntrospectionSchemaCommandOutput , } from "./commands/GetIntrospectionSchemaCommand" ; import { GetResolverCommand , GetResolverCommandInput , GetResolverCommandOutput } from "./commands/GetResolverCommand" ; import { GetSchemaCreationStatusCommand , GetSchemaCreationStatusCommandInput , GetSchemaCreationStatusCommandOutput , } from "./commands/GetSchemaCreationStatusCommand" ; import { GetTypeCommand , GetTypeCommandInput , GetTypeCommandOutput } from "./commands/GetTypeCommand" ; import { ListApiKeysCommand , ListApiKeysCommandInput , ListApiKeysCommandOutput } from "./commands/ListApiKeysCommand" ; import { ListDataSourcesCommand , ListDataSourcesCommandInput , ListDataSourcesCommandOutput , } from "./commands/ListDataSourcesCommand" ; import { ListDomainNamesCommand , ListDomainNamesCommandInput , ListDomainNamesCommandOutput , } from "./commands/ListDomainNamesCommand" ; import { ListFunctionsCommand , ListFunctionsCommandInput , ListFunctionsCommandOutput , } from "./commands/ListFunctionsCommand" ; import { ListGraphqlApisCommand , ListGraphqlApisCommandInput , ListGraphqlApisCommandOutput , } from "./commands/ListGraphqlApisCommand" ; import { ListResolversByFunctionCommand , ListResolversByFunctionCommandInput , ListResolversByFunctionCommandOutput , } from "./commands/ListResolversByFunctionCommand" ; import { ListResolversCommand , ListResolversCommandInput , ListResolversCommandOutput , } from "./commands/ListResolversCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { ListTypesCommand , ListTypesCommandInput , ListTypesCommandOutput } from "./commands/ListTypesCommand" ; import { StartSchemaCreationCommand , StartSchemaCreationCommandInput , StartSchemaCreationCommandOutput , } from "./commands/StartSchemaCreationCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateApiCacheCommand , UpdateApiCacheCommandInput , UpdateApiCacheCommandOutput , } from "./commands/UpdateApiCacheCommand" ; import { UpdateApiKeyCommand , UpdateApiKeyCommandInput , UpdateApiKeyCommandOutput , } from "./commands/UpdateApiKeyCommand" ; import { UpdateDataSourceCommand , UpdateDataSourceCommandInput , UpdateDataSourceCommandOutput , } from "./commands/UpdateDataSourceCommand" ; import { UpdateDomainNameCommand , UpdateDomainNameCommandInput , UpdateDomainNameCommandOutput , } from "./commands/UpdateDomainNameCommand" ; import { UpdateFunctionCommand , UpdateFunctionCommandInput , UpdateFunctionCommandOutput , } from "./commands/UpdateFunctionCommand" ; import { UpdateGraphqlApiCommand , UpdateGraphqlApiCommandInput , UpdateGraphqlApiCommandOutput , } from "./commands/UpdateGraphqlApiCommand" ; import { UpdateResolverCommand , UpdateResolverCommandInput , UpdateResolverCommandOutput , } from "./commands/UpdateResolverCommand" ; import { UpdateTypeCommand , UpdateTypeCommandInput , UpdateTypeCommandOutput } from "./commands/UpdateTypeCommand" ; /**
 * <p>AppSync provides API actions for creating and interacting with data
 *          sources using GraphQL from your application.</p>
 */ export class AppSync extends AppSyncClient { /**
     * <p>Maps an endpoint to your custom domain.</p>
     */ public associateApi ( args , options ? ) ; public associateApi ( args , cb ) ; public associateApi ( args , options , cb ) ; public associateApi ( args , optionsOrCb ? , cb ? ) { const command = new AssociateApiCommand ( 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 a cache for the GraphQL API.</p>
     */ public createApiCache ( args , options ? ) ; public createApiCache ( args , cb ) ; public createApiCache ( args , options , cb ) ; public createApiCache ( args , optionsOrCb ? , cb ? ) { const command = new CreateApiCacheCommand ( 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 a unique key that you can distribute to clients who invoke your API.</p>
     */ public createApiKey ( args , options ? ) ; public createApiKey ( args , cb ) ; public createApiKey ( args , options , cb ) ; public createApiKey ( args , optionsOrCb ? , cb ? ) { const command = new CreateApiKeyCommand ( 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 a <code>DataSource</code> object.</p>
     */ public createDataSource ( args , options ? ) ; public createDataSource ( args , cb ) ; public createDataSource ( args , options , cb ) ; public createDataSource ( args , optionsOrCb ? , cb ? ) { const command = new CreateDataSourceCommand ( 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 a custom <code>DomainName</code> object.</p>
     */ public createDomainName ( args , options ? ) ; public createDomainName ( args , cb ) ; public createDomainName ( args , options , cb ) ; public createDomainName ( args , optionsOrCb ? , cb ? ) { const command = new CreateDomainNameCommand ( 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 a <code>Function</code> object.</p>
     *          <p>A function is a reusable entity. You can use multiple functions to compose the resolver
     *          logic.</p>
     */ public createFunction ( args , options ? ) ; public createFunction ( args , cb ) ; public createFunction ( args , options , cb ) ; public createFunction ( args , optionsOrCb ? , cb ? ) { const command = new CreateFunctionCommand ( 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 a <code>GraphqlApi</code> object.</p>
     */ public createGraphqlApi ( args , options ? ) ; public createGraphqlApi ( args , cb ) ; public createGraphqlApi ( args , options , cb ) ; public createGraphqlApi ( args , optionsOrCb ? , cb ? ) { const command = new CreateGraphqlApiCommand ( 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 a <code>Resolver</code> object.</p>
     *          <p>A resolver converts incoming requests into a format that a data source can understand,
     *          and converts the data source's responses into GraphQL.</p>
     */ public createResolver ( args , options ? ) ; public createResolver ( args , cb ) ; public createResolver ( args , options , cb ) ; public createResolver ( args , optionsOrCb ? , cb ? ) { const command = new CreateResolverCommand ( 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 a <code>Type</code> object.</p>
     */ public createType ( args , options ? ) ; public createType ( args , cb ) ; public createType ( args , options , cb ) ; public createType ( args , optionsOrCb ? , cb ? ) { const command = new CreateTypeCommand ( 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 an <code>ApiCache</code> object.</p>
     */ public deleteApiCache ( args , options ? ) ; public deleteApiCache ( args , cb ) ; public deleteApiCache ( args , options , cb ) ; public deleteApiCache ( args , optionsOrCb ? , cb ? ) { const command = new DeleteApiCacheCommand ( 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 an API key.</p>
     */ public deleteApiKey ( args , options ? ) ; public deleteApiKey ( args , cb ) ; public deleteApiKey ( args , options , cb ) ; public deleteApiKey ( args , optionsOrCb ? , cb ? ) { const command = new DeleteApiKeyCommand ( 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 a <code>DataSource</code> object.</p>
     */ public deleteDataSource ( args , options ? ) ; public deleteDataSource ( args , cb ) ; public deleteDataSource ( args , options , cb ) ; public deleteDataSource ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDataSourceCommand ( 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 a custom <code>DomainName</code> object.</p>
     */ public deleteDomainName ( args , options ? ) ; public deleteDomainName ( args , cb ) ; public deleteDomainName ( args , options , cb ) ; public deleteDomainName ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDomainNameCommand ( 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 a <code>Function</code>.</p>
     */ public deleteFunction ( args , options ? ) ; public deleteFunction ( args , cb ) ; public deleteFunction ( args , options , cb ) ; public deleteFunction ( args , optionsOrCb ? , cb ? ) { const command = new DeleteFunctionCommand ( 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 a <code>GraphqlApi</code> object.</p>
     */ public deleteGraphqlApi ( args , options ? ) ; public deleteGraphqlApi ( args , cb ) ; public deleteGraphqlApi ( args , options , cb ) ; public deleteGraphqlApi ( args , optionsOrCb ? , cb ? ) { const command = new DeleteGraphqlApiCommand ( 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 a <code>Resolver</code> object.</p>
     */ public deleteResolver ( args , options ? ) ; public deleteResolver ( args , cb ) ; public deleteResolver ( args , options , cb ) ; public deleteResolver ( args , optionsOrCb ? , cb ? ) { const command = new DeleteResolverCommand ( 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 a <code>Type</code> object.</p>
     */ public deleteType ( args , options ? ) ; public deleteType ( args , cb ) ; public deleteType ( args , options , cb ) ; public deleteType ( args , optionsOrCb ? , cb ? ) { const command = new DeleteTypeCommand ( 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 an <code>ApiAssociation</code> object from a custom domain.</p>
     */ public disassociateApi ( args , options ? ) ; public disassociateApi ( args , cb ) ; public disassociateApi ( args , options , cb ) ; public disassociateApi ( args , optionsOrCb ? , cb ? ) { const command = new DisassociateApiCommand ( 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>Flushes an <code>ApiCache</code> object.</p>
     */ public flushApiCache ( args , options ? ) ; public flushApiCache ( args , cb ) ; public flushApiCache ( args , options , cb ) ; public flushApiCache ( args , optionsOrCb ? , cb ? ) { const command = new FlushApiCacheCommand ( 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>Retrieves an <code>ApiAssociation</code> object.</p>
     */ public getApiAssociation ( args , options ? ) ; public getApiAssociation ( args , cb ) ; public getApiAssociation ( args , options , cb ) ; public getApiAssociation ( args , optionsOrCb ? , cb ? ) { const command = new GetApiAssociationCommand ( 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>Retrieves an <code>ApiCache</code> object.</p>
     */ public getApiCache ( args , options ? ) ; public getApiCache ( args , cb ) ; public getApiCache ( args , options , cb ) ; public getApiCache ( args , optionsOrCb ? , cb ? ) { const command = new GetApiCacheCommand ( 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>Retrieves a <code>DataSource</code> object.</p>
     */ public getDataSource ( args , options ? ) ; public getDataSource ( args , cb ) ; public getDataSource ( args , options , cb ) ; public getDataSource ( args , optionsOrCb ? , cb ? ) { const command = new GetDataSourceCommand ( 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>Retrieves a custom <code>DomainName</code> object.</p>
     */ public getDomainName ( args , options ? ) ; public getDomainName ( args , cb ) ; public getDomainName ( args , options , cb ) ; public getDomainName ( args , optionsOrCb ? , cb ? ) { const command = new GetDomainNameCommand ( 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>Get a <code>Function</code>.</p>
     */ public getFunction ( args , options ? ) ; public getFunction ( args , cb ) ; public getFunction ( args , options , cb ) ; public getFunction ( args , optionsOrCb ? , cb ? ) { const command = new GetFunctionCommand ( 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>Retrieves a <code>GraphqlApi</code> object.</p>
     */ public getGraphqlApi ( args , options ? ) ; public getGraphqlApi ( args , cb ) ; public getGraphqlApi ( args , options , cb ) ; public getGraphqlApi ( args , optionsOrCb ? , cb ? ) { const command = new GetGraphqlApiCommand ( 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>Retrieves the introspection schema for a GraphQL API.</p>
     */ public getIntrospectionSchema ( args , options ? ) ; public getIntrospectionSchema ( args , cb ) ; public getIntrospectionSchema ( args , options , cb ) ; public getIntrospectionSchema ( args , optionsOrCb ? , cb ? ) { const command = new GetIntrospectionSchemaCommand ( 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>Retrieves a <code>Resolver</code> object.</p>
     */ public getResolver ( args , options ? ) ; public getResolver ( args , cb ) ; public getResolver ( args , options , cb ) ; public getResolver ( args , optionsOrCb ? , cb ? ) { const command = new GetResolverCommand ( 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>Retrieves the current status of a schema creation operation.</p>
     */ public getSchemaCreationStatus ( args , options ? ) ; public getSchemaCreationStatus ( args , cb ) ; public getSchemaCreationStatus ( args , options , cb ) ; public getSchemaCreationStatus ( args , optionsOrCb ? , cb ? ) { const command = new GetSchemaCreationStatusCommand ( 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>Retrieves a <code>Type</code> object.</p>
     */ public getType ( args , options ? ) ; public getType ( args , cb ) ; public getType ( args , options , cb ) ; public getType ( args , optionsOrCb ? , cb ? ) { const command = new GetTypeCommand ( 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 API keys for a given API.</p>
     *          <note>
     *             <p>API keys are deleted automatically 60 days after they expire. However, they may still
     *             be included in the response until they have actually been deleted. You can safely call
     *                <code>DeleteApiKey</code> to manually delete a key before it's automatically
     *             deleted.</p>
     *          </note>
     */ public listApiKeys ( args , options ? ) ; public listApiKeys ( args , cb ) ; public listApiKeys ( args , options , cb ) ; public listApiKeys ( args , optionsOrCb ? , cb ? ) { const command = new ListApiKeysCommand ( 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 data sources for a given API.</p>
     */ public listDataSources ( args , options ? ) ; public listDataSources ( args , cb ) ; public listDataSources ( args , options , cb ) ; public listDataSources ( args , optionsOrCb ? , cb ? ) { const command = new ListDataSourcesCommand ( 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 multiple custom domain names.</p>
     */ public listDomainNames ( args , options ? ) ; public listDomainNames ( args , cb ) ; public listDomainNames ( args , options , cb ) ; public listDomainNames ( args , optionsOrCb ? , cb ? ) { const command = new ListDomainNamesCommand ( 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>List multiple functions.</p>
     */ public listFunctions ( args , options ? ) ; public listFunctions ( args , cb ) ; public listFunctions ( args , options , cb ) ; public listFunctions ( args , optionsOrCb ? , cb ? ) { const command = new ListFunctionsCommand ( 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 your GraphQL APIs.</p>
     */ public listGraphqlApis ( args , options ? ) ; public listGraphqlApis ( args , cb ) ; public listGraphqlApis ( args , options , cb ) ; public listGraphqlApis ( args , optionsOrCb ? , cb ? ) { const command = new ListGraphqlApisCommand ( 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 resolvers for a given API and type.</p>
     */ public listResolvers ( args , options ? ) ; public listResolvers ( args , cb ) ; public listResolvers ( args , options , cb ) ; public listResolvers ( args , optionsOrCb ? , cb ? ) { const command = new ListResolversCommand ( 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>List the resolvers that are associated with a specific function.</p>
     */ public listResolversByFunction ( args , options ? ) ; public listResolversByFunction ( args , cb ) ; public listResolversByFunction ( args , options , cb ) ; public listResolversByFunction ( args , optionsOrCb ? , cb ? ) { const command = new ListResolversByFunctionCommand ( 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 a 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>Lists the types for a given API.</p>
     */ public listTypes ( args , options ? ) ; public listTypes ( args , cb ) ; public listTypes ( args , options , cb ) ; public listTypes ( args , optionsOrCb ? , cb ? ) { const command = new ListTypesCommand ( 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 a new schema to your GraphQL API.</p>
     *          <p>This operation is asynchronous. Use  to
     *          determine when it has completed.</p>
     */ public startSchemaCreation ( args , options ? ) ; public startSchemaCreation ( args , cb ) ; public startSchemaCreation ( args , options , cb ) ; public startSchemaCreation ( args , optionsOrCb ? , cb ? ) { const command = new StartSchemaCreationCommand ( 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>Tags a resource with user-supplied tags.</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>Untags a 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 cache for the GraphQL API.</p>
     */ public updateApiCache ( args , options ? ) ; public updateApiCache ( args , cb ) ; public updateApiCache ( args , options , cb ) ; public updateApiCache ( args , optionsOrCb ? , cb ? ) { const command = new UpdateApiCacheCommand ( 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 an API key. You can update the key as long as it's not deleted.</p>
     */ public updateApiKey ( args , options ? ) ; public updateApiKey ( args , cb ) ; public updateApiKey ( args , options , cb ) ; public updateApiKey ( args , optionsOrCb ? , cb ? ) { const command = new UpdateApiKeyCommand ( 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 a <code>DataSource</code> object.</p>
     */ public updateDataSource ( args , options ? ) ; public updateDataSource ( args , cb ) ; public updateDataSource ( args , options , cb ) ; public updateDataSource ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDataSourceCommand ( 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 a custom <code>DomainName</code> object.</p>
     */ public updateDomainName ( args , options ? ) ; public updateDomainName ( args , cb ) ; public updateDomainName ( args , options , cb ) ; public updateDomainName ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDomainNameCommand ( 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 a <code>Function</code> object.</p>
     */ public updateFunction ( args , options ? ) ; public updateFunction ( args , cb ) ; public updateFunction ( args , options , cb ) ; public updateFunction ( args , optionsOrCb ? , cb ? ) { const command = new UpdateFunctionCommand ( 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 a <code>GraphqlApi</code> object.</p>
     */ public updateGraphqlApi ( args , options ? ) ; public updateGraphqlApi ( args , cb ) ; public updateGraphqlApi ( args , options , cb ) ; public updateGraphqlApi ( args , optionsOrCb ? , cb ? ) { const command = new UpdateGraphqlApiCommand ( 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 a <code>Resolver</code> object.</p>
     */ public updateResolver ( args , options ? ) ; public updateResolver ( args , cb ) ; public updateResolver ( args , options , cb ) ; public updateResolver ( args , optionsOrCb ? , cb ? ) { const command = new UpdateResolverCommand ( 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 a <code>Type</code> object.</p>
     */ public updateType ( args , options ? ) ; public updateType ( args , cb ) ; public updateType ( args , options , cb ) ; public updateType ( args , optionsOrCb ? , cb ? ) { const command = new UpdateTypeCommand ( 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 ) ; } } }