import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AcceptInboundConnectionCommand , AcceptInboundConnectionCommandInput , AcceptInboundConnectionCommandOutput , } from "./commands/AcceptInboundConnectionCommand" ; import { AddTagsCommand , AddTagsCommandInput , AddTagsCommandOutput } from "./commands/AddTagsCommand" ; import { AssociatePackageCommand , AssociatePackageCommandInput , AssociatePackageCommandOutput , } from "./commands/AssociatePackageCommand" ; import { CancelServiceSoftwareUpdateCommand , CancelServiceSoftwareUpdateCommandInput , CancelServiceSoftwareUpdateCommandOutput , } from "./commands/CancelServiceSoftwareUpdateCommand" ; import { CreateDomainCommand , CreateDomainCommandInput , CreateDomainCommandOutput , } from "./commands/CreateDomainCommand" ; import { CreateOutboundConnectionCommand , CreateOutboundConnectionCommandInput , CreateOutboundConnectionCommandOutput , } from "./commands/CreateOutboundConnectionCommand" ; import { CreatePackageCommand , CreatePackageCommandInput , CreatePackageCommandOutput , } from "./commands/CreatePackageCommand" ; import { DeleteDomainCommand , DeleteDomainCommandInput , DeleteDomainCommandOutput , } from "./commands/DeleteDomainCommand" ; import { DeleteInboundConnectionCommand , DeleteInboundConnectionCommandInput , DeleteInboundConnectionCommandOutput , } from "./commands/DeleteInboundConnectionCommand" ; import { DeleteOutboundConnectionCommand , DeleteOutboundConnectionCommandInput , DeleteOutboundConnectionCommandOutput , } from "./commands/DeleteOutboundConnectionCommand" ; import { DeletePackageCommand , DeletePackageCommandInput , DeletePackageCommandOutput , } from "./commands/DeletePackageCommand" ; import { DescribeDomainAutoTunesCommand , DescribeDomainAutoTunesCommandInput , DescribeDomainAutoTunesCommandOutput , } from "./commands/DescribeDomainAutoTunesCommand" ; import { DescribeDomainCommand , DescribeDomainCommandInput , DescribeDomainCommandOutput , } from "./commands/DescribeDomainCommand" ; import { DescribeDomainConfigCommand , DescribeDomainConfigCommandInput , DescribeDomainConfigCommandOutput , } from "./commands/DescribeDomainConfigCommand" ; import { DescribeDomainsCommand , DescribeDomainsCommandInput , DescribeDomainsCommandOutput , } from "./commands/DescribeDomainsCommand" ; import { DescribeInboundConnectionsCommand , DescribeInboundConnectionsCommandInput , DescribeInboundConnectionsCommandOutput , } from "./commands/DescribeInboundConnectionsCommand" ; import { DescribeInstanceTypeLimitsCommand , DescribeInstanceTypeLimitsCommandInput , DescribeInstanceTypeLimitsCommandOutput , } from "./commands/DescribeInstanceTypeLimitsCommand" ; import { DescribeOutboundConnectionsCommand , DescribeOutboundConnectionsCommandInput , DescribeOutboundConnectionsCommandOutput , } from "./commands/DescribeOutboundConnectionsCommand" ; import { DescribePackagesCommand , DescribePackagesCommandInput , DescribePackagesCommandOutput , } from "./commands/DescribePackagesCommand" ; import { DescribeReservedInstanceOfferingsCommand , DescribeReservedInstanceOfferingsCommandInput , DescribeReservedInstanceOfferingsCommandOutput , } from "./commands/DescribeReservedInstanceOfferingsCommand" ; import { DescribeReservedInstancesCommand , DescribeReservedInstancesCommandInput , DescribeReservedInstancesCommandOutput , } from "./commands/DescribeReservedInstancesCommand" ; import { DissociatePackageCommand , DissociatePackageCommandInput , DissociatePackageCommandOutput , } from "./commands/DissociatePackageCommand" ; import { GetCompatibleVersionsCommand , GetCompatibleVersionsCommandInput , GetCompatibleVersionsCommandOutput , } from "./commands/GetCompatibleVersionsCommand" ; import { GetPackageVersionHistoryCommand , GetPackageVersionHistoryCommandInput , GetPackageVersionHistoryCommandOutput , } from "./commands/GetPackageVersionHistoryCommand" ; import { GetUpgradeHistoryCommand , GetUpgradeHistoryCommandInput , GetUpgradeHistoryCommandOutput , } from "./commands/GetUpgradeHistoryCommand" ; import { GetUpgradeStatusCommand , GetUpgradeStatusCommandInput , GetUpgradeStatusCommandOutput , } from "./commands/GetUpgradeStatusCommand" ; import { ListDomainNamesCommand , ListDomainNamesCommandInput , ListDomainNamesCommandOutput , } from "./commands/ListDomainNamesCommand" ; import { ListDomainsForPackageCommand , ListDomainsForPackageCommandInput , ListDomainsForPackageCommandOutput , } from "./commands/ListDomainsForPackageCommand" ; import { ListInstanceTypeDetailsCommand , ListInstanceTypeDetailsCommandInput , ListInstanceTypeDetailsCommandOutput , } from "./commands/ListInstanceTypeDetailsCommand" ; import { ListPackagesForDomainCommand , ListPackagesForDomainCommandInput , ListPackagesForDomainCommandOutput , } from "./commands/ListPackagesForDomainCommand" ; import { ListTagsCommand , ListTagsCommandInput , ListTagsCommandOutput } from "./commands/ListTagsCommand" ; import { ListVersionsCommand , ListVersionsCommandInput , ListVersionsCommandOutput , } from "./commands/ListVersionsCommand" ; import { PurchaseReservedInstanceOfferingCommand , PurchaseReservedInstanceOfferingCommandInput , PurchaseReservedInstanceOfferingCommandOutput , } from "./commands/PurchaseReservedInstanceOfferingCommand" ; import { RejectInboundConnectionCommand , RejectInboundConnectionCommandInput , RejectInboundConnectionCommandOutput , } from "./commands/RejectInboundConnectionCommand" ; import { RemoveTagsCommand , RemoveTagsCommandInput , RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand" ; import { StartServiceSoftwareUpdateCommand , StartServiceSoftwareUpdateCommandInput , StartServiceSoftwareUpdateCommandOutput , } from "./commands/StartServiceSoftwareUpdateCommand" ; import { UpdateDomainConfigCommand , UpdateDomainConfigCommandInput , UpdateDomainConfigCommandOutput , } from "./commands/UpdateDomainConfigCommand" ; import { UpdatePackageCommand , UpdatePackageCommandInput , UpdatePackageCommandOutput , } from "./commands/UpdatePackageCommand" ; import { UpgradeDomainCommand , UpgradeDomainCommandInput , UpgradeDomainCommandOutput , } from "./commands/UpgradeDomainCommand" ; import { OpenSearchClient } from "./OpenSearchClient" ; /**
 * <fullname>Amazon OpenSearch Configuration Service</fullname>
 *     <p>Use the Amazon OpenSearch configuration API to create, configure, and manage Amazon OpenSearch Service domains.</p>
 *     <p>For sample code that uses the configuration API, see the <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/opensearch-configuration-samples.html">
 *       Amazon OpenSearch Service Developer Guide</a>.
 *       The guide also contains <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/request-signing.html">
 *         sample
 *         code for sending signed HTTP requests to the OpenSearch APIs</a>.
 *     </p>
 *     <p>The endpoint for configuration service requests is region-specific: es.<i>region</i>.amazonaws.com.
 *       For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints,
 *       see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#service-regions" target="_blank">Regions and Endpoints</a>.
 *     </p>
 */ export class OpenSearch extends OpenSearchClient { /**
     * <p>Allows the remote domain owner to accept an inbound cross-cluster connection request.</p>
     */ public acceptInboundConnection ( args , options ? ) ; public acceptInboundConnection ( args , cb ) ; public acceptInboundConnection ( args , options , cb ) ; public acceptInboundConnection ( args , optionsOrCb ? , cb ? ) { const command = new AcceptInboundConnectionCommand ( 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>Attaches tags to an existing domain. Tags are a set of case-sensitive key value pairs. An
     *       domain can have up to 10 tags. See
     *       <a href="http://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging" target="_blank">
     *         Tagging Amazon OpenSearch Service domains</a> for more information.
     *     </p>
     */ public addTags ( args , options ? ) ; public addTags ( args , cb ) ; public addTags ( args , options , cb ) ; public addTags ( args , optionsOrCb ? , cb ? ) { const command = new AddTagsCommand ( 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>Associates a package with an Amazon OpenSearch Service domain.</p>
     */ public associatePackage ( args , options ? ) ; public associatePackage ( args , cb ) ; public associatePackage ( args , options , cb ) ; public associatePackage ( args , optionsOrCb ? , cb ? ) { const command = new AssociatePackageCommand ( 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>Cancels a scheduled service software update for an Amazon OpenSearch Service domain. You can only perform this operation before
     *       the <code>AutomatedUpdateDate</code> and when the <code>UpdateStatus</code> is in the <code>PENDING_UPDATE</code> state.
     *     </p>
     */ public cancelServiceSoftwareUpdate ( args , options ? ) ; public cancelServiceSoftwareUpdate ( args , cb ) ; public cancelServiceSoftwareUpdate ( args , options , cb ) ; public cancelServiceSoftwareUpdate ( args , optionsOrCb ? , cb ? ) { const command = new CancelServiceSoftwareUpdateCommand ( 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 new Amazon OpenSearch Service domain. For more information,
     *       see <a href="http://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html" target="_blank">Creating and managing Amazon OpenSearch Service domains
     *       </a> in the <i>Amazon OpenSearch Service Developer Guide</i>.
     *     </p>
     */ public createDomain ( args , options ? ) ; public createDomain ( args , cb ) ; public createDomain ( args , options , cb ) ; public createDomain ( args , optionsOrCb ? , cb ? ) { const command = new CreateDomainCommand ( 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 new cross-cluster connection from a local OpenSearch domain to a remote OpenSearch domain.</p>
     */ public createOutboundConnection ( args , options ? ) ; public createOutboundConnection ( args , cb ) ; public createOutboundConnection ( args , options , cb ) ; public createOutboundConnection ( args , optionsOrCb ? , cb ? ) { const command = new CreateOutboundConnectionCommand ( 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>Create a package for use with Amazon OpenSearch Service domains.</p>
     */ public createPackage ( args , options ? ) ; public createPackage ( args , cb ) ; public createPackage ( args , options , cb ) ; public createPackage ( args , optionsOrCb ? , cb ? ) { const command = new CreatePackageCommand ( 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>Permanently deletes the specified domain and all of its data. Once a domain is deleted, it cannot
     *       be recovered.
     *     </p>
     */ public deleteDomain ( args , options ? ) ; public deleteDomain ( args , cb ) ; public deleteDomain ( args , options , cb ) ; public deleteDomain ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDomainCommand ( 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>Allows the remote domain owner to delete an existing inbound cross-cluster connection.</p>
     */ public deleteInboundConnection ( args , options ? ) ; public deleteInboundConnection ( args , cb ) ; public deleteInboundConnection ( args , options , cb ) ; public deleteInboundConnection ( args , optionsOrCb ? , cb ? ) { const command = new DeleteInboundConnectionCommand ( 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>Allows the local domain owner to delete an existing outbound cross-cluster connection.</p>
     */ public deleteOutboundConnection ( args , options ? ) ; public deleteOutboundConnection ( args , cb ) ; public deleteOutboundConnection ( args , options , cb ) ; public deleteOutboundConnection ( args , optionsOrCb ? , cb ? ) { const command = new DeleteOutboundConnectionCommand ( 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 package.</p>
     */ public deletePackage ( args , options ? ) ; public deletePackage ( args , cb ) ; public deletePackage ( args , options , cb ) ; public deletePackage ( args , optionsOrCb ? , cb ? ) { const command = new DeletePackageCommand ( 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 domain configuration information about the specified domain, including the domain ID,
     *       domain endpoint, and domain ARN.
     *     </p>
     */ public describeDomain ( args , options ? ) ; public describeDomain ( args , cb ) ; public describeDomain ( args , options , cb ) ; public describeDomain ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDomainCommand ( 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>Provides scheduled Auto-Tune action details for the domain, such as Auto-Tune action type,
     *       description, severity, and scheduled date.
     *     </p>
     */ public describeDomainAutoTunes ( args , options ? ) ; public describeDomainAutoTunes ( args , cb ) ; public describeDomainAutoTunes ( args , options , cb ) ; public describeDomainAutoTunes ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDomainAutoTunesCommand ( 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>Provides cluster configuration information about the specified domain, such as the state, creation
     *       date, update version, and update date for cluster options.
     *     </p>
     */ public describeDomainConfig ( args , options ? ) ; public describeDomainConfig ( args , cb ) ; public describeDomainConfig ( args , options , cb ) ; public describeDomainConfig ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDomainConfigCommand ( 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 domain configuration information about the specified domains, including the domain ID,
     *       domain endpoint, and domain ARN.
     *     </p>
     */ public describeDomains ( args , options ? ) ; public describeDomains ( args , cb ) ; public describeDomains ( args , options , cb ) ; public describeDomains ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDomainsCommand ( 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 all the inbound cross-cluster connections for a remote domain.</p>
     */ public describeInboundConnections ( args , options ? ) ; public describeInboundConnections ( args , cb ) ; public describeInboundConnections ( args , options , cb ) ; public describeInboundConnections ( args , optionsOrCb ? , cb ? ) { const command = new DescribeInboundConnectionsCommand ( 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>
     *       Describe the limits for a given instance type and OpenSearch or Elasticsearch version.
     *       When modifying an existing domain, specify the
     *       <code>
     *         <a>DomainName</a>
     *       </code>
     *       to see which limits you can modify.
     *     </p>
     */ public describeInstanceTypeLimits ( args , options ? ) ; public describeInstanceTypeLimits ( args , cb ) ; public describeInstanceTypeLimits ( args , options , cb ) ; public describeInstanceTypeLimits ( args , optionsOrCb ? , cb ? ) { const command = new DescribeInstanceTypeLimitsCommand ( 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 all the outbound cross-cluster connections for a local domain.</p>
     */ public describeOutboundConnections ( args , options ? ) ; public describeOutboundConnections ( args , cb ) ; public describeOutboundConnections ( args , options , cb ) ; public describeOutboundConnections ( args , optionsOrCb ? , cb ? ) { const command = new DescribeOutboundConnectionsCommand ( 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>Describes all packages available to Amazon OpenSearch Service domains. Includes options for filtering, limiting the number of results,
     *       and pagination.
     *     </p>
     */ public describePackages ( args , options ? ) ; public describePackages ( args , cb ) ; public describePackages ( args , options , cb ) ; public describePackages ( args , optionsOrCb ? , cb ? ) { const command = new DescribePackagesCommand ( 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 available reserved OpenSearch instance offerings.</p>
     */ public describeReservedInstanceOfferings ( args , options ? ) ; public describeReservedInstanceOfferings ( args , cb ) ; public describeReservedInstanceOfferings ( args , options , cb ) ; public describeReservedInstanceOfferings ( args , optionsOrCb ? , cb ? ) { const command = new DescribeReservedInstanceOfferingsCommand ( 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 reserved OpenSearch instances for this account.</p>
     */ public describeReservedInstances ( args , options ? ) ; public describeReservedInstances ( args , cb ) ; public describeReservedInstances ( args , options , cb ) ; public describeReservedInstances ( args , optionsOrCb ? , cb ? ) { const command = new DescribeReservedInstancesCommand ( 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>Dissociates a package from the Amazon OpenSearch Service domain.</p>
     */ public dissociatePackage ( args , options ? ) ; public dissociatePackage ( args , cb ) ; public dissociatePackage ( args , options , cb ) ; public dissociatePackage ( args , optionsOrCb ? , cb ? ) { const command = new DissociatePackageCommand ( 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 list of upgrade-compatible versions of OpenSearch/Elasticsearch.
     *       You can optionally pass a
     *       <code>
     *         <a>DomainName</a>
     *       </code>
     *       to get all upgrade-compatible versions of OpenSearch/Elasticsearch for that specific domain.
     *     </p>
     */ public getCompatibleVersions ( args , options ? ) ; public getCompatibleVersions ( args , cb ) ; public getCompatibleVersions ( args , options , cb ) ; public getCompatibleVersions ( args , optionsOrCb ? , cb ? ) { const command = new GetCompatibleVersionsCommand ( 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 list of package versions, along with their creation time and commit message.</p>
     */ public getPackageVersionHistory ( args , options ? ) ; public getPackageVersionHistory ( args , cb ) ; public getPackageVersionHistory ( args , options , cb ) ; public getPackageVersionHistory ( args , optionsOrCb ? , cb ? ) { const command = new GetPackageVersionHistoryCommand ( 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 complete history of the last 10 upgrades performed on the domain.</p>
     */ public getUpgradeHistory ( args , options ? ) ; public getUpgradeHistory ( args , cb ) ; public getUpgradeHistory ( args , options , cb ) ; public getUpgradeHistory ( args , optionsOrCb ? , cb ? ) { const command = new GetUpgradeHistoryCommand ( 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 latest status of the last upgrade or upgrade eligibility check performed on the domain.
     *     </p>
     */ public getUpgradeStatus ( args , options ? ) ; public getUpgradeStatus ( args , cb ) ; public getUpgradeStatus ( args , options , cb ) ; public getUpgradeStatus ( args , optionsOrCb ? , cb ? ) { const command = new GetUpgradeStatusCommand ( 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 the names of all domains owned by the current user's account.</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>Lists all Amazon OpenSearch Service domains associated with the package.</p>
     */ public listDomainsForPackage ( args , options ? ) ; public listDomainsForPackage ( args , cb ) ; public listDomainsForPackage ( args , options , cb ) ; public listDomainsForPackage ( args , optionsOrCb ? , cb ? ) { const command = new ListDomainsForPackageCommand ( 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 ) ; } } public listInstanceTypeDetails ( args , options ? ) ; public listInstanceTypeDetails ( args , cb ) ; public listInstanceTypeDetails ( args , options , cb ) ; public listInstanceTypeDetails ( args , optionsOrCb ? , cb ? ) { const command = new ListInstanceTypeDetailsCommand ( 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 all packages associated with the Amazon OpenSearch Service domain.</p>
     */ public listPackagesForDomain ( args , options ? ) ; public listPackagesForDomain ( args , cb ) ; public listPackagesForDomain ( args , options , cb ) ; public listPackagesForDomain ( args , optionsOrCb ? , cb ? ) { const command = new ListPackagesForDomainCommand ( 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 all tags for the given domain.</p>
     */ public listTags ( args , options ? ) ; public listTags ( args , cb ) ; public listTags ( args , options , cb ) ; public listTags ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsCommand ( 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 all supported versions of OpenSearch and Elasticsearch.</p>
     */ public listVersions ( args , options ? ) ; public listVersions ( args , cb ) ; public listVersions ( args , options , cb ) ; public listVersions ( args , optionsOrCb ? , cb ? ) { const command = new ListVersionsCommand ( 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>Allows you to purchase reserved OpenSearch instances.</p>
     */ public purchaseReservedInstanceOffering ( args , options ? ) ; public purchaseReservedInstanceOffering ( args , cb ) ; public purchaseReservedInstanceOffering ( args , options , cb ) ; public purchaseReservedInstanceOffering ( args , optionsOrCb ? , cb ? ) { const command = new PurchaseReservedInstanceOfferingCommand ( 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>Allows the remote domain owner to reject an inbound cross-cluster connection request.</p>
     */ public rejectInboundConnection ( args , options ? ) ; public rejectInboundConnection ( args , cb ) ; public rejectInboundConnection ( args , options , cb ) ; public rejectInboundConnection ( args , optionsOrCb ? , cb ? ) { const command = new RejectInboundConnectionCommand ( 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 set of tags from the given domain.</p>
     */ public removeTags ( args , options ? ) ; public removeTags ( args , cb ) ; public removeTags ( args , options , cb ) ; public removeTags ( args , optionsOrCb ? , cb ? ) { const command = new RemoveTagsCommand ( 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>Schedules a service software update for an Amazon OpenSearch Service domain.</p>
     */ public startServiceSoftwareUpdate ( args , options ? ) ; public startServiceSoftwareUpdate ( args , cb ) ; public startServiceSoftwareUpdate ( args , options , cb ) ; public startServiceSoftwareUpdate ( args , optionsOrCb ? , cb ? ) { const command = new StartServiceSoftwareUpdateCommand ( 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>Modifies the cluster configuration of the specified domain, such as setting the instance type
     *       and the number of instances.
     *     </p>
     */ public updateDomainConfig ( args , options ? ) ; public updateDomainConfig ( args , cb ) ; public updateDomainConfig ( args , options , cb ) ; public updateDomainConfig ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDomainConfigCommand ( 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 package for use with Amazon OpenSearch Service domains.</p>
     */ public updatePackage ( args , options ? ) ; public updatePackage ( args , cb ) ; public updatePackage ( args , options , cb ) ; public updatePackage ( args , optionsOrCb ? , cb ? ) { const command = new UpdatePackageCommand ( 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>Allows you to either upgrade your domain or perform an upgrade eligibility check to a compatible version of OpenSearch or Elasticsearch.
     *     </p>
     */ public upgradeDomain ( args , options ? ) ; public upgradeDomain ( args , cb ) ; public upgradeDomain ( args , options , cb ) ; public upgradeDomain ( args , optionsOrCb ? , cb ? ) { const command = new UpgradeDomainCommand ( 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 ) ; } } }