{ "version": "2.0", "metadata": { "apiVersion": "2017-11-27", "endpointPrefix": "comprehend", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon Comprehend", "serviceId": "Comprehend", "signatureVersion": "v4", "signingName": "comprehend", "targetPrefix": "Comprehend_20171127", "uid": "comprehend-2017-11-27" }, "operations": { "BatchDetectDominantLanguage": { "name": "BatchDetectDominantLanguage", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectDominantLanguageRequest" }, "output": { "shape": "BatchDetectDominantLanguageResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "BatchDetectEntities": { "name": "BatchDetectEntities", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectEntitiesRequest" }, "output": { "shape": "BatchDetectEntitiesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see Entities in the Comprehend Developer Guide.

" }, "BatchDetectKeyPhrases": { "name": "BatchDetectKeyPhrases", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectKeyPhrasesRequest" }, "output": { "shape": "BatchDetectKeyPhrasesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Detects the key noun phrases found in a batch of documents.

" }, "BatchDetectSentiment": { "name": "BatchDetectSentiment", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectSentimentRequest" }, "output": { "shape": "BatchDetectSentimentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.

" }, "BatchDetectSyntax": { "name": "BatchDetectSyntax", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectSyntaxRequest" }, "output": { "shape": "BatchDetectSyntaxResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

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 Syntax in the Comprehend Developer Guide.

" }, "BatchDetectTargetedSentiment": { "name": "BatchDetectTargetedSentiment", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "BatchDetectTargetedSentimentRequest" }, "output": { "shape": "BatchDetectTargetedSentimentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "BatchSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

" }, "ClassifyDocument": { "name": "ClassifyDocument", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ClassifyDocumentRequest" }, "output": { "shape": "ClassifyDocumentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceUnavailableException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types:

If the system detects errors while processing a page in the input document, the API response includes an Errors field that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

" }, "ContainsPiiEntities": { "name": "ContainsPiiEntities", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ContainsPiiEntitiesRequest" }, "output": { "shape": "ContainsPiiEntitiesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Analyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number.

" }, "CreateDataset": { "name": "CreateDataset", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "CreateDatasetRequest" }, "output": { "shape": "CreateDatasetResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "TooManyTagsException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "CreateDocumentClassifier": { "name": "CreateDocumentClassifier", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "CreateDocumentClassifierRequest" }, "output": { "shape": "CreateDocumentClassifierResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "TooManyTagsException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "KmsKeyValidationException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide.

" }, "CreateEndpoint": { "name": "CreateEndpoint", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "CreateEndpointRequest" }, "output": { "shape": "CreateEndpointResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "TooManyRequestsException" }, { "shape": "TooManyTagsException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints.

" }, "CreateEntityRecognizer": { "name": "CreateEntityRecognizer", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "CreateEntityRecognizerRequest" }, "output": { "shape": "CreateEntityRecognizerResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "TooManyTagsException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "KmsKeyValidationException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the DescribeEntityRecognizer API.

" }, "CreateFlywheel": { "name": "CreateFlywheel", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "CreateFlywheelRequest" }, "output": { "shape": "CreateFlywheelResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "TooManyTagsException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "KmsKeyValidationException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "InternalServerException" } ], "documentation": "

A flywheel is an Amazon Web Services resource that orchestrates the ongoing training of a model for custom classification or custom entity recognition. You can create a flywheel to start with an existing trained model, or Comprehend can create and train a new model.

When you create the flywheel, Comprehend creates a data lake in your account. The data lake holds the training data and test data for all versions of the model.

To use a flywheel with an existing trained model, you specify the active model version. Comprehend copies the model's training data and test data into the flywheel's data lake.

To use the flywheel with a new model, you need to provide a dataset for training data (and optional test data) when you create the flywheel.

For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "DeleteDocumentClassifier": { "name": "DeleteDocumentClassifier", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DeleteDocumentClassifierRequest" }, "output": { "shape": "DeleteDocumentClassifierResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "DeleteEndpoint": { "name": "DeleteEndpoint", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DeleteEndpointRequest" }, "output": { "shape": "DeleteEndpointResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceInUseException" }, { "shape": "ResourceNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted. For information about endpoints, see Managing endpoints.

" }, "DeleteEntityRecognizer": { "name": "DeleteEntityRecognizer", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DeleteEntityRecognizerRequest" }, "output": { "shape": "DeleteEntityRecognizerResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "DeleteFlywheel": { "name": "DeleteFlywheel", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DeleteFlywheelRequest" }, "output": { "shape": "DeleteFlywheelResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does not delete the data lake or the model associated with the flywheel.

For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "DeleteResourcePolicy": { "name": "DeleteResourcePolicy", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DeleteResourcePolicyRequest" }, "output": { "shape": "DeleteResourcePolicyResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Deletes a resource-based policy that is attached to a custom model.

" }, "DescribeDataset": { "name": "DescribeDataset", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeDatasetRequest" }, "output": { "shape": "DescribeDatasetResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "DescribeDocumentClassificationJob": { "name": "DescribeDocumentClassificationJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeDocumentClassificationJobRequest" }, "output": { "shape": "DescribeDocumentClassificationJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.

" }, "DescribeDocumentClassifier": { "name": "DescribeDocumentClassifier", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeDocumentClassifierRequest" }, "output": { "shape": "DescribeDocumentClassifierResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a document classifier.

" }, "DescribeDominantLanguageDetectionJob": { "name": "DescribeDominantLanguageDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeDominantLanguageDetectionJobRequest" }, "output": { "shape": "DescribeDominantLanguageDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.

" }, "DescribeEndpoint": { "name": "DescribeEndpoint", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeEndpointRequest" }, "output": { "shape": "DescribeEndpointResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint. For information about endpoints, see Managing endpoints.

" }, "DescribeEntitiesDetectionJob": { "name": "DescribeEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeEntitiesDetectionJobRequest" }, "output": { "shape": "DescribeEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.

" }, "DescribeEntityRecognizer": { "name": "DescribeEntityRecognizer", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeEntityRecognizerRequest" }, "output": { "shape": "DescribeEntityRecognizerResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.

" }, "DescribeEventsDetectionJob": { "name": "DescribeEventsDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeEventsDetectionJobRequest" }, "output": { "shape": "DescribeEventsDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the status and details of an events detection job.

" }, "DescribeFlywheel": { "name": "DescribeFlywheel", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeFlywheelRequest" }, "output": { "shape": "DescribeFlywheelResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "DescribeFlywheelIteration": { "name": "DescribeFlywheelIteration", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeFlywheelIterationRequest" }, "output": { "shape": "DescribeFlywheelIterationResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Retrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "DescribeKeyPhrasesDetectionJob": { "name": "DescribeKeyPhrasesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeKeyPhrasesDetectionJobRequest" }, "output": { "shape": "DescribeKeyPhrasesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.

" }, "DescribePiiEntitiesDetectionJob": { "name": "DescribePiiEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribePiiEntitiesDetectionJobRequest" }, "output": { "shape": "DescribePiiEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.

" }, "DescribeResourcePolicy": { "name": "DescribeResourcePolicy", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeResourcePolicyRequest" }, "output": { "shape": "DescribeResourcePolicyResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.

" }, "DescribeSentimentDetectionJob": { "name": "DescribeSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeSentimentDetectionJobRequest" }, "output": { "shape": "DescribeSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.

" }, "DescribeTargetedSentimentDetectionJob": { "name": "DescribeTargetedSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeTargetedSentimentDetectionJobRequest" }, "output": { "shape": "DescribeTargetedSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job.

" }, "DescribeTopicsDetectionJob": { "name": "DescribeTopicsDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DescribeTopicsDetectionJobRequest" }, "output": { "shape": "DescribeTopicsDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.

" }, "DetectDominantLanguage": { "name": "DetectDominantLanguage", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectDominantLanguageRequest" }, "output": { "shape": "DetectDominantLanguageResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "InternalServerException" } ], "documentation": "

Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

" }, "DetectEntities": { "name": "DetectEntities", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectEntitiesRequest" }, "output": { "shape": "DetectEntitiesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceUnavailableException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Detects named entities in input text when you use the pre-trained model. Detects custom entities if you have a custom entity recognition model.

When detecting named entities using the pre-trained model, use plain text as the input. For more information about named entities, see Entities in the Comprehend Developer Guide.

When you use a custom entity recognition model, you can input plain text or you can upload a single-page input document (text, PDF, Word, or image).

If the system detects errors while processing a page in the input document, the API response includes an entry in Errors for each error.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

" }, "DetectKeyPhrases": { "name": "DetectKeyPhrases", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectKeyPhrasesRequest" }, "output": { "shape": "DetectKeyPhrasesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Detects the key noun phrases found in the text.

" }, "DetectPiiEntities": { "name": "DetectPiiEntities", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectPiiEntitiesRequest" }, "output": { "shape": "DetectPiiEntitiesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.

" }, "DetectSentiment": { "name": "DetectSentiment", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectSentimentRequest" }, "output": { "shape": "DetectSentimentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

" }, "DetectSyntax": { "name": "DetectSyntax", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectSyntaxRequest" }, "output": { "shape": "DetectSyntaxResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.

" }, "DetectTargetedSentiment": { "name": "DetectTargetedSentiment", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectTargetedSentimentRequest" }, "output": { "shape": "DetectTargetedSentimentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

" }, "DetectToxicContent": { "name": "DetectToxicContent", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "DetectToxicContentRequest" }, "output": { "shape": "DetectToxicContentResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TextSizeLimitExceededException" }, { "shape": "UnsupportedLanguageException" }, { "shape": "InternalServerException" } ], "documentation": "

Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

" }, "ImportModel": { "name": "ImportModel", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ImportModelRequest" }, "output": { "shape": "ImportModelResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceInUseException" }, { "shape": "ResourceUnavailableException" }, { "shape": "TooManyTagsException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "KmsKeyValidationException" }, { "shape": "InternalServerException" } ], "documentation": "

Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.

If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.

The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.

" }, "ListDatasets": { "name": "ListDatasets", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListDatasetsRequest" }, "output": { "shape": "ListDatasetsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "ListDocumentClassificationJobs": { "name": "ListDocumentClassificationJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListDocumentClassificationJobsRequest" }, "output": { "shape": "ListDocumentClassificationJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the documentation classification jobs that you have submitted.

" }, "ListDocumentClassifierSummaries": { "name": "ListDocumentClassifierSummaries", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListDocumentClassifierSummariesRequest" }, "output": { "shape": "ListDocumentClassifierSummariesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of summaries of the document classifiers that you have created

" }, "ListDocumentClassifiers": { "name": "ListDocumentClassifiers", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListDocumentClassifiersRequest" }, "output": { "shape": "ListDocumentClassifiersResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the document classifiers that you have created.

" }, "ListDominantLanguageDetectionJobs": { "name": "ListDominantLanguageDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListDominantLanguageDetectionJobsRequest" }, "output": { "shape": "ListDominantLanguageDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the dominant language detection jobs that you have submitted.

" }, "ListEndpoints": { "name": "ListEndpoints", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListEndpointsRequest" }, "output": { "shape": "ListEndpointsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints.

" }, "ListEntitiesDetectionJobs": { "name": "ListEntitiesDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListEntitiesDetectionJobsRequest" }, "output": { "shape": "ListEntitiesDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the entity detection jobs that you have submitted.

" }, "ListEntityRecognizerSummaries": { "name": "ListEntityRecognizerSummaries", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListEntityRecognizerSummariesRequest" }, "output": { "shape": "ListEntityRecognizerSummariesResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of summaries for the entity recognizers that you have created.

" }, "ListEntityRecognizers": { "name": "ListEntityRecognizers", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListEntityRecognizersRequest" }, "output": { "shape": "ListEntityRecognizersResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "ListEventsDetectionJobs": { "name": "ListEventsDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListEventsDetectionJobsRequest" }, "output": { "shape": "ListEventsDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the events detection jobs that you have submitted.

" }, "ListFlywheelIterationHistory": { "name": "ListFlywheelIterationHistory", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListFlywheelIterationHistoryRequest" }, "output": { "shape": "ListFlywheelIterationHistoryResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Information about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "ListFlywheels": { "name": "ListFlywheels", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListFlywheelsRequest" }, "output": { "shape": "ListFlywheelsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the flywheels that you have created.

" }, "ListKeyPhrasesDetectionJobs": { "name": "ListKeyPhrasesDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListKeyPhrasesDetectionJobsRequest" }, "output": { "shape": "ListKeyPhrasesDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Get a list of key phrase detection jobs that you have submitted.

" }, "ListPiiEntitiesDetectionJobs": { "name": "ListPiiEntitiesDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListPiiEntitiesDetectionJobsRequest" }, "output": { "shape": "ListPiiEntitiesDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the PII entity detection jobs that you have submitted.

" }, "ListSentimentDetectionJobs": { "name": "ListSentimentDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListSentimentDetectionJobsRequest" }, "output": { "shape": "ListSentimentDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of sentiment detection jobs that you have submitted.

" }, "ListTagsForResource": { "name": "ListTagsForResource", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListTagsForResourceRequest" }, "output": { "shape": "ListTagsForResourceResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Lists all tags associated with a given Amazon Comprehend resource.

" }, "ListTargetedSentimentDetectionJobs": { "name": "ListTargetedSentimentDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListTargetedSentimentDetectionJobsRequest" }, "output": { "shape": "ListTargetedSentimentDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of targeted sentiment detection jobs that you have submitted.

" }, "ListTopicsDetectionJobs": { "name": "ListTopicsDetectionJobs", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "ListTopicsDetectionJobsRequest" }, "output": { "shape": "ListTopicsDetectionJobsResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "InvalidFilterException" }, { "shape": "InternalServerException" } ], "documentation": "

Gets a list of the topic detection jobs that you have submitted.

" }, "PutResourcePolicy": { "name": "PutResourcePolicy", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "PutResourcePolicyRequest" }, "output": { "shape": "PutResourcePolicyResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Attaches a resource-based policy to a custom model. You can use this policy to authorize an entity in another Amazon Web Services account to import the custom model, which replicates it in Amazon Comprehend in their account.

" }, "StartDocumentClassificationJob": { "name": "StartDocumentClassificationJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartDocumentClassificationJobRequest" }, "output": { "shape": "StartDocumentClassificationJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous document classification job using a custom classification model. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

" }, "StartDominantLanguageDetectionJob": { "name": "StartDominantLanguageDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartDominantLanguageDetectionJobRequest" }, "output": { "shape": "StartDominantLanguageDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.

" }, "StartEntitiesDetectionJob": { "name": "StartEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartEntitiesDetectionJobRequest" }, "output": { "shape": "StartEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StartEventsDetectionJob": { "name": "StartEventsDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartEventsDetectionJobRequest" }, "output": { "shape": "StartEventsDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous event detection job for a collection of documents.

" }, "StartFlywheelIteration": { "name": "StartFlywheelIteration", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartFlywheelIterationRequest" }, "output": { "shape": "StartFlywheelIterationResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceInUseException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Start the flywheel iteration.This operation uses any new datasets to train a new model version. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

" }, "StartKeyPhrasesDetectionJob": { "name": "StartKeyPhrasesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartKeyPhrasesDetectionJobRequest" }, "output": { "shape": "StartKeyPhrasesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.

" }, "StartPiiEntitiesDetectionJob": { "name": "StartPiiEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartPiiEntitiesDetectionJobRequest" }, "output": { "shape": "StartPiiEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous PII entity detection job for a collection of documents.

" }, "StartSentimentDetectionJob": { "name": "StartSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartSentimentDetectionJobRequest" }, "output": { "shape": "StartSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job.

" }, "StartTargetedSentimentDetectionJob": { "name": "StartTargetedSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartTargetedSentimentDetectionJobRequest" }, "output": { "shape": "StartTargetedSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the DescribeTargetedSentimentDetectionJob operation to track the status of a job.

" }, "StartTopicsDetectionJob": { "name": "StartTopicsDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StartTopicsDetectionJobRequest" }, "output": { "shape": "StartTopicsDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "TooManyTagsException" }, { "shape": "ResourceInUseException" }, { "shape": "InternalServerException" } ], "documentation": "

Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.

" }, "StopDominantLanguageDetectionJob": { "name": "StopDominantLanguageDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopDominantLanguageDetectionJobRequest" }, "output": { "shape": "StopDominantLanguageDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StopEntitiesDetectionJob": { "name": "StopEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopEntitiesDetectionJobRequest" }, "output": { "shape": "StopEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StopEventsDetectionJob": { "name": "StopEventsDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopEventsDetectionJobRequest" }, "output": { "shape": "StopEventsDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Stops an events detection job in progress.

" }, "StopKeyPhrasesDetectionJob": { "name": "StopKeyPhrasesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopKeyPhrasesDetectionJobRequest" }, "output": { "shape": "StopKeyPhrasesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StopPiiEntitiesDetectionJob": { "name": "StopPiiEntitiesDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopPiiEntitiesDetectionJobRequest" }, "output": { "shape": "StopPiiEntitiesDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Stops a PII entities detection job in progress.

" }, "StopSentimentDetectionJob": { "name": "StopSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopSentimentDetectionJobRequest" }, "output": { "shape": "StopSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StopTargetedSentimentDetectionJob": { "name": "StopTargetedSentimentDetectionJob", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopTargetedSentimentDetectionJobRequest" }, "output": { "shape": "StopTargetedSentimentDetectionJobResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "JobNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Stops a targeted 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.

" }, "StopTrainingDocumentClassifier": { "name": "StopTrainingDocumentClassifier", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopTrainingDocumentClassifierRequest" }, "output": { "shape": "StopTrainingDocumentClassifierResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "StopTrainingEntityRecognizer": { "name": "StopTrainingEntityRecognizer", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "StopTrainingEntityRecognizerRequest" }, "output": { "shape": "StopTrainingEntityRecognizerResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "TagResource": { "name": "TagResource", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "TagResourceRequest" }, "output": { "shape": "TagResourceResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "ConcurrentModificationException" }, { "shape": "ResourceNotFoundException" }, { "shape": "TooManyTagsException" }, { "shape": "InternalServerException" } ], "documentation": "

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.

" }, "UntagResource": { "name": "UntagResource", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "UntagResourceRequest" }, "output": { "shape": "UntagResourceResponse" }, "errors": [ { "shape": "TooManyTagKeysException" }, { "shape": "InvalidRequestException" }, { "shape": "ConcurrentModificationException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Removes a specific tag associated with an Amazon Comprehend resource.

" }, "UpdateEndpoint": { "name": "UpdateEndpoint", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "UpdateEndpointRequest" }, "output": { "shape": "UpdateEndpointResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceInUseException" }, { "shape": "ResourceLimitExceededException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceUnavailableException" }, { "shape": "InternalServerException" } ], "documentation": "

Updates information about the specified endpoint. For information about endpoints, see Managing endpoints.

" }, "UpdateFlywheel": { "name": "UpdateFlywheel", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "UpdateFlywheelRequest" }, "output": { "shape": "UpdateFlywheelResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "TooManyRequestsException" }, { "shape": "KmsKeyValidationException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" } ], "documentation": "

Update the configuration information for an existing flywheel.

" } }, "shapes": { "AnyLengthString": { "type": "string" }, "AttributeNamesList": { "type": "list", "member": { "shape": "AttributeNamesListItem" } }, "AttributeNamesListItem": { "type": "string", "max": 63, "min": 1, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "AugmentedManifestsDocumentTypeFormat": { "type": "string", "enum": [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ] }, "AugmentedManifestsListItem": { "type": "structure", "required": [ "S3Uri", "AttributeNames" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

The Amazon S3 location of the augmented manifest file.

" }, "Split": { "shape": "Split", "documentation": "

The purpose of the data you've provided in the augmented manifest. You can either train or test this data. If you don't specify, the default is train.

TRAIN - all of the documents in the manifest will be used for training. If no test documents are provided, Amazon Comprehend will automatically reserve a portion of the training documents for testing.

TEST - all of the documents in the manifest will be used for testing.

" }, "AttributeNames": { "shape": "AttributeNamesList", "documentation": "

The JSON attribute that contains the annotations for your training documents. The number of attribute names that you specify depends on whether your augmented manifest file is the output of a single labeling job or a chained labeling job.

If your file is the output of a single labeling job, specify the LabelAttributeName key that was used when the job was created in Ground Truth.

If your file is the output of a chained labeling job, specify the LabelAttributeName key for one or more jobs in the chain. Each LabelAttributeName key provides the annotations from an individual job.

" }, "AnnotationDataS3Uri": { "shape": "S3Uri", "documentation": "

The S3 prefix to the annotation files that are referred in the augmented manifest file.

" }, "SourceDocumentsS3Uri": { "shape": "S3Uri", "documentation": "

The S3 prefix to the source files (PDFs) that are referred to in the augmented manifest file.

" }, "DocumentType": { "shape": "AugmentedManifestsDocumentTypeFormat", "documentation": "

The type of augmented manifest. PlainTextDocument or SemiStructuredDocument. If you don't specify, the default is PlainTextDocument.

" } }, "documentation": "

An augmented manifest file that provides training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.

" }, "BatchDetectDominantLanguageItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "Languages": { "shape": "ListOfDominantLanguages", "documentation": "

One or more DominantLanguage objects describing the dominant languages in the document.

" } }, "documentation": "

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

" }, "BatchDetectDominantLanguageRequest": { "type": "structure", "required": [ "TextList" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of each document is 5 KB.

" } } }, "BatchDetectDominantLanguageResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectDominantLanguageResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

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.

" } }, "sensitive": true }, "BatchDetectEntitiesItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "Entities": { "shape": "ListOfEntities", "documentation": "

One or more Entity objects, one for each entity detected in the document.

" } }, "documentation": "

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

" }, "BatchDetectEntitiesRequest": { "type": "structure", "required": [ "TextList", "LanguageCode" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" } } }, "BatchDetectEntitiesResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectEntitiesResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

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.

" } }, "sensitive": true }, "BatchDetectKeyPhrasesItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "KeyPhrases": { "shape": "ListOfKeyPhrases", "documentation": "

One or more KeyPhrase objects, one for each key phrase detected in the document.

" } }, "documentation": "

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

" }, "BatchDetectKeyPhrasesRequest": { "type": "structure", "required": [ "TextList", "LanguageCode" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" } } }, "BatchDetectKeyPhrasesResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectKeyPhrasesResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

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.

" } }, "sensitive": true }, "BatchDetectSentimentItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "Sentiment": { "shape": "SentimentType", "documentation": "

The sentiment detected in the document.

" }, "SentimentScore": { "shape": "SentimentScore", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.

" } }, "documentation": "

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

" }, "BatchDetectSentimentRequest": { "type": "structure", "required": [ "TextList", "LanguageCode" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" } } }, "BatchDetectSentimentResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectSentimentResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

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.

" } }, "sensitive": true }, "BatchDetectSyntaxItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "SyntaxTokens": { "shape": "ListOfSyntaxTokens", "documentation": "

The syntax tokens for the words in the document, one token for each word.

" } }, "documentation": "

The result of calling the operation. The operation returns one object that is successfully processed by the operation.

" }, "BatchDetectSyntaxRequest": { "type": "structure", "required": [ "TextList", "LanguageCode" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size for each document is 5 KB.

" }, "LanguageCode": { "shape": "SyntaxLanguageCode", "documentation": "

The language of the input documents. You can specify any of the following 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.

" } } }, "BatchDetectSyntaxResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectSyntaxResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

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.

" } }, "sensitive": true }, "BatchDetectTargetedSentimentItemResult": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of this result in the input list.

" }, "Entities": { "shape": "ListOfTargetedSentimentEntities", "documentation": "

An array of targeted sentiment entities.

" } }, "documentation": "

Analysis results for one of the documents in the batch.

" }, "BatchDetectTargetedSentimentRequest": { "type": "structure", "required": [ "TextList", "LanguageCode" ], "members": { "TextList": { "shape": "CustomerInputStringList", "documentation": "

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. Currently, English is the only supported language.

" } } }, "BatchDetectTargetedSentimentResponse": { "type": "structure", "required": [ "ResultList", "ErrorList" ], "members": { "ResultList": { "shape": "ListOfDetectTargetedSentimentResult", "documentation": "

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.

" }, "ErrorList": { "shape": "BatchItemErrorList", "documentation": "

List of errors that the operation can return.

" } }, "sensitive": true }, "BatchItemError": { "type": "structure", "members": { "Index": { "shape": "Integer", "documentation": "

The zero-based index of the document in the input list.

" }, "ErrorCode": { "shape": "String", "documentation": "

The numeric error code of the error.

" }, "ErrorMessage": { "shape": "String", "documentation": "

A text description of the error.

" } }, "documentation": "

Describes an error that occurred while processing a document in a batch. The operation returns on BatchItemError object for each document that contained an error.

" }, "BatchItemErrorList": { "type": "list", "member": { "shape": "BatchItemError" } }, "Block": { "type": "structure", "members": { "Id": { "shape": "String", "documentation": "

Unique identifier for the block.

" }, "BlockType": { "shape": "BlockType", "documentation": "

The block represents a line of text or one word of text.

" }, "Text": { "shape": "String", "documentation": "

The word or line of text extracted from the block.

" }, "Page": { "shape": "Integer", "documentation": "

Page number where the block appears.

" }, "Geometry": { "shape": "Geometry", "documentation": "

Co-ordinates of the rectangle or polygon that contains the text.

" }, "Relationships": { "shape": "ListOfRelationships", "documentation": "

A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.

" } }, "documentation": "

Information about each word or line of text in the input document.

For additional information, see Block in the Amazon Textract API reference.

" }, "BlockReference": { "type": "structure", "members": { "BlockId": { "shape": "String", "documentation": "

Unique identifier for the block.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

Offset of the start of the block within its parent block.

" }, "EndOffset": { "shape": "Integer", "documentation": "

Offset of the end of the block within its parent block.

" }, "ChildBlocks": { "shape": "ListOfChildBlocks", "documentation": "

List of child blocks within this block.

" } }, "documentation": "

A reference to a block.

" }, "BlockType": { "type": "string", "enum": [ "LINE", "WORD" ] }, "BoundingBox": { "type": "structure", "members": { "Height": { "shape": "Float", "documentation": "

The height of the bounding box as a ratio of the overall document page height.

" }, "Left": { "shape": "Float", "documentation": "

The left coordinate of the bounding box as a ratio of overall document page width.

" }, "Top": { "shape": "Float", "documentation": "

The top coordinate of the bounding box as a ratio of overall document page height.

" }, "Width": { "shape": "Float", "documentation": "

The width of the bounding box as a ratio of the overall document page width.

" } }, "documentation": "

The bounding box around the detected page or around an element on a document page. The left (x-coordinate) and top (y-coordinate) are coordinates that represent the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).

For additional information, see BoundingBox in the Amazon Textract API reference.

" }, "ChildBlock": { "type": "structure", "members": { "ChildBlockId": { "shape": "String", "documentation": "

Unique identifier for the child block.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

Offset of the start of the child block within its parent block.

" }, "EndOffset": { "shape": "Integer", "documentation": "

Offset of the end of the child block within its parent block.

" } }, "documentation": "

Nested block contained within a block.

" }, "ClassifierEvaluationMetrics": { "type": "structure", "members": { "Accuracy": { "shape": "Double", "documentation": "

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.

" }, "Precision": { "shape": "Double", "documentation": "

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.

" }, "Recall": { "shape": "Double", "documentation": "

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.

" }, "F1Score": { "shape": "Double", "documentation": "

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.

" }, "MicroPrecision": { "shape": "Double", "documentation": "

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. Unlike the Precision metric which comes from averaging the precision of all available labels, this is based on the overall score of all precision scores added together.

" }, "MicroRecall": { "shape": "Double", "documentation": "

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. Specifically, this indicates how many of the correct categories in the text that the model can predict. It is a percentage of correct categories in the text that can found. Instead of averaging the recall scores of all labels (as with Recall), micro Recall is based on the overall score of all recall scores added together.

" }, "MicroF1Score": { "shape": "Double", "documentation": "

A measure of how accurate the classifier results are for the test data. It is a combination of the Micro Precision and Micro Recall values. The Micro F1Score is the harmonic mean of the two scores. The highest score is 1, and the worst score is 0.

" }, "HammingLoss": { "shape": "Double", "documentation": "

Indicates the fraction of labels that are incorrectly predicted. Also seen as the fraction of wrong labels compared to the total number of labels. Scores closer to zero are better.

" } }, "documentation": "

Describes the result metrics for the test data associated with an documentation classifier.

" }, "ClassifierMetadata": { "type": "structure", "members": { "NumberOfLabels": { "shape": "Integer", "documentation": "

The number of labels in the input data.

" }, "NumberOfTrainedDocuments": { "shape": "Integer", "documentation": "

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.

" }, "NumberOfTestDocuments": { "shape": "Integer", "documentation": "

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, up to 10,000 documents.

" }, "EvaluationMetrics": { "shape": "ClassifierEvaluationMetrics", "documentation": "

Describes the result metrics for the test data associated with an documentation classifier.

" } }, "documentation": "

Provides information about a document classifier.

", "sensitive": true }, "ClassifyDocumentRequest": { "type": "structure", "required": [ "EndpointArn" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

The document text to be analyzed. If you enter text using this parameter, do not use the Bytes parameter.

" }, "EndpointArn": { "shape": "DocumentClassifierEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint.

For prompt safety classification, Amazon Comprehend provides the endpoint ARN. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide

For custom classification, you create an endpoint for your custom model. For more information, see Using Amazon Comprehend endpoints.

" }, "Bytes": { "shape": "SemiStructuredDocumentBlob", "documentation": "

Use the Bytes parameter to input a text, PDF, Word or image file.

When you classify a document using a custom model, you can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

To classify a document using the prompt safety classifier, use the Text parameter for input.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

" }, "DocumentReaderConfig": { "shape": "DocumentReaderConfig", "documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

" } } }, "ClassifyDocumentResponse": { "type": "structure", "members": { "Classes": { "shape": "ListOfClasses", "documentation": "

The classes used by the document being analyzed. These are used for models trained in multi-class mode. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

For prompt safety classification, the response includes only two classes (SAFE_PROMPT and UNSAFE_PROMPT), along with a confidence score for each class. The value range of the score is zero to one, where one is the highest confidence.

" }, "Labels": { "shape": "ListOfLabels", "documentation": "

The labels used in the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

" }, "DocumentMetadata": { "shape": "DocumentMetadata", "documentation": "

Extraction information about the document. This field is present in the response only if your request includes the Byte parameter.

" }, "DocumentType": { "shape": "ListOfDocumentType", "documentation": "

The document type for each page in the input document. This field is present in the response only if your request includes the Byte parameter.

" }, "Errors": { "shape": "ListOfErrors", "documentation": "

Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.

" }, "Warnings": { "shape": "ListOfWarnings", "documentation": "

Warnings detected while processing the input document. The response includes a warning if there is a mismatch between the input document type and the model type associated with the endpoint that you specified. The response can also include warnings for individual pages that have a mismatch.

The field is empty if the system generated no warnings.

" } }, "sensitive": true }, "ClientRequestTokenString": { "type": "string", "max": 64, "min": 1, "pattern": "^[a-zA-Z0-9-]+$" }, "ComprehendArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-Z0-9-]{1,64}/[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?" }, "ComprehendArnName": { "type": "string", "max": 63, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "ComprehendDatasetArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel/[a-zA-Z0-9](-*[a-zA-Z0-9])*/dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "ComprehendEndpointArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document-classifier-endpoint|entity-recognizer-endpoint)/[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "ComprehendEndpointName": { "type": "string", "max": 40, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "ComprehendFlywheelArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel/[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "ComprehendModelArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document-classifier|entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?" }, "ContainsPiiEntitiesRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "String", "documentation": "

A UTF-8 text string. The maximum string size is 100 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents.

" } } }, "ContainsPiiEntitiesResponse": { "type": "structure", "members": { "Labels": { "shape": "ListOfEntityLabels", "documentation": "

The labels used in the document being analyzed. Individual labels represent personally identifiable information (PII) entity types.

" } } }, "CreateDatasetRequest": { "type": "structure", "required": [ "FlywheelArn", "DatasetName", "InputDataConfig" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data.

" }, "DatasetName": { "shape": "ComprehendArnName", "documentation": "

Name of the dataset.

" }, "DatasetType": { "shape": "DatasetType", "documentation": "

The dataset type. You can specify that the data in a dataset is for training the model or for testing the model.

" }, "Description": { "shape": "Description", "documentation": "

Description of the dataset.

" }, "InputDataConfig": { "shape": "DatasetInputDataConfig", "documentation": "

Information about the input data configuration. The type of input data varies based on the format of the input and whether the data is for a classifier model or an entity recognition model.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "Tags": { "shape": "TagList", "documentation": "

Tags for the dataset.

" } } }, "CreateDatasetResponse": { "type": "structure", "members": { "DatasetArn": { "shape": "ComprehendDatasetArn", "documentation": "

The ARN of the dataset.

" } } }, "CreateDocumentClassifierRequest": { "type": "structure", "required": [ "DocumentClassifierName", "DataAccessRoleArn", "InputDataConfig", "LanguageCode" ], "members": { "DocumentClassifierName": { "shape": "ComprehendArnName", "documentation": "

The name of the document classifier.

" }, "VersionName": { "shape": "VersionName", "documentation": "

The version name given to the newly created classifier. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the Amazon Web Services account/Amazon Web Services Region.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the document classifier. 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.

" }, "InputDataConfig": { "shape": "DocumentClassifierInputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "DocumentClassifierOutputDataConfig", "documentation": "

Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native document model.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the languages supported by Amazon Comprehend. All documents must be in the same language.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Mode": { "shape": "DocumentClassifierMode", "documentation": "

Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class (single-label) mode or multi-label mode. Multi-class mode identifies a single class label for each document and multi-label mode identifies one or more class labels for each document. Multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).

" }, "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "ModelPolicy": { "shape": "Policy", "documentation": "

The resource-based policy to attach to your custom document classifier model. You can use this policy to allow another Amazon Web Services account to import your custom model.

Provide your policy as a JSON body that you enter as a UTF-8 encoded string without line breaks. To provide valid JSON, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:

\"{\\\"attribute\\\": \\\"value\\\", \\\"attribute\\\": [\\\"value\\\"]}\"

To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:

'{\"attribute\": \"value\", \"attribute\": [\"value\"]}'

" } } }, "CreateDocumentClassifierResponse": { "type": "structure", "members": { "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier.

" } } }, "CreateEndpointRequest": { "type": "structure", "required": [ "EndpointName", "DesiredInferenceUnits" ], "members": { "EndpointName": { "shape": "ComprehendEndpointName", "documentation": "

This is the descriptive suffix that becomes part of the EndpointArn used for all subsequent requests to this resource.

" }, "ModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.

" }, "DesiredInferenceUnits": { "shape": "InferenceUnitsInteger", "documentation": "

The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException.

", "idempotencyToken": true }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the endpoint. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with \"Sales\" as the key might be added to an endpoint to indicate its use by the sales department.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel to which the endpoint will be attached.

" } } }, "CreateEndpointResponse": { "type": "structure", "members": { "EndpointArn": { "shape": "ComprehendEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint being created.

" }, "ModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the model to which the endpoint is attached.

" } } }, "CreateEntityRecognizerRequest": { "type": "structure", "required": [ "RecognizerName", "DataAccessRoleArn", "InputDataConfig", "LanguageCode" ], "members": { "RecognizerName": { "shape": "ComprehendArnName", "documentation": "

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.

" }, "VersionName": { "shape": "VersionName", "documentation": "

The version name given to the newly created recognizer. Version names can be a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same recognizer name in the account/Region.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the entity recognizer. 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.

" }, "InputDataConfig": { "shape": "EntityRecognizerInputDataConfig", "documentation": "

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.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

You can specify any of the following languages: English (\"en\"), Spanish (\"es\"), French (\"fr\"), Italian (\"it\"), German (\"de\"), or Portuguese (\"pt\"). If you plan to use this entity recognizer with PDF, Word, or image input files, you must specify English as the language. All training documents must be in the same language.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "ModelPolicy": { "shape": "Policy", "documentation": "

The JSON resource-based policy to attach to your custom entity recognizer model. You can use this policy to allow another Amazon Web Services account to import your custom model.

Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:

\"{\\\"attribute\\\": \\\"value\\\", \\\"attribute\\\": [\\\"value\\\"]}\"

To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:

'{\"attribute\": \"value\", \"attribute\": [\"value\"]}'

" } } }, "CreateEntityRecognizerResponse": { "type": "structure", "members": { "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

" } } }, "CreateFlywheelRequest": { "type": "structure", "required": [ "FlywheelName", "DataAccessRoleArn", "DataLakeS3Uri" ], "members": { "FlywheelName": { "shape": "ComprehendArnName", "documentation": "

Name for the flywheel.

" }, "ActiveModelArn": { "shape": "ComprehendModelArn", "documentation": "

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set TaskConfig or ModelType if you specify an ActiveModelArn.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access the flywheel data in the data lake.

" }, "TaskConfig": { "shape": "TaskConfig", "documentation": "

Configuration about the model associated with the flywheel. You need to set TaskConfig if you are creating a flywheel for a new model.

" }, "ModelType": { "shape": "ModelType", "documentation": "

The model type. You need to set ModelType if you are creating a flywheel for a new model.

" }, "DataLakeS3Uri": { "shape": "FlywheelS3Uri", "documentation": "

Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 bucket. The flywheel creates the data lake at this location.

" }, "DataSecurityConfig": { "shape": "DataSecurityConfig", "documentation": "

Data security configurations.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "Tags": { "shape": "TagList", "documentation": "

The tags to associate with this flywheel.

" } } }, "CreateFlywheelResponse": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel.

" }, "ActiveModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the active model version.

" } } }, "CustomerInputString": { "type": "string", "min": 1, "sensitive": true }, "CustomerInputStringList": { "type": "list", "member": { "shape": "CustomerInputString" }, "min": 1, "sensitive": true }, "DataSecurityConfig": { "type": "structure", "members": { "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt the volume.

" }, "DataLakeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt the data in the data lake.

" }, "VpcConfig": { "shape": "VpcConfig" } }, "documentation": "

Data security configuration.

" }, "DatasetAugmentedManifestsList": { "type": "list", "member": { "shape": "DatasetAugmentedManifestsListItem" } }, "DatasetAugmentedManifestsListItem": { "type": "structure", "required": [ "AttributeNames", "S3Uri" ], "members": { "AttributeNames": { "shape": "AttributeNamesList", "documentation": "

The JSON attribute that contains the annotations for your training documents. The number of attribute names that you specify depends on whether your augmented manifest file is the output of a single labeling job or a chained labeling job.

If your file is the output of a single labeling job, specify the LabelAttributeName key that was used when the job was created in Ground Truth.

If your file is the output of a chained labeling job, specify the LabelAttributeName key for one or more jobs in the chain. Each LabelAttributeName key provides the annotations from an individual job.

" }, "S3Uri": { "shape": "S3Uri", "documentation": "

The Amazon S3 location of the augmented manifest file.

" }, "AnnotationDataS3Uri": { "shape": "S3Uri", "documentation": "

The S3 prefix to the annotation files that are referred in the augmented manifest file.

" }, "SourceDocumentsS3Uri": { "shape": "S3Uri", "documentation": "

The S3 prefix to the source files (PDFs) that are referred to in the augmented manifest file.

" }, "DocumentType": { "shape": "AugmentedManifestsDocumentTypeFormat", "documentation": "

The type of augmented manifest. If you don't specify, the default is PlainTextDocument.

PLAIN_TEXT_DOCUMENT A document type that represents any unicode text that is encoded in UTF-8.

" } }, "documentation": "

An augmented manifest file that provides training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.

" }, "DatasetDataFormat": { "type": "string", "enum": [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ] }, "DatasetDocumentClassifierInputDataConfig": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

This parameter is required if you set DataFormat to COMPREHEND_CSV.

" }, "LabelDelimiter": { "shape": "LabelDelimiter", "documentation": "

Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.

" } }, "documentation": "

Describes the dataset input data configuration for a document classifier model.

For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide.

" }, "DatasetEntityRecognizerAnnotations": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

" } }, "documentation": "

Describes the annotations associated with a entity recognizer.

" }, "DatasetEntityRecognizerDocuments": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

Specifies the Amazon S3 location where the documents for the dataset are located.

" }, "InputFormat": { "shape": "InputFormat", "documentation": "

Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. 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.

" } }, "documentation": "

Describes the documents submitted with a dataset for an entity recognizer model.

" }, "DatasetEntityRecognizerEntityList": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

Specifies the Amazon S3 location where the entity list is located.

" } }, "documentation": "

Describes the dataset entity list for an entity recognizer model.

For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide.

" }, "DatasetEntityRecognizerInputDataConfig": { "type": "structure", "required": [ "Documents" ], "members": { "Annotations": { "shape": "DatasetEntityRecognizerAnnotations", "documentation": "

The S3 location of the annotation documents for your custom entity recognizer.

" }, "Documents": { "shape": "DatasetEntityRecognizerDocuments", "documentation": "

The format and location of the training documents for your custom entity recognizer.

" }, "EntityList": { "shape": "DatasetEntityRecognizerEntityList", "documentation": "

The S3 location of the entity list for your custom entity recognizer.

" } }, "documentation": "

Specifies the format and location of the input data. You must provide either the Annotations parameter or the EntityList parameter.

" }, "DatasetFilter": { "type": "structure", "members": { "Status": { "shape": "DatasetStatus", "documentation": "

Filter the datasets based on the dataset status.

" }, "DatasetType": { "shape": "DatasetType", "documentation": "

Filter the datasets based on the dataset type.

" }, "CreationTimeAfter": { "shape": "Timestamp", "documentation": "

Filter the datasets to include datasets created after the specified time.

" }, "CreationTimeBefore": { "shape": "Timestamp", "documentation": "

Filter the datasets to include datasets created before the specified time.

" } }, "documentation": "

Filter the datasets based on creation time or dataset status.

" }, "DatasetInputDataConfig": { "type": "structure", "members": { "AugmentedManifests": { "shape": "DatasetAugmentedManifestsList", "documentation": "

A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.

" }, "DataFormat": { "shape": "DatasetDataFormat", "documentation": "

COMPREHEND_CSV: The data format is a two-column CSV file, where the first column contains labels and the second column contains documents.

AUGMENTED_MANIFEST: The data format

" }, "DocumentClassifierInputDataConfig": { "shape": "DatasetDocumentClassifierInputDataConfig", "documentation": "

The input properties for training a document classifier model.

For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide.

" }, "EntityRecognizerInputDataConfig": { "shape": "DatasetEntityRecognizerInputDataConfig", "documentation": "

The input properties for training an entity recognizer model.

" } }, "documentation": "

Specifies the format and location of the input data for the dataset.

" }, "DatasetProperties": { "type": "structure", "members": { "DatasetArn": { "shape": "ComprehendDatasetArn", "documentation": "

The ARN of the dataset.

" }, "DatasetName": { "shape": "ComprehendArnName", "documentation": "

The name of the dataset.

" }, "DatasetType": { "shape": "DatasetType", "documentation": "

The dataset type (training data or test data).

" }, "DatasetS3Uri": { "shape": "S3Uri", "documentation": "

The S3 URI where the dataset is stored.

" }, "Description": { "shape": "Description", "documentation": "

Description of the dataset.

" }, "Status": { "shape": "DatasetStatus", "documentation": "

The dataset status. While the system creates the dataset, the status is CREATING. When the dataset is ready to use, the status changes to COMPLETED.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the dataset.

" }, "NumberOfDocuments": { "shape": "NumberOfDocuments", "documentation": "

The number of documents in the dataset.

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

Creation time of the dataset.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

Time when the data from the dataset becomes available in the data lake.

" } }, "documentation": "

Properties associated with the dataset.

" }, "DatasetPropertiesList": { "type": "list", "member": { "shape": "DatasetProperties" } }, "DatasetStatus": { "type": "string", "enum": [ "CREATING", "COMPLETED", "FAILED" ] }, "DatasetType": { "type": "string", "enum": [ "TRAIN", "TEST" ] }, "DeleteDocumentClassifierRequest": { "type": "structure", "required": [ "DocumentClassifierArn" ], "members": { "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier.

" } } }, "DeleteDocumentClassifierResponse": { "type": "structure", "members": {} }, "DeleteEndpointRequest": { "type": "structure", "required": [ "EndpointArn" ], "members": { "EndpointArn": { "shape": "ComprehendEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint being deleted.

" } } }, "DeleteEndpointResponse": { "type": "structure", "members": {} }, "DeleteEntityRecognizerRequest": { "type": "structure", "required": [ "EntityRecognizerArn" ], "members": { "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

" } } }, "DeleteEntityRecognizerResponse": { "type": "structure", "members": {} }, "DeleteFlywheelRequest": { "type": "structure", "required": [ "FlywheelArn" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel to delete.

" } } }, "DeleteFlywheelResponse": { "type": "structure", "members": {} }, "DeleteResourcePolicyRequest": { "type": "structure", "required": [ "ResourceArn" ], "members": { "ResourceArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Name (ARN) of the custom model version that has the policy to delete.

" }, "PolicyRevisionId": { "shape": "PolicyRevisionId", "documentation": "

The revision ID of the policy to delete.

" } } }, "DeleteResourcePolicyResponse": { "type": "structure", "members": {} }, "DescribeDatasetRequest": { "type": "structure", "required": [ "DatasetArn" ], "members": { "DatasetArn": { "shape": "ComprehendDatasetArn", "documentation": "

The ARN of the dataset.

" } } }, "DescribeDatasetResponse": { "type": "structure", "members": { "DatasetProperties": { "shape": "DatasetProperties", "documentation": "

The dataset properties.

" } } }, "DescribeDocumentClassificationJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The StartDocumentClassificationJob operation returns this identifier in its response.

" } } }, "DescribeDocumentClassificationJobResponse": { "type": "structure", "members": { "DocumentClassificationJobProperties": { "shape": "DocumentClassificationJobProperties", "documentation": "

An object that describes the properties associated with the document classification job.

" } } }, "DescribeDocumentClassifierRequest": { "type": "structure", "required": [ "DocumentClassifierArn" ], "members": { "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier. The CreateDocumentClassifier operation returns this identifier in its response.

" } } }, "DescribeDocumentClassifierResponse": { "type": "structure", "members": { "DocumentClassifierProperties": { "shape": "DocumentClassifierProperties", "documentation": "

An object that contains the properties associated with a document classifier.

" } } }, "DescribeDominantLanguageDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The StartDominantLanguageDetectionJob operation returns this identifier in its response.

" } } }, "DescribeDominantLanguageDetectionJobResponse": { "type": "structure", "members": { "DominantLanguageDetectionJobProperties": { "shape": "DominantLanguageDetectionJobProperties", "documentation": "

An object that contains the properties associated with a dominant language detection job.

" } } }, "DescribeEndpointRequest": { "type": "structure", "required": [ "EndpointArn" ], "members": { "EndpointArn": { "shape": "ComprehendEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint being described.

" } } }, "DescribeEndpointResponse": { "type": "structure", "members": { "EndpointProperties": { "shape": "EndpointProperties", "documentation": "

Describes information associated with the specific endpoint.

" } } }, "DescribeEntitiesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The StartEntitiesDetectionJob operation returns this identifier in its response.

" } } }, "DescribeEntitiesDetectionJobResponse": { "type": "structure", "members": { "EntitiesDetectionJobProperties": { "shape": "EntitiesDetectionJobProperties", "documentation": "

An object that contains the properties associated with an entities detection job.

" } } }, "DescribeEntityRecognizerRequest": { "type": "structure", "required": [ "EntityRecognizerArn" ], "members": { "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

" } } }, "DescribeEntityRecognizerResponse": { "type": "structure", "members": { "EntityRecognizerProperties": { "shape": "EntityRecognizerProperties", "documentation": "

Describes information associated with an entity recognizer.

" } } }, "DescribeEventsDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the events detection job.

" } } }, "DescribeEventsDetectionJobResponse": { "type": "structure", "members": { "EventsDetectionJobProperties": { "shape": "EventsDetectionJobProperties", "documentation": "

An object that contains the properties associated with an event detection job.

" } } }, "DescribeFlywheelIterationRequest": { "type": "structure", "required": [ "FlywheelArn", "FlywheelIterationId" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

" }, "FlywheelIterationId": { "shape": "FlywheelIterationId", "documentation": "

" } } }, "DescribeFlywheelIterationResponse": { "type": "structure", "members": { "FlywheelIterationProperties": { "shape": "FlywheelIterationProperties", "documentation": "

The configuration properties of a flywheel iteration.

" } } }, "DescribeFlywheelRequest": { "type": "structure", "required": [ "FlywheelArn" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel.

" } } }, "DescribeFlywheelResponse": { "type": "structure", "members": { "FlywheelProperties": { "shape": "FlywheelProperties", "documentation": "

The flywheel properties.

" } } }, "DescribeKeyPhrasesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The StartKeyPhrasesDetectionJob operation returns this identifier in its response.

" } } }, "DescribeKeyPhrasesDetectionJobResponse": { "type": "structure", "members": { "KeyPhrasesDetectionJobProperties": { "shape": "KeyPhrasesDetectionJobProperties", "documentation": "

An object that contains the properties associated with a key phrases detection job.

" } } }, "DescribePiiEntitiesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

" } } }, "DescribePiiEntitiesDetectionJobResponse": { "type": "structure", "members": { "PiiEntitiesDetectionJobProperties": { "shape": "PiiEntitiesDetectionJobProperties" } } }, "DescribeResourcePolicyRequest": { "type": "structure", "required": [ "ResourceArn" ], "members": { "ResourceArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Name (ARN) of the custom model version that has the resource policy.

" } } }, "DescribeResourcePolicyResponse": { "type": "structure", "members": { "ResourcePolicy": { "shape": "Policy", "documentation": "

The JSON body of the resource-based policy.

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

The time at which the policy was created.

" }, "LastModifiedTime": { "shape": "Timestamp", "documentation": "

The time at which the policy was last modified.

" }, "PolicyRevisionId": { "shape": "PolicyRevisionId", "documentation": "

The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.

" } } }, "DescribeSentimentDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

" } } }, "DescribeSentimentDetectionJobResponse": { "type": "structure", "members": { "SentimentDetectionJobProperties": { "shape": "SentimentDetectionJobProperties", "documentation": "

An object that contains the properties associated with a sentiment detection job.

" } } }, "DescribeTargetedSentimentDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier that Amazon Comprehend generated for the job. The StartTargetedSentimentDetectionJob operation returns this identifier in its response.

" } } }, "DescribeTargetedSentimentDetectionJobResponse": { "type": "structure", "members": { "TargetedSentimentDetectionJobProperties": { "shape": "TargetedSentimentDetectionJobProperties", "documentation": "

An object that contains the properties associated with a targeted sentiment detection job.

" } } }, "DescribeTopicsDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned by the user to the detection job.

" } } }, "DescribeTopicsDetectionJobResponse": { "type": "structure", "members": { "TopicsDetectionJobProperties": { "shape": "TopicsDetectionJobProperties", "documentation": "

The list of properties for the requested job.

" } } }, "Description": { "type": "string", "max": 2048, "pattern": "^([a-zA-Z0-9_])[\\\\a-zA-Z0-9_@#%*+=:?./!\\s-]*$" }, "DetectDominantLanguageRequest": { "type": "structure", "required": [ "Text" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.

" } } }, "DetectDominantLanguageResponse": { "type": "structure", "members": { "Languages": { "shape": "ListOfDominantLanguages", "documentation": "

Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).

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.

" } }, "sensitive": true }, "DetectEntitiesRequest": { "type": "structure", "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 text string. The maximum string size is 100 KB. If you enter text using this parameter, do not use the Bytes parameter.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.

All input documents must be in the same language.

" }, "EndpointArn": { "shape": "EntityRecognizerEndpointArn", "documentation": "

The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model. Provide an endpoint if you want to detect entities by using your own custom model instead of the default model that is used by Amazon Comprehend.

If you specify an endpoint, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you provide in your request.

For information about endpoints, see Managing endpoints.

" }, "Bytes": { "shape": "SemiStructuredDocumentBlob", "documentation": "

This field applies only when you use a custom entity recognition model that was trained with PDF annotations. For other cases, enter your text input in the Text field.

Use the Bytes parameter to input a text, PDF, Word or image file. Using a plain-text file in the Bytes parameter is equivelent to using the Text parameter (the Entities field in the response is identical).

You can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to detect entities, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

" }, "DocumentReaderConfig": { "shape": "DocumentReaderConfig", "documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

" } } }, "DetectEntitiesResponse": { "type": "structure", "members": { "Entities": { "shape": "ListOfEntities", "documentation": "

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.

If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.

" }, "DocumentMetadata": { "shape": "DocumentMetadata", "documentation": "

Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.

" }, "DocumentType": { "shape": "ListOfDocumentType", "documentation": "

The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.

" }, "Blocks": { "shape": "ListOfBlocks", "documentation": "

Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.

The Block content for a Word input document does not include a Geometry field.

The Block field is not present in the response for plain-text inputs.

" }, "Errors": { "shape": "ListOfErrors", "documentation": "

Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.

" } }, "sensitive": true }, "DetectKeyPhrasesRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 text string. The string must contain less than 100 KB of UTF-8 encoded characters.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" } } }, "DetectKeyPhrasesResponse": { "type": "structure", "members": { "KeyPhrases": { "shape": "ListOfKeyPhrases", "documentation": "

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.

" } }, "sensitive": true }, "DetectPiiEntitiesRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "String", "documentation": "

A UTF-8 text string. The maximum string size is 100 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input text. Enter the language code for English (en) or Spanish (es).

" } } }, "DetectPiiEntitiesResponse": { "type": "structure", "members": { "Entities": { "shape": "ListOfPiiEntities", "documentation": "

A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

" } } }, "DetectSentimentRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 text string. The maximum string size is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" } } }, "DetectSentimentResponse": { "type": "structure", "members": { "Sentiment": { "shape": "SentimentType", "documentation": "

The inferred sentiment that Amazon Comprehend has the highest level of confidence in.

" }, "SentimentScore": { "shape": "SentimentScore", "documentation": "

An object that lists the sentiments, and their corresponding confidence levels.

" } }, "sensitive": true }, "DetectSyntaxRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 string. The maximum string size is 5 KB.

" }, "LanguageCode": { "shape": "SyntaxLanguageCode", "documentation": "

The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German (\"de\"), English (\"en\"), Spanish (\"es\"), French (\"fr\"), Italian (\"it\"), or Portuguese (\"pt\").

" } } }, "DetectSyntaxResponse": { "type": "structure", "members": { "SyntaxTokens": { "shape": "ListOfSyntaxTokens", "documentation": "

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 Syntax in the Comprehend Developer Guide.

" } }, "sensitive": true }, "DetectTargetedSentimentRequest": { "type": "structure", "required": [ "Text", "LanguageCode" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

A UTF-8 text string. The maximum string length is 5 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. Currently, English is the only supported language.

" } } }, "DetectTargetedSentimentResponse": { "type": "structure", "members": { "Entities": { "shape": "ListOfTargetedSentimentEntities", "documentation": "

Targeted sentiment analysis for each of the entities identified in the input text.

" } }, "sensitive": true }, "DetectToxicContentRequest": { "type": "structure", "required": [ "TextSegments", "LanguageCode" ], "members": { "TextSegments": { "shape": "ListOfTextSegments", "documentation": "

A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input text. Currently, English is the only supported language.

" } } }, "DetectToxicContentResponse": { "type": "structure", "members": { "ResultList": { "shape": "ListOfToxicLabels", "documentation": "

Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.

" } } }, "DocumentClass": { "type": "structure", "members": { "Name": { "shape": "String", "documentation": "

The name of the class.

" }, "Score": { "shape": "Float", "documentation": "

The confidence score that Amazon Comprehend has this class correctly attributed.

" }, "Page": { "shape": "Integer", "documentation": "

Page number in the input document. This field is present in the response only if your request includes the Byte parameter.

" } }, "documentation": "

Specifies the class that categorizes the document being analyzed

" }, "DocumentClassificationConfig": { "type": "structure", "required": [ "Mode" ], "members": { "Mode": { "shape": "DocumentClassifierMode", "documentation": "

Classification mode indicates whether the documents are MULTI_CLASS or MULTI_LABEL.

" }, "Labels": { "shape": "LabelsList", "documentation": "

One or more labels to associate with the custom classifier.

" } }, "documentation": "

Configuration required for a document classification model.

" }, "DocumentClassificationJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of document classification jobs. For more information, see the operation. You can provide only one filter parameter in each request.

" }, "DocumentClassificationJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the document classification job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the document classification job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned to the document classification job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the document classification job. If the status is FAILED, the Message field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the document classification job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the document classification job completed.

" }, "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the document classification job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the document classification job.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" } }, "documentation": "

Provides information about a document classification job.

" }, "DocumentClassificationJobPropertiesList": { "type": "list", "member": { "shape": "DocumentClassificationJobProperties" } }, "DocumentClassifierArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document-classifier/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?" }, "DocumentClassifierAugmentedManifestsList": { "type": "list", "member": { "shape": "AugmentedManifestsListItem" } }, "DocumentClassifierDataFormat": { "type": "string", "enum": [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ] }, "DocumentClassifierDocumentTypeFormat": { "type": "string", "enum": [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ] }, "DocumentClassifierDocuments": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

The S3 URI location of the training documents specified in the S3Uri CSV file.

" }, "TestS3Uri": { "shape": "S3Uri", "documentation": "

The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.

" } }, "documentation": "

The location of the training documents. This parameter is required in a request to create a semi-structured document classification model.

" }, "DocumentClassifierEndpointArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:([0-9]{12}|aws):document-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "DocumentClassifierFilter": { "type": "structure", "members": { "Status": { "shape": "ModelStatus", "documentation": "

Filters the list of classifiers based on status.

" }, "DocumentClassifierName": { "shape": "ComprehendArnName", "documentation": "

The name that you assigned to the document classifier

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of document classifiers. You can only specify one filtering parameter in a request. For more information, see the ListDocumentClassifiers operation.

" }, "DocumentClassifierInputDataConfig": { "type": "structure", "members": { "DataFormat": { "shape": "DocumentClassifierDataFormat", "documentation": "

The format of your training data:

If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV as the default.

" }, "S3Uri": { "shape": "S3Uri", "documentation": "

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.

This parameter is required if you set DataFormat to COMPREHEND_CSV.

" }, "TestS3Uri": { "shape": "S3Uri", "documentation": "

This specifies the Amazon S3 location that contains the test annotations for the document classifier. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

" }, "LabelDelimiter": { "shape": "LabelDelimiter", "documentation": "

Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.

" }, "AugmentedManifests": { "shape": "DocumentClassifierAugmentedManifestsList", "documentation": "

A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.

This parameter is required if you set DataFormat to AUGMENTED_MANIFEST.

" }, "DocumentType": { "shape": "DocumentClassifierDocumentTypeFormat", "documentation": "

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native document model.

" }, "Documents": { "shape": "DocumentClassifierDocuments", "documentation": "

The S3 location of the training documents. This parameter is required in a request to create a native document model.

" }, "DocumentReaderConfig": { "shape": "DocumentReaderConfig" } }, "documentation": "

The input properties for training a document classifier.

For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide.

" }, "DocumentClassifierMode": { "type": "string", "enum": [ "MULTI_CLASS", "MULTI_LABEL" ] }, "DocumentClassifierOutputDataConfig": { "type": "structure", "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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 and other output files. 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.

" }, "KmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "FlywheelStatsS3Prefix": { "shape": "S3Uri", "documentation": "

The Amazon S3 prefix for the data lake location of the flywheel statistics.

" } }, "documentation": "

Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native document model.

" }, "DocumentClassifierProperties": { "type": "structure", "members": { "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code for the language of the documents that the classifier was trained on.

" }, "Status": { "shape": "ModelStatus", "documentation": "

The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is TRAINED_WITH_WARNINGS the classifier training succeeded, but you should review the warnings returned in the CreateDocumentClassifier response.

If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

Additional information about the status of the classifier.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the document classifier was submitted for training.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that training the document classifier completed.

" }, "TrainingStartTime": { "shape": "Timestamp", "documentation": "

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.

" }, "TrainingEndTime": { "shape": "Timestamp", "documentation": "

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.

" }, "InputDataConfig": { "shape": "DocumentClassifierInputDataConfig", "documentation": "

The input data configuration that you supplied when you created the document classifier for training.

" }, "OutputDataConfig": { "shape": "DocumentClassifierOutputDataConfig", "documentation": "

Provides output results configuration parameters for custom classifier jobs.

" }, "ClassifierMetadata": { "shape": "ClassifierMetadata", "documentation": "

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.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Mode": { "shape": "DocumentClassifierMode", "documentation": "

Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.

" }, "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "VersionName": { "shape": "VersionName", "documentation": "

The version name that you assigned to the document classifier.

" }, "SourceModelArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) of the source model. This model was imported from a different Amazon Web Services account to create the document classifier model in your Amazon Web Services account.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" } }, "documentation": "

Provides information about a document classifier.

" }, "DocumentClassifierPropertiesList": { "type": "list", "member": { "shape": "DocumentClassifierProperties" } }, "DocumentClassifierSummariesList": { "type": "list", "member": { "shape": "DocumentClassifierSummary" } }, "DocumentClassifierSummary": { "type": "structure", "members": { "DocumentClassifierName": { "shape": "ComprehendArnName", "documentation": "

The name that you assigned the document classifier.

" }, "NumberOfVersions": { "shape": "Integer", "documentation": "

The number of versions you created.

" }, "LatestVersionCreatedAt": { "shape": "Timestamp", "documentation": "

The time that the latest document classifier version was submitted for processing.

" }, "LatestVersionName": { "shape": "VersionName", "documentation": "

The version name you assigned to the latest document classifier version.

" }, "LatestVersionStatus": { "shape": "ModelStatus", "documentation": "

Provides the status of the latest document classifier version.

" } }, "documentation": "

Describes information about a document classifier and its versions.

" }, "DocumentLabel": { "type": "structure", "members": { "Name": { "shape": "String", "documentation": "

The name of the label.

" }, "Score": { "shape": "Float", "documentation": "

The confidence score that Amazon Comprehend has this label correctly attributed.

" }, "Page": { "shape": "Integer", "documentation": "

Page number where the label occurs. This field is present in the response only if your request includes the Byte parameter.

" } }, "documentation": "

Specifies one of the label or labels that categorize the document being analyzed.

" }, "DocumentMetadata": { "type": "structure", "members": { "Pages": { "shape": "Integer", "documentation": "

Number of pages in the document.

" }, "ExtractedCharacters": { "shape": "ListOfExtractedCharacters", "documentation": "

List of pages in the document, with the number of characters extracted from each page.

" } }, "documentation": "

Information about the document, discovered during text extraction.

" }, "DocumentReadAction": { "type": "string", "enum": [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ] }, "DocumentReadFeatureTypes": { "type": "string", "documentation": "

TABLES or FORMS

", "enum": [ "TABLES", "FORMS" ] }, "DocumentReadMode": { "type": "string", "enum": [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ] }, "DocumentReaderConfig": { "type": "structure", "required": [ "DocumentReadAction" ], "members": { "DocumentReadAction": { "shape": "DocumentReadAction", "documentation": "

This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:

" }, "DocumentReadMode": { "shape": "DocumentReadMode", "documentation": "

Determines the text extraction actions for PDF files. Enter one of the following values:

" }, "FeatureTypes": { "shape": "ListOfDocumentReadFeatureTypes", "documentation": "

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

" } }, "documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

DocumentReaderConfig does not apply to plain text files or Word files.

For image files and PDF documents, you can override these default actions using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.

" }, "DocumentType": { "type": "string", "enum": [ "NATIVE_PDF", "SCANNED_PDF", "MS_WORD", "IMAGE", "PLAIN_TEXT", "TEXTRACT_DETECT_DOCUMENT_TEXT_JSON", "TEXTRACT_ANALYZE_DOCUMENT_JSON" ] }, "DocumentTypeListItem": { "type": "structure", "members": { "Page": { "shape": "Integer", "documentation": "

Page number.

" }, "Type": { "shape": "DocumentType", "documentation": "

Document type.

" } }, "documentation": "

Document type for each page in the document.

" }, "DominantLanguage": { "type": "structure", "members": { "LanguageCode": { "shape": "String", "documentation": "

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.

" }, "Score": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

" } }, "documentation": "

Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

" }, "DominantLanguageDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

" }, "DominantLanguageDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the dominant language detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the dominant language detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:dominant-language-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned to the dominant language detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the dominant language detection job. If the status is FAILED, the Message field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description for the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the dominant language detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the dominant language detection job completed.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the dominant language detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the dominant language detection job.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" } }, "documentation": "

Provides information about a dominant language detection job.

" }, "DominantLanguageDetectionJobPropertiesList": { "type": "list", "member": { "shape": "DominantLanguageDetectionJobProperties" } }, "Double": { "type": "double" }, "EndpointFilter": { "type": "structure", "members": { "ModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the model to which the endpoint is attached.

" }, "Status": { "shape": "EndpointStatus", "documentation": "

Specifies the status of the endpoint being returned. Possible values are: Creating, Ready, Updating, Deleting, Failed.

" }, "CreationTimeBefore": { "shape": "Timestamp", "documentation": "

Specifies a date before which the returned endpoint or endpoints were created.

" }, "CreationTimeAfter": { "shape": "Timestamp", "documentation": "

Specifies a date after which the returned endpoint or endpoints were created.

" } }, "documentation": "

The filter used to determine which endpoints are returned. You can filter jobs on their name, model, status, or the date and time that they were created. You can only set one filter at a time.

" }, "EndpointProperties": { "type": "structure", "members": { "EndpointArn": { "shape": "ComprehendEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint.

" }, "Status": { "shape": "EndpointStatus", "documentation": "

Specifies the status of the endpoint. Because the endpoint updates and creation are asynchronous, so customers will need to wait for the endpoint to be Ready status before making inference requests.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

Specifies a reason for failure in cases of Failed status.

" }, "ModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the model to which the endpoint is attached.

" }, "DesiredModelArn": { "shape": "ComprehendModelArn", "documentation": "

ARN of the new model to use for updating an existing endpoint. This ARN is going to be different from the model ARN when the update is in progress

" }, "DesiredInferenceUnits": { "shape": "InferenceUnitsInteger", "documentation": "

The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

" }, "CurrentInferenceUnits": { "shape": "InferenceUnitsInteger", "documentation": "

The number of inference units currently used by the model using this endpoint.

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

The creation date and time of the endpoint.

" }, "LastModifiedTime": { "shape": "Timestamp", "documentation": "

The date and time that the endpoint was last modified.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).

" }, "DesiredDataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

Data access role ARN to use in case the new model is encrypted with a customer KMS key.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" } }, "documentation": "

Specifies information about the specified endpoint. For information about endpoints, see Managing endpoints.

" }, "EndpointPropertiesList": { "type": "list", "member": { "shape": "EndpointProperties" } }, "EndpointStatus": { "type": "string", "enum": [ "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING" ] }, "EntitiesDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

" }, "EntitiesDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the entities detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:entities-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned the entities detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the entities detection job. If the status is FAILED, the Message field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the entities detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the entities detection job completed

" }, "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the entities detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the entities detection job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Name (ARN) of the flywheel associated with this job.

" } }, "documentation": "

Provides information about an entities detection job.

" }, "EntitiesDetectionJobPropertiesList": { "type": "list", "member": { "shape": "EntitiesDetectionJobProperties" } }, "Entity": { "type": "structure", "members": { "Score": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

" }, "Type": { "shape": "EntityType", "documentation": "

The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.

For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.

" }, "Text": { "shape": "String", "documentation": "

The text of the entity.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the first character in the entity.

This field is empty for non-text input.

" }, "EndOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the last character in the entity.

This field is empty for non-text input.

" }, "BlockReferences": { "shape": "ListOfBlockReferences", "documentation": "

A reference to each block for this entity. This field is empty for plain-text input.

" } }, "documentation": "

Provides information about an entity.

" }, "EntityLabel": { "type": "structure", "members": { "Name": { "shape": "PiiEntityType", "documentation": "

The name of the label.

" }, "Score": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

" } }, "documentation": "

Specifies one of the label or labels that categorize the personally identifiable information (PII) entity being analyzed.

" }, "EntityRecognitionConfig": { "type": "structure", "required": [ "EntityTypes" ], "members": { "EntityTypes": { "shape": "EntityTypesList", "documentation": "

Up to 25 entity types that the model is trained to recognize.

" } }, "documentation": "

Configuration required for an entity recognition model.

" }, "EntityRecognizerAnnotations": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

" }, "TestS3Uri": { "shape": "S3Uri", "documentation": "

Specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same Region as the API endpoint that you are calling.

" } }, "documentation": "

Describes the annotations associated with a entity recognizer.

" }, "EntityRecognizerArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:entity-recognizer/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?" }, "EntityRecognizerAugmentedManifestsList": { "type": "list", "member": { "shape": "AugmentedManifestsListItem" } }, "EntityRecognizerDataFormat": { "type": "string", "enum": [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ] }, "EntityRecognizerDocuments": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

" }, "TestS3Uri": { "shape": "S3Uri", "documentation": "

Specifies the Amazon S3 location where the test documents for an entity recognizer are located. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

" }, "InputFormat": { "shape": "InputFormat", "documentation": "

Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. 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.

" } }, "documentation": "

Describes the training documents submitted with an entity recognizer.

" }, "EntityRecognizerEndpointArn": { "type": "string", "max": 256, "pattern": "arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:entity-recognizer-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, "EntityRecognizerEntityList": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

" } }, "documentation": "

Describes the entity list submitted with an entity recognizer.

" }, "EntityRecognizerEvaluationMetrics": { "type": "structure", "members": { "Precision": { "shape": "Double", "documentation": "

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.

" }, "Recall": { "shape": "Double", "documentation": "

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.

" }, "F1Score": { "shape": "Double", "documentation": "

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. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.

" } }, "documentation": "

Detailed information about the accuracy of an entity recognizer.

" }, "EntityRecognizerFilter": { "type": "structure", "members": { "Status": { "shape": "ModelStatus", "documentation": "

The status of an entity recognizer.

" }, "RecognizerName": { "shape": "ComprehendArnName", "documentation": "

The name that you assigned the entity recognizer.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of entity recognizers. You can only specify one filtering parameter in a request. For more information, see the ListEntityRecognizers operation./>

" }, "EntityRecognizerInputDataConfig": { "type": "structure", "required": [ "EntityTypes" ], "members": { "DataFormat": { "shape": "EntityRecognizerDataFormat", "documentation": "

The format of your training data:

If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV as the default.

" }, "EntityTypes": { "shape": "EntityTypesList", "documentation": "

The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer. Any entity types that you don't specify are ignored.

A maximum of 25 entity types can be used at one time to train an entity recognizer. Entity types must not contain the following invalid characters: \\n (line break), \\\\n (escaped line break), \\r (carriage return), \\\\r (escaped carriage return), \\t (tab), \\\\t (escaped tab), space, and , (comma).

" }, "Documents": { "shape": "EntityRecognizerDocuments", "documentation": "

The S3 location of the folder that contains the training documents for your custom entity recognizer.

This parameter is required if you set DataFormat to COMPREHEND_CSV.

" }, "Annotations": { "shape": "EntityRecognizerAnnotations", "documentation": "

The S3 location of the CSV file that annotates your training documents.

" }, "EntityList": { "shape": "EntityRecognizerEntityList", "documentation": "

The S3 location of the CSV file that has the entity list for your custom entity recognizer.

" }, "AugmentedManifests": { "shape": "EntityRecognizerAugmentedManifestsList", "documentation": "

A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.

This parameter is required if you set DataFormat to AUGMENTED_MANIFEST.

" } }, "documentation": "

Specifies the format and location of the input data.

" }, "EntityRecognizerMetadata": { "type": "structure", "members": { "NumberOfTrainedDocuments": { "shape": "Integer", "documentation": "

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.

" }, "NumberOfTestDocuments": { "shape": "Integer", "documentation": "

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.

" }, "EvaluationMetrics": { "shape": "EntityRecognizerEvaluationMetrics", "documentation": "

Detailed information about the accuracy of an entity recognizer.

" }, "EntityTypes": { "shape": "EntityRecognizerMetadataEntityTypesList", "documentation": "

Entity types from the metadata of an entity recognizer.

" } }, "documentation": "

Detailed information about an entity recognizer.

", "sensitive": true }, "EntityRecognizerMetadataEntityTypesList": { "type": "list", "member": { "shape": "EntityRecognizerMetadataEntityTypesListItem" } }, "EntityRecognizerMetadataEntityTypesListItem": { "type": "structure", "members": { "Type": { "shape": "AnyLengthString", "documentation": "

Type of entity from the list of entity types in the metadata of an entity recognizer.

" }, "EvaluationMetrics": { "shape": "EntityTypesEvaluationMetrics", "documentation": "

Detailed information about the accuracy of the entity recognizer for a specific item on the list of entity types.

" }, "NumberOfTrainMentions": { "shape": "Integer", "documentation": "

Indicates the number of times the given entity type was seen in the training data.

" } }, "documentation": "

Individual item from the list of entity types in the metadata of an entity recognizer.

" }, "EntityRecognizerOutputDataConfig": { "type": "structure", "members": { "FlywheelStatsS3Prefix": { "shape": "S3Uri", "documentation": "

The Amazon S3 prefix for the data lake location of the flywheel statistics.

" } }, "documentation": "

Output data configuration.

" }, "EntityRecognizerProperties": { "type": "structure", "members": { "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. All documents must be in the same language. Only English (\"en\") is currently supported.

" }, "Status": { "shape": "ModelStatus", "documentation": "

Provides the status of the entity recognizer.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the recognizer.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the recognizer was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the recognizer creation completed.

" }, "TrainingStartTime": { "shape": "Timestamp", "documentation": "

The time that training of the entity recognizer started.

" }, "TrainingEndTime": { "shape": "Timestamp", "documentation": "

The time that training of the entity recognizer was completed.

" }, "InputDataConfig": { "shape": "EntityRecognizerInputDataConfig", "documentation": "

The input data properties of an entity recognizer.

" }, "RecognizerMetadata": { "shape": "EntityRecognizerMetadata", "documentation": "

Provides information about an entity recognizer.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "VersionName": { "shape": "VersionName", "documentation": "

The version name you assigned to the entity recognizer.

" }, "SourceModelArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) of the source model. This model was imported from a different Amazon Web Services account to create the entity recognizer model in your Amazon Web Services account.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" }, "OutputDataConfig": { "shape": "EntityRecognizerOutputDataConfig", "documentation": "

Output data configuration.

" } }, "documentation": "

Describes information about an entity recognizer.

" }, "EntityRecognizerPropertiesList": { "type": "list", "member": { "shape": "EntityRecognizerProperties" } }, "EntityRecognizerSummariesList": { "type": "list", "member": { "shape": "EntityRecognizerSummary" } }, "EntityRecognizerSummary": { "type": "structure", "members": { "RecognizerName": { "shape": "ComprehendArnName", "documentation": "

The name that you assigned the entity recognizer.

" }, "NumberOfVersions": { "shape": "Integer", "documentation": "

The number of versions you created.

" }, "LatestVersionCreatedAt": { "shape": "Timestamp", "documentation": "

The time that the latest entity recognizer version was submitted for processing.

" }, "LatestVersionName": { "shape": "VersionName", "documentation": "

The version name you assigned to the latest entity recognizer version.

" }, "LatestVersionStatus": { "shape": "ModelStatus", "documentation": "

Provides the status of the latest entity recognizer version.

" } }, "documentation": "

Describes the information about an entity recognizer and its versions.

" }, "EntityType": { "type": "string", "enum": [ "PERSON", "LOCATION", "ORGANIZATION", "COMMERCIAL_ITEM", "EVENT", "DATE", "QUANTITY", "TITLE", "OTHER" ] }, "EntityTypeName": { "type": "string", "max": 64, "pattern": "^(?![^\\n\\r\\t,]*\\\\n|\\\\r|\\\\t)[^\\n\\r\\t,]+$" }, "EntityTypesEvaluationMetrics": { "type": "structure", "members": { "Precision": { "shape": "Double", "documentation": "

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.

" }, "Recall": { "shape": "Double", "documentation": "

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.

" }, "F1Score": { "shape": "Double", "documentation": "

A measure of how accurate the recognizer results are 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.

" } }, "documentation": "

Detailed information about the accuracy of an entity recognizer for a specific entity type.

" }, "EntityTypesList": { "type": "list", "member": { "shape": "EntityTypesListItem" } }, "EntityTypesListItem": { "type": "structure", "required": [ "Type" ], "members": { "Type": { "shape": "EntityTypeName", "documentation": "

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \\n (line break), \\\\n (escaped line break, \\r (carriage return), \\\\r (escaped carriage return), \\t (tab), \\\\t (escaped tab), and , (comma).

" } }, "documentation": "

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

" }, "ErrorsListItem": { "type": "structure", "members": { "Page": { "shape": "Integer", "documentation": "

Page number where the error occurred.

" }, "ErrorCode": { "shape": "PageBasedErrorCode", "documentation": "

Error code for the cause of the error.

" }, "ErrorMessage": { "shape": "String", "documentation": "

Text message explaining the reason for the error.

" } }, "documentation": "

Text extraction encountered one or more page-level errors in the input document.

The ErrorCode contains one of the following values:

" }, "EventTypeString": { "type": "string", "max": 40, "min": 1, "pattern": "[A-Z_]*" }, "EventsDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the events detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of event detection jobs.

" }, "EventsDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the events detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the events detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name you assigned the events detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the events detection job.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the events detection job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the events detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the events detection job completed.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the events detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the events detection job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "TargetEventTypes": { "shape": "TargetEventTypes", "documentation": "

The types of events that are detected by the job.

" } }, "documentation": "

Provides information about an events detection job.

" }, "EventsDetectionJobPropertiesList": { "type": "list", "member": { "shape": "EventsDetectionJobProperties" } }, "ExtractedCharactersListItem": { "type": "structure", "members": { "Page": { "shape": "Integer", "documentation": "

Page number.

" }, "Count": { "shape": "Integer", "documentation": "

Number of characters extracted from each page.

" } }, "documentation": "

Array of the number of characters extracted from each page.

" }, "Float": { "type": "float" }, "FlywheelFilter": { "type": "structure", "members": { "Status": { "shape": "FlywheelStatus", "documentation": "

Filter the flywheels based on the flywheel status.

" }, "CreationTimeAfter": { "shape": "Timestamp", "documentation": "

Filter the flywheels to include flywheels created after the specified time.

" }, "CreationTimeBefore": { "shape": "Timestamp", "documentation": "

Filter the flywheels to include flywheels created before the specified time.

" } }, "documentation": "

Filter the flywheels based on creation time or flywheel status.

" }, "FlywheelIterationFilter": { "type": "structure", "members": { "CreationTimeAfter": { "shape": "Timestamp", "documentation": "

Filter the flywheel iterations to include iterations created after the specified time.

" }, "CreationTimeBefore": { "shape": "Timestamp", "documentation": "

Filter the flywheel iterations to include iterations created before the specified time.

" } }, "documentation": "

Filter the flywheel iterations based on creation time.

" }, "FlywheelIterationId": { "type": "string", "max": 63, "pattern": "[0-9]{8}T[0-9]{6}Z" }, "FlywheelIterationProperties": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

" }, "FlywheelIterationId": { "shape": "FlywheelIterationId", "documentation": "

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

The creation start time of the flywheel iteration.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The completion time of this flywheel iteration.

" }, "Status": { "shape": "FlywheelIterationStatus", "documentation": "

The status of the flywheel iteration.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the flywheel iteration.

" }, "EvaluatedModelArn": { "shape": "ComprehendModelArn", "documentation": "

The ARN of the evaluated model associated with this flywheel iteration.

" }, "EvaluatedModelMetrics": { "shape": "FlywheelModelEvaluationMetrics" }, "TrainedModelArn": { "shape": "ComprehendModelArn", "documentation": "

The ARN of the trained model associated with this flywheel iteration.

" }, "TrainedModelMetrics": { "shape": "FlywheelModelEvaluationMetrics", "documentation": "

The metrics associated with the trained model.

" }, "EvaluationManifestS3Prefix": { "shape": "S3Uri", "documentation": "

" } }, "documentation": "

The configuration properties of a flywheel iteration.

" }, "FlywheelIterationPropertiesList": { "type": "list", "member": { "shape": "FlywheelIterationProperties" } }, "FlywheelIterationStatus": { "type": "string", "enum": [ "TRAINING", "EVALUATING", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ] }, "FlywheelModelEvaluationMetrics": { "type": "structure", "members": { "AverageF1Score": { "shape": "Double", "documentation": "

The average F1 score from the evaluation metrics.

" }, "AveragePrecision": { "shape": "Double", "documentation": "

Average precision metric for the model.

" }, "AverageRecall": { "shape": "Double", "documentation": "

Average recall metric for the model.

" }, "AverageAccuracy": { "shape": "Double", "documentation": "

Average accuracy metric for the model.

" } }, "documentation": "

The evaluation metrics associated with the evaluated model.

" }, "FlywheelProperties": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel.

" }, "ActiveModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the active model version.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.

" }, "TaskConfig": { "shape": "TaskConfig", "documentation": "

Configuration about the model associated with a flywheel.

" }, "DataLakeS3Uri": { "shape": "S3Uri", "documentation": "

Amazon S3 URI of the data lake location.

" }, "DataSecurityConfig": { "shape": "DataSecurityConfig", "documentation": "

Data security configuration.

" }, "Status": { "shape": "FlywheelStatus", "documentation": "

The status of the flywheel.

" }, "ModelType": { "shape": "ModelType", "documentation": "

Model type of the flywheel's model.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the flywheel.

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

Creation time of the flywheel.

" }, "LastModifiedTime": { "shape": "Timestamp", "documentation": "

Last modified time for the flywheel.

" }, "LatestFlywheelIteration": { "shape": "FlywheelIterationId", "documentation": "

The most recent flywheel iteration.

" } }, "documentation": "

The flywheel properties.

" }, "FlywheelS3Uri": { "type": "string", "max": 512, "pattern": "s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?" }, "FlywheelStatus": { "type": "string", "enum": [ "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED" ] }, "FlywheelSummary": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" }, "ActiveModelArn": { "shape": "ComprehendModelArn", "documentation": "

ARN of the active model version for the flywheel.

" }, "DataLakeS3Uri": { "shape": "S3Uri", "documentation": "

Amazon S3 URI of the data lake location.

" }, "Status": { "shape": "FlywheelStatus", "documentation": "

The status of the flywheel.

" }, "ModelType": { "shape": "ModelType", "documentation": "

Model type of the flywheel's model.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of the flywheel.

" }, "CreationTime": { "shape": "Timestamp", "documentation": "

Creation time of the flywheel.

" }, "LastModifiedTime": { "shape": "Timestamp", "documentation": "

Last modified time for the flywheel.

" }, "LatestFlywheelIteration": { "shape": "FlywheelIterationId", "documentation": "

The most recent flywheel iteration.

" } }, "documentation": "

Flywheel summary information.

" }, "FlywheelSummaryList": { "type": "list", "member": { "shape": "FlywheelSummary" } }, "Geometry": { "type": "structure", "members": { "BoundingBox": { "shape": "BoundingBox", "documentation": "

An axis-aligned coarse representation of the location of the recognized item on the document page.

" }, "Polygon": { "shape": "Polygon", "documentation": "

Within the bounding box, a fine-grained polygon around the recognized item.

" } }, "documentation": "

Information about the location of items on a document page.

For additional information, see Geometry in the Amazon Textract API reference.

" }, "IamRoleArn": { "type": "string", "max": 2048, "min": 20, "pattern": "arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+" }, "ImportModelRequest": { "type": "structure", "required": [ "SourceModelArn" ], "members": { "SourceModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Name (ARN) of the custom model to import.

" }, "ModelName": { "shape": "ComprehendArnName", "documentation": "

The name to assign to the custom model that is created in Amazon Comprehend by this import.

" }, "VersionName": { "shape": "VersionName", "documentation": "

The version name given to the custom model that is created by this import. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/Region.

" }, "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to use Amazon Key Management Service (KMS) to encrypt or decrypt the custom model.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the custom model that is created by this import. 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.

" } } }, "ImportModelResponse": { "type": "structure", "members": { "ModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Name (ARN) of the custom model being imported.

" } } }, "InferenceUnitsInteger": { "type": "integer", "min": 1 }, "InputDataConfig": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

" }, "InputFormat": { "shape": "InputFormat", "documentation": "

Specifies how the text in an input file should be processed:

" }, "DocumentReaderConfig": { "shape": "DocumentReaderConfig", "documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

" } }, "documentation": "

The input properties for an inference job. The document reader config field applies only to non-text inputs for custom analysis.

" }, "InputFormat": { "type": "string", "enum": [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ] }, "Integer": { "type": "integer" }, "JobId": { "type": "string", "max": 32, "min": 1, "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" }, "JobName": { "type": "string", "max": 256, "min": 1, "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" }, "JobStatus": { "type": "string", "enum": [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ] }, "KeyPhrase": { "type": "structure", "members": { "Score": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

" }, "Text": { "shape": "String", "documentation": "

The text of a key noun phrase.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the first character in the key phrase.

" }, "EndOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the last character in the key phrase.

" } }, "documentation": "

Describes a key noun phrase.

" }, "KeyPhrasesDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

" }, "KeyPhrasesDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the key phrases detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the key phrases detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:key-phrases-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned the key phrases detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the key phrases detection job. If the status is FAILED, the Message field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the key phrases detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the key phrases detection job completed.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the key phrases detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the key phrases detection job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" } }, "documentation": "

Provides information about a key phrases detection job.

" }, "KeyPhrasesDetectionJobPropertiesList": { "type": "list", "member": { "shape": "KeyPhrasesDetectionJobProperties" } }, "KmsKeyId": { "type": "string", "max": 2048, "pattern": "^\\p{ASCII}+$" }, "LabelDelimiter": { "type": "string", "max": 1, "min": 1, "pattern": "^[ ~!@#$%^*\\-_+=|\\\\:;\\t>?/]$" }, "LabelListItem": { "type": "string", "max": 5000, "pattern": "^\\P{C}*$" }, "LabelsList": { "type": "list", "member": { "shape": "LabelListItem" }, "max": 1000 }, "LanguageCode": { "type": "string", "enum": [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ] }, "ListDatasetsRequest": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel.

" }, "Filter": { "shape": "DatasetFilter", "documentation": "

Filters the datasets to be returned in the response.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

Maximum number of results to return in a response. The default is 100.

" } } }, "ListDatasetsResponse": { "type": "structure", "members": { "DatasetPropertiesList": { "shape": "DatasetPropertiesList", "documentation": "

The dataset properties list.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListDocumentClassificationJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "DocumentClassificationJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListDocumentClassificationJobsResponse": { "type": "structure", "members": { "DocumentClassificationJobPropertiesList": { "shape": "DocumentClassificationJobPropertiesList", "documentation": "

A list containing the properties of each job returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListDocumentClassifierSummariesRequest": { "type": "structure", "members": { "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return on each page. The default is 100.

" } } }, "ListDocumentClassifierSummariesResponse": { "type": "structure", "members": { "DocumentClassifierSummariesList": { "shape": "DocumentClassifierSummariesList", "documentation": "

The list of summaries of document classifiers.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListDocumentClassifiersRequest": { "type": "structure", "members": { "Filter": { "shape": "DocumentClassifierFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListDocumentClassifiersResponse": { "type": "structure", "members": { "DocumentClassifierPropertiesList": { "shape": "DocumentClassifierPropertiesList", "documentation": "

A list containing the properties of each job returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListDominantLanguageDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "DominantLanguageDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListDominantLanguageDetectionJobsResponse": { "type": "structure", "members": { "DominantLanguageDetectionJobPropertiesList": { "shape": "DominantLanguageDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListEndpointsRequest": { "type": "structure", "members": { "Filter": { "shape": "EndpointFilter", "documentation": "

Filters the endpoints that are returned. You can filter endpoints on their name, model, status, or the date and time that they were created. You can only set one filter at a time.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListEndpointsResponse": { "type": "structure", "members": { "EndpointPropertiesList": { "shape": "EndpointPropertiesList", "documentation": "

Displays a list of endpoint properties being retrieved by the service in response to the request.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListEntitiesDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "EntitiesDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListEntitiesDetectionJobsResponse": { "type": "structure", "members": { "EntitiesDetectionJobPropertiesList": { "shape": "EntitiesDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListEntityRecognizerSummariesRequest": { "type": "structure", "members": { "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return on each page. The default is 100.

" } } }, "ListEntityRecognizerSummariesResponse": { "type": "structure", "members": { "EntityRecognizerSummariesList": { "shape": "EntityRecognizerSummariesList", "documentation": "

The list entity recognizer summaries.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListEntityRecognizersRequest": { "type": "structure", "members": { "Filter": { "shape": "EntityRecognizerFilter", "documentation": "

Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, or SubmitTimeAfter. You can only set one filter at a time.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return on each page. The default is 100.

" } } }, "ListEntityRecognizersResponse": { "type": "structure", "members": { "EntityRecognizerPropertiesList": { "shape": "EntityRecognizerPropertiesList", "documentation": "

The list of properties of an entity recognizer.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListEventsDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "EventsDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page.

" } } }, "ListEventsDetectionJobsResponse": { "type": "structure", "members": { "EventsDetectionJobPropertiesList": { "shape": "EventsDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListFlywheelIterationHistoryRequest": { "type": "structure", "required": [ "FlywheelArn" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The ARN of the flywheel.

" }, "Filter": { "shape": "FlywheelIterationFilter", "documentation": "

Filter the flywheel iteration history based on creation time.

" }, "NextToken": { "shape": "String", "documentation": "

Next token

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

Maximum number of iteration history results to return

" } } }, "ListFlywheelIterationHistoryResponse": { "type": "structure", "members": { "FlywheelIterationPropertiesList": { "shape": "FlywheelIterationPropertiesList", "documentation": "

List of flywheel iteration properties

" }, "NextToken": { "shape": "String", "documentation": "

Next token

" } } }, "ListFlywheelsRequest": { "type": "structure", "members": { "Filter": { "shape": "FlywheelFilter", "documentation": "

Filters the flywheels that are returned. You can filter flywheels on their status, or the date and time that they were submitted. You can only set one filter at a time.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

Maximum number of results to return in a response. The default is 100.

" } } }, "ListFlywheelsResponse": { "type": "structure", "members": { "FlywheelSummaryList": { "shape": "FlywheelSummaryList", "documentation": "

A list of flywheel properties retrieved by the service in response to the request.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListKeyPhrasesDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "KeyPhrasesDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListKeyPhrasesDetectionJobsResponse": { "type": "structure", "members": { "KeyPhrasesDetectionJobPropertiesList": { "shape": "KeyPhrasesDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListOfBlockReferences": { "type": "list", "member": { "shape": "BlockReference" } }, "ListOfBlocks": { "type": "list", "member": { "shape": "Block" } }, "ListOfChildBlocks": { "type": "list", "member": { "shape": "ChildBlock" } }, "ListOfClasses": { "type": "list", "member": { "shape": "DocumentClass" } }, "ListOfDescriptiveMentionIndices": { "type": "list", "member": { "shape": "Integer" } }, "ListOfDetectDominantLanguageResult": { "type": "list", "member": { "shape": "BatchDetectDominantLanguageItemResult" } }, "ListOfDetectEntitiesResult": { "type": "list", "member": { "shape": "BatchDetectEntitiesItemResult" } }, "ListOfDetectKeyPhrasesResult": { "type": "list", "member": { "shape": "BatchDetectKeyPhrasesItemResult" } }, "ListOfDetectSentimentResult": { "type": "list", "member": { "shape": "BatchDetectSentimentItemResult" } }, "ListOfDetectSyntaxResult": { "type": "list", "member": { "shape": "BatchDetectSyntaxItemResult" } }, "ListOfDetectTargetedSentimentResult": { "type": "list", "member": { "shape": "BatchDetectTargetedSentimentItemResult" } }, "ListOfDocumentReadFeatureTypes": { "type": "list", "member": { "shape": "DocumentReadFeatureTypes" }, "max": 2, "min": 1 }, "ListOfDocumentType": { "type": "list", "member": { "shape": "DocumentTypeListItem" } }, "ListOfDominantLanguages": { "type": "list", "member": { "shape": "DominantLanguage" } }, "ListOfEntities": { "type": "list", "member": { "shape": "Entity" } }, "ListOfEntityLabels": { "type": "list", "member": { "shape": "EntityLabel" } }, "ListOfErrors": { "type": "list", "member": { "shape": "ErrorsListItem" } }, "ListOfExtractedCharacters": { "type": "list", "member": { "shape": "ExtractedCharactersListItem" } }, "ListOfKeyPhrases": { "type": "list", "member": { "shape": "KeyPhrase" } }, "ListOfLabels": { "type": "list", "member": { "shape": "DocumentLabel" } }, "ListOfMentions": { "type": "list", "member": { "shape": "TargetedSentimentMention" } }, "ListOfPiiEntities": { "type": "list", "member": { "shape": "PiiEntity" } }, "ListOfPiiEntityTypes": { "type": "list", "member": { "shape": "PiiEntityType" } }, "ListOfRelationships": { "type": "list", "member": { "shape": "RelationshipsListItem" } }, "ListOfSyntaxTokens": { "type": "list", "member": { "shape": "SyntaxToken" } }, "ListOfTargetedSentimentEntities": { "type": "list", "member": { "shape": "TargetedSentimentEntity" } }, "ListOfTextSegments": { "type": "list", "member": { "shape": "TextSegment" }, "min": 1, "sensitive": true }, "ListOfToxicContent": { "type": "list", "member": { "shape": "ToxicContent" } }, "ListOfToxicLabels": { "type": "list", "member": { "shape": "ToxicLabels" } }, "ListOfWarnings": { "type": "list", "member": { "shape": "WarningsListItem" } }, "ListPiiEntitiesDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "PiiEntitiesDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page.

" } } }, "ListPiiEntitiesDetectionJobsResponse": { "type": "structure", "members": { "PiiEntitiesDetectionJobPropertiesList": { "shape": "PiiEntitiesDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListSentimentDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "SentimentDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListSentimentDetectionJobsResponse": { "type": "structure", "members": { "SentimentDetectionJobPropertiesList": { "shape": "SentimentDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListTagsForResourceRequest": { "type": "structure", "required": [ "ResourceArn" ], "members": { "ResourceArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.

" } } }, "ListTagsForResourceResponse": { "type": "structure", "members": { "ResourceArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.

" }, "Tags": { "shape": "TagList", "documentation": "

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.

" } } }, "ListTargetedSentimentDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "TargetedSentimentDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListTargetedSentimentDetectionJobsResponse": { "type": "structure", "members": { "TargetedSentimentDetectionJobPropertiesList": { "shape": "TargetedSentimentDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "ListTopicsDetectionJobsRequest": { "type": "structure", "members": { "Filter": { "shape": "TopicsDetectionJobFilter", "documentation": "

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.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" }, "MaxResults": { "shape": "MaxResultsInteger", "documentation": "

The maximum number of results to return in each page. The default is 100.

" } } }, "ListTopicsDetectionJobsResponse": { "type": "structure", "members": { "TopicsDetectionJobPropertiesList": { "shape": "TopicsDetectionJobPropertiesList", "documentation": "

A list containing the properties of each job that is returned.

" }, "NextToken": { "shape": "String", "documentation": "

Identifies the next page of results to return.

" } } }, "MaskCharacter": { "type": "string", "max": 1, "min": 1, "pattern": "[!@#$%&*]" }, "MaxResultsInteger": { "type": "integer", "max": 500, "min": 1 }, "MentionSentiment": { "type": "structure", "members": { "Sentiment": { "shape": "SentimentType", "documentation": "

The sentiment of the mention.

" }, "SentimentScore": { "shape": "SentimentScore" } }, "documentation": "

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

" }, "ModelStatus": { "type": "string", "enum": [ "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED", "TRAINED_WITH_WARNING" ] }, "ModelType": { "type": "string", "enum": [ "DOCUMENT_CLASSIFIER", "ENTITY_RECOGNIZER" ] }, "NumberOfDocuments": { "type": "long" }, "NumberOfTopicsInteger": { "type": "integer", "max": 100, "min": 1 }, "OutputDataConfig": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

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.

For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with .out appended at the end.

" }, "KmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. Specify the Key Id of a symmetric key, because you cannot use an asymmetric key for uploading data to S3.

The KmsKeyId can be one of the following formats:

" } }, "documentation": "

Provides configuration parameters for the output of inference jobs.

" }, "PageBasedErrorCode": { "type": "string", "enum": [ "TEXTRACT_BAD_PAGE", "TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED", "PAGE_CHARACTERS_EXCEEDED", "PAGE_SIZE_EXCEEDED", "INTERNAL_SERVER_ERROR" ] }, "PageBasedWarningCode": { "type": "string", "enum": [ "INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL", "INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL" ] }, "PartOfSpeechTag": { "type": "structure", "members": { "Tag": { "shape": "PartOfSpeechTagType", "documentation": "

Identifies the part of speech that the token represents.

" }, "Score": { "shape": "Float", "documentation": "

The confidence that Amazon Comprehend has that the part of speech was correctly identified.

" } }, "documentation": "

Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see Syntax in the Comprehend Developer Guide.

" }, "PartOfSpeechTagType": { "type": "string", "enum": [ "ADJ", "ADP", "ADV", "AUX", "CONJ", "CCONJ", "DET", "INTJ", "NOUN", "NUM", "O", "PART", "PRON", "PROPN", "PUNCT", "SCONJ", "SYM", "VERB" ] }, "PiiEntitiesDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of PII entity detection jobs.

" }, "PiiEntitiesDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the PII entities detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the PII entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned the PII entities detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the PII entities detection job. If the status is FAILED, the Message field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the PII entities detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the PII entities detection job completed.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input properties for a PII entities detection job.

" }, "OutputDataConfig": { "shape": "PiiOutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the PII entities detection job.

" }, "RedactionConfig": { "shape": "RedactionConfig", "documentation": "

Provides configuration parameters for PII entity redaction.

This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "Mode": { "shape": "PiiEntitiesDetectionMode", "documentation": "

Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

" } }, "documentation": "

Provides information about a PII entities detection job.

" }, "PiiEntitiesDetectionJobPropertiesList": { "type": "list", "member": { "shape": "PiiEntitiesDetectionJobProperties" } }, "PiiEntitiesDetectionMaskMode": { "type": "string", "enum": [ "MASK", "REPLACE_WITH_PII_ENTITY_TYPE" ] }, "PiiEntitiesDetectionMode": { "type": "string", "enum": [ "ONLY_REDACTION", "ONLY_OFFSETS" ] }, "PiiEntity": { "type": "structure", "members": { "Score": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

" }, "Type": { "shape": "PiiEntityType", "documentation": "

The entity's type.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the first character in the entity.

" }, "EndOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the last character in the entity.

" } }, "documentation": "

Provides information about a PII entity.

" }, "PiiEntityType": { "type": "string", "enum": [ "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL", "LICENSE_PLATE", "VEHICLE_IDENTIFICATION_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "IN_PERMANENT_ACCOUNT_NUMBER", "IN_NREGA", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "CA_HEALTH_NUMBER", "IN_AADHAAR", "IN_VOTER_NUMBER" ] }, "PiiOutputDataConfig": { "type": "structure", "required": [ "S3Uri" ], "members": { "S3Uri": { "shape": "S3Uri", "documentation": "

When you use the PiiOutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data.

For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with .out appended at the end.

" }, "KmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job.

" } }, "documentation": "

Provides configuration parameters for the output of PII entity detection jobs.

" }, "Point": { "type": "structure", "members": { "X": { "shape": "Float", "documentation": "

The value of the X coordinate for a point on a polygon

" }, "Y": { "shape": "Float", "documentation": "

The value of the Y coordinate for a point on a polygon

" } }, "documentation": "

The X and Y coordinates of a point on a document page.

For additional information, see Point in the Amazon Textract API reference.

" }, "Policy": { "type": "string", "max": 20000, "min": 1, "pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "PolicyRevisionId": { "type": "string", "max": 64, "pattern": "[0-9A-Fa-f]+" }, "Polygon": { "type": "list", "member": { "shape": "Point" } }, "PutResourcePolicyRequest": { "type": "structure", "required": [ "ResourceArn", "ResourcePolicy" ], "members": { "ResourceArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Name (ARN) of the custom model to attach the policy to.

" }, "ResourcePolicy": { "shape": "Policy", "documentation": "

The JSON resource-based policy to attach to your custom model. Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:

\"{\\\"attribute\\\": \\\"value\\\", \\\"attribute\\\": [\\\"value\\\"]}\"

To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:

'{\"attribute\": \"value\", \"attribute\": [\"value\"]}'

" }, "PolicyRevisionId": { "shape": "PolicyRevisionId", "documentation": "

The revision ID that Amazon Comprehend assigned to the policy that you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you.

" } } }, "PutResourcePolicyResponse": { "type": "structure", "members": { "PolicyRevisionId": { "shape": "PolicyRevisionId", "documentation": "

The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.

" } } }, "RedactionConfig": { "type": "structure", "members": { "PiiEntityTypes": { "shape": "ListOfPiiEntityTypes", "documentation": "

An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

" }, "MaskMode": { "shape": "PiiEntitiesDetectionMaskMode", "documentation": "

Specifies whether the PII entity is redacted with the mask character or the entity type.

" }, "MaskCharacter": { "shape": "MaskCharacter", "documentation": "

A character that replaces each character in the redacted PII entity.

" } }, "documentation": "

Provides configuration parameters for PII entity redaction.

" }, "RelationshipType": { "type": "string", "enum": [ "CHILD" ] }, "RelationshipsListItem": { "type": "structure", "members": { "Ids": { "shape": "StringList", "documentation": "

Identifers of the child blocks.

" }, "Type": { "shape": "RelationshipType", "documentation": "

Only supported relationship is a child relationship.

" } }, "documentation": "

List of child blocks for the current block.

" }, "S3Uri": { "type": "string", "max": 1024, "pattern": "s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?" }, "SecurityGroupId": { "type": "string", "max": 32, "min": 1, "pattern": "[-0-9a-zA-Z]+" }, "SecurityGroupIds": { "type": "list", "member": { "shape": "SecurityGroupId" }, "max": 5, "min": 1 }, "SemiStructuredDocumentBlob": { "type": "blob", "min": 1 }, "SentimentDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

" }, "SentimentDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the sentiment detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned to the sentiment detection job

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the sentiment detection job. If the status is FAILED, the Messages field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the sentiment detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the sentiment detection job ended.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration that you supplied when you created the sentiment detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration that you supplied when you created the sentiment detection job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" } }, "documentation": "

Provides information about a sentiment detection job.

" }, "SentimentDetectionJobPropertiesList": { "type": "list", "member": { "shape": "SentimentDetectionJobProperties" } }, "SentimentScore": { "type": "structure", "members": { "Positive": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.

" }, "Negative": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

" }, "Neutral": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

" }, "Mixed": { "shape": "Float", "documentation": "

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

" } }, "documentation": "

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

" }, "SentimentType": { "type": "string", "enum": [ "POSITIVE", "NEGATIVE", "NEUTRAL", "MIXED" ] }, "Split": { "type": "string", "enum": [ "TRAIN", "TEST" ] }, "StartDocumentClassificationJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn" ], "members": { "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) of the document classifier to use to process the job.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the document classification job. A tag is a key-value pair that adds 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.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel associated with the model to use.

" } } }, "StartDocumentClassificationJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of the job, use this identifier with the DescribeDocumentClassificationJob operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the document classification job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job:

" }, "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The ARN of the custom classification model.

" } } }, "StartDominantLanguageDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

An identifier for the job.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the dominant language detection job. A tag is a key-value pair that adds 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.

" } } }, "StartDominantLanguageDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the dominant language detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:dominant-language-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" } } }, "StartEntitiesDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn", "LanguageCode" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

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.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

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. If custom entities recognition is used, this parameter is ignored and the language used for training the model is used instead.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the entities detection job. A tag is a key-value pair that adds 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.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel associated with the model to use.

" } } }, "StartEntitiesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of job, use this identifier with the operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:entities-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" }, "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The ARN of the custom entity recognition model.

" } } }, "StartEventsDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn", "LanguageCode", "TargetEventTypes" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the events detection job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "TargetEventTypes": { "shape": "TargetEventTypes", "documentation": "

The types of events to detect in the input documents.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the events detection job. A tag is a key-value pair that adds 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.

" } } }, "StartEventsDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the events detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the events detection job.

" } } }, "StartFlywheelIterationRequest": { "type": "structure", "required": [ "FlywheelArn" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The ARN of the flywheel.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

" } } }, "StartFlywheelIterationResponse": { "type": "structure", "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

" }, "FlywheelIterationId": { "shape": "FlywheelIterationId", "documentation": "

" } } }, "StartKeyPhrasesDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn", "LanguageCode" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the key phrases detection job. A tag is a key-value pair that adds 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.

" } } }, "StartKeyPhrasesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the key phrase detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:key-phrases-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" } } }, "StartPiiEntitiesDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "Mode", "DataAccessRoleArn", "LanguageCode" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input properties for a PII entities detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Provides configuration parameters for the output of PII entity detection jobs.

" }, "Mode": { "shape": "PiiEntitiesDetectionMode", "documentation": "

Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

" }, "RedactionConfig": { "shape": "RedactionConfig", "documentation": "

Provides configuration parameters for PII entity redaction.

This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. Enter the language code for English (en) or Spanish (es).

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the PII entities detection job. A tag is a key-value pair that adds 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.

" } } }, "StartPiiEntitiesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" } } }, "StartSentimentDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn", "LanguageCode" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the sentiment detection job. A tag is a key-value pair that adds 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.

" } } }, "StartSentimentDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" } } }, "StartTargetedSentimentDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn", "LanguageCode" ], "members": { "InputDataConfig": { "shape": "InputDataConfig" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

Specifies where to send the output files.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language of the input documents. Currently, English is the only supported language.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the 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:

" }, "VpcConfig": { "shape": "VpcConfig" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds 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.

" } } }, "StartTargetedSentimentDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of a job, use this identifier with the DescribeTargetedSentimentDetectionJob operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the targeted sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job.

" } } }, "StartTopicsDetectionJobRequest": { "type": "structure", "required": [ "InputDataConfig", "OutputDataConfig", "DataAccessRoleArn" ], "members": { "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

Specifies the format and location of the input data for the job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

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

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

" }, "JobName": { "shape": "JobName", "documentation": "

The identifier of the job.

" }, "NumberOfTopics": { "shape": "NumberOfTopicsInteger", "documentation": "

The number of topics to detect.

" }, "ClientRequestToken": { "shape": "ClientRequestTokenString", "documentation": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

", "idempotencyToken": true }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" }, "Tags": { "shape": "TagList", "documentation": "

Tags to associate with the topics detection job. A tag is a key-value pair that adds 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.

" } } }, "StartTopicsDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:topics-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the job:

" } } }, "StopDominantLanguageDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the dominant language detection job to stop.

" } } }, "StopDominantLanguageDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the dominant language detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopDominantLanguageDetectionJob operation.

" } } }, "StopEntitiesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the entities detection job to stop.

" } } }, "StopEntitiesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the entities detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopEntitiesDetectionJob operation.

" } } }, "StopEventsDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the events detection job to stop.

" } } }, "StopEventsDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the events detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the events detection job.

" } } }, "StopKeyPhrasesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the key phrases detection job to stop.

" } } }, "StopKeyPhrasesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the key phrases detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopKeyPhrasesDetectionJob operation.

" } } }, "StopPiiEntitiesDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the PII entities detection job to stop.

" } } }, "StopPiiEntitiesDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the PII entities detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The status of the PII entities detection job.

" } } }, "StopSentimentDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the sentiment detection job to stop.

" } } }, "StopSentimentDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the sentiment detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopSentimentDetectionJob operation.

" } } }, "StopTargetedSentimentDetectionJobRequest": { "type": "structure", "required": [ "JobId" ], "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the targeted sentiment detection job to stop.

" } } }, "StopTargetedSentimentDetectionJobResponse": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier of the targeted sentiment detection job to stop.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopSentimentDetectionJob operation.

" } } }, "StopTrainingDocumentClassifierRequest": { "type": "structure", "required": [ "DocumentClassifierArn" ], "members": { "DocumentClassifierArn": { "shape": "DocumentClassifierArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.

" } } }, "StopTrainingDocumentClassifierResponse": { "type": "structure", "members": {} }, "StopTrainingEntityRecognizerRequest": { "type": "structure", "required": [ "EntityRecognizerArn" ], "members": { "EntityRecognizerArn": { "shape": "EntityRecognizerArn", "documentation": "

The Amazon Resource Name (ARN) that identifies the entity recognizer currently being trained.

" } } }, "StopTrainingEntityRecognizerResponse": { "type": "structure", "members": {} }, "String": { "type": "string", "min": 1 }, "StringList": { "type": "list", "member": { "shape": "String" } }, "SubnetId": { "type": "string", "max": 32, "min": 1, "pattern": "[-0-9a-zA-Z]+" }, "Subnets": { "type": "list", "member": { "shape": "SubnetId" }, "max": 16, "min": 1 }, "SyntaxLanguageCode": { "type": "string", "enum": [ "en", "es", "fr", "de", "it", "pt" ] }, "SyntaxToken": { "type": "structure", "members": { "TokenId": { "shape": "Integer", "documentation": "

A unique identifier for a token.

" }, "Text": { "shape": "String", "documentation": "

The word that was recognized in the source text.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the first character in the word.

" }, "EndOffset": { "shape": "Integer", "documentation": "

The zero-based offset from the beginning of the source text to the last character in the word.

" }, "PartOfSpeech": { "shape": "PartOfSpeechTag", "documentation": "

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 Syntax in the Comprehend Developer Guide.

" } }, "documentation": "

Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.

" }, "Tag": { "type": "structure", "required": [ "Key" ], "members": { "Key": { "shape": "TagKey", "documentation": "

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.”

" }, "Value": { "shape": "TagValue", "documentation": "

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.

" } }, "documentation": "

A key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with the key-value pair ‘Department’:’Sales’ might be added to a resource to indicate its use by a particular department.

" }, "TagKey": { "type": "string", "max": 128, "min": 1 }, "TagKeyList": { "type": "list", "member": { "shape": "TagKey" } }, "TagList": { "type": "list", "member": { "shape": "Tag" } }, "TagResourceRequest": { "type": "structure", "required": [ "ResourceArn", "Tags" ], "members": { "ResourceArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.

" }, "Tags": { "shape": "TagList", "documentation": "

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.

" } } }, "TagResourceResponse": { "type": "structure", "members": {} }, "TagValue": { "type": "string", "max": 256, "min": 0 }, "TargetEventTypes": { "type": "list", "member": { "shape": "EventTypeString" }, "min": 1 }, "TargetedSentimentDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

Filters on the name of the job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the ListTargetedSentimentDetectionJobs operation.

" }, "TargetedSentimentDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the targeted sentiment detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the targeted sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name that you assigned to the targeted sentiment detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the targeted sentiment detection job. If the status is FAILED, the Messages field shows the reason for the failure.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description of the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the targeted sentiment detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the targeted sentiment detection job ended.

" }, "InputDataConfig": { "shape": "InputDataConfig" }, "OutputDataConfig": { "shape": "OutputDataConfig" }, "LanguageCode": { "shape": "LanguageCode", "documentation": "

The language code of the input documents.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt the data on the storage volume attached to the ML compute instance(s) that process the targeted sentiment detection job. The VolumeKmsKeyId can be either of the following formats:

" }, "VpcConfig": { "shape": "VpcConfig" } }, "documentation": "

Provides information about a targeted sentiment detection job.

" }, "TargetedSentimentDetectionJobPropertiesList": { "type": "list", "member": { "shape": "TargetedSentimentDetectionJobProperties" } }, "TargetedSentimentEntity": { "type": "structure", "members": { "DescriptiveMentionIndex": { "shape": "ListOfDescriptiveMentionIndices", "documentation": "

One or more index into the Mentions array that provides the best name for the entity group.

" }, "Mentions": { "shape": "ListOfMentions", "documentation": "

An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.

" } }, "documentation": "

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

" }, "TargetedSentimentEntityType": { "type": "string", "enum": [ "PERSON", "LOCATION", "ORGANIZATION", "FACILITY", "BRAND", "COMMERCIAL_ITEM", "MOVIE", "MUSIC", "BOOK", "SOFTWARE", "GAME", "PERSONAL_TITLE", "EVENT", "DATE", "QUANTITY", "ATTRIBUTE", "OTHER" ] }, "TargetedSentimentMention": { "type": "structure", "members": { "Score": { "shape": "Float", "documentation": "

Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

" }, "GroupScore": { "shape": "Float", "documentation": "

The confidence that all the entities mentioned in the group relate to the same entity.

" }, "Text": { "shape": "String", "documentation": "

The text in the document that identifies the entity.

" }, "Type": { "shape": "TargetedSentimentEntityType", "documentation": "

The type of the entity. Amazon Comprehend supports a variety of entity types.

" }, "MentionSentiment": { "shape": "MentionSentiment", "documentation": "

Contains the sentiment and sentiment score for the mention.

" }, "BeginOffset": { "shape": "Integer", "documentation": "

The offset into the document text where the mention begins.

" }, "EndOffset": { "shape": "Integer", "documentation": "

The offset into the document text where the mention ends.

" } }, "documentation": "

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

" }, "TaskConfig": { "type": "structure", "required": [ "LanguageCode" ], "members": { "LanguageCode": { "shape": "LanguageCode", "documentation": "

Language code for the language that the model supports.

" }, "DocumentClassificationConfig": { "shape": "DocumentClassificationConfig", "documentation": "

Configuration required for a document classification model.

" }, "EntityRecognitionConfig": { "shape": "EntityRecognitionConfig", "documentation": "

Configuration required for an entity recognition model.

" } }, "documentation": "

Configuration about the model associated with a flywheel.

" }, "TextSegment": { "type": "structure", "required": [ "Text" ], "members": { "Text": { "shape": "CustomerInputString", "documentation": "

The text content.

" } }, "documentation": "

One of the of text strings. Each string has a size limit of 1KB.

" }, "Timestamp": { "type": "timestamp" }, "TopicsDetectionJobFilter": { "type": "structure", "members": { "JobName": { "shape": "JobName", "documentation": "

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

Filters the list of topic detection jobs based on job status. Returns only jobs with the specified status.

" }, "SubmitTimeBefore": { "shape": "Timestamp", "documentation": "

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.

" }, "SubmitTimeAfter": { "shape": "Timestamp", "documentation": "

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.

" } }, "documentation": "

Provides information for filtering topic detection jobs. For more information, see .

" }, "TopicsDetectionJobProperties": { "type": "structure", "members": { "JobId": { "shape": "JobId", "documentation": "

The identifier assigned to the topic detection job.

" }, "JobArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:topics-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:topics-detection-job/1234abcd12ab34cd56ef1234567890ab

" }, "JobName": { "shape": "JobName", "documentation": "

The name of the topic detection job.

" }, "JobStatus": { "shape": "JobStatus", "documentation": "

The current status of the topic detection job. If the status is Failed, the reason for the failure is shown in the Message field.

" }, "Message": { "shape": "AnyLengthString", "documentation": "

A description for the status of a job.

" }, "SubmitTime": { "shape": "Timestamp", "documentation": "

The time that the topic detection job was submitted for processing.

" }, "EndTime": { "shape": "Timestamp", "documentation": "

The time that the topic detection job was completed.

" }, "InputDataConfig": { "shape": "InputDataConfig", "documentation": "

The input data configuration supplied when you created the topic detection job.

" }, "OutputDataConfig": { "shape": "OutputDataConfig", "documentation": "

The output data configuration supplied when you created the topic detection job.

" }, "NumberOfTopics": { "shape": "Integer", "documentation": "

The number of topics to detect supplied when you created the topic detection job. The default is 10.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your job data.

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the Amazon Web Services 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:

" }, "VpcConfig": { "shape": "VpcConfig", "documentation": "

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.

" } }, "documentation": "

Provides information about a topic detection job.

" }, "TopicsDetectionJobPropertiesList": { "type": "list", "member": { "shape": "TopicsDetectionJobProperties" } }, "ToxicContent": { "type": "structure", "members": { "Name": { "shape": "ToxicContentType", "documentation": "

The name of the toxic content type.

" }, "Score": { "shape": "Float", "documentation": "

Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.

" } }, "documentation": "

Toxic content analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide

" }, "ToxicContentType": { "type": "string", "enum": [ "GRAPHIC", "HARASSMENT_OR_ABUSE", "HATE_SPEECH", "INSULT", "PROFANITY", "SEXUAL", "VIOLENCE_OR_THREAT" ] }, "ToxicLabels": { "type": "structure", "members": { "Labels": { "shape": "ListOfToxicContent", "documentation": "

Array of toxic content types identified in the string.

" }, "Toxicity": { "shape": "Float", "documentation": "

Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.

" } }, "documentation": "

Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

" }, "UntagResourceRequest": { "type": "structure", "required": [ "ResourceArn", "TagKeys" ], "members": { "ResourceArn": { "shape": "ComprehendArn", "documentation": "

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you want to remove the tags.

" }, "TagKeys": { "shape": "TagKeyList", "documentation": "

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.

" } } }, "UntagResourceResponse": { "type": "structure", "members": {} }, "UpdateDataSecurityConfig": { "type": "structure", "members": { "ModelKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:

" }, "VolumeKmsKeyId": { "shape": "KmsKeyId", "documentation": "

ID for the KMS key that Amazon Comprehend uses to encrypt the volume.

" }, "VpcConfig": { "shape": "VpcConfig" } }, "documentation": "

Data security configuration.

" }, "UpdateEndpointRequest": { "type": "structure", "required": [ "EndpointArn" ], "members": { "EndpointArn": { "shape": "ComprehendEndpointArn", "documentation": "

The Amazon Resource Number (ARN) of the endpoint being updated.

" }, "DesiredModelArn": { "shape": "ComprehendModelArn", "documentation": "

The ARN of the new model to use when updating an existing endpoint.

" }, "DesiredInferenceUnits": { "shape": "InferenceUnitsInteger", "documentation": "

The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

" }, "DesiredDataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

Data access role ARN to use in case the new model is encrypted with a customer CMK.

" }, "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel

" } } }, "UpdateEndpointResponse": { "type": "structure", "members": { "DesiredModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the new model.

" } } }, "UpdateFlywheelRequest": { "type": "structure", "required": [ "FlywheelArn" ], "members": { "FlywheelArn": { "shape": "ComprehendFlywheelArn", "documentation": "

The Amazon Resource Number (ARN) of the flywheel to update.

" }, "ActiveModelArn": { "shape": "ComprehendModelArn", "documentation": "

The Amazon Resource Number (ARN) of the active model version.

" }, "DataAccessRoleArn": { "shape": "IamRoleArn", "documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.

" }, "DataSecurityConfig": { "shape": "UpdateDataSecurityConfig", "documentation": "

Flywheel data security configuration.

" } } }, "UpdateFlywheelResponse": { "type": "structure", "members": { "FlywheelProperties": { "shape": "FlywheelProperties", "documentation": "

The flywheel properties.

" } } }, "VersionName": { "type": "string", "max": 63, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "VpcConfig": { "type": "structure", "required": [ "SecurityGroupIds", "Subnets" ], "members": { "SecurityGroupIds": { "shape": "SecurityGroupIds", "documentation": "

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.

" }, "Subnets": { "shape": "Subnets", "documentation": "

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.

" } }, "documentation": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

" }, "WarningsListItem": { "type": "structure", "members": { "Page": { "shape": "Integer", "documentation": "

Page number in the input document.

" }, "WarnCode": { "shape": "PageBasedWarningCode", "documentation": "

The type of warning.

" }, "WarnMessage": { "shape": "String", "documentation": "

Text message associated with the warning.

" } }, "documentation": "

The system identified one of the following warnings while processing the input document:

" } }, "documentation": "

Amazon Comprehend is an Amazon Web Services service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more.

" }