diff --git a/clients/client-comprehend/.gitignore b/clients/client-comprehend/.gitignore
new file mode 100644
index 000000000000..b41c05b597c4
--- /dev/null
+++ b/clients/client-comprehend/.gitignore
@@ -0,0 +1,14 @@
+/node_modules/
+/build/
+/coverage/
+/docs/
+/types/
+/dist/
+*.tsbuildinfo
+*.tgz
+*.log
+package-lock.json
+
+*.d.ts
+*.js
+*.js.map
diff --git a/clients/client-comprehend/.npmignore b/clients/client-comprehend/.npmignore
new file mode 100644
index 000000000000..b7ff81137c4a
--- /dev/null
+++ b/clients/client-comprehend/.npmignore
@@ -0,0 +1,4 @@
+/coverage/
+/docs/
+tsconfig.test.json
+*.tsbuildinfo
diff --git a/clients/client-comprehend/Comprehend.ts b/clients/client-comprehend/Comprehend.ts
new file mode 100644
index 000000000000..062369693d2c
--- /dev/null
+++ b/clients/client-comprehend/Comprehend.ts
@@ -0,0 +1,2320 @@
+import { ComprehendClient } from "./ComprehendClient";
+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 {
+ 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 {
+ DescribeKeyPhrasesDetectionJobCommand,
+ DescribeKeyPhrasesDetectionJobCommandInput,
+ DescribeKeyPhrasesDetectionJobCommandOutput
+} from "./commands/DescribeKeyPhrasesDetectionJobCommand";
+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 {
+ 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 {
+ 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 {
+ ListKeyPhrasesDetectionJobsCommand,
+ ListKeyPhrasesDetectionJobsCommandInput,
+ ListKeyPhrasesDetectionJobsCommandOutput
+} from "./commands/ListKeyPhrasesDetectionJobsCommand";
+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 {
+ StartKeyPhrasesDetectionJobCommand,
+ StartKeyPhrasesDetectionJobCommandInput,
+ StartKeyPhrasesDetectionJobCommandOutput
+} from "./commands/StartKeyPhrasesDetectionJobCommand";
+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 {
+ StopKeyPhrasesDetectionJobCommand,
+ StopKeyPhrasesDetectionJobCommandInput,
+ StopKeyPhrasesDetectionJobCommandOutput
+} from "./commands/StopKeyPhrasesDetectionJobCommand";
+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 { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
+
+/**
+ *
+ *
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.
+ *
+ */
+export class Comprehend extends ComprehendClient {
+ /**
+ *
+ * Determines the dominant language of the input text for a batch of documents. For a list
+ * of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
+ *
+ */
+ public batchDetectDominantLanguage(
+ args: BatchDetectDominantLanguageCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public batchDetectDominantLanguage(
+ args: BatchDetectDominantLanguageCommandInput,
+ cb: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
+ ): void;
+ public batchDetectDominantLanguage(
+ args: BatchDetectDominantLanguageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
+ ): void;
+ public batchDetectDominantLanguage(
+ args: BatchDetectDominantLanguageCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: BatchDetectDominantLanguageCommandOutput) => void),
+ cb?: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Inspects the text of a batch of documents for named entities and returns information
+ * about them. For more information about named entities, see how-entities
+ *
+ *
+ */
+ public batchDetectEntities(
+ args: BatchDetectEntitiesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public batchDetectEntities(
+ args: BatchDetectEntitiesCommandInput,
+ cb: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
+ ): void;
+ public batchDetectEntities(
+ args: BatchDetectEntitiesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
+ ): void;
+ public batchDetectEntities(
+ args: BatchDetectEntitiesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: BatchDetectEntitiesCommandOutput) => void),
+ cb?: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Detects the key noun phrases found in a batch of documents.
+ *
+ */
+ public batchDetectKeyPhrases(
+ args: BatchDetectKeyPhrasesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public batchDetectKeyPhrases(
+ args: BatchDetectKeyPhrasesCommandInput,
+ cb: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
+ ): void;
+ public batchDetectKeyPhrases(
+ args: BatchDetectKeyPhrasesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
+ ): void;
+ public batchDetectKeyPhrases(
+ args: BatchDetectKeyPhrasesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void),
+ cb?: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Inspects a batch of documents and returns an inference of the prevailing sentiment,
+ * POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
,
+ * in each one.
+ *
+ */
+ public batchDetectSentiment(
+ args: BatchDetectSentimentCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public batchDetectSentiment(
+ args: BatchDetectSentimentCommandInput,
+ cb: (err: any, data?: BatchDetectSentimentCommandOutput) => void
+ ): void;
+ public batchDetectSentiment(
+ args: BatchDetectSentimentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchDetectSentimentCommandOutput) => void
+ ): void;
+ public batchDetectSentiment(
+ args: BatchDetectSentimentCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: BatchDetectSentimentCommandOutput) => void),
+ cb?: (err: any, data?: BatchDetectSentimentCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * 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 how-syntax.
+ *
+ */
+ public batchDetectSyntax(
+ args: BatchDetectSyntaxCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public batchDetectSyntax(
+ args: BatchDetectSyntaxCommandInput,
+ cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
+ ): void;
+ public batchDetectSyntax(
+ args: BatchDetectSyntaxCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
+ ): void;
+ public batchDetectSyntax(
+ args: BatchDetectSyntaxCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: BatchDetectSyntaxCommandOutput) => void),
+ cb?: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * 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.
+ *
+ */
+ public classifyDocument(
+ args: ClassifyDocumentCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public classifyDocument(
+ args: ClassifyDocumentCommandInput,
+ cb: (err: any, data?: ClassifyDocumentCommandOutput) => void
+ ): void;
+ public classifyDocument(
+ args: ClassifyDocumentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ClassifyDocumentCommandOutput) => void
+ ): void;
+ public classifyDocument(
+ args: ClassifyDocumentCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ClassifyDocumentCommandOutput) => void),
+ cb?: (err: any, data?: ClassifyDocumentCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * 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 how-document-classification.
+ *
+ */
+ public createDocumentClassifier(
+ args: CreateDocumentClassifierCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createDocumentClassifier(
+ args: CreateDocumentClassifierCommandInput,
+ cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
+ ): void;
+ public createDocumentClassifier(
+ args: CreateDocumentClassifierCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
+ ): void;
+ public createDocumentClassifier(
+ args: CreateDocumentClassifierCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateDocumentClassifierCommandOutput) => void),
+ cb?: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Creates a model-specific endpoint for synchronous inference for a previously trained custom model
+ *
+ */
+ public createEndpoint(
+ args: CreateEndpointCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createEndpoint(
+ args: CreateEndpointCommandInput,
+ cb: (err: any, data?: CreateEndpointCommandOutput) => void
+ ): void;
+ public createEndpoint(
+ args: CreateEndpointCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateEndpointCommandOutput) => void
+ ): void;
+ public createEndpoint(
+ args: CreateEndpointCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateEndpointCommandOutput) => void),
+ cb?: (err: any, data?: CreateEndpointCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Creates an entity recognizer using submitted files. After your CreateEntityRecognizer
request is
+ * submitted, you can check job status using the API.
+ *
+ */
+ public createEntityRecognizer(
+ args: CreateEntityRecognizerCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createEntityRecognizer(
+ args: CreateEntityRecognizerCommandInput,
+ cb: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
+ ): void;
+ public createEntityRecognizer(
+ args: CreateEntityRecognizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
+ ): void;
+ public createEntityRecognizer(
+ args: CreateEntityRecognizerCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateEntityRecognizerCommandOutput) => void),
+ cb?: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Deletes a previously created document classifier
+ * Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be
+ * deleted. If an active inference job is using the model, a ResourceInUseException
will be
+ * returned.
+ * 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.
+ *
+ *
+ */
+ public deleteDocumentClassifier(
+ args: DeleteDocumentClassifierCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteDocumentClassifier(
+ args: DeleteDocumentClassifierCommandInput,
+ cb: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
+ ): void;
+ public deleteDocumentClassifier(
+ args: DeleteDocumentClassifierCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
+ ): void;
+ public deleteDocumentClassifier(
+ args: DeleteDocumentClassifierCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteDocumentClassifierCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted.
+ *
+ */
+ public deleteEndpoint(
+ args: DeleteEndpointCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteEndpoint(
+ args: DeleteEndpointCommandInput,
+ cb: (err: any, data?: DeleteEndpointCommandOutput) => void
+ ): void;
+ public deleteEndpoint(
+ args: DeleteEndpointCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteEndpointCommandOutput) => void
+ ): void;
+ public deleteEndpoint(
+ args: DeleteEndpointCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteEndpointCommandOutput) => void),
+ cb?: (err: any, data?: DeleteEndpointCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Deletes an entity recognizer.
+ * Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be
+ * deleted. If an active inference job is using the model, a ResourceInUseException
will be
+ * returned.
+ * 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.
+ *
+ */
+ public deleteEntityRecognizer(
+ args: DeleteEntityRecognizerCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteEntityRecognizer(
+ args: DeleteEntityRecognizerCommandInput,
+ cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
+ ): void;
+ public deleteEntityRecognizer(
+ args: DeleteEntityRecognizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
+ ): void;
+ public deleteEntityRecognizer(
+ args: DeleteEntityRecognizerCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteEntityRecognizerCommandOutput) => void),
+ cb?: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a document classification job. Use this operation to
+ * get the status of a classification job.
+ *
+ */
+ public describeDocumentClassificationJob(
+ args: DescribeDocumentClassificationJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeDocumentClassificationJob(
+ args: DescribeDocumentClassificationJobCommandInput,
+ cb: (
+ err: any,
+ data?: DescribeDocumentClassificationJobCommandOutput
+ ) => void
+ ): void;
+ public describeDocumentClassificationJob(
+ args: DescribeDocumentClassificationJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (
+ err: any,
+ data?: DescribeDocumentClassificationJobCommandOutput
+ ) => void
+ ): void;
+ public describeDocumentClassificationJob(
+ args: DescribeDocumentClassificationJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: DescribeDocumentClassificationJobCommandOutput
+ ) => void),
+ cb?: (
+ err: any,
+ data?: DescribeDocumentClassificationJobCommandOutput
+ ) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a document classifier.
+ *
+ */
+ public describeDocumentClassifier(
+ args: DescribeDocumentClassifierCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeDocumentClassifier(
+ args: DescribeDocumentClassifierCommandInput,
+ cb: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
+ ): void;
+ public describeDocumentClassifier(
+ args: DescribeDocumentClassifierCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
+ ): void;
+ public describeDocumentClassifier(
+ args: DescribeDocumentClassifierCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeDocumentClassifierCommandOutput) => void),
+ cb?: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a dominant language detection job. Use this operation
+ * to get the status of a detection job.
+ *
+ */
+ public describeDominantLanguageDetectionJob(
+ args: DescribeDominantLanguageDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeDominantLanguageDetectionJob(
+ args: DescribeDominantLanguageDetectionJobCommandInput,
+ cb: (
+ err: any,
+ data?: DescribeDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): void;
+ public describeDominantLanguageDetectionJob(
+ args: DescribeDominantLanguageDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (
+ err: any,
+ data?: DescribeDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): void;
+ public describeDominantLanguageDetectionJob(
+ args: DescribeDominantLanguageDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: DescribeDominantLanguageDetectionJobCommandOutput
+ ) => void),
+ cb?: (
+ err: any,
+ data?: DescribeDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint.
+ *
+ */
+ public describeEndpoint(
+ args: DescribeEndpointCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeEndpoint(
+ args: DescribeEndpointCommandInput,
+ cb: (err: any, data?: DescribeEndpointCommandOutput) => void
+ ): void;
+ public describeEndpoint(
+ args: DescribeEndpointCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeEndpointCommandOutput) => void
+ ): void;
+ public describeEndpoint(
+ args: DescribeEndpointCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeEndpointCommandOutput) => void),
+ cb?: (err: any, data?: DescribeEndpointCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with an entities detection job. Use this operation to get
+ * the status of a detection job.
+ *
+ */
+ public describeEntitiesDetectionJob(
+ args: DescribeEntitiesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeEntitiesDetectionJob(
+ args: DescribeEntitiesDetectionJobCommandInput,
+ cb: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public describeEntitiesDetectionJob(
+ args: DescribeEntitiesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public describeEntitiesDetectionJob(
+ args: DescribeEntitiesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Provides details about an entity recognizer including status, S3 buckets containing
+ * training data, recognizer metadata, metrics, and so on.
+ *
+ */
+ public describeEntityRecognizer(
+ args: DescribeEntityRecognizerCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeEntityRecognizer(
+ args: DescribeEntityRecognizerCommandInput,
+ cb: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
+ ): void;
+ public describeEntityRecognizer(
+ args: DescribeEntityRecognizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
+ ): void;
+ public describeEntityRecognizer(
+ args: DescribeEntityRecognizerCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeEntityRecognizerCommandOutput) => void),
+ cb?: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a key phrases detection job. Use this operation to get
+ * the status of a detection job.
+ *
+ */
+ public describeKeyPhrasesDetectionJob(
+ args: DescribeKeyPhrasesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeKeyPhrasesDetectionJob(
+ args: DescribeKeyPhrasesDetectionJobCommandInput,
+ cb: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public describeKeyPhrasesDetectionJob(
+ args: DescribeKeyPhrasesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public describeKeyPhrasesDetectionJob(
+ args: DescribeKeyPhrasesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: DescribeKeyPhrasesDetectionJobCommandOutput
+ ) => void),
+ cb?: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a sentiment detection job. Use this operation to get
+ * the status of a detection job.
+ *
+ */
+ public describeSentimentDetectionJob(
+ args: DescribeSentimentDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeSentimentDetectionJob(
+ args: DescribeSentimentDetectionJobCommandInput,
+ cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public describeSentimentDetectionJob(
+ args: DescribeSentimentDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public describeSentimentDetectionJob(
+ args: DescribeSentimentDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets the properties associated with a topic detection job. Use this operation to get
+ * the status of a detection job.
+ *
+ */
+ public describeTopicsDetectionJob(
+ args: DescribeTopicsDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeTopicsDetectionJob(
+ args: DescribeTopicsDetectionJobCommandInput,
+ cb: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
+ ): void;
+ public describeTopicsDetectionJob(
+ args: DescribeTopicsDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
+ ): void;
+ public describeTopicsDetectionJob(
+ args: DescribeTopicsDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Determines the dominant language of the input text. For a list of languages that Amazon Comprehend
+ * can detect, see Amazon Comprehend Supported Languages.
+ *
+ *
+ */
+ public detectDominantLanguage(
+ args: DetectDominantLanguageCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public detectDominantLanguage(
+ args: DetectDominantLanguageCommandInput,
+ cb: (err: any, data?: DetectDominantLanguageCommandOutput) => void
+ ): void;
+ public detectDominantLanguage(
+ args: DetectDominantLanguageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DetectDominantLanguageCommandOutput) => void
+ ): void;
+ public detectDominantLanguage(
+ args: DetectDominantLanguageCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DetectDominantLanguageCommandOutput) => void),
+ cb?: (err: any, data?: DetectDominantLanguageCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Inspects text for named entities, and returns information about them. For more
+ * information, about named entities, see how-entities.
+ *
+ *
+ */
+ public detectEntities(
+ args: DetectEntitiesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public detectEntities(
+ args: DetectEntitiesCommandInput,
+ cb: (err: any, data?: DetectEntitiesCommandOutput) => void
+ ): void;
+ public detectEntities(
+ args: DetectEntitiesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DetectEntitiesCommandOutput) => void
+ ): void;
+ public detectEntities(
+ args: DetectEntitiesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DetectEntitiesCommandOutput) => void),
+ cb?: (err: any, data?: DetectEntitiesCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Detects the key noun phrases found in the text.
+ *
+ *
+ */
+ public detectKeyPhrases(
+ args: DetectKeyPhrasesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public detectKeyPhrases(
+ args: DetectKeyPhrasesCommandInput,
+ cb: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
+ ): void;
+ public detectKeyPhrases(
+ args: DetectKeyPhrasesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
+ ): void;
+ public detectKeyPhrases(
+ args: DetectKeyPhrasesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DetectKeyPhrasesCommandOutput) => void),
+ cb?: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Inspects text and returns an inference of the prevailing sentiment
+ * (POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
).
+ *
+ *
+ */
+ public detectSentiment(
+ args: DetectSentimentCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public detectSentiment(
+ args: DetectSentimentCommandInput,
+ cb: (err: any, data?: DetectSentimentCommandOutput) => void
+ ): void;
+ public detectSentiment(
+ args: DetectSentimentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DetectSentimentCommandOutput) => void
+ ): void;
+ public detectSentiment(
+ args: DetectSentimentCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DetectSentimentCommandOutput) => void),
+ cb?: (err: any, data?: DetectSentimentCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Inspects text for syntax and the part of speech of words in the document. For more
+ * information, how-syntax.
+ *
+ */
+ public detectSyntax(
+ args: DetectSyntaxCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public detectSyntax(
+ args: DetectSyntaxCommandInput,
+ cb: (err: any, data?: DetectSyntaxCommandOutput) => void
+ ): void;
+ public detectSyntax(
+ args: DetectSyntaxCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DetectSyntaxCommandOutput) => void
+ ): void;
+ public detectSyntax(
+ args: DetectSyntaxCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DetectSyntaxCommandOutput) => void),
+ cb?: (err: any, data?: DetectSyntaxCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of the documentation classification jobs that you have submitted.
+ *
+ */
+ public listDocumentClassificationJobs(
+ args: ListDocumentClassificationJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listDocumentClassificationJobs(
+ args: ListDocumentClassificationJobsCommandInput,
+ cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
+ ): void;
+ public listDocumentClassificationJobs(
+ args: ListDocumentClassificationJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
+ ): void;
+ public listDocumentClassificationJobs(
+ args: ListDocumentClassificationJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: ListDocumentClassificationJobsCommandOutput
+ ) => void),
+ cb?: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of the document classifiers that you have created.
+ *
+ */
+ public listDocumentClassifiers(
+ args: ListDocumentClassifiersCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listDocumentClassifiers(
+ args: ListDocumentClassifiersCommandInput,
+ cb: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
+ ): void;
+ public listDocumentClassifiers(
+ args: ListDocumentClassifiersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
+ ): void;
+ public listDocumentClassifiers(
+ args: ListDocumentClassifiersCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListDocumentClassifiersCommandOutput) => void),
+ cb?: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of the dominant language detection jobs that you have submitted.
+ *
+ */
+ public listDominantLanguageDetectionJobs(
+ args: ListDominantLanguageDetectionJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listDominantLanguageDetectionJobs(
+ args: ListDominantLanguageDetectionJobsCommandInput,
+ cb: (
+ err: any,
+ data?: ListDominantLanguageDetectionJobsCommandOutput
+ ) => void
+ ): void;
+ public listDominantLanguageDetectionJobs(
+ args: ListDominantLanguageDetectionJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (
+ err: any,
+ data?: ListDominantLanguageDetectionJobsCommandOutput
+ ) => void
+ ): void;
+ public listDominantLanguageDetectionJobs(
+ args: ListDominantLanguageDetectionJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: ListDominantLanguageDetectionJobsCommandOutput
+ ) => void),
+ cb?: (
+ err: any,
+ data?: ListDominantLanguageDetectionJobsCommandOutput
+ ) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of all existing endpoints that you've created.
+ *
+ */
+ public listEndpoints(
+ args: ListEndpointsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listEndpoints(
+ args: ListEndpointsCommandInput,
+ cb: (err: any, data?: ListEndpointsCommandOutput) => void
+ ): void;
+ public listEndpoints(
+ args: ListEndpointsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListEndpointsCommandOutput) => void
+ ): void;
+ public listEndpoints(
+ args: ListEndpointsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListEndpointsCommandOutput) => void),
+ cb?: (err: any, data?: ListEndpointsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of the entity detection jobs that you have submitted.
+ *
+ */
+ public listEntitiesDetectionJobs(
+ args: ListEntitiesDetectionJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listEntitiesDetectionJobs(
+ args: ListEntitiesDetectionJobsCommandInput,
+ cb: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
+ ): void;
+ public listEntitiesDetectionJobs(
+ args: ListEntitiesDetectionJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
+ ): void;
+ public listEntitiesDetectionJobs(
+ args: ListEntitiesDetectionJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void),
+ cb?: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * 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.
+ * The results of this list are not in any particular order. Please get the list and sort
+ * locally if needed.
+ *
+ */
+ public listEntityRecognizers(
+ args: ListEntityRecognizersCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listEntityRecognizers(
+ args: ListEntityRecognizersCommandInput,
+ cb: (err: any, data?: ListEntityRecognizersCommandOutput) => void
+ ): void;
+ public listEntityRecognizers(
+ args: ListEntityRecognizersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListEntityRecognizersCommandOutput) => void
+ ): void;
+ public listEntityRecognizers(
+ args: ListEntityRecognizersCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListEntityRecognizersCommandOutput) => void),
+ cb?: (err: any, data?: ListEntityRecognizersCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Get a list of key phrase detection jobs that you have submitted.
+ *
+ */
+ public listKeyPhrasesDetectionJobs(
+ args: ListKeyPhrasesDetectionJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listKeyPhrasesDetectionJobs(
+ args: ListKeyPhrasesDetectionJobsCommandInput,
+ cb: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
+ ): void;
+ public listKeyPhrasesDetectionJobs(
+ args: ListKeyPhrasesDetectionJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
+ ): void;
+ public listKeyPhrasesDetectionJobs(
+ args: ListKeyPhrasesDetectionJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void),
+ cb?: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of sentiment detection jobs that you have submitted.
+ *
+ */
+ public listSentimentDetectionJobs(
+ args: ListSentimentDetectionJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listSentimentDetectionJobs(
+ args: ListSentimentDetectionJobsCommandInput,
+ cb: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
+ ): void;
+ public listSentimentDetectionJobs(
+ args: ListSentimentDetectionJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
+ ): void;
+ public listSentimentDetectionJobs(
+ args: ListSentimentDetectionJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListSentimentDetectionJobsCommandOutput) => void),
+ cb?: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Lists all tags associated with a given Amazon Comprehend resource.
+ *
+ */
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
+ cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Gets a list of the topic detection jobs that you have submitted.
+ *
+ */
+ public listTopicsDetectionJobs(
+ args: ListTopicsDetectionJobsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listTopicsDetectionJobs(
+ args: ListTopicsDetectionJobsCommandInput,
+ cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
+ ): void;
+ public listTopicsDetectionJobs(
+ args: ListTopicsDetectionJobsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
+ ): void;
+ public listTopicsDetectionJobs(
+ args: ListTopicsDetectionJobsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListTopicsDetectionJobsCommandOutput) => void),
+ cb?: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous document classification job. Use the operation to track the progress of the
+ * job.
+ *
+ */
+ public startDocumentClassificationJob(
+ args: StartDocumentClassificationJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startDocumentClassificationJob(
+ args: StartDocumentClassificationJobCommandInput,
+ cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
+ ): void;
+ public startDocumentClassificationJob(
+ args: StartDocumentClassificationJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
+ ): void;
+ public startDocumentClassificationJob(
+ args: StartDocumentClassificationJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: StartDocumentClassificationJobCommandOutput
+ ) => void),
+ cb?: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous dominant language detection job for a collection of documents. Use
+ * the operation to track the status
+ * of a job.
+ *
+ */
+ public startDominantLanguageDetectionJob(
+ args: StartDominantLanguageDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startDominantLanguageDetectionJob(
+ args: StartDominantLanguageDetectionJobCommandInput,
+ cb: (
+ err: any,
+ data?: StartDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): void;
+ public startDominantLanguageDetectionJob(
+ args: StartDominantLanguageDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (
+ err: any,
+ data?: StartDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): void;
+ public startDominantLanguageDetectionJob(
+ args: StartDominantLanguageDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: StartDominantLanguageDetectionJobCommandOutput
+ ) => void),
+ cb?: (
+ err: any,
+ data?: StartDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.
+ * 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 EntityRecognizerArn
must be used
+ * in order to provide access to the recognizer being used to detect the custom entity.
+ *
+ */
+ public startEntitiesDetectionJob(
+ args: StartEntitiesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startEntitiesDetectionJob(
+ args: StartEntitiesDetectionJobCommandInput,
+ cb: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public startEntitiesDetectionJob(
+ args: StartEntitiesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public startEntitiesDetectionJob(
+ args: StartEntitiesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StartEntitiesDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous key phrase detection job for a collection of documents. Use the
+ * operation to track the status of a
+ * job.
+ *
+ */
+ public startKeyPhrasesDetectionJob(
+ args: StartKeyPhrasesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startKeyPhrasesDetectionJob(
+ args: StartKeyPhrasesDetectionJobCommandInput,
+ cb: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public startKeyPhrasesDetectionJob(
+ args: StartKeyPhrasesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public startKeyPhrasesDetectionJob(
+ args: StartKeyPhrasesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous sentiment detection job for a collection of documents. use the
+ * operation to track the status of a
+ * job.
+ *
+ */
+ public startSentimentDetectionJob(
+ args: StartSentimentDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startSentimentDetectionJob(
+ args: StartSentimentDetectionJobCommandInput,
+ cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public startSentimentDetectionJob(
+ args: StartSentimentDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public startSentimentDetectionJob(
+ args: StartSentimentDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StartSentimentDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Starts an asynchronous topic detection job. Use the
+ * DescribeTopicDetectionJob
operation to track the status of a job.
+ *
+ */
+ public startTopicsDetectionJob(
+ args: StartTopicsDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startTopicsDetectionJob(
+ args: StartTopicsDetectionJobCommandInput,
+ cb: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
+ ): void;
+ public startTopicsDetectionJob(
+ args: StartTopicsDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
+ ): void;
+ public startTopicsDetectionJob(
+ args: StartTopicsDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StartTopicsDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops a dominant language detection job in progress.
+ * If the job state is IN_PROGRESS
the job is marked for termination and put
+ * into the STOP_REQUESTED
state. If the job completes before it can be stopped, it
+ * is put into the COMPLETED
state; otherwise the job is stopped and put into the
+ * STOPPED
state.
+ * If the job is in the COMPLETED
or FAILED
state when you call the
+ * StopDominantLanguageDetectionJob
operation, the operation returns a 400
+ * Internal Request Exception.
+ * When a job is stopped, any documents already processed are written to the output
+ * location.
+ *
+ */
+ public stopDominantLanguageDetectionJob(
+ args: StopDominantLanguageDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopDominantLanguageDetectionJob(
+ args: StopDominantLanguageDetectionJobCommandInput,
+ cb: (err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void
+ ): void;
+ public stopDominantLanguageDetectionJob(
+ args: StopDominantLanguageDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void
+ ): void;
+ public stopDominantLanguageDetectionJob(
+ args: StopDominantLanguageDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: StopDominantLanguageDetectionJobCommandOutput
+ ) => void),
+ cb?: (
+ err: any,
+ data?: StopDominantLanguageDetectionJobCommandOutput
+ ) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops an entities detection job in progress.
+ * If the job state is IN_PROGRESS
the job is marked for termination and put
+ * into the STOP_REQUESTED
state. If the job completes before it can be stopped, it
+ * is put into the COMPLETED
state; otherwise the job is stopped and put into the
+ * STOPPED
state.
+ * If the job is in the COMPLETED
or FAILED
state when you call the
+ * StopDominantLanguageDetectionJob
operation, the operation returns a 400
+ * Internal Request Exception.
+ * When a job is stopped, any documents already processed are written to the output
+ * location.
+ *
+ */
+ public stopEntitiesDetectionJob(
+ args: StopEntitiesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopEntitiesDetectionJob(
+ args: StopEntitiesDetectionJobCommandInput,
+ cb: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public stopEntitiesDetectionJob(
+ args: StopEntitiesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
+ ): void;
+ public stopEntitiesDetectionJob(
+ args: StopEntitiesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StopEntitiesDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops a key phrases detection job in progress.
+ * If the job state is IN_PROGRESS
the job is marked for termination and put
+ * into the STOP_REQUESTED
state. If the job completes before it can be stopped, it
+ * is put into the COMPLETED
state; otherwise the job is stopped and put into the
+ * STOPPED
state.
+ * If the job is in the COMPLETED
or FAILED
state when you call the
+ * StopDominantLanguageDetectionJob
operation, the operation returns a 400
+ * Internal Request Exception.
+ * When a job is stopped, any documents already processed are written to the output
+ * location.
+ *
+ */
+ public stopKeyPhrasesDetectionJob(
+ args: StopKeyPhrasesDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopKeyPhrasesDetectionJob(
+ args: StopKeyPhrasesDetectionJobCommandInput,
+ cb: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public stopKeyPhrasesDetectionJob(
+ args: StopKeyPhrasesDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
+ ): void;
+ public stopKeyPhrasesDetectionJob(
+ args: StopKeyPhrasesDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops a sentiment detection job in progress.
+ * If the job state is IN_PROGRESS
the job is marked for termination and put
+ * into the STOP_REQUESTED
state. If the job completes before it can be stopped, it
+ * is put into the COMPLETED
state; otherwise the job is be stopped and put into the
+ * STOPPED
state.
+ * If the job is in the COMPLETED
or FAILED
state when you call the
+ * StopDominantLanguageDetectionJob
operation, the operation returns a 400
+ * Internal Request Exception.
+ * When a job is stopped, any documents already processed are written to the output
+ * location.
+ *
+ */
+ public stopSentimentDetectionJob(
+ args: StopSentimentDetectionJobCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopSentimentDetectionJob(
+ args: StopSentimentDetectionJobCommandInput,
+ cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public stopSentimentDetectionJob(
+ args: StopSentimentDetectionJobCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
+ ): void;
+ public stopSentimentDetectionJob(
+ args: StopSentimentDetectionJobCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StopSentimentDetectionJobCommandOutput) => void),
+ cb?: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops a document classifier training job while in progress.
+ * If the training job state is TRAINING
, the job is marked for termination
+ * and put into the STOP_REQUESTED
state. If the training job completes before it can be
+ * stopped, it is put into the TRAINED
; otherwise the training job is stopped and
+ * put into the STOPPED
state and the service sends back an HTTP 200 response
+ * with an empty HTTP body.
+ *
+ *
+ */
+ public stopTrainingDocumentClassifier(
+ args: StopTrainingDocumentClassifierCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopTrainingDocumentClassifier(
+ args: StopTrainingDocumentClassifierCommandInput,
+ cb: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
+ ): void;
+ public stopTrainingDocumentClassifier(
+ args: StopTrainingDocumentClassifierCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
+ ): void;
+ public stopTrainingDocumentClassifier(
+ args: StopTrainingDocumentClassifierCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: StopTrainingDocumentClassifierCommandOutput
+ ) => void),
+ cb?: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Stops an entity recognizer training job while in progress.
+ * If the training job state is TRAINING
, the job is marked for termination and put into
+ * the STOP_REQUESTED
state. If the training job completes before it can be stopped, it is put into the TRAINED
; otherwise the
+ * training job is stopped and putted into the STOPPED
state and the service sends back an HTTP 200 response with an empty HTTP body.
+ *
+ *
+ */
+ public stopTrainingEntityRecognizer(
+ args: StopTrainingEntityRecognizerCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public stopTrainingEntityRecognizer(
+ args: StopTrainingEntityRecognizerCommandInput,
+ cb: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
+ ): void;
+ public stopTrainingEntityRecognizer(
+ args: StopTrainingEntityRecognizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
+ ): void;
+ public stopTrainingEntityRecognizer(
+ args: StopTrainingEntityRecognizerCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void),
+ cb?: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * 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.
+ *
+ */
+ public tagResource(
+ args: TagResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public tagResource(
+ args: TagResourceCommandInput,
+ cb: (err: any, data?: TagResourceCommandOutput) => void
+ ): void;
+ public tagResource(
+ args: TagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: TagResourceCommandOutput) => void
+ ): void;
+ public tagResource(
+ args: TagResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: TagResourceCommandOutput) => void),
+ cb?: (err: any, data?: TagResourceCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Removes a specific tag associated with an Amazon Comprehend resource.
+ *
+ */
+ public untagResource(
+ args: UntagResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
+ ): void;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
+ ): void;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UntagResourceCommandOutput) => void),
+ cb?: (err: any, data?: UntagResourceCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+
+ /**
+ *
+ * Updates information about the specified endpoint.
+ *
+ */
+ public updateEndpoint(
+ args: UpdateEndpointCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public updateEndpoint(
+ args: UpdateEndpointCommandInput,
+ cb: (err: any, data?: UpdateEndpointCommandOutput) => void
+ ): void;
+ public updateEndpoint(
+ args: UpdateEndpointCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateEndpointCommandOutput) => void
+ ): void;
+ public updateEndpoint(
+ args: UpdateEndpointCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UpdateEndpointCommandOutput) => void),
+ cb?: (err: any, data?: UpdateEndpointCommandOutput) => void
+ ): Promise | void {
+ 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);
+ }
+ }
+}
diff --git a/clients/client-comprehend/ComprehendClient.ts b/clients/client-comprehend/ComprehendClient.ts
new file mode 100644
index 000000000000..802c0ea8d229
--- /dev/null
+++ b/clients/client-comprehend/ComprehendClient.ts
@@ -0,0 +1,400 @@
+import {
+ BatchDetectDominantLanguageRequest,
+ BatchDetectDominantLanguageResponse,
+ BatchDetectEntitiesRequest,
+ BatchDetectEntitiesResponse,
+ BatchDetectKeyPhrasesRequest,
+ BatchDetectKeyPhrasesResponse,
+ BatchDetectSentimentRequest,
+ BatchDetectSentimentResponse,
+ BatchDetectSyntaxRequest,
+ BatchDetectSyntaxResponse,
+ ClassifyDocumentRequest,
+ ClassifyDocumentResponse,
+ CreateDocumentClassifierRequest,
+ CreateDocumentClassifierResponse,
+ CreateEndpointRequest,
+ CreateEndpointResponse,
+ CreateEntityRecognizerRequest,
+ CreateEntityRecognizerResponse,
+ DeleteDocumentClassifierRequest,
+ DeleteDocumentClassifierResponse,
+ DeleteEndpointRequest,
+ DeleteEndpointResponse,
+ DeleteEntityRecognizerRequest,
+ DeleteEntityRecognizerResponse,
+ DescribeDocumentClassificationJobRequest,
+ DescribeDocumentClassificationJobResponse,
+ DescribeDocumentClassifierRequest,
+ DescribeDocumentClassifierResponse,
+ DescribeDominantLanguageDetectionJobRequest,
+ DescribeDominantLanguageDetectionJobResponse,
+ DescribeEndpointRequest,
+ DescribeEndpointResponse,
+ DescribeEntitiesDetectionJobRequest,
+ DescribeEntitiesDetectionJobResponse,
+ DescribeEntityRecognizerRequest,
+ DescribeEntityRecognizerResponse,
+ DescribeKeyPhrasesDetectionJobRequest,
+ DescribeKeyPhrasesDetectionJobResponse,
+ DescribeSentimentDetectionJobRequest,
+ DescribeSentimentDetectionJobResponse,
+ DescribeTopicsDetectionJobRequest,
+ DescribeTopicsDetectionJobResponse,
+ DetectDominantLanguageRequest,
+ DetectDominantLanguageResponse,
+ DetectEntitiesRequest,
+ DetectEntitiesResponse,
+ DetectKeyPhrasesRequest,
+ DetectKeyPhrasesResponse,
+ DetectSentimentRequest,
+ DetectSentimentResponse,
+ DetectSyntaxRequest,
+ DetectSyntaxResponse,
+ ListDocumentClassificationJobsRequest,
+ ListDocumentClassificationJobsResponse,
+ ListDocumentClassifiersRequest,
+ ListDocumentClassifiersResponse,
+ ListDominantLanguageDetectionJobsRequest,
+ ListDominantLanguageDetectionJobsResponse,
+ ListEndpointsRequest,
+ ListEndpointsResponse,
+ ListEntitiesDetectionJobsRequest,
+ ListEntitiesDetectionJobsResponse,
+ ListEntityRecognizersRequest,
+ ListEntityRecognizersResponse,
+ ListKeyPhrasesDetectionJobsRequest,
+ ListKeyPhrasesDetectionJobsResponse,
+ ListSentimentDetectionJobsRequest,
+ ListSentimentDetectionJobsResponse,
+ ListTagsForResourceRequest,
+ ListTagsForResourceResponse,
+ ListTopicsDetectionJobsRequest,
+ ListTopicsDetectionJobsResponse,
+ StartDocumentClassificationJobRequest,
+ StartDocumentClassificationJobResponse,
+ StartDominantLanguageDetectionJobRequest,
+ StartDominantLanguageDetectionJobResponse,
+ StartEntitiesDetectionJobRequest,
+ StartEntitiesDetectionJobResponse,
+ StartKeyPhrasesDetectionJobRequest,
+ StartKeyPhrasesDetectionJobResponse,
+ StartSentimentDetectionJobRequest,
+ StartSentimentDetectionJobResponse,
+ StartTopicsDetectionJobRequest,
+ StartTopicsDetectionJobResponse,
+ StopDominantLanguageDetectionJobRequest,
+ StopDominantLanguageDetectionJobResponse,
+ StopEntitiesDetectionJobRequest,
+ StopEntitiesDetectionJobResponse,
+ StopKeyPhrasesDetectionJobRequest,
+ StopKeyPhrasesDetectionJobResponse,
+ StopSentimentDetectionJobRequest,
+ StopSentimentDetectionJobResponse,
+ StopTrainingDocumentClassifierRequest,
+ StopTrainingDocumentClassifierResponse,
+ StopTrainingEntityRecognizerRequest,
+ StopTrainingEntityRecognizerResponse,
+ TagResourceRequest,
+ TagResourceResponse,
+ UntagResourceRequest,
+ UntagResourceResponse,
+ UpdateEndpointRequest,
+ UpdateEndpointResponse
+} from "./models/index";
+import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
+import {
+ EndpointsInputConfig,
+ EndpointsResolvedConfig,
+ RegionInputConfig,
+ RegionResolvedConfig,
+ resolveEndpointsConfig,
+ resolveRegionConfig
+} from "@aws-sdk/config-resolver";
+import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
+import {
+ HostHeaderInputConfig,
+ HostHeaderResolvedConfig,
+ getHostHeaderPlugin,
+ resolveHostHeaderConfig
+} from "@aws-sdk/middleware-host-header";
+import {
+ RetryInputConfig,
+ RetryResolvedConfig,
+ getRetryPlugin,
+ resolveRetryConfig
+} from "@aws-sdk/middleware-retry";
+import {
+ AwsAuthInputConfig,
+ AwsAuthResolvedConfig,
+ getAwsAuthPlugin,
+ resolveAwsAuthConfig
+} from "@aws-sdk/middleware-signing";
+import {
+ UserAgentInputConfig,
+ UserAgentResolvedConfig,
+ getUserAgentPlugin,
+ resolveUserAgentConfig
+} from "@aws-sdk/middleware-user-agent";
+import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
+import {
+ Client as __Client,
+ SmithyConfiguration as __SmithyConfiguration,
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration
+} from "@aws-sdk/smithy-client";
+import {
+ RegionInfoProvider,
+ Credentials as __Credentials,
+ Decoder as __Decoder,
+ Encoder as __Encoder,
+ HashConstructor as __HashConstructor,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ Provider as __Provider,
+ StreamCollector as __StreamCollector,
+ UrlParser as __UrlParser
+} from "@aws-sdk/types";
+
+export type ServiceInputTypes =
+ | BatchDetectDominantLanguageRequest
+ | BatchDetectEntitiesRequest
+ | BatchDetectKeyPhrasesRequest
+ | BatchDetectSentimentRequest
+ | BatchDetectSyntaxRequest
+ | ClassifyDocumentRequest
+ | CreateDocumentClassifierRequest
+ | CreateEndpointRequest
+ | CreateEntityRecognizerRequest
+ | DeleteDocumentClassifierRequest
+ | DeleteEndpointRequest
+ | DeleteEntityRecognizerRequest
+ | DescribeDocumentClassificationJobRequest
+ | DescribeDocumentClassifierRequest
+ | DescribeDominantLanguageDetectionJobRequest
+ | DescribeEndpointRequest
+ | DescribeEntitiesDetectionJobRequest
+ | DescribeEntityRecognizerRequest
+ | DescribeKeyPhrasesDetectionJobRequest
+ | DescribeSentimentDetectionJobRequest
+ | DescribeTopicsDetectionJobRequest
+ | DetectDominantLanguageRequest
+ | DetectEntitiesRequest
+ | DetectKeyPhrasesRequest
+ | DetectSentimentRequest
+ | DetectSyntaxRequest
+ | ListDocumentClassificationJobsRequest
+ | ListDocumentClassifiersRequest
+ | ListDominantLanguageDetectionJobsRequest
+ | ListEndpointsRequest
+ | ListEntitiesDetectionJobsRequest
+ | ListEntityRecognizersRequest
+ | ListKeyPhrasesDetectionJobsRequest
+ | ListSentimentDetectionJobsRequest
+ | ListTagsForResourceRequest
+ | ListTopicsDetectionJobsRequest
+ | StartDocumentClassificationJobRequest
+ | StartDominantLanguageDetectionJobRequest
+ | StartEntitiesDetectionJobRequest
+ | StartKeyPhrasesDetectionJobRequest
+ | StartSentimentDetectionJobRequest
+ | StartTopicsDetectionJobRequest
+ | StopDominantLanguageDetectionJobRequest
+ | StopEntitiesDetectionJobRequest
+ | StopKeyPhrasesDetectionJobRequest
+ | StopSentimentDetectionJobRequest
+ | StopTrainingDocumentClassifierRequest
+ | StopTrainingEntityRecognizerRequest
+ | TagResourceRequest
+ | UntagResourceRequest
+ | UpdateEndpointRequest;
+
+export type ServiceOutputTypes =
+ | BatchDetectDominantLanguageResponse
+ | BatchDetectEntitiesResponse
+ | BatchDetectKeyPhrasesResponse
+ | BatchDetectSentimentResponse
+ | BatchDetectSyntaxResponse
+ | ClassifyDocumentResponse
+ | CreateDocumentClassifierResponse
+ | CreateEndpointResponse
+ | CreateEntityRecognizerResponse
+ | DeleteDocumentClassifierResponse
+ | DeleteEndpointResponse
+ | DeleteEntityRecognizerResponse
+ | DescribeDocumentClassificationJobResponse
+ | DescribeDocumentClassifierResponse
+ | DescribeDominantLanguageDetectionJobResponse
+ | DescribeEndpointResponse
+ | DescribeEntitiesDetectionJobResponse
+ | DescribeEntityRecognizerResponse
+ | DescribeKeyPhrasesDetectionJobResponse
+ | DescribeSentimentDetectionJobResponse
+ | DescribeTopicsDetectionJobResponse
+ | DetectDominantLanguageResponse
+ | DetectEntitiesResponse
+ | DetectKeyPhrasesResponse
+ | DetectSentimentResponse
+ | DetectSyntaxResponse
+ | ListDocumentClassificationJobsResponse
+ | ListDocumentClassifiersResponse
+ | ListDominantLanguageDetectionJobsResponse
+ | ListEndpointsResponse
+ | ListEntitiesDetectionJobsResponse
+ | ListEntityRecognizersResponse
+ | ListKeyPhrasesDetectionJobsResponse
+ | ListSentimentDetectionJobsResponse
+ | ListTagsForResourceResponse
+ | ListTopicsDetectionJobsResponse
+ | StartDocumentClassificationJobResponse
+ | StartDominantLanguageDetectionJobResponse
+ | StartEntitiesDetectionJobResponse
+ | StartKeyPhrasesDetectionJobResponse
+ | StartSentimentDetectionJobResponse
+ | StartTopicsDetectionJobResponse
+ | StopDominantLanguageDetectionJobResponse
+ | StopEntitiesDetectionJobResponse
+ | StopKeyPhrasesDetectionJobResponse
+ | StopSentimentDetectionJobResponse
+ | StopTrainingDocumentClassifierResponse
+ | StopTrainingEntityRecognizerResponse
+ | TagResourceResponse
+ | UntagResourceResponse
+ | UpdateEndpointResponse;
+
+export interface ClientDefaults
+ extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
+ /**
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
+ */
+ requestHandler?: __HttpHandler;
+
+ /**
+ * A constructor for a class implementing the @aws-sdk/types.Hash interface
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
+ */
+ sha256?: __HashConstructor;
+
+ /**
+ * The function that will be used to convert strings into HTTP endpoints.
+ */
+ urlParser?: __UrlParser;
+
+ /**
+ * A function that can calculate the length of a request body.
+ */
+ bodyLengthChecker?: (body: any) => number | undefined;
+
+ /**
+ * A function that converts a stream into an array of bytes.
+ */
+ streamCollector?: __StreamCollector;
+
+ /**
+ * The function that will be used to convert a base64-encoded string to a byte array
+ */
+ base64Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a base64-encoded string
+ */
+ base64Encoder?: __Encoder;
+
+ /**
+ * The function that will be used to convert a UTF8-encoded string to a byte array
+ */
+ utf8Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a UTF-8 encoded string
+ */
+ utf8Encoder?: __Encoder;
+
+ /**
+ * The string that will be used to populate default value in 'User-Agent' header
+ */
+ defaultUserAgent?: string;
+
+ /**
+ * The runtime environment
+ */
+ runtime?: string;
+
+ /**
+ * The service name with which to sign requests.
+ */
+ signingName?: string;
+
+ /**
+ * Default credentials provider; Not available in browser runtime
+ */
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
+
+ /**
+ * Provider function that return promise of a region string
+ */
+ regionDefaultProvider?: (input: any) => __Provider;
+
+ /**
+ * Fetch related hostname, signing name or signing region with given region.
+ */
+ regionInfoProvider?: RegionInfoProvider;
+}
+
+export type ComprehendClientConfig = Partial<
+ __SmithyConfiguration<__HttpHandlerOptions>
+> &
+ ClientDefaults &
+ RegionInputConfig &
+ EndpointsInputConfig &
+ AwsAuthInputConfig &
+ RetryInputConfig &
+ UserAgentInputConfig &
+ HostHeaderInputConfig;
+
+export type ComprehendClientResolvedConfig = __SmithyResolvedConfiguration<
+ __HttpHandlerOptions
+> &
+ Required &
+ RegionResolvedConfig &
+ EndpointsResolvedConfig &
+ AwsAuthResolvedConfig &
+ RetryResolvedConfig &
+ UserAgentResolvedConfig &
+ HostHeaderResolvedConfig;
+
+/**
+ *
+ * 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.
+ *
+ */
+export class ComprehendClient extends __Client<
+ __HttpHandlerOptions,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+ ComprehendClientResolvedConfig
+> {
+ readonly config: ComprehendClientResolvedConfig;
+
+ constructor(configuration: ComprehendClientConfig) {
+ let _config_0 = {
+ ...__ClientDefaultValues,
+ ...configuration
+ };
+ let _config_1 = resolveRegionConfig(_config_0);
+ let _config_2 = resolveEndpointsConfig(_config_1);
+ let _config_3 = resolveAwsAuthConfig(_config_2);
+ let _config_4 = resolveRetryConfig(_config_3);
+ let _config_5 = resolveUserAgentConfig(_config_4);
+ let _config_6 = resolveHostHeaderConfig(_config_5);
+ super(_config_6);
+ this.config = _config_6;
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
+ this.middlewareStack.use(getRetryPlugin(this.config));
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
+ }
+
+ destroy(): void {}
+}
diff --git a/clients/client-comprehend/LICENSE b/clients/client-comprehend/LICENSE
new file mode 100644
index 000000000000..b7d2463d8cc0
--- /dev/null
+++ b/clients/client-comprehend/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/clients/client-comprehend/README.md b/clients/client-comprehend/README.md
new file mode 100644
index 000000000000..b7b9da1d534c
--- /dev/null
+++ b/clients/client-comprehend/README.md
@@ -0,0 +1,6 @@
+@aws-sdk/client-comprehend
+
+[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-comprehend/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-comprehend)
+[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-comprehend.svg)](https://www.npmjs.com/package/@aws-sdk/client-comprehend)
+
+For SDK usage, please step to [SDK reademe](https://github.com/aws/aws-sdk-js-v3).
diff --git a/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts b/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts
new file mode 100644
index 000000000000..3458797d0e7d
--- /dev/null
+++ b/clients/client-comprehend/commands/BatchDetectDominantLanguageCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ BatchDetectDominantLanguageRequest,
+ BatchDetectDominantLanguageResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1BatchDetectDominantLanguageCommand,
+ serializeAws_json1_1BatchDetectDominantLanguageCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type BatchDetectDominantLanguageCommandInput = BatchDetectDominantLanguageRequest;
+export type BatchDetectDominantLanguageCommandOutput = BatchDetectDominantLanguageResponse;
+
+export class BatchDetectDominantLanguageCommand extends $Command<
+ BatchDetectDominantLanguageCommandInput,
+ BatchDetectDominantLanguageCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: BatchDetectDominantLanguageCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ BatchDetectDominantLanguageCommandInput,
+ BatchDetectDominantLanguageCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: BatchDetectDominantLanguageCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1BatchDetectDominantLanguageCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1BatchDetectDominantLanguageCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts b/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts
new file mode 100644
index 000000000000..95788ebf1ea7
--- /dev/null
+++ b/clients/client-comprehend/commands/BatchDetectEntitiesCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ BatchDetectEntitiesRequest,
+ BatchDetectEntitiesResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1BatchDetectEntitiesCommand,
+ serializeAws_json1_1BatchDetectEntitiesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type BatchDetectEntitiesCommandInput = BatchDetectEntitiesRequest;
+export type BatchDetectEntitiesCommandOutput = BatchDetectEntitiesResponse;
+
+export class BatchDetectEntitiesCommand extends $Command<
+ BatchDetectEntitiesCommandInput,
+ BatchDetectEntitiesCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: BatchDetectEntitiesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ BatchDetectEntitiesCommandInput,
+ BatchDetectEntitiesCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: BatchDetectEntitiesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1BatchDetectEntitiesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1BatchDetectEntitiesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts b/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts
new file mode 100644
index 000000000000..0ce26a7c0dc5
--- /dev/null
+++ b/clients/client-comprehend/commands/BatchDetectKeyPhrasesCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ BatchDetectKeyPhrasesRequest,
+ BatchDetectKeyPhrasesResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1BatchDetectKeyPhrasesCommand,
+ serializeAws_json1_1BatchDetectKeyPhrasesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type BatchDetectKeyPhrasesCommandInput = BatchDetectKeyPhrasesRequest;
+export type BatchDetectKeyPhrasesCommandOutput = BatchDetectKeyPhrasesResponse;
+
+export class BatchDetectKeyPhrasesCommand extends $Command<
+ BatchDetectKeyPhrasesCommandInput,
+ BatchDetectKeyPhrasesCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: BatchDetectKeyPhrasesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ BatchDetectKeyPhrasesCommandInput,
+ BatchDetectKeyPhrasesCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: BatchDetectKeyPhrasesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1BatchDetectKeyPhrasesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1BatchDetectKeyPhrasesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts b/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts
new file mode 100644
index 000000000000..c41dc158943c
--- /dev/null
+++ b/clients/client-comprehend/commands/BatchDetectSentimentCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ BatchDetectSentimentRequest,
+ BatchDetectSentimentResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1BatchDetectSentimentCommand,
+ serializeAws_json1_1BatchDetectSentimentCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type BatchDetectSentimentCommandInput = BatchDetectSentimentRequest;
+export type BatchDetectSentimentCommandOutput = BatchDetectSentimentResponse;
+
+export class BatchDetectSentimentCommand extends $Command<
+ BatchDetectSentimentCommandInput,
+ BatchDetectSentimentCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: BatchDetectSentimentCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ BatchDetectSentimentCommandInput,
+ BatchDetectSentimentCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: BatchDetectSentimentCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1BatchDetectSentimentCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1BatchDetectSentimentCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts b/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts
new file mode 100644
index 000000000000..42dce795efde
--- /dev/null
+++ b/clients/client-comprehend/commands/BatchDetectSyntaxCommand.ts
@@ -0,0 +1,84 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ BatchDetectSyntaxRequest,
+ BatchDetectSyntaxResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1BatchDetectSyntaxCommand,
+ serializeAws_json1_1BatchDetectSyntaxCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type BatchDetectSyntaxCommandInput = BatchDetectSyntaxRequest;
+export type BatchDetectSyntaxCommandOutput = BatchDetectSyntaxResponse;
+
+export class BatchDetectSyntaxCommand extends $Command<
+ BatchDetectSyntaxCommandInput,
+ BatchDetectSyntaxCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: BatchDetectSyntaxCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: BatchDetectSyntaxCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1BatchDetectSyntaxCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1BatchDetectSyntaxCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ClassifyDocumentCommand.ts b/clients/client-comprehend/commands/ClassifyDocumentCommand.ts
new file mode 100644
index 000000000000..6e25d34f0cca
--- /dev/null
+++ b/clients/client-comprehend/commands/ClassifyDocumentCommand.ts
@@ -0,0 +1,84 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ClassifyDocumentRequest,
+ ClassifyDocumentResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ClassifyDocumentCommand,
+ serializeAws_json1_1ClassifyDocumentCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ClassifyDocumentCommandInput = ClassifyDocumentRequest;
+export type ClassifyDocumentCommandOutput = ClassifyDocumentResponse;
+
+export class ClassifyDocumentCommand extends $Command<
+ ClassifyDocumentCommandInput,
+ ClassifyDocumentCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ClassifyDocumentCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ClassifyDocumentCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ClassifyDocumentCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ClassifyDocumentCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts b/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts
new file mode 100644
index 000000000000..44b8fc7c3fc2
--- /dev/null
+++ b/clients/client-comprehend/commands/CreateDocumentClassifierCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ CreateDocumentClassifierRequest,
+ CreateDocumentClassifierResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1CreateDocumentClassifierCommand,
+ serializeAws_json1_1CreateDocumentClassifierCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateDocumentClassifierCommandInput = CreateDocumentClassifierRequest;
+export type CreateDocumentClassifierCommandOutput = CreateDocumentClassifierResponse;
+
+export class CreateDocumentClassifierCommand extends $Command<
+ CreateDocumentClassifierCommandInput,
+ CreateDocumentClassifierCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateDocumentClassifierCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ CreateDocumentClassifierCommandInput,
+ CreateDocumentClassifierCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateDocumentClassifierCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateDocumentClassifierCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateDocumentClassifierCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/CreateEndpointCommand.ts b/clients/client-comprehend/commands/CreateEndpointCommand.ts
new file mode 100644
index 000000000000..cdbcec094530
--- /dev/null
+++ b/clients/client-comprehend/commands/CreateEndpointCommand.ts
@@ -0,0 +1,81 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import { CreateEndpointRequest, CreateEndpointResponse } from "../models/index";
+import {
+ deserializeAws_json1_1CreateEndpointCommand,
+ serializeAws_json1_1CreateEndpointCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateEndpointCommandInput = CreateEndpointRequest;
+export type CreateEndpointCommandOutput = CreateEndpointResponse;
+
+export class CreateEndpointCommand extends $Command<
+ CreateEndpointCommandInput,
+ CreateEndpointCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateEndpointCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateEndpointCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateEndpointCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateEndpointCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts b/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts
new file mode 100644
index 000000000000..ec341af92ac1
--- /dev/null
+++ b/clients/client-comprehend/commands/CreateEntityRecognizerCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ CreateEntityRecognizerRequest,
+ CreateEntityRecognizerResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1CreateEntityRecognizerCommand,
+ serializeAws_json1_1CreateEntityRecognizerCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateEntityRecognizerCommandInput = CreateEntityRecognizerRequest;
+export type CreateEntityRecognizerCommandOutput = CreateEntityRecognizerResponse;
+
+export class CreateEntityRecognizerCommand extends $Command<
+ CreateEntityRecognizerCommandInput,
+ CreateEntityRecognizerCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateEntityRecognizerCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ CreateEntityRecognizerCommandInput,
+ CreateEntityRecognizerCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateEntityRecognizerCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateEntityRecognizerCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateEntityRecognizerCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts b/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts
new file mode 100644
index 000000000000..005b40d748f9
--- /dev/null
+++ b/clients/client-comprehend/commands/DeleteDocumentClassifierCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DeleteDocumentClassifierRequest,
+ DeleteDocumentClassifierResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeleteDocumentClassifierCommand,
+ serializeAws_json1_1DeleteDocumentClassifierCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteDocumentClassifierCommandInput = DeleteDocumentClassifierRequest;
+export type DeleteDocumentClassifierCommandOutput = DeleteDocumentClassifierResponse;
+
+export class DeleteDocumentClassifierCommand extends $Command<
+ DeleteDocumentClassifierCommandInput,
+ DeleteDocumentClassifierCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteDocumentClassifierCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeleteDocumentClassifierCommandInput,
+ DeleteDocumentClassifierCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteDocumentClassifierCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteDocumentClassifierCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteDocumentClassifierCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DeleteEndpointCommand.ts b/clients/client-comprehend/commands/DeleteEndpointCommand.ts
new file mode 100644
index 000000000000..ec1dfeeda42f
--- /dev/null
+++ b/clients/client-comprehend/commands/DeleteEndpointCommand.ts
@@ -0,0 +1,81 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import { DeleteEndpointRequest, DeleteEndpointResponse } from "../models/index";
+import {
+ deserializeAws_json1_1DeleteEndpointCommand,
+ serializeAws_json1_1DeleteEndpointCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteEndpointCommandInput = DeleteEndpointRequest;
+export type DeleteEndpointCommandOutput = DeleteEndpointResponse;
+
+export class DeleteEndpointCommand extends $Command<
+ DeleteEndpointCommandInput,
+ DeleteEndpointCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteEndpointCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteEndpointCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteEndpointCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteEndpointCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts b/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts
new file mode 100644
index 000000000000..5d0d553587ce
--- /dev/null
+++ b/clients/client-comprehend/commands/DeleteEntityRecognizerCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DeleteEntityRecognizerRequest,
+ DeleteEntityRecognizerResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeleteEntityRecognizerCommand,
+ serializeAws_json1_1DeleteEntityRecognizerCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteEntityRecognizerCommandInput = DeleteEntityRecognizerRequest;
+export type DeleteEntityRecognizerCommandOutput = DeleteEntityRecognizerResponse;
+
+export class DeleteEntityRecognizerCommand extends $Command<
+ DeleteEntityRecognizerCommandInput,
+ DeleteEntityRecognizerCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteEntityRecognizerCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeleteEntityRecognizerCommandInput,
+ DeleteEntityRecognizerCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteEntityRecognizerCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteEntityRecognizerCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteEntityRecognizerCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts b/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts
new file mode 100644
index 000000000000..6fe274e78344
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeDocumentClassificationJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeDocumentClassificationJobRequest,
+ DescribeDocumentClassificationJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeDocumentClassificationJobCommand,
+ serializeAws_json1_1DescribeDocumentClassificationJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeDocumentClassificationJobCommandInput = DescribeDocumentClassificationJobRequest;
+export type DescribeDocumentClassificationJobCommandOutput = DescribeDocumentClassificationJobResponse;
+
+export class DescribeDocumentClassificationJobCommand extends $Command<
+ DescribeDocumentClassificationJobCommandInput,
+ DescribeDocumentClassificationJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeDocumentClassificationJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeDocumentClassificationJobCommandInput,
+ DescribeDocumentClassificationJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeDocumentClassificationJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeDocumentClassificationJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeDocumentClassificationJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts b/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts
new file mode 100644
index 000000000000..1bf5c6170e36
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeDocumentClassifierCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeDocumentClassifierRequest,
+ DescribeDocumentClassifierResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeDocumentClassifierCommand,
+ serializeAws_json1_1DescribeDocumentClassifierCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeDocumentClassifierCommandInput = DescribeDocumentClassifierRequest;
+export type DescribeDocumentClassifierCommandOutput = DescribeDocumentClassifierResponse;
+
+export class DescribeDocumentClassifierCommand extends $Command<
+ DescribeDocumentClassifierCommandInput,
+ DescribeDocumentClassifierCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeDocumentClassifierCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeDocumentClassifierCommandInput,
+ DescribeDocumentClassifierCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeDocumentClassifierCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeDocumentClassifierCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeDocumentClassifierCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts
new file mode 100644
index 000000000000..6c66dc819c68
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeDominantLanguageDetectionJobCommand.ts
@@ -0,0 +1,95 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeDominantLanguageDetectionJobRequest,
+ DescribeDominantLanguageDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand,
+ serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeDominantLanguageDetectionJobCommandInput = DescribeDominantLanguageDetectionJobRequest;
+export type DescribeDominantLanguageDetectionJobCommandOutput = DescribeDominantLanguageDetectionJobResponse;
+
+export class DescribeDominantLanguageDetectionJobCommand extends $Command<
+ DescribeDominantLanguageDetectionJobCommandInput,
+ DescribeDominantLanguageDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(
+ readonly input: DescribeDominantLanguageDetectionJobCommandInput
+ ) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeDominantLanguageDetectionJobCommandInput,
+ DescribeDominantLanguageDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeDominantLanguageDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeEndpointCommand.ts b/clients/client-comprehend/commands/DescribeEndpointCommand.ts
new file mode 100644
index 000000000000..ad873e8218c6
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeEndpointCommand.ts
@@ -0,0 +1,84 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeEndpointRequest,
+ DescribeEndpointResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeEndpointCommand,
+ serializeAws_json1_1DescribeEndpointCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeEndpointCommandInput = DescribeEndpointRequest;
+export type DescribeEndpointCommandOutput = DescribeEndpointResponse;
+
+export class DescribeEndpointCommand extends $Command<
+ DescribeEndpointCommandInput,
+ DescribeEndpointCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeEndpointCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeEndpointCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeEndpointCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeEndpointCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts
new file mode 100644
index 000000000000..0fc8464920ea
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeEntitiesDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeEntitiesDetectionJobRequest,
+ DescribeEntitiesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeEntitiesDetectionJobCommand,
+ serializeAws_json1_1DescribeEntitiesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeEntitiesDetectionJobCommandInput = DescribeEntitiesDetectionJobRequest;
+export type DescribeEntitiesDetectionJobCommandOutput = DescribeEntitiesDetectionJobResponse;
+
+export class DescribeEntitiesDetectionJobCommand extends $Command<
+ DescribeEntitiesDetectionJobCommandInput,
+ DescribeEntitiesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeEntitiesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeEntitiesDetectionJobCommandInput,
+ DescribeEntitiesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeEntitiesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeEntitiesDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeEntitiesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts b/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts
new file mode 100644
index 000000000000..9713a4c2047b
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeEntityRecognizerCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeEntityRecognizerRequest,
+ DescribeEntityRecognizerResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeEntityRecognizerCommand,
+ serializeAws_json1_1DescribeEntityRecognizerCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeEntityRecognizerCommandInput = DescribeEntityRecognizerRequest;
+export type DescribeEntityRecognizerCommandOutput = DescribeEntityRecognizerResponse;
+
+export class DescribeEntityRecognizerCommand extends $Command<
+ DescribeEntityRecognizerCommandInput,
+ DescribeEntityRecognizerCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeEntityRecognizerCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeEntityRecognizerCommandInput,
+ DescribeEntityRecognizerCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeEntityRecognizerCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeEntityRecognizerCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeEntityRecognizerCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts
new file mode 100644
index 000000000000..f5df90ee2e89
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeKeyPhrasesDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeKeyPhrasesDetectionJobRequest,
+ DescribeKeyPhrasesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand,
+ serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeKeyPhrasesDetectionJobCommandInput = DescribeKeyPhrasesDetectionJobRequest;
+export type DescribeKeyPhrasesDetectionJobCommandOutput = DescribeKeyPhrasesDetectionJobResponse;
+
+export class DescribeKeyPhrasesDetectionJobCommand extends $Command<
+ DescribeKeyPhrasesDetectionJobCommandInput,
+ DescribeKeyPhrasesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeKeyPhrasesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeKeyPhrasesDetectionJobCommandInput,
+ DescribeKeyPhrasesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeKeyPhrasesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts
new file mode 100644
index 000000000000..0eb4ed34b6ab
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeSentimentDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeSentimentDetectionJobRequest,
+ DescribeSentimentDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeSentimentDetectionJobCommand,
+ serializeAws_json1_1DescribeSentimentDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeSentimentDetectionJobCommandInput = DescribeSentimentDetectionJobRequest;
+export type DescribeSentimentDetectionJobCommandOutput = DescribeSentimentDetectionJobResponse;
+
+export class DescribeSentimentDetectionJobCommand extends $Command<
+ DescribeSentimentDetectionJobCommandInput,
+ DescribeSentimentDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeSentimentDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeSentimentDetectionJobCommandInput,
+ DescribeSentimentDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeSentimentDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeSentimentDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeSentimentDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts b/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts
new file mode 100644
index 000000000000..baafd8b4c984
--- /dev/null
+++ b/clients/client-comprehend/commands/DescribeTopicsDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DescribeTopicsDetectionJobRequest,
+ DescribeTopicsDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeTopicsDetectionJobCommand,
+ serializeAws_json1_1DescribeTopicsDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeTopicsDetectionJobCommandInput = DescribeTopicsDetectionJobRequest;
+export type DescribeTopicsDetectionJobCommandOutput = DescribeTopicsDetectionJobResponse;
+
+export class DescribeTopicsDetectionJobCommand extends $Command<
+ DescribeTopicsDetectionJobCommandInput,
+ DescribeTopicsDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeTopicsDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeTopicsDetectionJobCommandInput,
+ DescribeTopicsDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeTopicsDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeTopicsDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeTopicsDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts b/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts
new file mode 100644
index 000000000000..1011a5b81b2b
--- /dev/null
+++ b/clients/client-comprehend/commands/DetectDominantLanguageCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DetectDominantLanguageRequest,
+ DetectDominantLanguageResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DetectDominantLanguageCommand,
+ serializeAws_json1_1DetectDominantLanguageCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DetectDominantLanguageCommandInput = DetectDominantLanguageRequest;
+export type DetectDominantLanguageCommandOutput = DetectDominantLanguageResponse;
+
+export class DetectDominantLanguageCommand extends $Command<
+ DetectDominantLanguageCommandInput,
+ DetectDominantLanguageCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DetectDominantLanguageCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DetectDominantLanguageCommandInput,
+ DetectDominantLanguageCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DetectDominantLanguageCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DetectDominantLanguageCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DetectDominantLanguageCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DetectEntitiesCommand.ts b/clients/client-comprehend/commands/DetectEntitiesCommand.ts
new file mode 100644
index 000000000000..c0551dcf0c6d
--- /dev/null
+++ b/clients/client-comprehend/commands/DetectEntitiesCommand.ts
@@ -0,0 +1,81 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import { DetectEntitiesRequest, DetectEntitiesResponse } from "../models/index";
+import {
+ deserializeAws_json1_1DetectEntitiesCommand,
+ serializeAws_json1_1DetectEntitiesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DetectEntitiesCommandInput = DetectEntitiesRequest;
+export type DetectEntitiesCommandOutput = DetectEntitiesResponse;
+
+export class DetectEntitiesCommand extends $Command<
+ DetectEntitiesCommandInput,
+ DetectEntitiesCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DetectEntitiesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DetectEntitiesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DetectEntitiesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DetectEntitiesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts b/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts
new file mode 100644
index 000000000000..8d67e869fb07
--- /dev/null
+++ b/clients/client-comprehend/commands/DetectKeyPhrasesCommand.ts
@@ -0,0 +1,84 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DetectKeyPhrasesRequest,
+ DetectKeyPhrasesResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DetectKeyPhrasesCommand,
+ serializeAws_json1_1DetectKeyPhrasesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DetectKeyPhrasesCommandInput = DetectKeyPhrasesRequest;
+export type DetectKeyPhrasesCommandOutput = DetectKeyPhrasesResponse;
+
+export class DetectKeyPhrasesCommand extends $Command<
+ DetectKeyPhrasesCommandInput,
+ DetectKeyPhrasesCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DetectKeyPhrasesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DetectKeyPhrasesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DetectKeyPhrasesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DetectKeyPhrasesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DetectSentimentCommand.ts b/clients/client-comprehend/commands/DetectSentimentCommand.ts
new file mode 100644
index 000000000000..bda052fc351f
--- /dev/null
+++ b/clients/client-comprehend/commands/DetectSentimentCommand.ts
@@ -0,0 +1,84 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ DetectSentimentRequest,
+ DetectSentimentResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1DetectSentimentCommand,
+ serializeAws_json1_1DetectSentimentCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DetectSentimentCommandInput = DetectSentimentRequest;
+export type DetectSentimentCommandOutput = DetectSentimentResponse;
+
+export class DetectSentimentCommand extends $Command<
+ DetectSentimentCommandInput,
+ DetectSentimentCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DetectSentimentCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DetectSentimentCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DetectSentimentCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DetectSentimentCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/DetectSyntaxCommand.ts b/clients/client-comprehend/commands/DetectSyntaxCommand.ts
new file mode 100644
index 000000000000..b41cb9d60b6c
--- /dev/null
+++ b/clients/client-comprehend/commands/DetectSyntaxCommand.ts
@@ -0,0 +1,81 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import { DetectSyntaxRequest, DetectSyntaxResponse } from "../models/index";
+import {
+ deserializeAws_json1_1DetectSyntaxCommand,
+ serializeAws_json1_1DetectSyntaxCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DetectSyntaxCommandInput = DetectSyntaxRequest;
+export type DetectSyntaxCommandOutput = DetectSyntaxResponse;
+
+export class DetectSyntaxCommand extends $Command<
+ DetectSyntaxCommandInput,
+ DetectSyntaxCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DetectSyntaxCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DetectSyntaxCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DetectSyntaxCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DetectSyntaxCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts b/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts
new file mode 100644
index 000000000000..78e73370e52a
--- /dev/null
+++ b/clients/client-comprehend/commands/ListDocumentClassificationJobsCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListDocumentClassificationJobsRequest,
+ ListDocumentClassificationJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListDocumentClassificationJobsCommand,
+ serializeAws_json1_1ListDocumentClassificationJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListDocumentClassificationJobsCommandInput = ListDocumentClassificationJobsRequest;
+export type ListDocumentClassificationJobsCommandOutput = ListDocumentClassificationJobsResponse;
+
+export class ListDocumentClassificationJobsCommand extends $Command<
+ ListDocumentClassificationJobsCommandInput,
+ ListDocumentClassificationJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListDocumentClassificationJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListDocumentClassificationJobsCommandInput,
+ ListDocumentClassificationJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListDocumentClassificationJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListDocumentClassificationJobsCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListDocumentClassificationJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts b/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts
new file mode 100644
index 000000000000..851325244ca2
--- /dev/null
+++ b/clients/client-comprehend/commands/ListDocumentClassifiersCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListDocumentClassifiersRequest,
+ ListDocumentClassifiersResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListDocumentClassifiersCommand,
+ serializeAws_json1_1ListDocumentClassifiersCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListDocumentClassifiersCommandInput = ListDocumentClassifiersRequest;
+export type ListDocumentClassifiersCommandOutput = ListDocumentClassifiersResponse;
+
+export class ListDocumentClassifiersCommand extends $Command<
+ ListDocumentClassifiersCommandInput,
+ ListDocumentClassifiersCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListDocumentClassifiersCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListDocumentClassifiersCommandInput,
+ ListDocumentClassifiersCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListDocumentClassifiersCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListDocumentClassifiersCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListDocumentClassifiersCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts
new file mode 100644
index 000000000000..4f95927e5aac
--- /dev/null
+++ b/clients/client-comprehend/commands/ListDominantLanguageDetectionJobsCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListDominantLanguageDetectionJobsRequest,
+ ListDominantLanguageDetectionJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand,
+ serializeAws_json1_1ListDominantLanguageDetectionJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListDominantLanguageDetectionJobsCommandInput = ListDominantLanguageDetectionJobsRequest;
+export type ListDominantLanguageDetectionJobsCommandOutput = ListDominantLanguageDetectionJobsResponse;
+
+export class ListDominantLanguageDetectionJobsCommand extends $Command<
+ ListDominantLanguageDetectionJobsCommandInput,
+ ListDominantLanguageDetectionJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListDominantLanguageDetectionJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListDominantLanguageDetectionJobsCommandInput,
+ ListDominantLanguageDetectionJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListDominantLanguageDetectionJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListDominantLanguageDetectionJobsCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListEndpointsCommand.ts b/clients/client-comprehend/commands/ListEndpointsCommand.ts
new file mode 100644
index 000000000000..421e08e94da2
--- /dev/null
+++ b/clients/client-comprehend/commands/ListEndpointsCommand.ts
@@ -0,0 +1,81 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import { ListEndpointsRequest, ListEndpointsResponse } from "../models/index";
+import {
+ deserializeAws_json1_1ListEndpointsCommand,
+ serializeAws_json1_1ListEndpointsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListEndpointsCommandInput = ListEndpointsRequest;
+export type ListEndpointsCommandOutput = ListEndpointsResponse;
+
+export class ListEndpointsCommand extends $Command<
+ ListEndpointsCommandInput,
+ ListEndpointsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListEndpointsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListEndpointsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListEndpointsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListEndpointsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts
new file mode 100644
index 000000000000..03a3448292e4
--- /dev/null
+++ b/clients/client-comprehend/commands/ListEntitiesDetectionJobsCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListEntitiesDetectionJobsRequest,
+ ListEntitiesDetectionJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListEntitiesDetectionJobsCommand,
+ serializeAws_json1_1ListEntitiesDetectionJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListEntitiesDetectionJobsCommandInput = ListEntitiesDetectionJobsRequest;
+export type ListEntitiesDetectionJobsCommandOutput = ListEntitiesDetectionJobsResponse;
+
+export class ListEntitiesDetectionJobsCommand extends $Command<
+ ListEntitiesDetectionJobsCommandInput,
+ ListEntitiesDetectionJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListEntitiesDetectionJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListEntitiesDetectionJobsCommandInput,
+ ListEntitiesDetectionJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListEntitiesDetectionJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListEntitiesDetectionJobsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListEntitiesDetectionJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts b/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts
new file mode 100644
index 000000000000..2b487f83d23b
--- /dev/null
+++ b/clients/client-comprehend/commands/ListEntityRecognizersCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListEntityRecognizersRequest,
+ ListEntityRecognizersResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListEntityRecognizersCommand,
+ serializeAws_json1_1ListEntityRecognizersCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListEntityRecognizersCommandInput = ListEntityRecognizersRequest;
+export type ListEntityRecognizersCommandOutput = ListEntityRecognizersResponse;
+
+export class ListEntityRecognizersCommand extends $Command<
+ ListEntityRecognizersCommandInput,
+ ListEntityRecognizersCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListEntityRecognizersCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListEntityRecognizersCommandInput,
+ ListEntityRecognizersCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListEntityRecognizersCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListEntityRecognizersCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListEntityRecognizersCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts
new file mode 100644
index 000000000000..6bc92c6ed53f
--- /dev/null
+++ b/clients/client-comprehend/commands/ListKeyPhrasesDetectionJobsCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListKeyPhrasesDetectionJobsRequest,
+ ListKeyPhrasesDetectionJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand,
+ serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListKeyPhrasesDetectionJobsCommandInput = ListKeyPhrasesDetectionJobsRequest;
+export type ListKeyPhrasesDetectionJobsCommandOutput = ListKeyPhrasesDetectionJobsResponse;
+
+export class ListKeyPhrasesDetectionJobsCommand extends $Command<
+ ListKeyPhrasesDetectionJobsCommandInput,
+ ListKeyPhrasesDetectionJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListKeyPhrasesDetectionJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListKeyPhrasesDetectionJobsCommandInput,
+ ListKeyPhrasesDetectionJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListKeyPhrasesDetectionJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts
new file mode 100644
index 000000000000..48de3a562ea9
--- /dev/null
+++ b/clients/client-comprehend/commands/ListSentimentDetectionJobsCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListSentimentDetectionJobsRequest,
+ ListSentimentDetectionJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListSentimentDetectionJobsCommand,
+ serializeAws_json1_1ListSentimentDetectionJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListSentimentDetectionJobsCommandInput = ListSentimentDetectionJobsRequest;
+export type ListSentimentDetectionJobsCommandOutput = ListSentimentDetectionJobsResponse;
+
+export class ListSentimentDetectionJobsCommand extends $Command<
+ ListSentimentDetectionJobsCommandInput,
+ ListSentimentDetectionJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListSentimentDetectionJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListSentimentDetectionJobsCommandInput,
+ ListSentimentDetectionJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListSentimentDetectionJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListSentimentDetectionJobsCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListSentimentDetectionJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListTagsForResourceCommand.ts b/clients/client-comprehend/commands/ListTagsForResourceCommand.ts
new file mode 100644
index 000000000000..69faa0fdfba1
--- /dev/null
+++ b/clients/client-comprehend/commands/ListTagsForResourceCommand.ts
@@ -0,0 +1,87 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListTagsForResourceRequest,
+ ListTagsForResourceResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListTagsForResourceCommand,
+ serializeAws_json1_1ListTagsForResourceCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListTagsForResourceCommandInput = ListTagsForResourceRequest;
+export type ListTagsForResourceCommandOutput = ListTagsForResourceResponse;
+
+export class ListTagsForResourceCommand extends $Command<
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListTagsForResourceCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListTagsForResourceCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListTagsForResourceCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts b/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts
new file mode 100644
index 000000000000..269c4cc8da0f
--- /dev/null
+++ b/clients/client-comprehend/commands/ListTopicsDetectionJobsCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ ListTopicsDetectionJobsRequest,
+ ListTopicsDetectionJobsResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListTopicsDetectionJobsCommand,
+ serializeAws_json1_1ListTopicsDetectionJobsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListTopicsDetectionJobsCommandInput = ListTopicsDetectionJobsRequest;
+export type ListTopicsDetectionJobsCommandOutput = ListTopicsDetectionJobsResponse;
+
+export class ListTopicsDetectionJobsCommand extends $Command<
+ ListTopicsDetectionJobsCommandInput,
+ ListTopicsDetectionJobsCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListTopicsDetectionJobsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ ListTopicsDetectionJobsCommandInput,
+ ListTopicsDetectionJobsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListTopicsDetectionJobsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListTopicsDetectionJobsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListTopicsDetectionJobsCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts b/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts
new file mode 100644
index 000000000000..e16d1a7b1e6b
--- /dev/null
+++ b/clients/client-comprehend/commands/StartDocumentClassificationJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartDocumentClassificationJobRequest,
+ StartDocumentClassificationJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartDocumentClassificationJobCommand,
+ serializeAws_json1_1StartDocumentClassificationJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartDocumentClassificationJobCommandInput = StartDocumentClassificationJobRequest;
+export type StartDocumentClassificationJobCommandOutput = StartDocumentClassificationJobResponse;
+
+export class StartDocumentClassificationJobCommand extends $Command<
+ StartDocumentClassificationJobCommandInput,
+ StartDocumentClassificationJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartDocumentClassificationJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartDocumentClassificationJobCommandInput,
+ StartDocumentClassificationJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartDocumentClassificationJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartDocumentClassificationJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartDocumentClassificationJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts
new file mode 100644
index 000000000000..9e31c3a2ec0c
--- /dev/null
+++ b/clients/client-comprehend/commands/StartDominantLanguageDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartDominantLanguageDetectionJobRequest,
+ StartDominantLanguageDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartDominantLanguageDetectionJobCommand,
+ serializeAws_json1_1StartDominantLanguageDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartDominantLanguageDetectionJobCommandInput = StartDominantLanguageDetectionJobRequest;
+export type StartDominantLanguageDetectionJobCommandOutput = StartDominantLanguageDetectionJobResponse;
+
+export class StartDominantLanguageDetectionJobCommand extends $Command<
+ StartDominantLanguageDetectionJobCommandInput,
+ StartDominantLanguageDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartDominantLanguageDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartDominantLanguageDetectionJobCommandInput,
+ StartDominantLanguageDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartDominantLanguageDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartDominantLanguageDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartDominantLanguageDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts
new file mode 100644
index 000000000000..0c78e1ab189d
--- /dev/null
+++ b/clients/client-comprehend/commands/StartEntitiesDetectionJobCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartEntitiesDetectionJobRequest,
+ StartEntitiesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartEntitiesDetectionJobCommand,
+ serializeAws_json1_1StartEntitiesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartEntitiesDetectionJobCommandInput = StartEntitiesDetectionJobRequest;
+export type StartEntitiesDetectionJobCommandOutput = StartEntitiesDetectionJobResponse;
+
+export class StartEntitiesDetectionJobCommand extends $Command<
+ StartEntitiesDetectionJobCommandInput,
+ StartEntitiesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartEntitiesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartEntitiesDetectionJobCommandInput,
+ StartEntitiesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartEntitiesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartEntitiesDetectionJobCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartEntitiesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts
new file mode 100644
index 000000000000..3955f839b801
--- /dev/null
+++ b/clients/client-comprehend/commands/StartKeyPhrasesDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartKeyPhrasesDetectionJobRequest,
+ StartKeyPhrasesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand,
+ serializeAws_json1_1StartKeyPhrasesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartKeyPhrasesDetectionJobCommandInput = StartKeyPhrasesDetectionJobRequest;
+export type StartKeyPhrasesDetectionJobCommandOutput = StartKeyPhrasesDetectionJobResponse;
+
+export class StartKeyPhrasesDetectionJobCommand extends $Command<
+ StartKeyPhrasesDetectionJobCommandInput,
+ StartKeyPhrasesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartKeyPhrasesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartKeyPhrasesDetectionJobCommandInput,
+ StartKeyPhrasesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartKeyPhrasesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartKeyPhrasesDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts
new file mode 100644
index 000000000000..34214ef3761f
--- /dev/null
+++ b/clients/client-comprehend/commands/StartSentimentDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartSentimentDetectionJobRequest,
+ StartSentimentDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartSentimentDetectionJobCommand,
+ serializeAws_json1_1StartSentimentDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartSentimentDetectionJobCommandInput = StartSentimentDetectionJobRequest;
+export type StartSentimentDetectionJobCommandOutput = StartSentimentDetectionJobResponse;
+
+export class StartSentimentDetectionJobCommand extends $Command<
+ StartSentimentDetectionJobCommandInput,
+ StartSentimentDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartSentimentDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartSentimentDetectionJobCommandInput,
+ StartSentimentDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartSentimentDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartSentimentDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartSentimentDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts b/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts
new file mode 100644
index 000000000000..df231f239fc2
--- /dev/null
+++ b/clients/client-comprehend/commands/StartTopicsDetectionJobCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StartTopicsDetectionJobRequest,
+ StartTopicsDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StartTopicsDetectionJobCommand,
+ serializeAws_json1_1StartTopicsDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StartTopicsDetectionJobCommandInput = StartTopicsDetectionJobRequest;
+export type StartTopicsDetectionJobCommandOutput = StartTopicsDetectionJobResponse;
+
+export class StartTopicsDetectionJobCommand extends $Command<
+ StartTopicsDetectionJobCommandInput,
+ StartTopicsDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StartTopicsDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StartTopicsDetectionJobCommandInput,
+ StartTopicsDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StartTopicsDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StartTopicsDetectionJobCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StartTopicsDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts
new file mode 100644
index 000000000000..1d5cc1a58eb2
--- /dev/null
+++ b/clients/client-comprehend/commands/StopDominantLanguageDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StopDominantLanguageDetectionJobRequest,
+ StopDominantLanguageDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StopDominantLanguageDetectionJobCommand,
+ serializeAws_json1_1StopDominantLanguageDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StopDominantLanguageDetectionJobCommandInput = StopDominantLanguageDetectionJobRequest;
+export type StopDominantLanguageDetectionJobCommandOutput = StopDominantLanguageDetectionJobResponse;
+
+export class StopDominantLanguageDetectionJobCommand extends $Command<
+ StopDominantLanguageDetectionJobCommandInput,
+ StopDominantLanguageDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StopDominantLanguageDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StopDominantLanguageDetectionJobCommandInput,
+ StopDominantLanguageDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StopDominantLanguageDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StopDominantLanguageDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StopDominantLanguageDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts b/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts
new file mode 100644
index 000000000000..6cec69f24927
--- /dev/null
+++ b/clients/client-comprehend/commands/StopEntitiesDetectionJobCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StopEntitiesDetectionJobRequest,
+ StopEntitiesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StopEntitiesDetectionJobCommand,
+ serializeAws_json1_1StopEntitiesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StopEntitiesDetectionJobCommandInput = StopEntitiesDetectionJobRequest;
+export type StopEntitiesDetectionJobCommandOutput = StopEntitiesDetectionJobResponse;
+
+export class StopEntitiesDetectionJobCommand extends $Command<
+ StopEntitiesDetectionJobCommandInput,
+ StopEntitiesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StopEntitiesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StopEntitiesDetectionJobCommandInput,
+ StopEntitiesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StopEntitiesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StopEntitiesDetectionJobCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StopEntitiesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts
new file mode 100644
index 000000000000..167662cecaab
--- /dev/null
+++ b/clients/client-comprehend/commands/StopKeyPhrasesDetectionJobCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StopKeyPhrasesDetectionJobRequest,
+ StopKeyPhrasesDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand,
+ serializeAws_json1_1StopKeyPhrasesDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StopKeyPhrasesDetectionJobCommandInput = StopKeyPhrasesDetectionJobRequest;
+export type StopKeyPhrasesDetectionJobCommandOutput = StopKeyPhrasesDetectionJobResponse;
+
+export class StopKeyPhrasesDetectionJobCommand extends $Command<
+ StopKeyPhrasesDetectionJobCommandInput,
+ StopKeyPhrasesDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StopKeyPhrasesDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StopKeyPhrasesDetectionJobCommandInput,
+ StopKeyPhrasesDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StopKeyPhrasesDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StopKeyPhrasesDetectionJobCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts b/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts
new file mode 100644
index 000000000000..6bc54ad48195
--- /dev/null
+++ b/clients/client-comprehend/commands/StopSentimentDetectionJobCommand.ts
@@ -0,0 +1,90 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StopSentimentDetectionJobRequest,
+ StopSentimentDetectionJobResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StopSentimentDetectionJobCommand,
+ serializeAws_json1_1StopSentimentDetectionJobCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StopSentimentDetectionJobCommandInput = StopSentimentDetectionJobRequest;
+export type StopSentimentDetectionJobCommandOutput = StopSentimentDetectionJobResponse;
+
+export class StopSentimentDetectionJobCommand extends $Command<
+ StopSentimentDetectionJobCommandInput,
+ StopSentimentDetectionJobCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StopSentimentDetectionJobCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StopSentimentDetectionJobCommandInput,
+ StopSentimentDetectionJobCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: StopSentimentDetectionJobCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1StopSentimentDetectionJobCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1StopSentimentDetectionJobCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts b/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts
new file mode 100644
index 000000000000..78f957736907
--- /dev/null
+++ b/clients/client-comprehend/commands/StopTrainingDocumentClassifierCommand.ts
@@ -0,0 +1,93 @@
+import {
+ ComprehendClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../ComprehendClient";
+import {
+ StopTrainingDocumentClassifierRequest,
+ StopTrainingDocumentClassifierResponse
+} from "../models/index";
+import {
+ deserializeAws_json1_1StopTrainingDocumentClassifierCommand,
+ serializeAws_json1_1StopTrainingDocumentClassifierCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type StopTrainingDocumentClassifierCommandInput = StopTrainingDocumentClassifierRequest;
+export type StopTrainingDocumentClassifierCommandOutput = StopTrainingDocumentClassifierResponse;
+
+export class StopTrainingDocumentClassifierCommand extends $Command<
+ StopTrainingDocumentClassifierCommandInput,
+ StopTrainingDocumentClassifierCommandOutput,
+ ComprehendClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: StopTrainingDocumentClassifierCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ComprehendClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ StopTrainingDocumentClassifierCommandInput,
+ StopTrainingDocumentClassifierCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments