import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { BatchDetectDominantLanguageCommand , BatchDetectDominantLanguageCommandInput , BatchDetectDominantLanguageCommandOutput , } from "./commands/BatchDetectDominantLanguageCommand" ; import { BatchDetectEntitiesCommand , BatchDetectEntitiesCommandInput , BatchDetectEntitiesCommandOutput , } from "./commands/BatchDetectEntitiesCommand" ; import { BatchDetectKeyPhrasesCommand , BatchDetectKeyPhrasesCommandInput , BatchDetectKeyPhrasesCommandOutput , } from "./commands/BatchDetectKeyPhrasesCommand" ; import { BatchDetectSentimentCommand , BatchDetectSentimentCommandInput , BatchDetectSentimentCommandOutput , } from "./commands/BatchDetectSentimentCommand" ; import { BatchDetectSyntaxCommand , BatchDetectSyntaxCommandInput , BatchDetectSyntaxCommandOutput , } from "./commands/BatchDetectSyntaxCommand" ; import { ClassifyDocumentCommand , ClassifyDocumentCommandInput , ClassifyDocumentCommandOutput , } from "./commands/ClassifyDocumentCommand" ; import { ContainsPiiEntitiesCommand , ContainsPiiEntitiesCommandInput , ContainsPiiEntitiesCommandOutput , } from "./commands/ContainsPiiEntitiesCommand" ; import { CreateDocumentClassifierCommand , CreateDocumentClassifierCommandInput , CreateDocumentClassifierCommandOutput , } from "./commands/CreateDocumentClassifierCommand" ; import { CreateEndpointCommand , CreateEndpointCommandInput , CreateEndpointCommandOutput , } from "./commands/CreateEndpointCommand" ; import { CreateEntityRecognizerCommand , CreateEntityRecognizerCommandInput , CreateEntityRecognizerCommandOutput , } from "./commands/CreateEntityRecognizerCommand" ; import { DeleteDocumentClassifierCommand , DeleteDocumentClassifierCommandInput , DeleteDocumentClassifierCommandOutput , } from "./commands/DeleteDocumentClassifierCommand" ; import { DeleteEndpointCommand , DeleteEndpointCommandInput , DeleteEndpointCommandOutput , } from "./commands/DeleteEndpointCommand" ; import { DeleteEntityRecognizerCommand , DeleteEntityRecognizerCommandInput , DeleteEntityRecognizerCommandOutput , } from "./commands/DeleteEntityRecognizerCommand" ; import { DescribeDocumentClassificationJobCommand , DescribeDocumentClassificationJobCommandInput , DescribeDocumentClassificationJobCommandOutput , } from "./commands/DescribeDocumentClassificationJobCommand" ; import { DescribeDocumentClassifierCommand , DescribeDocumentClassifierCommandInput , DescribeDocumentClassifierCommandOutput , } from "./commands/DescribeDocumentClassifierCommand" ; import { DescribeDominantLanguageDetectionJobCommand , DescribeDominantLanguageDetectionJobCommandInput , DescribeDominantLanguageDetectionJobCommandOutput , } from "./commands/DescribeDominantLanguageDetectionJobCommand" ; import { DescribeEndpointCommand , DescribeEndpointCommandInput , DescribeEndpointCommandOutput , } from "./commands/DescribeEndpointCommand" ; import { DescribeEntitiesDetectionJobCommand , DescribeEntitiesDetectionJobCommandInput , DescribeEntitiesDetectionJobCommandOutput , } from "./commands/DescribeEntitiesDetectionJobCommand" ; import { DescribeEntityRecognizerCommand , DescribeEntityRecognizerCommandInput , DescribeEntityRecognizerCommandOutput , } from "./commands/DescribeEntityRecognizerCommand" ; import { DescribeEventsDetectionJobCommand , DescribeEventsDetectionJobCommandInput , DescribeEventsDetectionJobCommandOutput , } from "./commands/DescribeEventsDetectionJobCommand" ; import { DescribeKeyPhrasesDetectionJobCommand , DescribeKeyPhrasesDetectionJobCommandInput , DescribeKeyPhrasesDetectionJobCommandOutput , } from "./commands/DescribeKeyPhrasesDetectionJobCommand" ; import { DescribePiiEntitiesDetectionJobCommand , DescribePiiEntitiesDetectionJobCommandInput , DescribePiiEntitiesDetectionJobCommandOutput , } from "./commands/DescribePiiEntitiesDetectionJobCommand" ; import { DescribeSentimentDetectionJobCommand , DescribeSentimentDetectionJobCommandInput , DescribeSentimentDetectionJobCommandOutput , } from "./commands/DescribeSentimentDetectionJobCommand" ; import { DescribeTopicsDetectionJobCommand , DescribeTopicsDetectionJobCommandInput , DescribeTopicsDetectionJobCommandOutput , } from "./commands/DescribeTopicsDetectionJobCommand" ; import { DetectDominantLanguageCommand , DetectDominantLanguageCommandInput , DetectDominantLanguageCommandOutput , } from "./commands/DetectDominantLanguageCommand" ; import { DetectEntitiesCommand , DetectEntitiesCommandInput , DetectEntitiesCommandOutput , } from "./commands/DetectEntitiesCommand" ; import { DetectKeyPhrasesCommand , DetectKeyPhrasesCommandInput , DetectKeyPhrasesCommandOutput , } from "./commands/DetectKeyPhrasesCommand" ; import { DetectPiiEntitiesCommand , DetectPiiEntitiesCommandInput , DetectPiiEntitiesCommandOutput , } from "./commands/DetectPiiEntitiesCommand" ; import { DetectSentimentCommand , DetectSentimentCommandInput , DetectSentimentCommandOutput , } from "./commands/DetectSentimentCommand" ; import { DetectSyntaxCommand , DetectSyntaxCommandInput , DetectSyntaxCommandOutput , } from "./commands/DetectSyntaxCommand" ; import { ListDocumentClassificationJobsCommand , ListDocumentClassificationJobsCommandInput , ListDocumentClassificationJobsCommandOutput , } from "./commands/ListDocumentClassificationJobsCommand" ; import { ListDocumentClassifiersCommand , ListDocumentClassifiersCommandInput , ListDocumentClassifiersCommandOutput , } from "./commands/ListDocumentClassifiersCommand" ; import { ListDocumentClassifierSummariesCommand , ListDocumentClassifierSummariesCommandInput , ListDocumentClassifierSummariesCommandOutput , } from "./commands/ListDocumentClassifierSummariesCommand" ; import { ListDominantLanguageDetectionJobsCommand , ListDominantLanguageDetectionJobsCommandInput , ListDominantLanguageDetectionJobsCommandOutput , } from "./commands/ListDominantLanguageDetectionJobsCommand" ; import { ListEndpointsCommand , ListEndpointsCommandInput , ListEndpointsCommandOutput , } from "./commands/ListEndpointsCommand" ; import { ListEntitiesDetectionJobsCommand , ListEntitiesDetectionJobsCommandInput , ListEntitiesDetectionJobsCommandOutput , } from "./commands/ListEntitiesDetectionJobsCommand" ; import { ListEntityRecognizersCommand , ListEntityRecognizersCommandInput , ListEntityRecognizersCommandOutput , } from "./commands/ListEntityRecognizersCommand" ; import { ListEntityRecognizerSummariesCommand , ListEntityRecognizerSummariesCommandInput , ListEntityRecognizerSummariesCommandOutput , } from "./commands/ListEntityRecognizerSummariesCommand" ; import { ListEventsDetectionJobsCommand , ListEventsDetectionJobsCommandInput , ListEventsDetectionJobsCommandOutput , } from "./commands/ListEventsDetectionJobsCommand" ; import { ListKeyPhrasesDetectionJobsCommand , ListKeyPhrasesDetectionJobsCommandInput , ListKeyPhrasesDetectionJobsCommandOutput , } from "./commands/ListKeyPhrasesDetectionJobsCommand" ; import { ListPiiEntitiesDetectionJobsCommand , ListPiiEntitiesDetectionJobsCommandInput , ListPiiEntitiesDetectionJobsCommandOutput , } from "./commands/ListPiiEntitiesDetectionJobsCommand" ; import { ListSentimentDetectionJobsCommand , ListSentimentDetectionJobsCommandInput , ListSentimentDetectionJobsCommandOutput , } from "./commands/ListSentimentDetectionJobsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { ListTopicsDetectionJobsCommand , ListTopicsDetectionJobsCommandInput , ListTopicsDetectionJobsCommandOutput , } from "./commands/ListTopicsDetectionJobsCommand" ; import { StartDocumentClassificationJobCommand , StartDocumentClassificationJobCommandInput , StartDocumentClassificationJobCommandOutput , } from "./commands/StartDocumentClassificationJobCommand" ; import { StartDominantLanguageDetectionJobCommand , StartDominantLanguageDetectionJobCommandInput , StartDominantLanguageDetectionJobCommandOutput , } from "./commands/StartDominantLanguageDetectionJobCommand" ; import { StartEntitiesDetectionJobCommand , StartEntitiesDetectionJobCommandInput , StartEntitiesDetectionJobCommandOutput , } from "./commands/StartEntitiesDetectionJobCommand" ; import { StartEventsDetectionJobCommand , StartEventsDetectionJobCommandInput , StartEventsDetectionJobCommandOutput , } from "./commands/StartEventsDetectionJobCommand" ; import { StartKeyPhrasesDetectionJobCommand , StartKeyPhrasesDetectionJobCommandInput , StartKeyPhrasesDetectionJobCommandOutput , } from "./commands/StartKeyPhrasesDetectionJobCommand" ; import { StartPiiEntitiesDetectionJobCommand , StartPiiEntitiesDetectionJobCommandInput , StartPiiEntitiesDetectionJobCommandOutput , } from "./commands/StartPiiEntitiesDetectionJobCommand" ; import { StartSentimentDetectionJobCommand , StartSentimentDetectionJobCommandInput , StartSentimentDetectionJobCommandOutput , } from "./commands/StartSentimentDetectionJobCommand" ; import { StartTopicsDetectionJobCommand , StartTopicsDetectionJobCommandInput , StartTopicsDetectionJobCommandOutput , } from "./commands/StartTopicsDetectionJobCommand" ; import { StopDominantLanguageDetectionJobCommand , StopDominantLanguageDetectionJobCommandInput , StopDominantLanguageDetectionJobCommandOutput , } from "./commands/StopDominantLanguageDetectionJobCommand" ; import { StopEntitiesDetectionJobCommand , StopEntitiesDetectionJobCommandInput , StopEntitiesDetectionJobCommandOutput , } from "./commands/StopEntitiesDetectionJobCommand" ; import { StopEventsDetectionJobCommand , StopEventsDetectionJobCommandInput , StopEventsDetectionJobCommandOutput , } from "./commands/StopEventsDetectionJobCommand" ; import { StopKeyPhrasesDetectionJobCommand , StopKeyPhrasesDetectionJobCommandInput , StopKeyPhrasesDetectionJobCommandOutput , } from "./commands/StopKeyPhrasesDetectionJobCommand" ; import { StopPiiEntitiesDetectionJobCommand , StopPiiEntitiesDetectionJobCommandInput , StopPiiEntitiesDetectionJobCommandOutput , } from "./commands/StopPiiEntitiesDetectionJobCommand" ; import { StopSentimentDetectionJobCommand , StopSentimentDetectionJobCommandInput , StopSentimentDetectionJobCommandOutput , } from "./commands/StopSentimentDetectionJobCommand" ; import { StopTrainingDocumentClassifierCommand , StopTrainingDocumentClassifierCommandInput , StopTrainingDocumentClassifierCommandOutput , } from "./commands/StopTrainingDocumentClassifierCommand" ; import { StopTrainingEntityRecognizerCommand , StopTrainingEntityRecognizerCommandInput , StopTrainingEntityRecognizerCommandOutput , } from "./commands/StopTrainingEntityRecognizerCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateEndpointCommand , UpdateEndpointCommandInput , UpdateEndpointCommandOutput , } from "./commands/UpdateEndpointCommand" ; import { ComprehendClient } from "./ComprehendClient" ; /**
 * <p>Amazon Comprehend is an AWS service for gaining insight into the content of documents.
 *       Use these actions to determine the topics contained in your documents, the topics they
 *       discuss, the predominant sentiment expressed in them, the predominant language used, and
 *       more.</p>
 */ export class Comprehend extends ComprehendClient { /**
     * <p>Determines the dominant language of the input text for a batch of documents. For a list
     *       of languages that Amazon Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>.
     *     </p>
     */ public batchDetectDominantLanguage ( args , options ? ) ; public batchDetectDominantLanguage ( args , cb ) ; public batchDetectDominantLanguage ( args , options , cb ) ; public batchDetectDominantLanguage ( args , optionsOrCb ? , cb ? ) { const command = new BatchDetectDominantLanguageCommand ( 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>Inspects the text of a batch of documents for named entities and returns information
     *       about them. For more information about named entities, see <a>how-entities</a>
     *          </p>
     */ public batchDetectEntities ( args , options ? ) ; public batchDetectEntities ( args , cb ) ; public batchDetectEntities ( args , options , cb ) ; public batchDetectEntities ( args , optionsOrCb ? , cb ? ) { const command = new BatchDetectEntitiesCommand ( 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>Detects the key noun phrases found in a batch of documents.</p>
     */ public batchDetectKeyPhrases ( args , options ? ) ; public batchDetectKeyPhrases ( args , cb ) ; public batchDetectKeyPhrases ( args , options , cb ) ; public batchDetectKeyPhrases ( args , optionsOrCb ? , cb ? ) { const command = new BatchDetectKeyPhrasesCommand ( 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>Inspects a batch of documents and returns an inference of the prevailing sentiment,
     *         <code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>,
     *       in each one.</p>
     */ public batchDetectSentiment ( args , options ? ) ; public batchDetectSentiment ( args , cb ) ; public batchDetectSentiment ( args , options , cb ) ; public batchDetectSentiment ( args , optionsOrCb ? , cb ? ) { const command = new BatchDetectSentimentCommand ( 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>Inspects the text of a batch of documents for the syntax and part of speech of the words
     *       in the document and returns information about them. For more information, see <a>how-syntax</a>.</p>
     */ public batchDetectSyntax ( args , options ? ) ; public batchDetectSyntax ( args , cb ) ; public batchDetectSyntax ( args , options , cb ) ; public batchDetectSyntax ( args , optionsOrCb ? , cb ? ) { const command = new BatchDetectSyntaxCommand ( 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 document classification request to analyze a single document in real-time,
     *       using a previously created and trained custom model and an endpoint.</p>
     */ public classifyDocument ( args , options ? ) ; public classifyDocument ( args , cb ) ; public classifyDocument ( args , options , cb ) ; public classifyDocument ( args , optionsOrCb ? , cb ? ) { const command = new ClassifyDocumentCommand ( 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>Analyzes input text for the presence of personally identifiable information (PII) and
     *       returns the labels of identified PII entity types such as name, address, bank account number,
     *       or phone number.</p>
     */ public containsPiiEntities ( args , options ? ) ; public containsPiiEntities ( args , cb ) ; public containsPiiEntities ( args , options , cb ) ; public containsPiiEntities ( args , optionsOrCb ? , cb ? ) { const command = new ContainsPiiEntitiesCommand ( 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 document classifier that you can use to categorize documents. To create a
     *       classifier, you provide a set of training documents that labeled with the categories that you
     *       want to use. After the classifier is trained you can use it to categorize a set of labeled
     *       documents into the categories. For more information, see <a>how-document-classification</a>.</p>
     */ public createDocumentClassifier ( args , options ? ) ; public createDocumentClassifier ( args , cb ) ; public createDocumentClassifier ( args , options , cb ) ; public createDocumentClassifier ( args , optionsOrCb ? , cb ? ) { const command = new CreateDocumentClassifierCommand ( 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 model-specific endpoint for synchronous inference for a previously trained
     *       custom model
     *       </p>
     */ public createEndpoint ( args , options ? ) ; public createEndpoint ( args , cb ) ; public createEndpoint ( args , options , cb ) ; public createEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new CreateEndpointCommand ( 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 entity recognizer using submitted files. After your
     *         <code>CreateEntityRecognizer</code> request is submitted, you can check job status using the
     *          API. </p>
     */ public createEntityRecognizer ( args , options ? ) ; public createEntityRecognizer ( args , cb ) ; public createEntityRecognizer ( args , options , cb ) ; public createEntityRecognizer ( args , optionsOrCb ? , cb ? ) { const command = new CreateEntityRecognizerCommand ( 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 previously created document classifier</p>
     *          <p>Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
     *       If an active inference job is using the model, a <code>ResourceInUseException</code> will be
     *       returned.</p>
     *          <p>This is an asynchronous action that puts the classifier into a DELETING state, and it is
     *       then removed by a background job. Once removed, the classifier disappears from your account
     *       and is no longer available for use. </p>
     */ public deleteDocumentClassifier ( args , options ? ) ; public deleteDocumentClassifier ( args , cb ) ; public deleteDocumentClassifier ( args , options , cb ) ; public deleteDocumentClassifier ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDocumentClassifierCommand ( 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 model-specific endpoint for a previously-trained custom model. All endpoints
     *       must be deleted in order for the model to be deleted.</p>
     */ public deleteEndpoint ( args , options ? ) ; public deleteEndpoint ( args , cb ) ; public deleteEndpoint ( args , options , cb ) ; public deleteEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new DeleteEndpointCommand ( 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 entity recognizer.</p>
     *          <p>Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
     *       If an active inference job is using the model, a <code>ResourceInUseException</code> will be
     *       returned.</p>
     *          <p>This is an asynchronous action that puts the recognizer into a DELETING state, and it is
     *       then removed by a background job. Once removed, the recognizer disappears from your account
     *       and is no longer available for use. </p>
     */ public deleteEntityRecognizer ( args , options ? ) ; public deleteEntityRecognizer ( args , cb ) ; public deleteEntityRecognizer ( args , options , cb ) ; public deleteEntityRecognizer ( args , optionsOrCb ? , cb ? ) { const command = new DeleteEntityRecognizerCommand ( 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>Gets the properties associated with a document classification job. Use this operation to
     *       get the status of a classification job.</p>
     */ public describeDocumentClassificationJob ( args , options ? ) ; public describeDocumentClassificationJob ( args , cb ) ; public describeDocumentClassificationJob ( args , options , cb ) ; public describeDocumentClassificationJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDocumentClassificationJobCommand ( 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>Gets the properties associated with a document classifier.</p>
     */ public describeDocumentClassifier ( args , options ? ) ; public describeDocumentClassifier ( args , cb ) ; public describeDocumentClassifier ( args , options , cb ) ; public describeDocumentClassifier ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDocumentClassifierCommand ( 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>Gets the properties associated with a dominant language detection job. Use this operation
     *       to get the status of a detection job.</p>
     */ public describeDominantLanguageDetectionJob ( args , options ? ) ; public describeDominantLanguageDetectionJob ( args , cb ) ; public describeDominantLanguageDetectionJob ( args , options , cb ) ; public describeDominantLanguageDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDominantLanguageDetectionJobCommand ( 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>Gets the properties associated with a specific endpoint. Use this operation to get the
     *       status of an endpoint.</p>
     */ public describeEndpoint ( args , options ? ) ; public describeEndpoint ( args , cb ) ; public describeEndpoint ( args , options , cb ) ; public describeEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new DescribeEndpointCommand ( 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>Gets the properties associated with an entities detection job. Use this operation to get
     *       the status of a detection job.</p>
     */ public describeEntitiesDetectionJob ( args , options ? ) ; public describeEntitiesDetectionJob ( args , cb ) ; public describeEntitiesDetectionJob ( args , options , cb ) ; public describeEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeEntitiesDetectionJobCommand ( 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 details about an entity recognizer including status, S3 buckets containing
     *       training data, recognizer metadata, metrics, and so on.</p>
     */ public describeEntityRecognizer ( args , options ? ) ; public describeEntityRecognizer ( args , cb ) ; public describeEntityRecognizer ( args , options , cb ) ; public describeEntityRecognizer ( args , optionsOrCb ? , cb ? ) { const command = new DescribeEntityRecognizerCommand ( 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>Gets the status and details of an events detection job.</p>
     */ public describeEventsDetectionJob ( args , options ? ) ; public describeEventsDetectionJob ( args , cb ) ; public describeEventsDetectionJob ( args , options , cb ) ; public describeEventsDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeEventsDetectionJobCommand ( 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>Gets the properties associated with a key phrases detection job. Use this operation to get
     *       the status of a detection job.</p>
     */ public describeKeyPhrasesDetectionJob ( args , options ? ) ; public describeKeyPhrasesDetectionJob ( args , cb ) ; public describeKeyPhrasesDetectionJob ( args , options , cb ) ; public describeKeyPhrasesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeKeyPhrasesDetectionJobCommand ( 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>Gets the properties associated with a PII entities detection job. For example, you can use
     *       this operation to get the job status.</p>
     */ public describePiiEntitiesDetectionJob ( args , options ? ) ; public describePiiEntitiesDetectionJob ( args , cb ) ; public describePiiEntitiesDetectionJob ( args , options , cb ) ; public describePiiEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribePiiEntitiesDetectionJobCommand ( 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>Gets the properties associated with a sentiment detection job. Use this operation to get
     *       the status of a detection job.</p>
     */ public describeSentimentDetectionJob ( args , options ? ) ; public describeSentimentDetectionJob ( args , cb ) ; public describeSentimentDetectionJob ( args , options , cb ) ; public describeSentimentDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeSentimentDetectionJobCommand ( 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>Gets the properties associated with a topic detection job. Use this operation to get
     *       the status of a detection job.</p>
     */ public describeTopicsDetectionJob ( args , options ? ) ; public describeTopicsDetectionJob ( args , cb ) ; public describeTopicsDetectionJob ( args , options , cb ) ; public describeTopicsDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeTopicsDetectionJobCommand ( 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>Determines the dominant language of the input text. For a list of languages that Amazon
     *       Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>. </p>
     */ public detectDominantLanguage ( args , options ? ) ; public detectDominantLanguage ( args , cb ) ; public detectDominantLanguage ( args , options , cb ) ; public detectDominantLanguage ( args , optionsOrCb ? , cb ? ) { const command = new DetectDominantLanguageCommand ( 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>Inspects text for named entities, and returns information about them. For more
     *       information, about named entities, see <a>how-entities</a>. </p>
     */ public detectEntities ( args , options ? ) ; public detectEntities ( args , cb ) ; public detectEntities ( args , options , cb ) ; public detectEntities ( args , optionsOrCb ? , cb ? ) { const command = new DetectEntitiesCommand ( 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>Detects the key noun phrases found in the text. </p>
     */ public detectKeyPhrases ( args , options ? ) ; public detectKeyPhrases ( args , cb ) ; public detectKeyPhrases ( args , options , cb ) ; public detectKeyPhrases ( args , optionsOrCb ? , cb ? ) { const command = new DetectKeyPhrasesCommand ( 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>Inspects the input text for entities that contain personally identifiable information
     *       (PII) and returns information about them.</p>
     */ public detectPiiEntities ( args , options ? ) ; public detectPiiEntities ( args , cb ) ; public detectPiiEntities ( args , options , cb ) ; public detectPiiEntities ( args , optionsOrCb ? , cb ? ) { const command = new DetectPiiEntitiesCommand ( 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>Inspects text and returns an inference of the prevailing sentiment
     *         (<code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>). </p>
     */ public detectSentiment ( args , options ? ) ; public detectSentiment ( args , cb ) ; public detectSentiment ( args , options , cb ) ; public detectSentiment ( args , optionsOrCb ? , cb ? ) { const command = new DetectSentimentCommand ( 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>Inspects text for syntax and the part of speech of words in the document. For more
     *       information, <a>how-syntax</a>.</p>
     */ public detectSyntax ( args , options ? ) ; public detectSyntax ( args , cb ) ; public detectSyntax ( args , options , cb ) ; public detectSyntax ( args , optionsOrCb ? , cb ? ) { const command = new DetectSyntaxCommand ( 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>Gets a list of the documentation classification jobs that you have submitted.</p>
     */ public listDocumentClassificationJobs ( args , options ? ) ; public listDocumentClassificationJobs ( args , cb ) ; public listDocumentClassificationJobs ( args , options , cb ) ; public listDocumentClassificationJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListDocumentClassificationJobsCommand ( 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>Gets a list of the document classifiers that you have created.</p>
     */ public listDocumentClassifiers ( args , options ? ) ; public listDocumentClassifiers ( args , cb ) ; public listDocumentClassifiers ( args , options , cb ) ; public listDocumentClassifiers ( args , optionsOrCb ? , cb ? ) { const command = new ListDocumentClassifiersCommand ( 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>Gets a list of summaries of the document classifiers that you have created</p>
     */ public listDocumentClassifierSummaries ( args , options ? ) ; public listDocumentClassifierSummaries ( args , cb ) ; public listDocumentClassifierSummaries ( args , options , cb ) ; public listDocumentClassifierSummaries ( args , optionsOrCb ? , cb ? ) { const command = new ListDocumentClassifierSummariesCommand ( 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>Gets a list of the dominant language detection jobs that you have submitted.</p>
     */ public listDominantLanguageDetectionJobs ( args , options ? ) ; public listDominantLanguageDetectionJobs ( args , cb ) ; public listDominantLanguageDetectionJobs ( args , options , cb ) ; public listDominantLanguageDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListDominantLanguageDetectionJobsCommand ( 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>Gets a list of all existing endpoints that you've created.</p>
     */ public listEndpoints ( args , options ? ) ; public listEndpoints ( args , cb ) ; public listEndpoints ( args , options , cb ) ; public listEndpoints ( args , optionsOrCb ? , cb ? ) { const command = new ListEndpointsCommand ( 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>Gets a list of the entity detection jobs that you have submitted.</p>
     */ public listEntitiesDetectionJobs ( args , options ? ) ; public listEntitiesDetectionJobs ( args , cb ) ; public listEntitiesDetectionJobs ( args , options , cb ) ; public listEntitiesDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListEntitiesDetectionJobsCommand ( 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>Gets a list of the properties of all entity recognizers that you created, including
     *       recognizers currently in training. Allows you to filter the list of recognizers based on
     *       criteria such as status and submission time. This call returns up to 500 entity recognizers in
     *       the list, with a default number of 100 recognizers in the list.</p>
     *          <p>The results of this list are not in any particular order. Please get the list and sort
     *       locally if needed.</p>
     */ public listEntityRecognizers ( args , options ? ) ; public listEntityRecognizers ( args , cb ) ; public listEntityRecognizers ( args , options , cb ) ; public listEntityRecognizers ( args , optionsOrCb ? , cb ? ) { const command = new ListEntityRecognizersCommand ( 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>Gets a list of summaries for the entity recognizers that you have created.</p>
     */ public listEntityRecognizerSummaries ( args , options ? ) ; public listEntityRecognizerSummaries ( args , cb ) ; public listEntityRecognizerSummaries ( args , options , cb ) ; public listEntityRecognizerSummaries ( args , optionsOrCb ? , cb ? ) { const command = new ListEntityRecognizerSummariesCommand ( 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>Gets a list of the events detection jobs that you have submitted.</p>
     */ public listEventsDetectionJobs ( args , options ? ) ; public listEventsDetectionJobs ( args , cb ) ; public listEventsDetectionJobs ( args , options , cb ) ; public listEventsDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListEventsDetectionJobsCommand ( 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 list of key phrase detection jobs that you have submitted.</p>
     */ public listKeyPhrasesDetectionJobs ( args , options ? ) ; public listKeyPhrasesDetectionJobs ( args , cb ) ; public listKeyPhrasesDetectionJobs ( args , options , cb ) ; public listKeyPhrasesDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListKeyPhrasesDetectionJobsCommand ( 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>Gets a list of the PII entity detection jobs that you have submitted.</p>
     */ public listPiiEntitiesDetectionJobs ( args , options ? ) ; public listPiiEntitiesDetectionJobs ( args , cb ) ; public listPiiEntitiesDetectionJobs ( args , options , cb ) ; public listPiiEntitiesDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListPiiEntitiesDetectionJobsCommand ( 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>Gets a list of sentiment detection jobs that you have submitted.</p>
     */ public listSentimentDetectionJobs ( args , options ? ) ; public listSentimentDetectionJobs ( args , cb ) ; public listSentimentDetectionJobs ( args , options , cb ) ; public listSentimentDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListSentimentDetectionJobsCommand ( 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 tags associated with a given Amazon Comprehend 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>Gets a list of the topic detection jobs that you have submitted.</p>
     */ public listTopicsDetectionJobs ( args , options ? ) ; public listTopicsDetectionJobs ( args , cb ) ; public listTopicsDetectionJobs ( args , options , cb ) ; public listTopicsDetectionJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListTopicsDetectionJobsCommand ( 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>Starts an asynchronous document classification job. Use the  operation to track the progress of the
     *       job.</p>
     */ public startDocumentClassificationJob ( args , options ? ) ; public startDocumentClassificationJob ( args , cb ) ; public startDocumentClassificationJob ( args , options , cb ) ; public startDocumentClassificationJob ( args , optionsOrCb ? , cb ? ) { const command = new StartDocumentClassificationJobCommand ( 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>Starts an asynchronous dominant language detection job for a collection of documents. Use
     *       the  operation to track the status
     *       of a job.</p>
     */ public startDominantLanguageDetectionJob ( args , options ? ) ; public startDominantLanguageDetectionJob ( args , cb ) ; public startDominantLanguageDetectionJob ( args , options , cb ) ; public startDominantLanguageDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartDominantLanguageDetectionJobCommand ( 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>Starts an asynchronous entity detection job for a collection of documents. Use the  operation to track the status of a job.</p>
     *          <p>This API can be used for either standard entity detection or custom entity recognition. In
     *       order to be used for custom entity recognition, the optional <code>EntityRecognizerArn</code>
     *       must be used in order to provide access to the recognizer being used to detect the custom
     *       entity.</p>
     */ public startEntitiesDetectionJob ( args , options ? ) ; public startEntitiesDetectionJob ( args , cb ) ; public startEntitiesDetectionJob ( args , options , cb ) ; public startEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartEntitiesDetectionJobCommand ( 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>Starts an asynchronous event detection job for a collection of documents.</p>
     */ public startEventsDetectionJob ( args , options ? ) ; public startEventsDetectionJob ( args , cb ) ; public startEventsDetectionJob ( args , options , cb ) ; public startEventsDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartEventsDetectionJobCommand ( 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>Starts an asynchronous key phrase detection job for a collection of documents. Use the
     *          operation to track the status of a
     *       job.</p>
     */ public startKeyPhrasesDetectionJob ( args , options ? ) ; public startKeyPhrasesDetectionJob ( args , cb ) ; public startKeyPhrasesDetectionJob ( args , options , cb ) ; public startKeyPhrasesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartKeyPhrasesDetectionJobCommand ( 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>Starts an asynchronous PII entity detection job for a collection of documents.</p>
     */ public startPiiEntitiesDetectionJob ( args , options ? ) ; public startPiiEntitiesDetectionJob ( args , cb ) ; public startPiiEntitiesDetectionJob ( args , options , cb ) ; public startPiiEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartPiiEntitiesDetectionJobCommand ( 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>Starts an asynchronous sentiment detection job for a collection of documents. use the
     *          operation to track the status of a
     *       job.</p>
     */ public startSentimentDetectionJob ( args , options ? ) ; public startSentimentDetectionJob ( args , cb ) ; public startSentimentDetectionJob ( args , options , cb ) ; public startSentimentDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartSentimentDetectionJobCommand ( 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>Starts an asynchronous topic detection job. Use the
     *         <code>DescribeTopicDetectionJob</code> operation to track the status of a job.</p>
     */ public startTopicsDetectionJob ( args , options ? ) ; public startTopicsDetectionJob ( args , cb ) ; public startTopicsDetectionJob ( args , options , cb ) ; public startTopicsDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StartTopicsDetectionJobCommand ( 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>Stops a dominant language detection job in progress.</p>
     *          <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
     *       into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
     *       is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
     *         <code>STOPPED</code> state.</p>
     *          <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
     *         <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
     *       Internal Request Exception. </p>
     *          <p>When a job is stopped, any documents already processed are written to the output
     *       location.</p>
     */ public stopDominantLanguageDetectionJob ( args , options ? ) ; public stopDominantLanguageDetectionJob ( args , cb ) ; public stopDominantLanguageDetectionJob ( args , options , cb ) ; public stopDominantLanguageDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopDominantLanguageDetectionJobCommand ( 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>Stops an entities detection job in progress.</p>
     *          <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
     *       into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
     *       is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
     *         <code>STOPPED</code> state.</p>
     *          <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
     *         <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
     *       Internal Request Exception. </p>
     *          <p>When a job is stopped, any documents already processed are written to the output
     *       location.</p>
     */ public stopEntitiesDetectionJob ( args , options ? ) ; public stopEntitiesDetectionJob ( args , cb ) ; public stopEntitiesDetectionJob ( args , options , cb ) ; public stopEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopEntitiesDetectionJobCommand ( 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>Stops an events detection job in progress.</p>
     */ public stopEventsDetectionJob ( args , options ? ) ; public stopEventsDetectionJob ( args , cb ) ; public stopEventsDetectionJob ( args , options , cb ) ; public stopEventsDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopEventsDetectionJobCommand ( 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>Stops a key phrases detection job in progress.</p>
     *          <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
     *       into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
     *       is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
     *         <code>STOPPED</code> state.</p>
     *          <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
     *         <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
     *       Internal Request Exception. </p>
     *          <p>When a job is stopped, any documents already processed are written to the output
     *       location.</p>
     */ public stopKeyPhrasesDetectionJob ( args , options ? ) ; public stopKeyPhrasesDetectionJob ( args , cb ) ; public stopKeyPhrasesDetectionJob ( args , options , cb ) ; public stopKeyPhrasesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopKeyPhrasesDetectionJobCommand ( 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>Stops a PII entities detection job in progress.</p>
     */ public stopPiiEntitiesDetectionJob ( args , options ? ) ; public stopPiiEntitiesDetectionJob ( args , cb ) ; public stopPiiEntitiesDetectionJob ( args , options , cb ) ; public stopPiiEntitiesDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopPiiEntitiesDetectionJobCommand ( 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>Stops a sentiment detection job in progress.</p>
     *          <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
     *       into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
     *       is put into the <code>COMPLETED</code> state; otherwise the job is be stopped and put into the
     *         <code>STOPPED</code> state.</p>
     *          <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
     *         <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
     *       Internal Request Exception. </p>
     *          <p>When a job is stopped, any documents already processed are written to the output
     *       location.</p>
     */ public stopSentimentDetectionJob ( args , options ? ) ; public stopSentimentDetectionJob ( args , cb ) ; public stopSentimentDetectionJob ( args , options , cb ) ; public stopSentimentDetectionJob ( args , optionsOrCb ? , cb ? ) { const command = new StopSentimentDetectionJobCommand ( 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>Stops a document classifier training job while in progress.</p>
     *          <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
     *       put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
     *       stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
     *       put into the <code>STOPPED</code> state and the service sends back an HTTP 200 response with
     *       an empty HTTP body. </p>
     */ public stopTrainingDocumentClassifier ( args , options ? ) ; public stopTrainingDocumentClassifier ( args , cb ) ; public stopTrainingDocumentClassifier ( args , options , cb ) ; public stopTrainingDocumentClassifier ( args , optionsOrCb ? , cb ? ) { const command = new StopTrainingDocumentClassifierCommand ( 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>Stops an entity recognizer training job while in progress.</p>
     *          <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
     *       put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
     *       stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
     *       putted into the <code>STOPPED</code> state and the service sends back an HTTP 200 response
     *       with an empty HTTP body.</p>
     */ public stopTrainingEntityRecognizer ( args , options ? ) ; public stopTrainingEntityRecognizer ( args , cb ) ; public stopTrainingEntityRecognizer ( args , options , cb ) ; public stopTrainingEntityRecognizer ( args , optionsOrCb ? , cb ? ) { const command = new StopTrainingEntityRecognizerCommand ( 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 specific tag with an Amazon Comprehend resource. A tag is a key-value pair
     *       that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with
     *       "Sales" as the key might be added to a resource to indicate its use by the sales department.
     *     </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 a specific tag associated with an Amazon Comprehend 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 information about the specified endpoint.</p>
     */ public updateEndpoint ( args , options ? ) ; public updateEndpoint ( args , cb ) ; public updateEndpoint ( args , options , cb ) ; public updateEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new UpdateEndpointCommand ( 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 ) ; } } }