@aws-sdk/client-comprehend 3.36.0 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Comprehend.js +0 -6
  3. package/dist-cjs/ComprehendClient.js +0 -11
  4. package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +0 -26
  5. package/dist-cjs/commands/BatchDetectEntitiesCommand.js +0 -26
  6. package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +0 -24
  7. package/dist-cjs/commands/BatchDetectSentimentCommand.js +0 -26
  8. package/dist-cjs/commands/BatchDetectSyntaxCommand.js +0 -25
  9. package/dist-cjs/commands/ClassifyDocumentCommand.js +0 -25
  10. package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +0 -26
  11. package/dist-cjs/commands/CreateDocumentClassifierCommand.js +0 -27
  12. package/dist-cjs/commands/CreateEndpointCommand.js +0 -26
  13. package/dist-cjs/commands/CreateEntityRecognizerCommand.js +0 -26
  14. package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +0 -30
  15. package/dist-cjs/commands/DeleteEndpointCommand.js +0 -25
  16. package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +0 -30
  17. package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +0 -25
  18. package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +0 -24
  19. package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -25
  20. package/dist-cjs/commands/DescribeEndpointCommand.js +0 -25
  21. package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +0 -25
  22. package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +0 -25
  23. package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +0 -24
  24. package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -25
  25. package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -25
  26. package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +0 -25
  27. package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +0 -25
  28. package/dist-cjs/commands/DetectDominantLanguageCommand.js +0 -25
  29. package/dist-cjs/commands/DetectEntitiesCommand.js +0 -25
  30. package/dist-cjs/commands/DetectKeyPhrasesCommand.js +0 -24
  31. package/dist-cjs/commands/DetectPiiEntitiesCommand.js +0 -25
  32. package/dist-cjs/commands/DetectSentimentCommand.js +0 -25
  33. package/dist-cjs/commands/DetectSyntaxCommand.js +0 -25
  34. package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +0 -24
  35. package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +0 -24
  36. package/dist-cjs/commands/ListDocumentClassifiersCommand.js +0 -24
  37. package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +0 -24
  38. package/dist-cjs/commands/ListEndpointsCommand.js +0 -24
  39. package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +0 -24
  40. package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +0 -24
  41. package/dist-cjs/commands/ListEntityRecognizersCommand.js +0 -29
  42. package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +0 -24
  43. package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -24
  44. package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -24
  45. package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +0 -24
  46. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  47. package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +0 -24
  48. package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +0 -25
  49. package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +0 -26
  50. package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +0 -28
  51. package/dist-cjs/commands/StartEventsDetectionJobCommand.js +0 -24
  52. package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +0 -26
  53. package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +0 -24
  54. package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +0 -26
  55. package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +0 -25
  56. package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +0 -33
  57. package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +0 -33
  58. package/dist-cjs/commands/StopEventsDetectionJobCommand.js +0 -24
  59. package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +0 -33
  60. package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +0 -24
  61. package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +0 -33
  62. package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +0 -29
  63. package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +0 -29
  64. package/dist-cjs/commands/TagResourceCommand.js +0 -27
  65. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  66. package/dist-cjs/commands/UpdateEndpointCommand.js +0 -24
  67. package/dist-cjs/commands/index.js +66 -0
  68. package/dist-cjs/endpoints.js +6 -1
  69. package/dist-cjs/index.js +4 -77
  70. package/dist-cjs/models/models_0.js +0 -609
  71. package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js +0 -10
  72. package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js +0 -10
  73. package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js +0 -10
  74. package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -10
  75. package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js +0 -10
  76. package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js +0 -10
  77. package/dist-cjs/pagination/ListEntityRecognizersPaginator.js +0 -10
  78. package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js +0 -10
  79. package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -10
  80. package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js +0 -10
  81. package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js +0 -10
  82. package/dist-cjs/pagination/index.js +15 -0
  83. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  84. package/dist-cjs/runtimeConfig.browser.js +1 -5
  85. package/dist-cjs/runtimeConfig.js +1 -5
  86. package/dist-cjs/runtimeConfig.native.js +0 -3
  87. package/dist-cjs/runtimeConfig.shared.js +0 -3
  88. package/dist-es/commands/index.js +63 -0
  89. package/dist-es/endpoints.js +6 -1
  90. package/dist-es/index.js +4 -77
  91. package/dist-es/pagination/index.js +12 -0
  92. package/dist-types/commands/index.d.ts +63 -0
  93. package/dist-types/index.d.ts +4 -77
  94. package/dist-types/pagination/index.d.ts +12 -0
  95. package/dist-types/ts3.4/Comprehend.d.ts +64 -305
  96. package/dist-types/ts3.4/ComprehendClient.d.ts +24 -92
  97. package/dist-types/ts3.4/commands/BatchDetectDominantLanguageCommand.d.ts +2 -22
  98. package/dist-types/ts3.4/commands/BatchDetectEntitiesCommand.d.ts +2 -22
  99. package/dist-types/ts3.4/commands/BatchDetectKeyPhrasesCommand.d.ts +2 -20
  100. package/dist-types/ts3.4/commands/BatchDetectSentimentCommand.d.ts +2 -22
  101. package/dist-types/ts3.4/commands/BatchDetectSyntaxCommand.d.ts +2 -21
  102. package/dist-types/ts3.4/commands/ClassifyDocumentCommand.d.ts +2 -21
  103. package/dist-types/ts3.4/commands/ContainsPiiEntitiesCommand.d.ts +2 -22
  104. package/dist-types/ts3.4/commands/CreateDocumentClassifierCommand.d.ts +2 -23
  105. package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +2 -22
  106. package/dist-types/ts3.4/commands/CreateEntityRecognizerCommand.d.ts +2 -22
  107. package/dist-types/ts3.4/commands/DeleteDocumentClassifierCommand.d.ts +2 -26
  108. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +2 -21
  109. package/dist-types/ts3.4/commands/DeleteEntityRecognizerCommand.d.ts +2 -26
  110. package/dist-types/ts3.4/commands/DescribeDocumentClassificationJobCommand.d.ts +2 -21
  111. package/dist-types/ts3.4/commands/DescribeDocumentClassifierCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +2 -21
  114. package/dist-types/ts3.4/commands/DescribeEntitiesDetectionJobCommand.d.ts +2 -21
  115. package/dist-types/ts3.4/commands/DescribeEntityRecognizerCommand.d.ts +2 -21
  116. package/dist-types/ts3.4/commands/DescribeEventsDetectionJobCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +2 -21
  118. package/dist-types/ts3.4/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +2 -21
  119. package/dist-types/ts3.4/commands/DescribeSentimentDetectionJobCommand.d.ts +2 -21
  120. package/dist-types/ts3.4/commands/DescribeTopicsDetectionJobCommand.d.ts +2 -21
  121. package/dist-types/ts3.4/commands/DetectDominantLanguageCommand.d.ts +2 -21
  122. package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -21
  123. package/dist-types/ts3.4/commands/DetectKeyPhrasesCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/DetectPiiEntitiesCommand.d.ts +2 -21
  125. package/dist-types/ts3.4/commands/DetectSentimentCommand.d.ts +2 -21
  126. package/dist-types/ts3.4/commands/DetectSyntaxCommand.d.ts +2 -21
  127. package/dist-types/ts3.4/commands/ListDocumentClassificationJobsCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/ListDocumentClassifierSummariesCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/ListDocumentClassifiersCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/ListDominantLanguageDetectionJobsCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/ListEntitiesDetectionJobsCommand.d.ts +2 -20
  133. package/dist-types/ts3.4/commands/ListEntityRecognizerSummariesCommand.d.ts +2 -20
  134. package/dist-types/ts3.4/commands/ListEntityRecognizersCommand.d.ts +2 -25
  135. package/dist-types/ts3.4/commands/ListEventsDetectionJobsCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/ListSentimentDetectionJobsCommand.d.ts +2 -20
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  140. package/dist-types/ts3.4/commands/ListTopicsDetectionJobsCommand.d.ts +2 -20
  141. package/dist-types/ts3.4/commands/StartDocumentClassificationJobCommand.d.ts +2 -21
  142. package/dist-types/ts3.4/commands/StartDominantLanguageDetectionJobCommand.d.ts +2 -22
  143. package/dist-types/ts3.4/commands/StartEntitiesDetectionJobCommand.d.ts +2 -24
  144. package/dist-types/ts3.4/commands/StartEventsDetectionJobCommand.d.ts +2 -20
  145. package/dist-types/ts3.4/commands/StartKeyPhrasesDetectionJobCommand.d.ts +2 -22
  146. package/dist-types/ts3.4/commands/StartPiiEntitiesDetectionJobCommand.d.ts +2 -20
  147. package/dist-types/ts3.4/commands/StartSentimentDetectionJobCommand.d.ts +2 -22
  148. package/dist-types/ts3.4/commands/StartTopicsDetectionJobCommand.d.ts +2 -21
  149. package/dist-types/ts3.4/commands/StopDominantLanguageDetectionJobCommand.d.ts +2 -29
  150. package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +2 -29
  151. package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +2 -20
  152. package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +2 -29
  153. package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +2 -20
  154. package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +2 -29
  155. package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +2 -25
  156. package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +2 -25
  157. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  158. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  159. package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +2 -20
  160. package/dist-types/ts3.4/commands/index.d.ts +63 -0
  161. package/dist-types/ts3.4/index.d.ts +4 -77
  162. package/dist-types/ts3.4/models/models_0.d.ts +884 -3867
  163. package/dist-types/ts3.4/pagination/index.d.ts +12 -0
  164. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  165. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  166. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  167. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  168. package/package.json +32 -32
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a document classifier.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ComprehendClient, DescribeDocumentClassifierCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
14
- * // const { ComprehendClient, DescribeDocumentClassifierCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
15
- * const client = new ComprehendClient(config);
16
- * const command = new DescribeDocumentClassifierCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeDocumentClassifierCommandInput} for command's `input` shape.
21
- * @see {@link DescribeDocumentClassifierCommandOutput} for command's `response` shape.
22
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeDocumentClassifierCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a dominant language detection job. Use this operation
10
- * to get the status of a detection job.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeDominantLanguageDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeDominantLanguageDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeDominantLanguageDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeDominantLanguageDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribeDominantLanguageDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeDominantLanguageDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a specific endpoint. Use this operation to get the
10
- * status of an endpoint.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeEndpointCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeEndpointCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeEndpointCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeEndpointCommandInput} for command's `input` shape.
22
- * @see {@link DescribeEndpointCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeEndpointCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with an entities detection job. Use this operation to get
10
- * the status of a detection job.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeEntitiesDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeEntitiesDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribeEntitiesDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeEntitiesDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Provides details about an entity recognizer including status, S3 buckets containing
10
- * training data, recognizer metadata, metrics, and so on.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeEntityRecognizerCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeEntityRecognizerCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeEntityRecognizerCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeEntityRecognizerCommandInput} for command's `input` shape.
22
- * @see {@link DescribeEntityRecognizerCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeEntityRecognizerCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the status and details of an events detection job.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ComprehendClient, DescribeEventsDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
14
- * // const { ComprehendClient, DescribeEventsDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
15
- * const client = new ComprehendClient(config);
16
- * const command = new DescribeEventsDetectionJobCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeEventsDetectionJobCommandInput} for command's `input` shape.
21
- * @see {@link DescribeEventsDetectionJobCommandOutput} for command's `response` shape.
22
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeEventsDetectionJobCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a key phrases detection job. Use this operation to get
10
- * the status of a detection job.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeKeyPhrasesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeKeyPhrasesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeKeyPhrasesDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeKeyPhrasesDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribeKeyPhrasesDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeKeyPhrasesDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a PII entities detection job. For example, you can use
10
- * this operation to get the job status.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribePiiEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribePiiEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribePiiEntitiesDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribePiiEntitiesDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribePiiEntitiesDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribePiiEntitiesDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a sentiment detection job. Use this operation to get
10
- * the status of a detection job.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeSentimentDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeSentimentDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeSentimentDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeSentimentDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribeSentimentDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeSentimentDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the properties associated with a topic detection job. Use this operation to get
10
- * the status of a detection job.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DescribeTopicsDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DescribeTopicsDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DescribeTopicsDetectionJobCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeTopicsDetectionJobCommandInput} for command's `input` shape.
22
- * @see {@link DescribeTopicsDetectionJobCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeTopicsDetectionJobCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Determines the dominant language of the input text. For a list of languages that Amazon
10
- * Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DetectDominantLanguageCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DetectDominantLanguageCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DetectDominantLanguageCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DetectDominantLanguageCommandInput} for command's `input` shape.
22
- * @see {@link DetectDominantLanguageCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DetectDominantLanguageCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Inspects text for named entities, and returns information about them. For more
10
- * information, about named entities, see <a>how-entities</a>. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DetectEntitiesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DetectEntitiesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DetectEntitiesCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DetectEntitiesCommandInput} for command's `input` shape.
22
- * @see {@link DetectEntitiesCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DetectEntitiesCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Detects the key noun phrases found in the text. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ComprehendClient, DetectKeyPhrasesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
14
- * // const { ComprehendClient, DetectKeyPhrasesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
15
- * const client = new ComprehendClient(config);
16
- * const command = new DetectKeyPhrasesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DetectKeyPhrasesCommandInput} for command's `input` shape.
21
- * @see {@link DetectKeyPhrasesCommandOutput} for command's `response` shape.
22
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DetectKeyPhrasesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Inspects the input text for entities that contain personally identifiable information
10
- * (PII) and returns information about them.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DetectPiiEntitiesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DetectPiiEntitiesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DetectPiiEntitiesCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DetectPiiEntitiesCommandInput} for command's `input` shape.
22
- * @see {@link DetectPiiEntitiesCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DetectPiiEntitiesCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Inspects text and returns an inference of the prevailing sentiment
10
- * (<code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>). </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DetectSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DetectSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DetectSentimentCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DetectSentimentCommandInput} for command's `input` shape.
22
- * @see {@link DetectSentimentCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DetectSentimentCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Inspects text for syntax and the part of speech of words in the document. For more
10
- * information, <a>how-syntax</a>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ComprehendClient, DetectSyntaxCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
- * // const { ComprehendClient, DetectSyntaxCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
- * const client = new ComprehendClient(config);
17
- * const command = new DetectSyntaxCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DetectSyntaxCommandInput} for command's `input` shape.
22
- * @see {@link DetectSyntaxCommandOutput} for command's `response` shape.
23
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DetectSyntaxCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets a list of the documentation classification jobs that you have submitted.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ComprehendClient, ListDocumentClassificationJobsCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
14
- * // const { ComprehendClient, ListDocumentClassificationJobsCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
15
- * const client = new ComprehendClient(config);
16
- * const command = new ListDocumentClassificationJobsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListDocumentClassificationJobsCommandInput} for command's `input` shape.
21
- * @see {@link ListDocumentClassificationJobsCommandOutput} for command's `response` shape.
22
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListDocumentClassificationJobsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);