UNPKG

130 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Comprehend extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Comprehend.Types.ClientConfiguration)
13 config: Config & Comprehend.Types.ClientConfiguration;
14 /**
15 * 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.
16 */
17 batchDetectDominantLanguage(params: Comprehend.Types.BatchDetectDominantLanguageRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectDominantLanguageResponse) => void): Request<Comprehend.Types.BatchDetectDominantLanguageResponse, AWSError>;
18 /**
19 * 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.
20 */
21 batchDetectDominantLanguage(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectDominantLanguageResponse) => void): Request<Comprehend.Types.BatchDetectDominantLanguageResponse, AWSError>;
22 /**
23 * 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
24 */
25 batchDetectEntities(params: Comprehend.Types.BatchDetectEntitiesRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectEntitiesResponse) => void): Request<Comprehend.Types.BatchDetectEntitiesResponse, AWSError>;
26 /**
27 * 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
28 */
29 batchDetectEntities(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectEntitiesResponse) => void): Request<Comprehend.Types.BatchDetectEntitiesResponse, AWSError>;
30 /**
31 * Detects the key noun phrases found in a batch of documents.
32 */
33 batchDetectKeyPhrases(params: Comprehend.Types.BatchDetectKeyPhrasesRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectKeyPhrasesResponse) => void): Request<Comprehend.Types.BatchDetectKeyPhrasesResponse, AWSError>;
34 /**
35 * Detects the key noun phrases found in a batch of documents.
36 */
37 batchDetectKeyPhrases(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectKeyPhrasesResponse) => void): Request<Comprehend.Types.BatchDetectKeyPhrasesResponse, AWSError>;
38 /**
39 * Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.
40 */
41 batchDetectSentiment(params: Comprehend.Types.BatchDetectSentimentRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectSentimentResponse) => void): Request<Comprehend.Types.BatchDetectSentimentResponse, AWSError>;
42 /**
43 * Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.
44 */
45 batchDetectSentiment(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectSentimentResponse) => void): Request<Comprehend.Types.BatchDetectSentimentResponse, AWSError>;
46 /**
47 * 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.
48 */
49 batchDetectSyntax(params: Comprehend.Types.BatchDetectSyntaxRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectSyntaxResponse) => void): Request<Comprehend.Types.BatchDetectSyntaxResponse, AWSError>;
50 /**
51 * 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.
52 */
53 batchDetectSyntax(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectSyntaxResponse) => void): Request<Comprehend.Types.BatchDetectSyntaxResponse, AWSError>;
54 /**
55 * 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.
56 */
57 createDocumentClassifier(params: Comprehend.Types.CreateDocumentClassifierRequest, callback?: (err: AWSError, data: Comprehend.Types.CreateDocumentClassifierResponse) => void): Request<Comprehend.Types.CreateDocumentClassifierResponse, AWSError>;
58 /**
59 * 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.
60 */
61 createDocumentClassifier(callback?: (err: AWSError, data: Comprehend.Types.CreateDocumentClassifierResponse) => void): Request<Comprehend.Types.CreateDocumentClassifierResponse, AWSError>;
62 /**
63 * Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the API.
64 */
65 createEntityRecognizer(params: Comprehend.Types.CreateEntityRecognizerRequest, callback?: (err: AWSError, data: Comprehend.Types.CreateEntityRecognizerResponse) => void): Request<Comprehend.Types.CreateEntityRecognizerResponse, AWSError>;
66 /**
67 * Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the API.
68 */
69 createEntityRecognizer(callback?: (err: AWSError, data: Comprehend.Types.CreateEntityRecognizerResponse) => void): Request<Comprehend.Types.CreateEntityRecognizerResponse, AWSError>;
70 /**
71 * 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.
72 */
73 deleteDocumentClassifier(params: Comprehend.Types.DeleteDocumentClassifierRequest, callback?: (err: AWSError, data: Comprehend.Types.DeleteDocumentClassifierResponse) => void): Request<Comprehend.Types.DeleteDocumentClassifierResponse, AWSError>;
74 /**
75 * 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.
76 */
77 deleteDocumentClassifier(callback?: (err: AWSError, data: Comprehend.Types.DeleteDocumentClassifierResponse) => void): Request<Comprehend.Types.DeleteDocumentClassifierResponse, AWSError>;
78 /**
79 * 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.
80 */
81 deleteEntityRecognizer(params: Comprehend.Types.DeleteEntityRecognizerRequest, callback?: (err: AWSError, data: Comprehend.Types.DeleteEntityRecognizerResponse) => void): Request<Comprehend.Types.DeleteEntityRecognizerResponse, AWSError>;
82 /**
83 * 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.
84 */
85 deleteEntityRecognizer(callback?: (err: AWSError, data: Comprehend.Types.DeleteEntityRecognizerResponse) => void): Request<Comprehend.Types.DeleteEntityRecognizerResponse, AWSError>;
86 /**
87 * Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
88 */
89 describeDocumentClassificationJob(params: Comprehend.Types.DescribeDocumentClassificationJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeDocumentClassificationJobResponse) => void): Request<Comprehend.Types.DescribeDocumentClassificationJobResponse, AWSError>;
90 /**
91 * Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
92 */
93 describeDocumentClassificationJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeDocumentClassificationJobResponse) => void): Request<Comprehend.Types.DescribeDocumentClassificationJobResponse, AWSError>;
94 /**
95 * Gets the properties associated with a document classifier.
96 */
97 describeDocumentClassifier(params: Comprehend.Types.DescribeDocumentClassifierRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeDocumentClassifierResponse) => void): Request<Comprehend.Types.DescribeDocumentClassifierResponse, AWSError>;
98 /**
99 * Gets the properties associated with a document classifier.
100 */
101 describeDocumentClassifier(callback?: (err: AWSError, data: Comprehend.Types.DescribeDocumentClassifierResponse) => void): Request<Comprehend.Types.DescribeDocumentClassifierResponse, AWSError>;
102 /**
103 * Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
104 */
105 describeDominantLanguageDetectionJob(params: Comprehend.Types.DescribeDominantLanguageDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.DescribeDominantLanguageDetectionJobResponse, AWSError>;
106 /**
107 * Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
108 */
109 describeDominantLanguageDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.DescribeDominantLanguageDetectionJobResponse, AWSError>;
110 /**
111 * Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
112 */
113 describeEntitiesDetectionJob(params: Comprehend.Types.DescribeEntitiesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.DescribeEntitiesDetectionJobResponse, AWSError>;
114 /**
115 * Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
116 */
117 describeEntitiesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.DescribeEntitiesDetectionJobResponse, AWSError>;
118 /**
119 * Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
120 */
121 describeEntityRecognizer(params: Comprehend.Types.DescribeEntityRecognizerRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeEntityRecognizerResponse) => void): Request<Comprehend.Types.DescribeEntityRecognizerResponse, AWSError>;
122 /**
123 * Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
124 */
125 describeEntityRecognizer(callback?: (err: AWSError, data: Comprehend.Types.DescribeEntityRecognizerResponse) => void): Request<Comprehend.Types.DescribeEntityRecognizerResponse, AWSError>;
126 /**
127 * Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
128 */
129 describeKeyPhrasesDetectionJob(params: Comprehend.Types.DescribeKeyPhrasesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.DescribeKeyPhrasesDetectionJobResponse, AWSError>;
130 /**
131 * Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
132 */
133 describeKeyPhrasesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.DescribeKeyPhrasesDetectionJobResponse, AWSError>;
134 /**
135 * Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
136 */
137 describeSentimentDetectionJob(params: Comprehend.Types.DescribeSentimentDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeSentimentDetectionJobResponse) => void): Request<Comprehend.Types.DescribeSentimentDetectionJobResponse, AWSError>;
138 /**
139 * Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
140 */
141 describeSentimentDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeSentimentDetectionJobResponse) => void): Request<Comprehend.Types.DescribeSentimentDetectionJobResponse, AWSError>;
142 /**
143 * Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
144 */
145 describeTopicsDetectionJob(params: Comprehend.Types.DescribeTopicsDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.DescribeTopicsDetectionJobResponse) => void): Request<Comprehend.Types.DescribeTopicsDetectionJobResponse, AWSError>;
146 /**
147 * Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
148 */
149 describeTopicsDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.DescribeTopicsDetectionJobResponse) => void): Request<Comprehend.Types.DescribeTopicsDetectionJobResponse, AWSError>;
150 /**
151 * Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
152 */
153 detectDominantLanguage(params: Comprehend.Types.DetectDominantLanguageRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectDominantLanguageResponse) => void): Request<Comprehend.Types.DetectDominantLanguageResponse, AWSError>;
154 /**
155 * Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
156 */
157 detectDominantLanguage(callback?: (err: AWSError, data: Comprehend.Types.DetectDominantLanguageResponse) => void): Request<Comprehend.Types.DetectDominantLanguageResponse, AWSError>;
158 /**
159 * Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities.
160 */
161 detectEntities(params: Comprehend.Types.DetectEntitiesRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectEntitiesResponse) => void): Request<Comprehend.Types.DetectEntitiesResponse, AWSError>;
162 /**
163 * Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities.
164 */
165 detectEntities(callback?: (err: AWSError, data: Comprehend.Types.DetectEntitiesResponse) => void): Request<Comprehend.Types.DetectEntitiesResponse, AWSError>;
166 /**
167 * Detects the key noun phrases found in the text.
168 */
169 detectKeyPhrases(params: Comprehend.Types.DetectKeyPhrasesRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectKeyPhrasesResponse) => void): Request<Comprehend.Types.DetectKeyPhrasesResponse, AWSError>;
170 /**
171 * Detects the key noun phrases found in the text.
172 */
173 detectKeyPhrases(callback?: (err: AWSError, data: Comprehend.Types.DetectKeyPhrasesResponse) => void): Request<Comprehend.Types.DetectKeyPhrasesResponse, AWSError>;
174 /**
175 * Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
176 */
177 detectSentiment(params: Comprehend.Types.DetectSentimentRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectSentimentResponse) => void): Request<Comprehend.Types.DetectSentimentResponse, AWSError>;
178 /**
179 * Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
180 */
181 detectSentiment(callback?: (err: AWSError, data: Comprehend.Types.DetectSentimentResponse) => void): Request<Comprehend.Types.DetectSentimentResponse, AWSError>;
182 /**
183 * Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.
184 */
185 detectSyntax(params: Comprehend.Types.DetectSyntaxRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectSyntaxResponse) => void): Request<Comprehend.Types.DetectSyntaxResponse, AWSError>;
186 /**
187 * Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.
188 */
189 detectSyntax(callback?: (err: AWSError, data: Comprehend.Types.DetectSyntaxResponse) => void): Request<Comprehend.Types.DetectSyntaxResponse, AWSError>;
190 /**
191 * Gets a list of the documentation classification jobs that you have submitted.
192 */
193 listDocumentClassificationJobs(params: Comprehend.Types.ListDocumentClassificationJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListDocumentClassificationJobsResponse) => void): Request<Comprehend.Types.ListDocumentClassificationJobsResponse, AWSError>;
194 /**
195 * Gets a list of the documentation classification jobs that you have submitted.
196 */
197 listDocumentClassificationJobs(callback?: (err: AWSError, data: Comprehend.Types.ListDocumentClassificationJobsResponse) => void): Request<Comprehend.Types.ListDocumentClassificationJobsResponse, AWSError>;
198 /**
199 * Gets a list of the document classifiers that you have created.
200 */
201 listDocumentClassifiers(params: Comprehend.Types.ListDocumentClassifiersRequest, callback?: (err: AWSError, data: Comprehend.Types.ListDocumentClassifiersResponse) => void): Request<Comprehend.Types.ListDocumentClassifiersResponse, AWSError>;
202 /**
203 * Gets a list of the document classifiers that you have created.
204 */
205 listDocumentClassifiers(callback?: (err: AWSError, data: Comprehend.Types.ListDocumentClassifiersResponse) => void): Request<Comprehend.Types.ListDocumentClassifiersResponse, AWSError>;
206 /**
207 * Gets a list of the dominant language detection jobs that you have submitted.
208 */
209 listDominantLanguageDetectionJobs(params: Comprehend.Types.ListDominantLanguageDetectionJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListDominantLanguageDetectionJobsResponse) => void): Request<Comprehend.Types.ListDominantLanguageDetectionJobsResponse, AWSError>;
210 /**
211 * Gets a list of the dominant language detection jobs that you have submitted.
212 */
213 listDominantLanguageDetectionJobs(callback?: (err: AWSError, data: Comprehend.Types.ListDominantLanguageDetectionJobsResponse) => void): Request<Comprehend.Types.ListDominantLanguageDetectionJobsResponse, AWSError>;
214 /**
215 * Gets a list of the entity detection jobs that you have submitted.
216 */
217 listEntitiesDetectionJobs(params: Comprehend.Types.ListEntitiesDetectionJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListEntitiesDetectionJobsResponse) => void): Request<Comprehend.Types.ListEntitiesDetectionJobsResponse, AWSError>;
218 /**
219 * Gets a list of the entity detection jobs that you have submitted.
220 */
221 listEntitiesDetectionJobs(callback?: (err: AWSError, data: Comprehend.Types.ListEntitiesDetectionJobsResponse) => void): Request<Comprehend.Types.ListEntitiesDetectionJobsResponse, AWSError>;
222 /**
223 * 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.
224 */
225 listEntityRecognizers(params: Comprehend.Types.ListEntityRecognizersRequest, callback?: (err: AWSError, data: Comprehend.Types.ListEntityRecognizersResponse) => void): Request<Comprehend.Types.ListEntityRecognizersResponse, AWSError>;
226 /**
227 * 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.
228 */
229 listEntityRecognizers(callback?: (err: AWSError, data: Comprehend.Types.ListEntityRecognizersResponse) => void): Request<Comprehend.Types.ListEntityRecognizersResponse, AWSError>;
230 /**
231 * Get a list of key phrase detection jobs that you have submitted.
232 */
233 listKeyPhrasesDetectionJobs(params: Comprehend.Types.ListKeyPhrasesDetectionJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListKeyPhrasesDetectionJobsResponse) => void): Request<Comprehend.Types.ListKeyPhrasesDetectionJobsResponse, AWSError>;
234 /**
235 * Get a list of key phrase detection jobs that you have submitted.
236 */
237 listKeyPhrasesDetectionJobs(callback?: (err: AWSError, data: Comprehend.Types.ListKeyPhrasesDetectionJobsResponse) => void): Request<Comprehend.Types.ListKeyPhrasesDetectionJobsResponse, AWSError>;
238 /**
239 * Gets a list of sentiment detection jobs that you have submitted.
240 */
241 listSentimentDetectionJobs(params: Comprehend.Types.ListSentimentDetectionJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListSentimentDetectionJobsResponse) => void): Request<Comprehend.Types.ListSentimentDetectionJobsResponse, AWSError>;
242 /**
243 * Gets a list of sentiment detection jobs that you have submitted.
244 */
245 listSentimentDetectionJobs(callback?: (err: AWSError, data: Comprehend.Types.ListSentimentDetectionJobsResponse) => void): Request<Comprehend.Types.ListSentimentDetectionJobsResponse, AWSError>;
246 /**
247 * Lists all tags associated with a given Amazon Comprehend resource.
248 */
249 listTagsForResource(params: Comprehend.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Comprehend.Types.ListTagsForResourceResponse) => void): Request<Comprehend.Types.ListTagsForResourceResponse, AWSError>;
250 /**
251 * Lists all tags associated with a given Amazon Comprehend resource.
252 */
253 listTagsForResource(callback?: (err: AWSError, data: Comprehend.Types.ListTagsForResourceResponse) => void): Request<Comprehend.Types.ListTagsForResourceResponse, AWSError>;
254 /**
255 * Gets a list of the topic detection jobs that you have submitted.
256 */
257 listTopicsDetectionJobs(params: Comprehend.Types.ListTopicsDetectionJobsRequest, callback?: (err: AWSError, data: Comprehend.Types.ListTopicsDetectionJobsResponse) => void): Request<Comprehend.Types.ListTopicsDetectionJobsResponse, AWSError>;
258 /**
259 * Gets a list of the topic detection jobs that you have submitted.
260 */
261 listTopicsDetectionJobs(callback?: (err: AWSError, data: Comprehend.Types.ListTopicsDetectionJobsResponse) => void): Request<Comprehend.Types.ListTopicsDetectionJobsResponse, AWSError>;
262 /**
263 * Starts an asynchronous document classification job. Use the operation to track the progress of the job.
264 */
265 startDocumentClassificationJob(params: Comprehend.Types.StartDocumentClassificationJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartDocumentClassificationJobResponse) => void): Request<Comprehend.Types.StartDocumentClassificationJobResponse, AWSError>;
266 /**
267 * Starts an asynchronous document classification job. Use the operation to track the progress of the job.
268 */
269 startDocumentClassificationJob(callback?: (err: AWSError, data: Comprehend.Types.StartDocumentClassificationJobResponse) => void): Request<Comprehend.Types.StartDocumentClassificationJobResponse, AWSError>;
270 /**
271 * Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
272 */
273 startDominantLanguageDetectionJob(params: Comprehend.Types.StartDominantLanguageDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.StartDominantLanguageDetectionJobResponse, AWSError>;
274 /**
275 * Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
276 */
277 startDominantLanguageDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StartDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.StartDominantLanguageDetectionJobResponse, AWSError>;
278 /**
279 * 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.
280 */
281 startEntitiesDetectionJob(params: Comprehend.Types.StartEntitiesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.StartEntitiesDetectionJobResponse, AWSError>;
282 /**
283 * 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.
284 */
285 startEntitiesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StartEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.StartEntitiesDetectionJobResponse, AWSError>;
286 /**
287 * Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
288 */
289 startKeyPhrasesDetectionJob(params: Comprehend.Types.StartKeyPhrasesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.StartKeyPhrasesDetectionJobResponse, AWSError>;
290 /**
291 * Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
292 */
293 startKeyPhrasesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StartKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.StartKeyPhrasesDetectionJobResponse, AWSError>;
294 /**
295 * Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.
296 */
297 startSentimentDetectionJob(params: Comprehend.Types.StartSentimentDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartSentimentDetectionJobResponse) => void): Request<Comprehend.Types.StartSentimentDetectionJobResponse, AWSError>;
298 /**
299 * Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.
300 */
301 startSentimentDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StartSentimentDetectionJobResponse) => void): Request<Comprehend.Types.StartSentimentDetectionJobResponse, AWSError>;
302 /**
303 * Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.
304 */
305 startTopicsDetectionJob(params: Comprehend.Types.StartTopicsDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StartTopicsDetectionJobResponse) => void): Request<Comprehend.Types.StartTopicsDetectionJobResponse, AWSError>;
306 /**
307 * Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.
308 */
309 startTopicsDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StartTopicsDetectionJobResponse) => void): Request<Comprehend.Types.StartTopicsDetectionJobResponse, AWSError>;
310 /**
311 * 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.
312 */
313 stopDominantLanguageDetectionJob(params: Comprehend.Types.StopDominantLanguageDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StopDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.StopDominantLanguageDetectionJobResponse, AWSError>;
314 /**
315 * 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.
316 */
317 stopDominantLanguageDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StopDominantLanguageDetectionJobResponse) => void): Request<Comprehend.Types.StopDominantLanguageDetectionJobResponse, AWSError>;
318 /**
319 * 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.
320 */
321 stopEntitiesDetectionJob(params: Comprehend.Types.StopEntitiesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StopEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.StopEntitiesDetectionJobResponse, AWSError>;
322 /**
323 * 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.
324 */
325 stopEntitiesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StopEntitiesDetectionJobResponse) => void): Request<Comprehend.Types.StopEntitiesDetectionJobResponse, AWSError>;
326 /**
327 * 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.
328 */
329 stopKeyPhrasesDetectionJob(params: Comprehend.Types.StopKeyPhrasesDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StopKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.StopKeyPhrasesDetectionJobResponse, AWSError>;
330 /**
331 * 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.
332 */
333 stopKeyPhrasesDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StopKeyPhrasesDetectionJobResponse) => void): Request<Comprehend.Types.StopKeyPhrasesDetectionJobResponse, AWSError>;
334 /**
335 * 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.
336 */
337 stopSentimentDetectionJob(params: Comprehend.Types.StopSentimentDetectionJobRequest, callback?: (err: AWSError, data: Comprehend.Types.StopSentimentDetectionJobResponse) => void): Request<Comprehend.Types.StopSentimentDetectionJobResponse, AWSError>;
338 /**
339 * 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.
340 */
341 stopSentimentDetectionJob(callback?: (err: AWSError, data: Comprehend.Types.StopSentimentDetectionJobResponse) => void): Request<Comprehend.Types.StopSentimentDetectionJobResponse, AWSError>;
342 /**
343 * 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.
344 */
345 stopTrainingDocumentClassifier(params: Comprehend.Types.StopTrainingDocumentClassifierRequest, callback?: (err: AWSError, data: Comprehend.Types.StopTrainingDocumentClassifierResponse) => void): Request<Comprehend.Types.StopTrainingDocumentClassifierResponse, AWSError>;
346 /**
347 * 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.
348 */
349 stopTrainingDocumentClassifier(callback?: (err: AWSError, data: Comprehend.Types.StopTrainingDocumentClassifierResponse) => void): Request<Comprehend.Types.StopTrainingDocumentClassifierResponse, AWSError>;
350 /**
351 * 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.
352 */
353 stopTrainingEntityRecognizer(params: Comprehend.Types.StopTrainingEntityRecognizerRequest, callback?: (err: AWSError, data: Comprehend.Types.StopTrainingEntityRecognizerResponse) => void): Request<Comprehend.Types.StopTrainingEntityRecognizerResponse, AWSError>;
354 /**
355 * 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.
356 */
357 stopTrainingEntityRecognizer(callback?: (err: AWSError, data: Comprehend.Types.StopTrainingEntityRecognizerResponse) => void): Request<Comprehend.Types.StopTrainingEntityRecognizerResponse, AWSError>;
358 /**
359 * 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.
360 */
361 tagResource(params: Comprehend.Types.TagResourceRequest, callback?: (err: AWSError, data: Comprehend.Types.TagResourceResponse) => void): Request<Comprehend.Types.TagResourceResponse, AWSError>;
362 /**
363 * 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.
364 */
365 tagResource(callback?: (err: AWSError, data: Comprehend.Types.TagResourceResponse) => void): Request<Comprehend.Types.TagResourceResponse, AWSError>;
366 /**
367 * Removes a specific tag associated with an Amazon Comprehend resource.
368 */
369 untagResource(params: Comprehend.Types.UntagResourceRequest, callback?: (err: AWSError, data: Comprehend.Types.UntagResourceResponse) => void): Request<Comprehend.Types.UntagResourceResponse, AWSError>;
370 /**
371 * Removes a specific tag associated with an Amazon Comprehend resource.
372 */
373 untagResource(callback?: (err: AWSError, data: Comprehend.Types.UntagResourceResponse) => void): Request<Comprehend.Types.UntagResourceResponse, AWSError>;
374}
375declare namespace Comprehend {
376 export type AnyLengthString = string;
377 export interface BatchDetectDominantLanguageItemResult {
378 /**
379 * The zero-based index of the document in the input list.
380 */
381 Index?: Integer;
382 /**
383 * One or more DominantLanguage objects describing the dominant languages in the document.
384 */
385 Languages?: ListOfDominantLanguages;
386 }
387 export interface BatchDetectDominantLanguageRequest {
388 /**
389 * A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.
390 */
391 TextList: StringList;
392 }
393 export interface BatchDetectDominantLanguageResponse {
394 /**
395 * A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
396 */
397 ResultList: ListOfDetectDominantLanguageResult;
398 /**
399 * A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
400 */
401 ErrorList: BatchItemErrorList;
402 }
403 export interface BatchDetectEntitiesItemResult {
404 /**
405 * The zero-based index of the document in the input list.
406 */
407 Index?: Integer;
408 /**
409 * One or more Entity objects, one for each entity detected in the document.
410 */
411 Entities?: ListOfEntities;
412 }
413 export interface BatchDetectEntitiesRequest {
414 /**
415 * A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer than 5,000 bytes of UTF-8 encoded characters.
416 */
417 TextList: StringList;
418 /**
419 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
420 */
421 LanguageCode: LanguageCode;
422 }
423 export interface BatchDetectEntitiesResponse {
424 /**
425 * A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
426 */
427 ResultList: ListOfDetectEntitiesResult;
428 /**
429 * A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
430 */
431 ErrorList: BatchItemErrorList;
432 }
433 export interface BatchDetectKeyPhrasesItemResult {
434 /**
435 * The zero-based index of the document in the input list.
436 */
437 Index?: Integer;
438 /**
439 * One or more KeyPhrase objects, one for each key phrase detected in the document.
440 */
441 KeyPhrases?: ListOfKeyPhrases;
442 }
443 export interface BatchDetectKeyPhrasesRequest {
444 /**
445 * A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.
446 */
447 TextList: StringList;
448 /**
449 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
450 */
451 LanguageCode: LanguageCode;
452 }
453 export interface BatchDetectKeyPhrasesResponse {
454 /**
455 * A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
456 */
457 ResultList: ListOfDetectKeyPhrasesResult;
458 /**
459 * A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
460 */
461 ErrorList: BatchItemErrorList;
462 }
463 export interface BatchDetectSentimentItemResult {
464 /**
465 * The zero-based index of the document in the input list.
466 */
467 Index?: Integer;
468 /**
469 * The sentiment detected in the document.
470 */
471 Sentiment?: SentimentType;
472 /**
473 * The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
474 */
475 SentimentScore?: SentimentScore;
476 }
477 export interface BatchDetectSentimentRequest {
478 /**
479 * A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.
480 */
481 TextList: StringList;
482 /**
483 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
484 */
485 LanguageCode: LanguageCode;
486 }
487 export interface BatchDetectSentimentResponse {
488 /**
489 * A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
490 */
491 ResultList: ListOfDetectSentimentResult;
492 /**
493 * A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
494 */
495 ErrorList: BatchItemErrorList;
496 }
497 export interface BatchDetectSyntaxItemResult {
498 /**
499 * The zero-based index of the document in the input list.
500 */
501 Index?: Integer;
502 /**
503 * The syntax tokens for the words in the document, one token for each word.
504 */
505 SyntaxTokens?: ListOfSyntaxTokens;
506 }
507 export interface BatchDetectSyntaxRequest {
508 /**
509 * A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.
510 */
511 TextList: StringList;
512 /**
513 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
514 */
515 LanguageCode: SyntaxLanguageCode;
516 }
517 export interface BatchDetectSyntaxResponse {
518 /**
519 * A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
520 */
521 ResultList: ListOfDetectSyntaxResult;
522 /**
523 * A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
524 */
525 ErrorList: BatchItemErrorList;
526 }
527 export interface BatchItemError {
528 /**
529 * The zero-based index of the document in the input list.
530 */
531 Index?: Integer;
532 /**
533 * The numeric error code of the error.
534 */
535 ErrorCode?: String;
536 /**
537 * A text description of the error.
538 */
539 ErrorMessage?: String;
540 }
541 export type BatchItemErrorList = BatchItemError[];
542 export interface ClassifierEvaluationMetrics {
543 /**
544 * The fraction of the labels that were correct recognized. It is computed by dividing the number of labels in the test documents that were correctly recognized by the total number of labels in the test documents.
545 */
546 Accuracy?: Double;
547 /**
548 * A measure of the usefulness of the classifier results in the test data. High precision means that the classifier returned substantially more relevant results than irrelevant ones.
549 */
550 Precision?: Double;
551 /**
552 * A measure of how complete the classifier results are for the test data. High recall means that the classifier returned most of the relevant results.
553 */
554 Recall?: Double;
555 /**
556 * A measure of how accurate the classifier results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.
557 */
558 F1Score?: Double;
559 }
560 export interface ClassifierMetadata {
561 /**
562 * The number of labels in the input data.
563 */
564 NumberOfLabels?: Integer;
565 /**
566 * The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
567 */
568 NumberOfTrainedDocuments?: Integer;
569 /**
570 * The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents.
571 */
572 NumberOfTestDocuments?: Integer;
573 /**
574 * Describes the result metrics for the test data associated with an documentation classifier.
575 */
576 EvaluationMetrics?: ClassifierEvaluationMetrics;
577 }
578 export type ClientRequestTokenString = string;
579 export type ComprehendArn = string;
580 export type ComprehendArnName = string;
581 export interface CreateDocumentClassifierRequest {
582 /**
583 * The name of the document classifier.
584 */
585 DocumentClassifierName: ComprehendArnName;
586 /**
587 * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
588 */
589 DataAccessRoleArn: IamRoleArn;
590 /**
591 * Tags to be associated with the document classifier being created. 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.
592 */
593 Tags?: TagList;
594 /**
595 * Specifies the format and location of the input data for the job.
596 */
597 InputDataConfig: DocumentClassifierInputDataConfig;
598 /**
599 * Enables the addition of output results configuration parameters for custom classifier jobs.
600 */
601 OutputDataConfig?: DocumentClassifierOutputDataConfig;
602 /**
603 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
604 */
605 ClientRequestToken?: ClientRequestTokenString;
606 /**
607 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
608 */
609 LanguageCode: LanguageCode;
610 /**
611 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
612 */
613 VolumeKmsKeyId?: KmsKeyId;
614 /**
615 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
616 */
617 VpcConfig?: VpcConfig;
618 }
619 export interface CreateDocumentClassifierResponse {
620 /**
621 * The Amazon Resource Name (ARN) that identifies the document classifier.
622 */
623 DocumentClassifierArn?: DocumentClassifierArn;
624 }
625 export interface CreateEntityRecognizerRequest {
626 /**
627 * The name given to the newly created recognizer. Recognizer names can be a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The name must be unique in the account/region.
628 */
629 RecognizerName: ComprehendArnName;
630 /**
631 * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
632 */
633 DataAccessRoleArn: IamRoleArn;
634 /**
635 * Tags to be associated with the entity recognizer being created. 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.
636 */
637 Tags?: TagList;
638 /**
639 * Specifies the format and location of the input data. The S3 bucket containing the input data must be located in the same region as the entity recognizer being created.
640 */
641 InputDataConfig: EntityRecognizerInputDataConfig;
642 /**
643 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
644 */
645 ClientRequestToken?: ClientRequestTokenString;
646 /**
647 * The language of the input documents. All documents must be in the same language. Only English ("en") is currently supported.
648 */
649 LanguageCode: LanguageCode;
650 /**
651 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
652 */
653 VolumeKmsKeyId?: KmsKeyId;
654 /**
655 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
656 */
657 VpcConfig?: VpcConfig;
658 }
659 export interface CreateEntityRecognizerResponse {
660 /**
661 * The Amazon Resource Name (ARN) that identifies the entity recognizer.
662 */
663 EntityRecognizerArn?: EntityRecognizerArn;
664 }
665 export interface DeleteDocumentClassifierRequest {
666 /**
667 * The Amazon Resource Name (ARN) that identifies the document classifier.
668 */
669 DocumentClassifierArn: DocumentClassifierArn;
670 }
671 export interface DeleteDocumentClassifierResponse {
672 }
673 export interface DeleteEntityRecognizerRequest {
674 /**
675 * The Amazon Resource Name (ARN) that identifies the entity recognizer.
676 */
677 EntityRecognizerArn: EntityRecognizerArn;
678 }
679 export interface DeleteEntityRecognizerResponse {
680 }
681 export interface DescribeDocumentClassificationJobRequest {
682 /**
683 * The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.
684 */
685 JobId: JobId;
686 }
687 export interface DescribeDocumentClassificationJobResponse {
688 /**
689 * An object that describes the properties associated with the document classification job.
690 */
691 DocumentClassificationJobProperties?: DocumentClassificationJobProperties;
692 }
693 export interface DescribeDocumentClassifierRequest {
694 /**
695 * The Amazon Resource Name (ARN) that identifies the document classifier. The operation returns this identifier in its response.
696 */
697 DocumentClassifierArn: DocumentClassifierArn;
698 }
699 export interface DescribeDocumentClassifierResponse {
700 /**
701 * An object that contains the properties associated with a document classifier.
702 */
703 DocumentClassifierProperties?: DocumentClassifierProperties;
704 }
705 export interface DescribeDominantLanguageDetectionJobRequest {
706 /**
707 * The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.
708 */
709 JobId: JobId;
710 }
711 export interface DescribeDominantLanguageDetectionJobResponse {
712 /**
713 * An object that contains the properties associated with a dominant language detection job.
714 */
715 DominantLanguageDetectionJobProperties?: DominantLanguageDetectionJobProperties;
716 }
717 export interface DescribeEntitiesDetectionJobRequest {
718 /**
719 * The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.
720 */
721 JobId: JobId;
722 }
723 export interface DescribeEntitiesDetectionJobResponse {
724 /**
725 * An object that contains the properties associated with an entities detection job.
726 */
727 EntitiesDetectionJobProperties?: EntitiesDetectionJobProperties;
728 }
729 export interface DescribeEntityRecognizerRequest {
730 /**
731 * The Amazon Resource Name (ARN) that identifies the entity recognizer.
732 */
733 EntityRecognizerArn: EntityRecognizerArn;
734 }
735 export interface DescribeEntityRecognizerResponse {
736 /**
737 * Describes information associated with an entity recognizer.
738 */
739 EntityRecognizerProperties?: EntityRecognizerProperties;
740 }
741 export interface DescribeKeyPhrasesDetectionJobRequest {
742 /**
743 * The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.
744 */
745 JobId: JobId;
746 }
747 export interface DescribeKeyPhrasesDetectionJobResponse {
748 /**
749 * An object that contains the properties associated with a key phrases detection job.
750 */
751 KeyPhrasesDetectionJobProperties?: KeyPhrasesDetectionJobProperties;
752 }
753 export interface DescribeSentimentDetectionJobRequest {
754 /**
755 * The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.
756 */
757 JobId: JobId;
758 }
759 export interface DescribeSentimentDetectionJobResponse {
760 /**
761 * An object that contains the properties associated with a sentiment detection job.
762 */
763 SentimentDetectionJobProperties?: SentimentDetectionJobProperties;
764 }
765 export interface DescribeTopicsDetectionJobRequest {
766 /**
767 * The identifier assigned by the user to the detection job.
768 */
769 JobId: JobId;
770 }
771 export interface DescribeTopicsDetectionJobResponse {
772 /**
773 * The list of properties for the requested job.
774 */
775 TopicsDetectionJobProperties?: TopicsDetectionJobProperties;
776 }
777 export interface DetectDominantLanguageRequest {
778 /**
779 * A UTF-8 text string. Each string should contain at least 20 characters and must contain fewer that 5,000 bytes of UTF-8 encoded characters.
780 */
781 Text: String;
782 }
783 export interface DetectDominantLanguageResponse {
784 /**
785 * The languages that Amazon Comprehend detected in the input text. For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
786 */
787 Languages?: ListOfDominantLanguages;
788 }
789 export interface DetectEntitiesRequest {
790 /**
791 * A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
792 */
793 Text: String;
794 /**
795 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
796 */
797 LanguageCode: LanguageCode;
798 }
799 export interface DetectEntitiesResponse {
800 /**
801 * A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. For a list of entity types, see how-entities.
802 */
803 Entities?: ListOfEntities;
804 }
805 export interface DetectKeyPhrasesRequest {
806 /**
807 * A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
808 */
809 Text: String;
810 /**
811 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
812 */
813 LanguageCode: LanguageCode;
814 }
815 export interface DetectKeyPhrasesResponse {
816 /**
817 * A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
818 */
819 KeyPhrases?: ListOfKeyPhrases;
820 }
821 export interface DetectSentimentRequest {
822 /**
823 * A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
824 */
825 Text: String;
826 /**
827 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
828 */
829 LanguageCode: LanguageCode;
830 }
831 export interface DetectSentimentResponse {
832 /**
833 * The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
834 */
835 Sentiment?: SentimentType;
836 /**
837 * An object that lists the sentiments, and their corresponding confidence levels.
838 */
839 SentimentScore?: SentimentScore;
840 }
841 export interface DetectSyntaxRequest {
842 /**
843 * A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
844 */
845 Text: String;
846 /**
847 * The language code of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
848 */
849 LanguageCode: SyntaxLanguageCode;
850 }
851 export interface DetectSyntaxResponse {
852 /**
853 * A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
854 */
855 SyntaxTokens?: ListOfSyntaxTokens;
856 }
857 export interface DocumentClassificationJobFilter {
858 /**
859 * Filters on the name of the job.
860 */
861 JobName?: JobName;
862 /**
863 * Filters the list based on job status. Returns only jobs with the specified status.
864 */
865 JobStatus?: JobStatus;
866 /**
867 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in ascending order, oldest to newest.
868 */
869 SubmitTimeBefore?: Timestamp;
870 /**
871 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in descending order, newest to oldest.
872 */
873 SubmitTimeAfter?: Timestamp;
874 }
875 export interface DocumentClassificationJobProperties {
876 /**
877 * The identifier assigned to the document classification job.
878 */
879 JobId?: JobId;
880 /**
881 * The name that you assigned to the document classification job.
882 */
883 JobName?: JobName;
884 /**
885 * The current status of the document classification job. If the status is FAILED, the Message field shows the reason for the failure.
886 */
887 JobStatus?: JobStatus;
888 /**
889 * A description of the status of the job.
890 */
891 Message?: AnyLengthString;
892 /**
893 * The time that the document classification job was submitted for processing.
894 */
895 SubmitTime?: Timestamp;
896 /**
897 * The time that the document classification job completed.
898 */
899 EndTime?: Timestamp;
900 /**
901 * The Amazon Resource Name (ARN) that identifies the document classifier.
902 */
903 DocumentClassifierArn?: DocumentClassifierArn;
904 /**
905 * The input data configuration that you supplied when you created the document classification job.
906 */
907 InputDataConfig?: InputDataConfig;
908 /**
909 * The output data configuration that you supplied when you created the document classification job.
910 */
911 OutputDataConfig?: OutputDataConfig;
912 /**
913 * The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
914 */
915 DataAccessRoleArn?: IamRoleArn;
916 /**
917 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
918 */
919 VolumeKmsKeyId?: KmsKeyId;
920 /**
921 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.
922 */
923 VpcConfig?: VpcConfig;
924 }
925 export type DocumentClassificationJobPropertiesList = DocumentClassificationJobProperties[];
926 export type DocumentClassifierArn = string;
927 export interface DocumentClassifierFilter {
928 /**
929 * Filters the list of classifiers based on status.
930 */
931 Status?: ModelStatus;
932 /**
933 * Filters the list of classifiers based on the time that the classifier was submitted for processing. Returns only classifiers submitted before the specified time. Classifiers are returned in ascending order, oldest to newest.
934 */
935 SubmitTimeBefore?: Timestamp;
936 /**
937 * Filters the list of classifiers based on the time that the classifier was submitted for processing. Returns only classifiers submitted after the specified time. Classifiers are returned in descending order, newest to oldest.
938 */
939 SubmitTimeAfter?: Timestamp;
940 }
941 export interface DocumentClassifierInputDataConfig {
942 /**
943 * The Amazon S3 URI for the input data. The S3 bucket must be in the same region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files. For example, if you use the URI S3://bucketName/prefix, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
944 */
945 S3Uri: S3Uri;
946 }
947 export interface DocumentClassifierOutputDataConfig {
948 /**
949 * When you use the OutputDataConfig object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file. When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the confusion matrix.
950 */
951 S3Uri?: S3Uri;
952 /**
953 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" KMS Key Alias: "alias/ExampleAlias" ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
954 */
955 KmsKeyId?: KmsKeyId;
956 }
957 export interface DocumentClassifierProperties {
958 /**
959 * The Amazon Resource Name (ARN) that identifies the document classifier.
960 */
961 DocumentClassifierArn?: DocumentClassifierArn;
962 /**
963 * The language code for the language of the documents that the classifier was trained on.
964 */
965 LanguageCode?: LanguageCode;
966 /**
967 * The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.
968 */
969 Status?: ModelStatus;
970 /**
971 * Additional information about the status of the classifier.
972 */
973 Message?: AnyLengthString;
974 /**
975 * The time that the document classifier was submitted for training.
976 */
977 SubmitTime?: Timestamp;
978 /**
979 * The time that training the document classifier completed.
980 */
981 EndTime?: Timestamp;
982 /**
983 * Indicates the time when the training starts on documentation classifiers. You are billed for the time interval between this time and the value of TrainingEndTime.
984 */
985 TrainingStartTime?: Timestamp;
986 /**
987 * The time that training of the document classifier was completed. Indicates the time when the training completes on documentation classifiers. You are billed for the time interval between this time and the value of TrainingStartTime.
988 */
989 TrainingEndTime?: Timestamp;
990 /**
991 * The input data configuration that you supplied when you created the document classifier for training.
992 */
993 InputDataConfig?: DocumentClassifierInputDataConfig;
994 /**
995 * Provides output results configuration parameters for custom classifier jobs.
996 */
997 OutputDataConfig?: DocumentClassifierOutputDataConfig;
998 /**
999 * Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.
1000 */
1001 ClassifierMetadata?: ClassifierMetadata;
1002 /**
1003 * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
1004 */
1005 DataAccessRoleArn?: IamRoleArn;
1006 /**
1007 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1008 */
1009 VolumeKmsKeyId?: KmsKeyId;
1010 /**
1011 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
1012 */
1013 VpcConfig?: VpcConfig;
1014 }
1015 export type DocumentClassifierPropertiesList = DocumentClassifierProperties[];
1016 export interface DominantLanguage {
1017 /**
1018 * The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
1019 */
1020 LanguageCode?: String;
1021 /**
1022 * The level of confidence that Amazon Comprehend has in the accuracy of the detection.
1023 */
1024 Score?: Float;
1025 }
1026 export interface DominantLanguageDetectionJobFilter {
1027 /**
1028 * Filters on the name of the job.
1029 */
1030 JobName?: JobName;
1031 /**
1032 * Filters the list of jobs based on job status. Returns only jobs with the specified status.
1033 */
1034 JobStatus?: JobStatus;
1035 /**
1036 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.
1037 */
1038 SubmitTimeBefore?: Timestamp;
1039 /**
1040 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.
1041 */
1042 SubmitTimeAfter?: Timestamp;
1043 }
1044 export interface DominantLanguageDetectionJobProperties {
1045 /**
1046 * The identifier assigned to the dominant language detection job.
1047 */
1048 JobId?: JobId;
1049 /**
1050 * The name that you assigned to the dominant language detection job.
1051 */
1052 JobName?: JobName;
1053 /**
1054 * The current status of the dominant language detection job. If the status is FAILED, the Message field shows the reason for the failure.
1055 */
1056 JobStatus?: JobStatus;
1057 /**
1058 * A description for the status of a job.
1059 */
1060 Message?: AnyLengthString;
1061 /**
1062 * The time that the dominant language detection job was submitted for processing.
1063 */
1064 SubmitTime?: Timestamp;
1065 /**
1066 * The time that the dominant language detection job completed.
1067 */
1068 EndTime?: Timestamp;
1069 /**
1070 * The input data configuration that you supplied when you created the dominant language detection job.
1071 */
1072 InputDataConfig?: InputDataConfig;
1073 /**
1074 * The output data configuration that you supplied when you created the dominant language detection job.
1075 */
1076 OutputDataConfig?: OutputDataConfig;
1077 /**
1078 * The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.
1079 */
1080 DataAccessRoleArn?: IamRoleArn;
1081 /**
1082 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1083 */
1084 VolumeKmsKeyId?: KmsKeyId;
1085 /**
1086 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC.
1087 */
1088 VpcConfig?: VpcConfig;
1089 }
1090 export type DominantLanguageDetectionJobPropertiesList = DominantLanguageDetectionJobProperties[];
1091 export type Double = number;
1092 export interface EntitiesDetectionJobFilter {
1093 /**
1094 * Filters on the name of the job.
1095 */
1096 JobName?: JobName;
1097 /**
1098 * Filters the list of jobs based on job status. Returns only jobs with the specified status.
1099 */
1100 JobStatus?: JobStatus;
1101 /**
1102 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.
1103 */
1104 SubmitTimeBefore?: Timestamp;
1105 /**
1106 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.
1107 */
1108 SubmitTimeAfter?: Timestamp;
1109 }
1110 export interface EntitiesDetectionJobProperties {
1111 /**
1112 * The identifier assigned to the entities detection job.
1113 */
1114 JobId?: JobId;
1115 /**
1116 * The name that you assigned the entities detection job.
1117 */
1118 JobName?: JobName;
1119 /**
1120 * The current status of the entities detection job. If the status is FAILED, the Message field shows the reason for the failure.
1121 */
1122 JobStatus?: JobStatus;
1123 /**
1124 * A description of the status of a job.
1125 */
1126 Message?: AnyLengthString;
1127 /**
1128 * The time that the entities detection job was submitted for processing.
1129 */
1130 SubmitTime?: Timestamp;
1131 /**
1132 * The time that the entities detection job completed
1133 */
1134 EndTime?: Timestamp;
1135 /**
1136 * The Amazon Resource Name (ARN) that identifies the entity recognizer.
1137 */
1138 EntityRecognizerArn?: EntityRecognizerArn;
1139 /**
1140 * The input data configuration that you supplied when you created the entities detection job.
1141 */
1142 InputDataConfig?: InputDataConfig;
1143 /**
1144 * The output data configuration that you supplied when you created the entities detection job.
1145 */
1146 OutputDataConfig?: OutputDataConfig;
1147 /**
1148 * The language code of the input documents.
1149 */
1150 LanguageCode?: LanguageCode;
1151 /**
1152 * The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.
1153 */
1154 DataAccessRoleArn?: IamRoleArn;
1155 /**
1156 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1157 */
1158 VolumeKmsKeyId?: KmsKeyId;
1159 /**
1160 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC.
1161 */
1162 VpcConfig?: VpcConfig;
1163 }
1164 export type EntitiesDetectionJobPropertiesList = EntitiesDetectionJobProperties[];
1165 export interface Entity {
1166 /**
1167 * The level of confidence that Amazon Comprehend has in the accuracy of the detection.
1168 */
1169 Score?: Float;
1170 /**
1171 * The entity's type.
1172 */
1173 Type?: EntityType;
1174 /**
1175 * The text of the entity.
1176 */
1177 Text?: String;
1178 /**
1179 * A character offset in the input text that shows where the entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
1180 */
1181 BeginOffset?: Integer;
1182 /**
1183 * A character offset in the input text that shows where the entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
1184 */
1185 EndOffset?: Integer;
1186 }
1187 export interface EntityRecognizerAnnotations {
1188 /**
1189 * Specifies the Amazon S3 location where the annotations for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.
1190 */
1191 S3Uri: S3Uri;
1192 }
1193 export type EntityRecognizerArn = string;
1194 export interface EntityRecognizerDocuments {
1195 /**
1196 * Specifies the Amazon S3 location where the training documents for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.
1197 */
1198 S3Uri: S3Uri;
1199 }
1200 export interface EntityRecognizerEntityList {
1201 /**
1202 * Specifies the Amazon S3 location where the entity list is located. The URI must be in the same region as the API endpoint that you are calling.
1203 */
1204 S3Uri: S3Uri;
1205 }
1206 export interface EntityRecognizerEvaluationMetrics {
1207 /**
1208 * A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
1209 */
1210 Precision?: Double;
1211 /**
1212 * A measure of how complete the recognizer results are for the test data. High recall means that the recognizer returned most of the relevant results.
1213 */
1214 Recall?: Double;
1215 /**
1216 * A measure of how accurate the recognizer results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.
1217 */
1218 F1Score?: Double;
1219 }
1220 export interface EntityRecognizerFilter {
1221 /**
1222 * The status of an entity recognizer.
1223 */
1224 Status?: ModelStatus;
1225 /**
1226 * Filters the list of entities based on the time that the list was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in descending order, newest to oldest.
1227 */
1228 SubmitTimeBefore?: Timestamp;
1229 /**
1230 * Filters the list of entities based on the time that the list was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in ascending order, oldest to newest.
1231 */
1232 SubmitTimeAfter?: Timestamp;
1233 }
1234 export interface EntityRecognizerInputDataConfig {
1235 /**
1236 * The entity types in the input data for an entity recognizer. A maximum of 12 entity types can be used at one time to train an entity recognizer.
1237 */
1238 EntityTypes: EntityTypesList;
1239 /**
1240 * S3 location of the documents folder for an entity recognizer
1241 */
1242 Documents: EntityRecognizerDocuments;
1243 /**
1244 * S3 location of the annotations file for an entity recognizer.
1245 */
1246 Annotations?: EntityRecognizerAnnotations;
1247 /**
1248 * S3 location of the entity list for an entity recognizer.
1249 */
1250 EntityList?: EntityRecognizerEntityList;
1251 }
1252 export interface EntityRecognizerMetadata {
1253 /**
1254 * The number of documents in the input data that were used to train the entity recognizer. Typically this is 80 to 90 percent of the input documents.
1255 */
1256 NumberOfTrainedDocuments?: Integer;
1257 /**
1258 * The number of documents in the input data that were used to test the entity recognizer. Typically this is 10 to 20 percent of the input documents.
1259 */
1260 NumberOfTestDocuments?: Integer;
1261 /**
1262 * Detailed information about the accuracy of an entity recognizer.
1263 */
1264 EvaluationMetrics?: EntityRecognizerEvaluationMetrics;
1265 /**
1266 * Entity types from the metadata of an entity recognizer.
1267 */
1268 EntityTypes?: EntityRecognizerMetadataEntityTypesList;
1269 }
1270 export type EntityRecognizerMetadataEntityTypesList = EntityRecognizerMetadataEntityTypesListItem[];
1271 export interface EntityRecognizerMetadataEntityTypesListItem {
1272 /**
1273 * Type of entity from the list of entity types in the metadata of an entity recognizer.
1274 */
1275 Type?: AnyLengthString;
1276 /**
1277 * Detailed information about the accuracy of the entity recognizer for a specific item on the list of entity types.
1278 */
1279 EvaluationMetrics?: EntityTypesEvaluationMetrics;
1280 /**
1281 * indicates the number of times the given entity name was seen in the training data.
1282 */
1283 NumberOfTrainMentions?: Integer;
1284 }
1285 export interface EntityRecognizerProperties {
1286 /**
1287 * The Amazon Resource Name (ARN) that identifies the entity recognizer.
1288 */
1289 EntityRecognizerArn?: EntityRecognizerArn;
1290 /**
1291 * The language of the input documents. All documents must be in the same language. Only English ("en") is currently supported.
1292 */
1293 LanguageCode?: LanguageCode;
1294 /**
1295 * Provides the status of the entity recognizer.
1296 */
1297 Status?: ModelStatus;
1298 /**
1299 * A description of the status of the recognizer.
1300 */
1301 Message?: AnyLengthString;
1302 /**
1303 * The time that the recognizer was submitted for processing.
1304 */
1305 SubmitTime?: Timestamp;
1306 /**
1307 * The time that the recognizer creation completed.
1308 */
1309 EndTime?: Timestamp;
1310 /**
1311 * The time that training of the entity recognizer started.
1312 */
1313 TrainingStartTime?: Timestamp;
1314 /**
1315 * The time that training of the entity recognizer was completed.
1316 */
1317 TrainingEndTime?: Timestamp;
1318 /**
1319 * The input data properties of an entity recognizer.
1320 */
1321 InputDataConfig?: EntityRecognizerInputDataConfig;
1322 /**
1323 * Provides information about an entity recognizer.
1324 */
1325 RecognizerMetadata?: EntityRecognizerMetadata;
1326 /**
1327 * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
1328 */
1329 DataAccessRoleArn?: IamRoleArn;
1330 /**
1331 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1332 */
1333 VolumeKmsKeyId?: KmsKeyId;
1334 /**
1335 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
1336 */
1337 VpcConfig?: VpcConfig;
1338 }
1339 export type EntityRecognizerPropertiesList = EntityRecognizerProperties[];
1340 export type EntityType = "PERSON"|"LOCATION"|"ORGANIZATION"|"COMMERCIAL_ITEM"|"EVENT"|"DATE"|"QUANTITY"|"TITLE"|"OTHER"|string;
1341 export type EntityTypeName = string;
1342 export interface EntityTypesEvaluationMetrics {
1343 /**
1344 * A measure of the usefulness of the recognizer results for a specific entity type in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
1345 */
1346 Precision?: Double;
1347 /**
1348 * A measure of how complete the recognizer results are for a specific entity type in the test data. High recall means that the recognizer returned most of the relevant results.
1349 */
1350 Recall?: Double;
1351 /**
1352 * A measure of how accurate the recognizer results are for for a specific entity type in the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.
1353 */
1354 F1Score?: Double;
1355 }
1356 export type EntityTypesList = EntityTypesListItem[];
1357 export interface EntityTypesListItem {
1358 /**
1359 * Entity type of an item on an entity type list.
1360 */
1361 Type: EntityTypeName;
1362 }
1363 export type Float = number;
1364 export type IamRoleArn = string;
1365 export interface InputDataConfig {
1366 /**
1367 * The Amazon S3 URI for the input data. The URI must be in same region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of data files. For example, if you use the URI S3://bucketName/prefix, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
1368 */
1369 S3Uri: S3Uri;
1370 /**
1371 * Specifies how the text in an input file should be processed: ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
1372 */
1373 InputFormat?: InputFormat;
1374 }
1375 export type InputFormat = "ONE_DOC_PER_FILE"|"ONE_DOC_PER_LINE"|string;
1376 export type Integer = number;
1377 export type JobId = string;
1378 export type JobName = string;
1379 export type JobStatus = "SUBMITTED"|"IN_PROGRESS"|"COMPLETED"|"FAILED"|"STOP_REQUESTED"|"STOPPED"|string;
1380 export interface KeyPhrase {
1381 /**
1382 * The level of confidence that Amazon Comprehend has in the accuracy of the detection.
1383 */
1384 Score?: Float;
1385 /**
1386 * The text of a key noun phrase.
1387 */
1388 Text?: String;
1389 /**
1390 * A character offset in the input text that shows where the key phrase begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
1391 */
1392 BeginOffset?: Integer;
1393 /**
1394 * A character offset in the input text where the key phrase ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
1395 */
1396 EndOffset?: Integer;
1397 }
1398 export interface KeyPhrasesDetectionJobFilter {
1399 /**
1400 * Filters on the name of the job.
1401 */
1402 JobName?: JobName;
1403 /**
1404 * Filters the list of jobs based on job status. Returns only jobs with the specified status.
1405 */
1406 JobStatus?: JobStatus;
1407 /**
1408 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.
1409 */
1410 SubmitTimeBefore?: Timestamp;
1411 /**
1412 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.
1413 */
1414 SubmitTimeAfter?: Timestamp;
1415 }
1416 export interface KeyPhrasesDetectionJobProperties {
1417 /**
1418 * The identifier assigned to the key phrases detection job.
1419 */
1420 JobId?: JobId;
1421 /**
1422 * The name that you assigned the key phrases detection job.
1423 */
1424 JobName?: JobName;
1425 /**
1426 * The current status of the key phrases detection job. If the status is FAILED, the Message field shows the reason for the failure.
1427 */
1428 JobStatus?: JobStatus;
1429 /**
1430 * A description of the status of a job.
1431 */
1432 Message?: AnyLengthString;
1433 /**
1434 * The time that the key phrases detection job was submitted for processing.
1435 */
1436 SubmitTime?: Timestamp;
1437 /**
1438 * The time that the key phrases detection job completed.
1439 */
1440 EndTime?: Timestamp;
1441 /**
1442 * The input data configuration that you supplied when you created the key phrases detection job.
1443 */
1444 InputDataConfig?: InputDataConfig;
1445 /**
1446 * The output data configuration that you supplied when you created the key phrases detection job.
1447 */
1448 OutputDataConfig?: OutputDataConfig;
1449 /**
1450 * The language code of the input documents.
1451 */
1452 LanguageCode?: LanguageCode;
1453 /**
1454 * The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.
1455 */
1456 DataAccessRoleArn?: IamRoleArn;
1457 /**
1458 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1459 */
1460 VolumeKmsKeyId?: KmsKeyId;
1461 /**
1462 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your key phrases detection job. For more information, see Amazon VPC.
1463 */
1464 VpcConfig?: VpcConfig;
1465 }
1466 export type KeyPhrasesDetectionJobPropertiesList = KeyPhrasesDetectionJobProperties[];
1467 export type KmsKeyId = string;
1468 export type LanguageCode = "en"|"es"|"fr"|"de"|"it"|"pt"|string;
1469 export interface ListDocumentClassificationJobsRequest {
1470 /**
1471 * Filters the jobs that are returned. You can filter jobs on their names, status, or the date and time that they were submitted. You can only set one filter at a time.
1472 */
1473 Filter?: DocumentClassificationJobFilter;
1474 /**
1475 * Identifies the next page of results to return.
1476 */
1477 NextToken?: String;
1478 /**
1479 * The maximum number of results to return in each page. The default is 100.
1480 */
1481 MaxResults?: MaxResultsInteger;
1482 }
1483 export interface ListDocumentClassificationJobsResponse {
1484 /**
1485 * A list containing the properties of each job returned.
1486 */
1487 DocumentClassificationJobPropertiesList?: DocumentClassificationJobPropertiesList;
1488 /**
1489 * Identifies the next page of results to return.
1490 */
1491 NextToken?: String;
1492 }
1493 export interface ListDocumentClassifiersRequest {
1494 /**
1495 * Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
1496 */
1497 Filter?: DocumentClassifierFilter;
1498 /**
1499 * Identifies the next page of results to return.
1500 */
1501 NextToken?: String;
1502 /**
1503 * The maximum number of results to return in each page. The default is 100.
1504 */
1505 MaxResults?: MaxResultsInteger;
1506 }
1507 export interface ListDocumentClassifiersResponse {
1508 /**
1509 * A list containing the properties of each job returned.
1510 */
1511 DocumentClassifierPropertiesList?: DocumentClassifierPropertiesList;
1512 /**
1513 * Identifies the next page of results to return.
1514 */
1515 NextToken?: String;
1516 }
1517 export interface ListDominantLanguageDetectionJobsRequest {
1518 /**
1519 * Filters that jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
1520 */
1521 Filter?: DominantLanguageDetectionJobFilter;
1522 /**
1523 * Identifies the next page of results to return.
1524 */
1525 NextToken?: String;
1526 /**
1527 * The maximum number of results to return in each page. The default is 100.
1528 */
1529 MaxResults?: MaxResultsInteger;
1530 }
1531 export interface ListDominantLanguageDetectionJobsResponse {
1532 /**
1533 * A list containing the properties of each job that is returned.
1534 */
1535 DominantLanguageDetectionJobPropertiesList?: DominantLanguageDetectionJobPropertiesList;
1536 /**
1537 * Identifies the next page of results to return.
1538 */
1539 NextToken?: String;
1540 }
1541 export interface ListEntitiesDetectionJobsRequest {
1542 /**
1543 * Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
1544 */
1545 Filter?: EntitiesDetectionJobFilter;
1546 /**
1547 * Identifies the next page of results to return.
1548 */
1549 NextToken?: String;
1550 /**
1551 * The maximum number of results to return in each page. The default is 100.
1552 */
1553 MaxResults?: MaxResultsInteger;
1554 }
1555 export interface ListEntitiesDetectionJobsResponse {
1556 /**
1557 * A list containing the properties of each job that is returned.
1558 */
1559 EntitiesDetectionJobPropertiesList?: EntitiesDetectionJobPropertiesList;
1560 /**
1561 * Identifies the next page of results to return.
1562 */
1563 NextToken?: String;
1564 }
1565 export interface ListEntityRecognizersRequest {
1566 /**
1567 * Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, or SubmitTimeAfter. You can only set one filter at a time.
1568 */
1569 Filter?: EntityRecognizerFilter;
1570 /**
1571 * Identifies the next page of results to return.
1572 */
1573 NextToken?: String;
1574 /**
1575 * The maximum number of results to return on each page. The default is 100.
1576 */
1577 MaxResults?: MaxResultsInteger;
1578 }
1579 export interface ListEntityRecognizersResponse {
1580 /**
1581 * The list of properties of an entity recognizer.
1582 */
1583 EntityRecognizerPropertiesList?: EntityRecognizerPropertiesList;
1584 /**
1585 * Identifies the next page of results to return.
1586 */
1587 NextToken?: String;
1588 }
1589 export interface ListKeyPhrasesDetectionJobsRequest {
1590 /**
1591 * Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
1592 */
1593 Filter?: KeyPhrasesDetectionJobFilter;
1594 /**
1595 * Identifies the next page of results to return.
1596 */
1597 NextToken?: String;
1598 /**
1599 * The maximum number of results to return in each page. The default is 100.
1600 */
1601 MaxResults?: MaxResultsInteger;
1602 }
1603 export interface ListKeyPhrasesDetectionJobsResponse {
1604 /**
1605 * A list containing the properties of each job that is returned.
1606 */
1607 KeyPhrasesDetectionJobPropertiesList?: KeyPhrasesDetectionJobPropertiesList;
1608 /**
1609 * Identifies the next page of results to return.
1610 */
1611 NextToken?: String;
1612 }
1613 export type ListOfDetectDominantLanguageResult = BatchDetectDominantLanguageItemResult[];
1614 export type ListOfDetectEntitiesResult = BatchDetectEntitiesItemResult[];
1615 export type ListOfDetectKeyPhrasesResult = BatchDetectKeyPhrasesItemResult[];
1616 export type ListOfDetectSentimentResult = BatchDetectSentimentItemResult[];
1617 export type ListOfDetectSyntaxResult = BatchDetectSyntaxItemResult[];
1618 export type ListOfDominantLanguages = DominantLanguage[];
1619 export type ListOfEntities = Entity[];
1620 export type ListOfKeyPhrases = KeyPhrase[];
1621 export type ListOfSyntaxTokens = SyntaxToken[];
1622 export interface ListSentimentDetectionJobsRequest {
1623 /**
1624 * Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
1625 */
1626 Filter?: SentimentDetectionJobFilter;
1627 /**
1628 * Identifies the next page of results to return.
1629 */
1630 NextToken?: String;
1631 /**
1632 * The maximum number of results to return in each page. The default is 100.
1633 */
1634 MaxResults?: MaxResultsInteger;
1635 }
1636 export interface ListSentimentDetectionJobsResponse {
1637 /**
1638 * A list containing the properties of each job that is returned.
1639 */
1640 SentimentDetectionJobPropertiesList?: SentimentDetectionJobPropertiesList;
1641 /**
1642 * Identifies the next page of results to return.
1643 */
1644 NextToken?: String;
1645 }
1646 export interface ListTagsForResourceRequest {
1647 /**
1648 * The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.
1649 */
1650 ResourceArn: ComprehendArn;
1651 }
1652 export interface ListTagsForResourceResponse {
1653 /**
1654 * The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.
1655 */
1656 ResourceArn?: ComprehendArn;
1657 /**
1658 * Tags associated with the Amazon Comprehend resource being queried. 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.
1659 */
1660 Tags?: TagList;
1661 }
1662 export interface ListTopicsDetectionJobsRequest {
1663 /**
1664 * Filters the jobs that are returned. Jobs can be filtered on their name, status, or the date and time that they were submitted. You can set only one filter at a time.
1665 */
1666 Filter?: TopicsDetectionJobFilter;
1667 /**
1668 * Identifies the next page of results to return.
1669 */
1670 NextToken?: String;
1671 /**
1672 * The maximum number of results to return in each page. The default is 100.
1673 */
1674 MaxResults?: MaxResultsInteger;
1675 }
1676 export interface ListTopicsDetectionJobsResponse {
1677 /**
1678 * A list containing the properties of each job that is returned.
1679 */
1680 TopicsDetectionJobPropertiesList?: TopicsDetectionJobPropertiesList;
1681 /**
1682 * Identifies the next page of results to return.
1683 */
1684 NextToken?: String;
1685 }
1686 export type MaxResultsInteger = number;
1687 export type ModelStatus = "SUBMITTED"|"TRAINING"|"DELETING"|"STOP_REQUESTED"|"STOPPED"|"IN_ERROR"|"TRAINED"|string;
1688 export type NumberOfTopicsInteger = number;
1689 export interface OutputDataConfig {
1690 /**
1691 * When you use the OutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output file. When the topic detection job is finished, the service creates an output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the ouput of the operation.
1692 */
1693 S3Uri: S3Uri;
1694 /**
1695 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" KMS Key Alias: "alias/ExampleAlias" ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
1696 */
1697 KmsKeyId?: KmsKeyId;
1698 }
1699 export interface PartOfSpeechTag {
1700 /**
1701 * Identifies the part of speech that the token represents.
1702 */
1703 Tag?: PartOfSpeechTagType;
1704 /**
1705 * The confidence that Amazon Comprehend has that the part of speech was correctly identified.
1706 */
1707 Score?: Float;
1708 }
1709 export type PartOfSpeechTagType = "ADJ"|"ADP"|"ADV"|"AUX"|"CONJ"|"CCONJ"|"DET"|"INTJ"|"NOUN"|"NUM"|"O"|"PART"|"PRON"|"PROPN"|"PUNCT"|"SCONJ"|"SYM"|"VERB"|string;
1710 export type S3Uri = string;
1711 export type SecurityGroupId = string;
1712 export type SecurityGroupIds = SecurityGroupId[];
1713 export interface SentimentDetectionJobFilter {
1714 /**
1715 * Filters on the name of the job.
1716 */
1717 JobName?: JobName;
1718 /**
1719 * Filters the list of jobs based on job status. Returns only jobs with the specified status.
1720 */
1721 JobStatus?: JobStatus;
1722 /**
1723 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.
1724 */
1725 SubmitTimeBefore?: Timestamp;
1726 /**
1727 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.
1728 */
1729 SubmitTimeAfter?: Timestamp;
1730 }
1731 export interface SentimentDetectionJobProperties {
1732 /**
1733 * The identifier assigned to the sentiment detection job.
1734 */
1735 JobId?: JobId;
1736 /**
1737 * The name that you assigned to the sentiment detection job
1738 */
1739 JobName?: JobName;
1740 /**
1741 * The current status of the sentiment detection job. If the status is FAILED, the Messages field shows the reason for the failure.
1742 */
1743 JobStatus?: JobStatus;
1744 /**
1745 * A description of the status of a job.
1746 */
1747 Message?: AnyLengthString;
1748 /**
1749 * The time that the sentiment detection job was submitted for processing.
1750 */
1751 SubmitTime?: Timestamp;
1752 /**
1753 * The time that the sentiment detection job ended.
1754 */
1755 EndTime?: Timestamp;
1756 /**
1757 * The input data configuration that you supplied when you created the sentiment detection job.
1758 */
1759 InputDataConfig?: InputDataConfig;
1760 /**
1761 * The output data configuration that you supplied when you created the sentiment detection job.
1762 */
1763 OutputDataConfig?: OutputDataConfig;
1764 /**
1765 * The language code of the input documents.
1766 */
1767 LanguageCode?: LanguageCode;
1768 /**
1769 * The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.
1770 */
1771 DataAccessRoleArn?: IamRoleArn;
1772 /**
1773 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1774 */
1775 VolumeKmsKeyId?: KmsKeyId;
1776 /**
1777 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your sentiment detection job. For more information, see Amazon VPC.
1778 */
1779 VpcConfig?: VpcConfig;
1780 }
1781 export type SentimentDetectionJobPropertiesList = SentimentDetectionJobProperties[];
1782 export interface SentimentScore {
1783 /**
1784 * The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
1785 */
1786 Positive?: Float;
1787 /**
1788 * The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
1789 */
1790 Negative?: Float;
1791 /**
1792 * The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.
1793 */
1794 Neutral?: Float;
1795 /**
1796 * The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.
1797 */
1798 Mixed?: Float;
1799 }
1800 export type SentimentType = "POSITIVE"|"NEGATIVE"|"NEUTRAL"|"MIXED"|string;
1801 export interface StartDocumentClassificationJobRequest {
1802 /**
1803 * The identifier of the job.
1804 */
1805 JobName?: JobName;
1806 /**
1807 * The Amazon Resource Name (ARN) of the document classifier to use to process the job.
1808 */
1809 DocumentClassifierArn: DocumentClassifierArn;
1810 /**
1811 * Specifies the format and location of the input data for the job.
1812 */
1813 InputDataConfig: InputDataConfig;
1814 /**
1815 * Specifies where to send the output files.
1816 */
1817 OutputDataConfig: OutputDataConfig;
1818 /**
1819 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
1820 */
1821 DataAccessRoleArn: IamRoleArn;
1822 /**
1823 * A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.
1824 */
1825 ClientRequestToken?: ClientRequestTokenString;
1826 /**
1827 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1828 */
1829 VolumeKmsKeyId?: KmsKeyId;
1830 /**
1831 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.
1832 */
1833 VpcConfig?: VpcConfig;
1834 }
1835 export interface StartDocumentClassificationJobResponse {
1836 /**
1837 * The identifier generated for the job. To get the status of the job, use this identifier with the operation.
1838 */
1839 JobId?: JobId;
1840 /**
1841 * The status of the job: SUBMITTED - The job has been received and queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. For details, use the operation. STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request. STOPPED - The job was successfully stopped without completing.
1842 */
1843 JobStatus?: JobStatus;
1844 }
1845 export interface StartDominantLanguageDetectionJobRequest {
1846 /**
1847 * Specifies the format and location of the input data for the job.
1848 */
1849 InputDataConfig: InputDataConfig;
1850 /**
1851 * Specifies where to send the output files.
1852 */
1853 OutputDataConfig: OutputDataConfig;
1854 /**
1855 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.
1856 */
1857 DataAccessRoleArn: IamRoleArn;
1858 /**
1859 * An identifier for the job.
1860 */
1861 JobName?: JobName;
1862 /**
1863 * A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.
1864 */
1865 ClientRequestToken?: ClientRequestTokenString;
1866 /**
1867 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1868 */
1869 VolumeKmsKeyId?: KmsKeyId;
1870 /**
1871 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC.
1872 */
1873 VpcConfig?: VpcConfig;
1874 }
1875 export interface StartDominantLanguageDetectionJobResponse {
1876 /**
1877 * The identifier generated for the job. To get the status of a job, use this identifier with the operation.
1878 */
1879 JobId?: JobId;
1880 /**
1881 * The status of the job. SUBMITTED - The job has been received and is queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. To get details, use the operation.
1882 */
1883 JobStatus?: JobStatus;
1884 }
1885 export interface StartEntitiesDetectionJobRequest {
1886 /**
1887 * Specifies the format and location of the input data for the job.
1888 */
1889 InputDataConfig: InputDataConfig;
1890 /**
1891 * Specifies where to send the output files.
1892 */
1893 OutputDataConfig: OutputDataConfig;
1894 /**
1895 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.
1896 */
1897 DataAccessRoleArn: IamRoleArn;
1898 /**
1899 * The identifier of the job.
1900 */
1901 JobName?: JobName;
1902 /**
1903 * The Amazon Resource Name (ARN) that identifies the specific entity recognizer to be used by the StartEntitiesDetectionJob. This ARN is optional and is only used for a custom entity recognition job.
1904 */
1905 EntityRecognizerArn?: EntityRecognizerArn;
1906 /**
1907 * The language of the input documents. All documents must be in the same language. You can specify any of the languages supported by Amazon Comprehend: English ("en"), Spanish ("es"), French ("fr"), German ("de"), Italian ("it"), or Portuguese ("pt"). If custom entities recognition is used, this parameter is ignored and the language used for training the model is used instead.
1908 */
1909 LanguageCode: LanguageCode;
1910 /**
1911 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
1912 */
1913 ClientRequestToken?: ClientRequestTokenString;
1914 /**
1915 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1916 */
1917 VolumeKmsKeyId?: KmsKeyId;
1918 /**
1919 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC.
1920 */
1921 VpcConfig?: VpcConfig;
1922 }
1923 export interface StartEntitiesDetectionJobResponse {
1924 /**
1925 * The identifier generated for the job. To get the status of job, use this identifier with the operation.
1926 */
1927 JobId?: JobId;
1928 /**
1929 * The status of the job. SUBMITTED - The job has been received and is queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. To get details, use the operation. STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request. STOPPED - The job was successfully stopped without completing.
1930 */
1931 JobStatus?: JobStatus;
1932 }
1933 export interface StartKeyPhrasesDetectionJobRequest {
1934 /**
1935 * Specifies the format and location of the input data for the job.
1936 */
1937 InputDataConfig: InputDataConfig;
1938 /**
1939 * Specifies where to send the output files.
1940 */
1941 OutputDataConfig: OutputDataConfig;
1942 /**
1943 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.
1944 */
1945 DataAccessRoleArn: IamRoleArn;
1946 /**
1947 * The identifier of the job.
1948 */
1949 JobName?: JobName;
1950 /**
1951 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
1952 */
1953 LanguageCode: LanguageCode;
1954 /**
1955 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
1956 */
1957 ClientRequestToken?: ClientRequestTokenString;
1958 /**
1959 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1960 */
1961 VolumeKmsKeyId?: KmsKeyId;
1962 /**
1963 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your key phrases detection job. For more information, see Amazon VPC.
1964 */
1965 VpcConfig?: VpcConfig;
1966 }
1967 export interface StartKeyPhrasesDetectionJobResponse {
1968 /**
1969 * The identifier generated for the job. To get the status of a job, use this identifier with the operation.
1970 */
1971 JobId?: JobId;
1972 /**
1973 * The status of the job. SUBMITTED - The job has been received and is queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. To get details, use the operation.
1974 */
1975 JobStatus?: JobStatus;
1976 }
1977 export interface StartSentimentDetectionJobRequest {
1978 /**
1979 * Specifies the format and location of the input data for the job.
1980 */
1981 InputDataConfig: InputDataConfig;
1982 /**
1983 * Specifies where to send the output files.
1984 */
1985 OutputDataConfig: OutputDataConfig;
1986 /**
1987 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.
1988 */
1989 DataAccessRoleArn: IamRoleArn;
1990 /**
1991 * The identifier of the job.
1992 */
1993 JobName?: JobName;
1994 /**
1995 * The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
1996 */
1997 LanguageCode: LanguageCode;
1998 /**
1999 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
2000 */
2001 ClientRequestToken?: ClientRequestTokenString;
2002 /**
2003 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
2004 */
2005 VolumeKmsKeyId?: KmsKeyId;
2006 /**
2007 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your sentiment detection job. For more information, see Amazon VPC.
2008 */
2009 VpcConfig?: VpcConfig;
2010 }
2011 export interface StartSentimentDetectionJobResponse {
2012 /**
2013 * The identifier generated for the job. To get the status of a job, use this identifier with the operation.
2014 */
2015 JobId?: JobId;
2016 /**
2017 * The status of the job. SUBMITTED - The job has been received and is queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. To get details, use the operation.
2018 */
2019 JobStatus?: JobStatus;
2020 }
2021 export interface StartTopicsDetectionJobRequest {
2022 /**
2023 * Specifies the format and location of the input data for the job.
2024 */
2025 InputDataConfig: InputDataConfig;
2026 /**
2027 * Specifies where to send the output files. The output is a compressed archive with two files, topic-terms.csv that lists the terms associated with each topic, and doc-topics.csv that lists the documents associated with each topic
2028 */
2029 OutputDataConfig: OutputDataConfig;
2030 /**
2031 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.
2032 */
2033 DataAccessRoleArn: IamRoleArn;
2034 /**
2035 * The identifier of the job.
2036 */
2037 JobName?: JobName;
2038 /**
2039 * The number of topics to detect.
2040 */
2041 NumberOfTopics?: NumberOfTopicsInteger;
2042 /**
2043 * A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.
2044 */
2045 ClientRequestToken?: ClientRequestTokenString;
2046 /**
2047 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
2048 */
2049 VolumeKmsKeyId?: KmsKeyId;
2050 /**
2051 * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.
2052 */
2053 VpcConfig?: VpcConfig;
2054 }
2055 export interface StartTopicsDetectionJobResponse {
2056 /**
2057 * The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.
2058 */
2059 JobId?: JobId;
2060 /**
2061 * The status of the job: SUBMITTED - The job has been received and is queued for processing. IN_PROGRESS - Amazon Comprehend is processing the job. COMPLETED - The job was successfully completed and the output is available. FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.
2062 */
2063 JobStatus?: JobStatus;
2064 }
2065 export interface StopDominantLanguageDetectionJobRequest {
2066 /**
2067 * The identifier of the dominant language detection job to stop.
2068 */
2069 JobId: JobId;
2070 }
2071 export interface StopDominantLanguageDetectionJobResponse {
2072 /**
2073 * The identifier of the dominant language detection job to stop.
2074 */
2075 JobId?: JobId;
2076 /**
2077 * Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopDominantLanguageDetectionJob operation.
2078 */
2079 JobStatus?: JobStatus;
2080 }
2081 export interface StopEntitiesDetectionJobRequest {
2082 /**
2083 * The identifier of the entities detection job to stop.
2084 */
2085 JobId: JobId;
2086 }
2087 export interface StopEntitiesDetectionJobResponse {
2088 /**
2089 * The identifier of the entities detection job to stop.
2090 */
2091 JobId?: JobId;
2092 /**
2093 * Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopEntitiesDetectionJob operation.
2094 */
2095 JobStatus?: JobStatus;
2096 }
2097 export interface StopKeyPhrasesDetectionJobRequest {
2098 /**
2099 * The identifier of the key phrases detection job to stop.
2100 */
2101 JobId: JobId;
2102 }
2103 export interface StopKeyPhrasesDetectionJobResponse {
2104 /**
2105 * The identifier of the key phrases detection job to stop.
2106 */
2107 JobId?: JobId;
2108 /**
2109 * Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopKeyPhrasesDetectionJob operation.
2110 */
2111 JobStatus?: JobStatus;
2112 }
2113 export interface StopSentimentDetectionJobRequest {
2114 /**
2115 * The identifier of the sentiment detection job to stop.
2116 */
2117 JobId: JobId;
2118 }
2119 export interface StopSentimentDetectionJobResponse {
2120 /**
2121 * The identifier of the sentiment detection job to stop.
2122 */
2123 JobId?: JobId;
2124 /**
2125 * Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopSentimentDetectionJob operation.
2126 */
2127 JobStatus?: JobStatus;
2128 }
2129 export interface StopTrainingDocumentClassifierRequest {
2130 /**
2131 * The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
2132 */
2133 DocumentClassifierArn: DocumentClassifierArn;
2134 }
2135 export interface StopTrainingDocumentClassifierResponse {
2136 }
2137 export interface StopTrainingEntityRecognizerRequest {
2138 /**
2139 * The Amazon Resource Name (ARN) that identifies the entity recognizer currently being trained.
2140 */
2141 EntityRecognizerArn: EntityRecognizerArn;
2142 }
2143 export interface StopTrainingEntityRecognizerResponse {
2144 }
2145 export type String = string;
2146 export type StringList = String[];
2147 export type SubnetId = string;
2148 export type Subnets = SubnetId[];
2149 export type SyntaxLanguageCode = "en"|"es"|"fr"|"de"|"it"|"pt"|string;
2150 export interface SyntaxToken {
2151 /**
2152 * A unique identifier for a token.
2153 */
2154 TokenId?: Integer;
2155 /**
2156 * The word that was recognized in the source text.
2157 */
2158 Text?: String;
2159 /**
2160 * The zero-based offset from the beginning of the source text to the first character in the word.
2161 */
2162 BeginOffset?: Integer;
2163 /**
2164 * The zero-based offset from the beginning of the source text to the last character in the word.
2165 */
2166 EndOffset?: Integer;
2167 /**
2168 * Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see how-syntax.
2169 */
2170 PartOfSpeech?: PartOfSpeechTag;
2171 }
2172 export interface Tag {
2173 /**
2174 * The initial part of a key-value pair that forms a tag associated with a given resource. For instance, if you want to show which resources are used by which departments, you might use “Department” as the key portion of the pair, with multiple possible values such as “sales,” “legal,” and “administration.”
2175 */
2176 Key: TagKey;
2177 /**
2178 * The second part of a key-value pair that forms a tag associated with a given resource. For instance, if you want to show which resources are used by which departments, you might use “Department” as the initial (key) portion of the pair, with a value of “sales” to indicate the sales department.
2179 */
2180 Value?: TagValue;
2181 }
2182 export type TagKey = string;
2183 export type TagKeyList = TagKey[];
2184 export type TagList = Tag[];
2185 export interface TagResourceRequest {
2186 /**
2187 * The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
2188 */
2189 ResourceArn: ComprehendArn;
2190 /**
2191 * Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
2192 */
2193 Tags: TagList;
2194 }
2195 export interface TagResourceResponse {
2196 }
2197 export type TagValue = string;
2198 export type Timestamp = Date;
2199 export interface TopicsDetectionJobFilter {
2200 /**
2201 *
2202 */
2203 JobName?: JobName;
2204 /**
2205 * Filters the list of topic detection jobs based on job status. Returns only jobs with the specified status.
2206 */
2207 JobStatus?: JobStatus;
2208 /**
2209 * Filters the list of jobs based on the time that the job was submitted for processing. Only returns jobs submitted before the specified time. Jobs are returned in descending order, newest to oldest.
2210 */
2211 SubmitTimeBefore?: Timestamp;
2212 /**
2213 * Filters the list of jobs based on the time that the job was submitted for processing. Only returns jobs submitted after the specified time. Jobs are returned in ascending order, oldest to newest.
2214 */
2215 SubmitTimeAfter?: Timestamp;
2216 }
2217 export interface TopicsDetectionJobProperties {
2218 /**
2219 * The identifier assigned to the topic detection job.
2220 */
2221 JobId?: JobId;
2222 /**
2223 * The name of the topic detection job.
2224 */
2225 JobName?: JobName;
2226 /**
2227 * The current status of the topic detection job. If the status is Failed, the reason for the failure is shown in the Message field.
2228 */
2229 JobStatus?: JobStatus;
2230 /**
2231 * A description for the status of a job.
2232 */
2233 Message?: AnyLengthString;
2234 /**
2235 * The time that the topic detection job was submitted for processing.
2236 */
2237 SubmitTime?: Timestamp;
2238 /**
2239 * The time that the topic detection job was completed.
2240 */
2241 EndTime?: Timestamp;
2242 /**
2243 * The input data configuration supplied when you created the topic detection job.
2244 */
2245 InputDataConfig?: InputDataConfig;
2246 /**
2247 * The output data configuration supplied when you created the topic detection job.
2248 */
2249 OutputDataConfig?: OutputDataConfig;
2250 /**
2251 * The number of topics to detect supplied when you created the topic detection job. The default is 10.
2252 */
2253 NumberOfTopics?: Integer;
2254 /**
2255 * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your job data.
2256 */
2257 DataAccessRoleArn?: IamRoleArn;
2258 /**
2259 * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
2260 */
2261 VolumeKmsKeyId?: KmsKeyId;
2262 /**
2263 * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.
2264 */
2265 VpcConfig?: VpcConfig;
2266 }
2267 export type TopicsDetectionJobPropertiesList = TopicsDetectionJobProperties[];
2268 export interface UntagResourceRequest {
2269 /**
2270 * The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you want to remove the tags.
2271 */
2272 ResourceArn: ComprehendArn;
2273 /**
2274 * The initial part of a key-value pair that forms a tag being removed from a given resource. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department. Keys must be unique and cannot be duplicated for a particular resource.
2275 */
2276 TagKeys: TagKeyList;
2277 }
2278 export interface UntagResourceResponse {
2279 }
2280 export interface VpcConfig {
2281 /**
2282 * The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more information, see Security Groups for your VPC.
2283 */
2284 SecurityGroupIds: SecurityGroupIds;
2285 /**
2286 * The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses used by the VPC and is specific to a given availability zone in the VPC’s region. This ID number is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets.
2287 */
2288 Subnets: Subnets;
2289 }
2290 /**
2291 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2292 */
2293 export type apiVersion = "2017-11-27"|"latest"|string;
2294 export interface ClientApiVersions {
2295 /**
2296 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2297 */
2298 apiVersion?: apiVersion;
2299 }
2300 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2301 /**
2302 * Contains interfaces for use with the Comprehend client.
2303 */
2304 export import Types = Comprehend;
2305}
2306export = Comprehend;