libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.Lens

Contents

Description

 
Synopsis

Operations

BatchDetectSentiment

batchDetectSentiment_textList :: Lens' BatchDetectSentiment [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.

batchDetectSentiment_languageCode :: Lens' BatchDetectSentiment LanguageCode Source #

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_resultList :: Lens' BatchDetectSentimentResponse [BatchDetectSentimentItemResult] Source #

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.

batchDetectSentimentResponse_errorList :: Lens' BatchDetectSentimentResponse [BatchItemError] Source #

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.

DeleteEntityRecognizer

deleteEntityRecognizer_entityRecognizerArn :: Lens' DeleteEntityRecognizer Text Source #

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

DescribeKeyPhrasesDetectionJob

describeKeyPhrasesDetectionJob_jobId :: Lens' DescribeKeyPhrasesDetectionJob Text Source #

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

ListEntitiesDetectionJobs

listEntitiesDetectionJobs_nextToken :: Lens' ListEntitiesDetectionJobs (Maybe Text) Source #

Identifies the next page of results to return.

listEntitiesDetectionJobs_filter :: Lens' ListEntitiesDetectionJobs (Maybe EntitiesDetectionJobFilter) Source #

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.

listEntitiesDetectionJobs_maxResults :: Lens' ListEntitiesDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

CreateEndpoint

createEndpoint_dataAccessRoleArn :: Lens' CreateEndpoint (Maybe Text) Source #

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

createEndpoint_clientRequestToken :: Lens' CreateEndpoint (Maybe Text) Source #

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

createEndpoint_tags :: Lens' CreateEndpoint (Maybe [Tag]) Source #

Tags associated with the endpoint being created. 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.

createEndpoint_endpointName :: Lens' CreateEndpoint Text Source #

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

createEndpoint_modelArn :: Lens' CreateEndpoint Text Source #

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

createEndpoint_desiredInferenceUnits :: Lens' CreateEndpoint Natural Source #

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.

createEndpointResponse_endpointArn :: Lens' CreateEndpointResponse (Maybe Text) Source #

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

StopEventsDetectionJob

stopEventsDetectionJob_jobId :: Lens' StopEventsDetectionJob Text Source #

The identifier of the events detection job to stop.

stopEventsDetectionJobResponse_jobId :: Lens' StopEventsDetectionJobResponse (Maybe Text) Source #

The identifier of the events detection job to stop.

StartSentimentDetectionJob

startSentimentDetectionJob_vpcConfig :: Lens' StartSentimentDetectionJob (Maybe VpcConfig) Source #

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.

startSentimentDetectionJob_volumeKmsKeyId :: Lens' StartSentimentDetectionJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startSentimentDetectionJob_clientRequestToken :: Lens' StartSentimentDetectionJob (Maybe Text) Source #

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

startSentimentDetectionJob_tags :: Lens' StartSentimentDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startSentimentDetectionJob_inputDataConfig :: Lens' StartSentimentDetectionJob InputDataConfig Source #

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

startSentimentDetectionJob_dataAccessRoleArn :: Lens' StartSentimentDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

startSentimentDetectionJob_languageCode :: Lens' StartSentimentDetectionJob LanguageCode Source #

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.

startSentimentDetectionJobResponse_jobId :: Lens' StartSentimentDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

startSentimentDetectionJobResponse_jobArn :: Lens' StartSentimentDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startSentimentDetectionJobResponse_jobStatus :: Lens' StartSentimentDetectionJobResponse (Maybe JobStatus) Source #

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the operation.

BatchDetectSyntax

batchDetectSyntax_textList :: Lens' BatchDetectSyntax [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.

batchDetectSyntax_languageCode :: Lens' BatchDetectSyntax SyntaxLanguageCode Source #

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_resultList :: Lens' BatchDetectSyntaxResponse [BatchDetectSyntaxItemResult] Source #

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.

batchDetectSyntaxResponse_errorList :: Lens' BatchDetectSyntaxResponse [BatchItemError] Source #

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.

StartTopicsDetectionJob

startTopicsDetectionJob_vpcConfig :: Lens' StartTopicsDetectionJob (Maybe VpcConfig) Source #

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.

startTopicsDetectionJob_volumeKmsKeyId :: Lens' StartTopicsDetectionJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startTopicsDetectionJob_clientRequestToken :: Lens' StartTopicsDetectionJob (Maybe Text) Source #

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

startTopicsDetectionJob_tags :: Lens' StartTopicsDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startTopicsDetectionJob_inputDataConfig :: Lens' StartTopicsDetectionJob InputDataConfig Source #

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

startTopicsDetectionJob_outputDataConfig :: Lens' StartTopicsDetectionJob OutputDataConfig Source #

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

startTopicsDetectionJob_dataAccessRoleArn :: Lens' StartTopicsDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

startTopicsDetectionJobResponse_jobId :: Lens' StartTopicsDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.

startTopicsDetectionJobResponse_jobArn :: Lens' StartTopicsDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startTopicsDetectionJobResponse_jobStatus :: Lens' StartTopicsDetectionJobResponse (Maybe JobStatus) Source #

The status of the job:

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.

DescribeEventsDetectionJob

describeEventsDetectionJob_jobId :: Lens' DescribeEventsDetectionJob Text Source #

The identifier of the events detection job.

DeleteEndpoint

deleteEndpoint_endpointArn :: Lens' DeleteEndpoint Text Source #

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

UpdateEndpoint

updateEndpoint_desiredModelArn :: Lens' UpdateEndpoint (Maybe Text) Source #

The ARN of the new model to use when updating an existing endpoint.

updateEndpoint_desiredInferenceUnits :: Lens' UpdateEndpoint (Maybe Natural) Source #

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.

updateEndpoint_desiredDataAccessRoleArn :: Lens' UpdateEndpoint (Maybe Text) Source #

Data access role ARN to use in case the new model is encrypted with a customer CMK.

updateEndpoint_endpointArn :: Lens' UpdateEndpoint Text Source #

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

ListTagsForResource

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.

listTagsForResourceResponse_resourceArn :: Lens' ListTagsForResourceResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying.

listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #

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.

BatchDetectKeyPhrases

batchDetectKeyPhrases_textList :: Lens' BatchDetectKeyPhrases [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.

batchDetectKeyPhrases_languageCode :: Lens' BatchDetectKeyPhrases LanguageCode Source #

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_resultList :: Lens' BatchDetectKeyPhrasesResponse [BatchDetectKeyPhrasesItemResult] Source #

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.

batchDetectKeyPhrasesResponse_errorList :: Lens' BatchDetectKeyPhrasesResponse [BatchItemError] Source #

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.

DescribeSentimentDetectionJob

describeSentimentDetectionJob_jobId :: Lens' DescribeSentimentDetectionJob Text Source #

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

StartEntitiesDetectionJob

startEntitiesDetectionJob_entityRecognizerArn :: Lens' StartEntitiesDetectionJob (Maybe Text) Source #

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.

startEntitiesDetectionJob_vpcConfig :: Lens' StartEntitiesDetectionJob (Maybe VpcConfig) Source #

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.

startEntitiesDetectionJob_volumeKmsKeyId :: Lens' StartEntitiesDetectionJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startEntitiesDetectionJob_clientRequestToken :: Lens' StartEntitiesDetectionJob (Maybe Text) Source #

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

startEntitiesDetectionJob_tags :: Lens' StartEntitiesDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startEntitiesDetectionJob_inputDataConfig :: Lens' StartEntitiesDetectionJob InputDataConfig Source #

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

startEntitiesDetectionJob_dataAccessRoleArn :: Lens' StartEntitiesDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

startEntitiesDetectionJob_languageCode :: Lens' StartEntitiesDetectionJob LanguageCode Source #

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.

startEntitiesDetectionJobResponse_jobId :: Lens' StartEntitiesDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of job, use this identifier with the operation.

startEntitiesDetectionJobResponse_jobArn :: Lens' StartEntitiesDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the entities detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startEntitiesDetectionJobResponse_jobStatus :: Lens' StartEntitiesDetectionJobResponse (Maybe JobStatus) Source #

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the operation.
  • STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request.
  • STOPPED - The job was successfully stopped without completing.

StopPiiEntitiesDetectionJob

stopPiiEntitiesDetectionJob_jobId :: Lens' StopPiiEntitiesDetectionJob Text Source #

The identifier of the PII entities detection job to stop.

stopPiiEntitiesDetectionJobResponse_jobId :: Lens' StopPiiEntitiesDetectionJobResponse (Maybe Text) Source #

The identifier of the PII entities detection job to stop.

DescribeEntityRecognizer

describeEntityRecognizer_entityRecognizerArn :: Lens' DescribeEntityRecognizer Text Source #

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

DetectSentiment

detectSentiment_text :: Lens' DetectSentiment Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

detectSentiment_languageCode :: Lens' DetectSentiment LanguageCode Source #

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_sentiment :: Lens' DetectSentimentResponse (Maybe SentimentType) Source #

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

detectSentimentResponse_sentimentScore :: Lens' DetectSentimentResponse (Maybe SentimentScore) Source #

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

StartDominantLanguageDetectionJob

startDominantLanguageDetectionJob_vpcConfig :: Lens' StartDominantLanguageDetectionJob (Maybe VpcConfig) Source #

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.

startDominantLanguageDetectionJob_volumeKmsKeyId :: Lens' StartDominantLanguageDetectionJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startDominantLanguageDetectionJob_clientRequestToken :: Lens' StartDominantLanguageDetectionJob (Maybe Text) Source #

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

startDominantLanguageDetectionJob_tags :: Lens' StartDominantLanguageDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startDominantLanguageDetectionJob_dataAccessRoleArn :: Lens' StartDominantLanguageDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

startDominantLanguageDetectionJobResponse_jobId :: Lens' StartDominantLanguageDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

startDominantLanguageDetectionJobResponse_jobArn :: Lens' StartDominantLanguageDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the dominant language detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startDominantLanguageDetectionJobResponse_jobStatus :: Lens' StartDominantLanguageDetectionJobResponse (Maybe JobStatus) Source #

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the operation.

StopTrainingDocumentClassifier

stopTrainingDocumentClassifier_documentClassifierArn :: Lens' StopTrainingDocumentClassifier Text Source #

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

DescribeDocumentClassificationJob

describeDocumentClassificationJob_jobId :: Lens' DescribeDocumentClassificationJob Text Source #

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

ContainsPiiEntities

containsPiiEntities_text :: Lens' ContainsPiiEntities Text Source #

Creates a new document classification request to analyze a single document in real-time, returning personally identifiable information (PII) entity labels.

containsPiiEntitiesResponse_labels :: Lens' ContainsPiiEntitiesResponse (Maybe [EntityLabel]) Source #

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

ListEventsDetectionJobs

listEventsDetectionJobs_nextToken :: Lens' ListEventsDetectionJobs (Maybe Text) Source #

Identifies the next page of results to return.

listEventsDetectionJobs_filter :: Lens' ListEventsDetectionJobs (Maybe EventsDetectionJobFilter) Source #

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.

listEventsDetectionJobs_maxResults :: Lens' ListEventsDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page.

BatchDetectEntities

batchDetectEntities_textList :: Lens' BatchDetectEntities [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer than 5,000 bytes of UTF-8 encoded characters.

batchDetectEntities_languageCode :: Lens' BatchDetectEntities LanguageCode Source #

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_resultList :: Lens' BatchDetectEntitiesResponse [BatchDetectEntitiesItemResult] Source #

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.

batchDetectEntitiesResponse_errorList :: Lens' BatchDetectEntitiesResponse [BatchItemError] Source #

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.

CreateEntityRecognizer

createEntityRecognizer_versionName :: Lens' CreateEntityRecognizer (Maybe Text) Source #

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/ AWS Region.

createEntityRecognizer_modelKmsKeyId :: Lens' CreateEntityRecognizer (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

createEntityRecognizer_vpcConfig :: Lens' CreateEntityRecognizer (Maybe VpcConfig) Source #

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.

createEntityRecognizer_volumeKmsKeyId :: Lens' CreateEntityRecognizer (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

createEntityRecognizer_clientRequestToken :: Lens' CreateEntityRecognizer (Maybe Text) Source #

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

createEntityRecognizer_tags :: Lens' CreateEntityRecognizer (Maybe [Tag]) Source #

Tags to be associated with the entity recognizer being created. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

createEntityRecognizer_recognizerName :: Lens' CreateEntityRecognizer Text Source #

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.

createEntityRecognizer_dataAccessRoleArn :: Lens' CreateEntityRecognizer Text Source #

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

createEntityRecognizer_inputDataConfig :: Lens' CreateEntityRecognizer EntityRecognizerInputDataConfig Source #

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.

createEntityRecognizer_languageCode :: Lens' CreateEntityRecognizer LanguageCode Source #

You can specify any of the following languages supported by Amazon Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the same language.

createEntityRecognizerResponse_entityRecognizerArn :: Lens' CreateEntityRecognizerResponse (Maybe Text) Source #

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

StopKeyPhrasesDetectionJob

stopKeyPhrasesDetectionJob_jobId :: Lens' StopKeyPhrasesDetectionJob Text Source #

The identifier of the key phrases detection job to stop.

stopKeyPhrasesDetectionJobResponse_jobId :: Lens' StopKeyPhrasesDetectionJobResponse (Maybe Text) Source #

The identifier of the key phrases detection job to stop.

stopKeyPhrasesDetectionJobResponse_jobStatus :: Lens' StopKeyPhrasesDetectionJobResponse (Maybe JobStatus) Source #

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopKeyPhrasesDetectionJob operation.

CreateDocumentClassifier

createDocumentClassifier_versionName :: Lens' CreateDocumentClassifier (Maybe Text) Source #

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 account/AWS Region.

createDocumentClassifier_modelKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text) Source #

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

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

createDocumentClassifier_mode :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierMode) Source #

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

createDocumentClassifier_vpcConfig :: Lens' CreateDocumentClassifier (Maybe VpcConfig) Source #

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.

createDocumentClassifier_volumeKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

createDocumentClassifier_outputDataConfig :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierOutputDataConfig) Source #

Enables the addition of output results configuration parameters for custom classifier jobs.

createDocumentClassifier_clientRequestToken :: Lens' CreateDocumentClassifier (Maybe Text) Source #

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

createDocumentClassifier_tags :: Lens' CreateDocumentClassifier (Maybe [Tag]) Source #

Tags to be associated with the document classifier being created. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

createDocumentClassifier_dataAccessRoleArn :: Lens' CreateDocumentClassifier Text Source #

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

createDocumentClassifier_languageCode :: Lens' CreateDocumentClassifier LanguageCode Source #

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.

createDocumentClassifierResponse_documentClassifierArn :: Lens' CreateDocumentClassifierResponse (Maybe Text) Source #

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

ListPiiEntitiesDetectionJobs

listPiiEntitiesDetectionJobs_filter :: Lens' ListPiiEntitiesDetectionJobs (Maybe PiiEntitiesDetectionJobFilter) Source #

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.

listPiiEntitiesDetectionJobs_maxResults :: Lens' ListPiiEntitiesDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page.

ListEntityRecognizers

listEntityRecognizers_nextToken :: Lens' ListEntityRecognizers (Maybe Text) Source #

Identifies the next page of results to return.

listEntityRecognizers_filter :: Lens' ListEntityRecognizers (Maybe EntityRecognizerFilter) Source #

Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, or SubmitTimeAfter. You can only set one filter at a time.

listEntityRecognizers_maxResults :: Lens' ListEntityRecognizers (Maybe Natural) Source #

The maximum number of results to return on each page. The default is 100.

StopSentimentDetectionJob

stopSentimentDetectionJob_jobId :: Lens' StopSentimentDetectionJob Text Source #

The identifier of the sentiment detection job to stop.

stopSentimentDetectionJobResponse_jobId :: Lens' StopSentimentDetectionJobResponse (Maybe Text) Source #

The identifier of the sentiment detection job to stop.

stopSentimentDetectionJobResponse_jobStatus :: Lens' StopSentimentDetectionJobResponse (Maybe JobStatus) Source #

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopSentimentDetectionJob operation.

DetectDominantLanguage

detectDominantLanguage_text :: Lens' DetectDominantLanguage Text Source #

A UTF-8 text string. Each string should contain at least 20 characters and must contain fewer that 5,000 bytes of UTF-8 encoded characters.

detectDominantLanguageResponse_languages :: Lens' DetectDominantLanguageResponse (Maybe [DominantLanguage]) Source #

The languages that Amazon Comprehend detected in the input text. For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

ClassifyDocument

classifyDocument_text :: Lens' ClassifyDocument Text Source #

The document text to be analyzed.

classifyDocument_endpointArn :: Lens' ClassifyDocument Text Source #

The Amazon Resource Number (ARN) of the endpoint.

classifyDocumentResponse_labels :: Lens' ClassifyDocumentResponse (Maybe [DocumentLabel]) Source #

The labels used 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.

classifyDocumentResponse_classes :: Lens' ClassifyDocumentResponse (Maybe [DocumentClass]) Source #

The classes used by the document being analyzed. These are used for multi-class trained models. 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.

StartEventsDetectionJob

startEventsDetectionJob_jobName :: Lens' StartEventsDetectionJob (Maybe Text) Source #

The identifier of the events detection job.

startEventsDetectionJob_clientRequestToken :: Lens' StartEventsDetectionJob (Maybe Text) Source #

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

startEventsDetectionJob_tags :: Lens' StartEventsDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startEventsDetectionJob_inputDataConfig :: Lens' StartEventsDetectionJob InputDataConfig Source #

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

startEventsDetectionJob_dataAccessRoleArn :: Lens' StartEventsDetectionJob Text Source #

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

startEventsDetectionJob_targetEventTypes :: Lens' StartEventsDetectionJob (NonEmpty Text) Source #

The types of events to detect in the input documents.

startEventsDetectionJobResponse_jobId :: Lens' StartEventsDetectionJobResponse (Maybe Text) Source #

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

startEventsDetectionJobResponse_jobArn :: Lens' StartEventsDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the events detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

DescribeTopicsDetectionJob

describeTopicsDetectionJob_jobId :: Lens' DescribeTopicsDetectionJob Text Source #

The identifier assigned by the user to the detection job.

ListDocumentClassificationJobs

listDocumentClassificationJobs_filter :: Lens' ListDocumentClassificationJobs (Maybe DocumentClassificationJobFilter) Source #

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.

listDocumentClassificationJobs_maxResults :: Lens' ListDocumentClassificationJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

DetectPiiEntities

detectPiiEntities_text :: Lens' DetectPiiEntities Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

detectPiiEntitiesResponse_entities :: Lens' DetectPiiEntitiesResponse (Maybe [PiiEntity]) Source #

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.

ListEndpoints

listEndpoints_nextToken :: Lens' ListEndpoints (Maybe Text) Source #

Identifies the next page of results to return.

listEndpoints_filter :: Lens' ListEndpoints (Maybe EndpointFilter) Source #

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.

listEndpoints_maxResults :: Lens' ListEndpoints (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

listEndpointsResponse_endpointPropertiesList :: Lens' ListEndpointsResponse (Maybe [EndpointProperties]) Source #

Displays a list of endpoint properties being retrieved by the service in response to the request.

listEndpointsResponse_nextToken :: Lens' ListEndpointsResponse (Maybe Text) Source #

Identifies the next page of results to return.

DetectEntities

detectEntities_languageCode :: Lens' DetectEntities (Maybe LanguageCode) Source #

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.

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.

detectEntities_endpointArn :: Lens' DetectEntities (Maybe Text) Source #

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.

detectEntities_text :: Lens' DetectEntities Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

detectEntitiesResponse_entities :: Lens' DetectEntitiesResponse (Maybe [Entity]) Source #

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 how-entities.

DescribeDocumentClassifier

describeDocumentClassifier_documentClassifierArn :: Lens' DescribeDocumentClassifier Text Source #

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

DescribeDominantLanguageDetectionJob

describeDominantLanguageDetectionJob_jobId :: Lens' DescribeDominantLanguageDetectionJob Text Source #

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

ListEntityRecognizerSummaries

listEntityRecognizerSummaries_maxResults :: Lens' ListEntityRecognizerSummaries (Maybe Natural) Source #

The maximum number of results to return on each page. The default is 100.

StopEntitiesDetectionJob

stopEntitiesDetectionJob_jobId :: Lens' StopEntitiesDetectionJob Text Source #

The identifier of the entities detection job to stop.

stopEntitiesDetectionJobResponse_jobId :: Lens' StopEntitiesDetectionJobResponse (Maybe Text) Source #

The identifier of the entities detection job to stop.

stopEntitiesDetectionJobResponse_jobStatus :: Lens' StopEntitiesDetectionJobResponse (Maybe JobStatus) Source #

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopEntitiesDetectionJob operation.

StopTrainingEntityRecognizer

stopTrainingEntityRecognizer_entityRecognizerArn :: Lens' StopTrainingEntityRecognizer Text Source #

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

StartPiiEntitiesDetectionJob

startPiiEntitiesDetectionJob_redactionConfig :: Lens' StartPiiEntitiesDetectionJob (Maybe RedactionConfig) Source #

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.

startPiiEntitiesDetectionJob_clientRequestToken :: Lens' StartPiiEntitiesDetectionJob (Maybe Text) Source #

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

startPiiEntitiesDetectionJob_tags :: Lens' StartPiiEntitiesDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startPiiEntitiesDetectionJob_outputDataConfig :: Lens' StartPiiEntitiesDetectionJob OutputDataConfig Source #

Provides configuration parameters for the output of PII entity detection jobs.

startPiiEntitiesDetectionJob_mode :: Lens' StartPiiEntitiesDetectionJob PiiEntitiesDetectionMode Source #

Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

startPiiEntitiesDetectionJob_dataAccessRoleArn :: Lens' StartPiiEntitiesDetectionJob Text Source #

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

startPiiEntitiesDetectionJobResponse_jobArn :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

ListKeyPhrasesDetectionJobs

listKeyPhrasesDetectionJobs_nextToken :: Lens' ListKeyPhrasesDetectionJobs (Maybe Text) Source #

Identifies the next page of results to return.

listKeyPhrasesDetectionJobs_filter :: Lens' ListKeyPhrasesDetectionJobs (Maybe KeyPhrasesDetectionJobFilter) Source #

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.

listKeyPhrasesDetectionJobs_maxResults :: Lens' ListKeyPhrasesDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

DescribeEntitiesDetectionJob

describeEntitiesDetectionJob_jobId :: Lens' DescribeEntitiesDetectionJob Text Source #

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

ListDocumentClassifierSummaries

listDocumentClassifierSummaries_maxResults :: Lens' ListDocumentClassifierSummaries (Maybe Natural) Source #

The maximum number of results to return on each page. The default is 100.

StopDominantLanguageDetectionJob

stopDominantLanguageDetectionJob_jobId :: Lens' StopDominantLanguageDetectionJob Text Source #

The identifier of the dominant language detection job to stop.

stopDominantLanguageDetectionJobResponse_jobId :: Lens' StopDominantLanguageDetectionJobResponse (Maybe Text) Source #

The identifier of the dominant language detection job to stop.

stopDominantLanguageDetectionJobResponse_jobStatus :: Lens' StopDominantLanguageDetectionJobResponse (Maybe JobStatus) Source #

Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopDominantLanguageDetectionJob operation.

TagResource

tagResource_resourceArn :: Lens' TagResource Text Source #

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.

tagResource_tags :: Lens' TagResource [Tag] Source #

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.

DescribePiiEntitiesDetectionJob

describePiiEntitiesDetectionJob_jobId :: Lens' DescribePiiEntitiesDetectionJob Text Source #

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

ListTopicsDetectionJobs

listTopicsDetectionJobs_nextToken :: Lens' ListTopicsDetectionJobs (Maybe Text) Source #

Identifies the next page of results to return.

listTopicsDetectionJobs_filter :: Lens' ListTopicsDetectionJobs (Maybe TopicsDetectionJobFilter) Source #

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.

listTopicsDetectionJobs_maxResults :: Lens' ListTopicsDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

UntagResource

untagResource_resourceArn :: Lens' UntagResource Text Source #

The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you want to remove the tags.

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

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.

BatchDetectDominantLanguage

batchDetectDominantLanguage_textList :: Lens' BatchDetectDominantLanguage [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

batchDetectDominantLanguageResponse_resultList :: Lens' BatchDetectDominantLanguageResponse [BatchDetectDominantLanguageItemResult] Source #

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.

batchDetectDominantLanguageResponse_errorList :: Lens' BatchDetectDominantLanguageResponse [BatchItemError] Source #

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.

StartDocumentClassificationJob

startDocumentClassificationJob_vpcConfig :: Lens' StartDocumentClassificationJob (Maybe VpcConfig) Source #

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.

startDocumentClassificationJob_volumeKmsKeyId :: Lens' StartDocumentClassificationJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startDocumentClassificationJob_clientRequestToken :: Lens' StartDocumentClassificationJob (Maybe Text) Source #

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

startDocumentClassificationJob_tags :: Lens' StartDocumentClassificationJob (Maybe [Tag]) Source #

Tags to be associated 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.

startDocumentClassificationJob_documentClassifierArn :: Lens' StartDocumentClassificationJob Text Source #

The Amazon Resource Name (ARN) of the document classifier to use to process the job.

startDocumentClassificationJob_inputDataConfig :: Lens' StartDocumentClassificationJob InputDataConfig Source #

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

startDocumentClassificationJob_dataAccessRoleArn :: Lens' StartDocumentClassificationJob Text Source #

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

startDocumentClassificationJobResponse_jobId :: Lens' StartDocumentClassificationJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of the job, use this identifier with the operation.

startDocumentClassificationJobResponse_jobArn :: Lens' StartDocumentClassificationJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the document classification job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startDocumentClassificationJobResponse_jobStatus :: Lens' StartDocumentClassificationJobResponse (Maybe JobStatus) Source #

The status of the job:

  • SUBMITTED - The job has been received and queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. For details, use the operation.
  • STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request.
  • STOPPED - The job was successfully stopped without completing.

DetectKeyPhrases

detectKeyPhrases_text :: Lens' DetectKeyPhrases Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

detectKeyPhrases_languageCode :: Lens' DetectKeyPhrases LanguageCode Source #

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_keyPhrases :: Lens' DetectKeyPhrasesResponse (Maybe [KeyPhrase]) Source #

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.

DetectSyntax

detectSyntax_text :: Lens' DetectSyntax Text Source #

A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.

detectSyntax_languageCode :: Lens' DetectSyntax SyntaxLanguageCode Source #

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_syntaxTokens :: Lens' DetectSyntaxResponse (Maybe [SyntaxToken]) Source #

A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.

DescribeEndpoint

describeEndpoint_endpointArn :: Lens' DescribeEndpoint Text Source #

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

describeEndpointResponse_endpointProperties :: Lens' DescribeEndpointResponse (Maybe EndpointProperties) Source #

Describes information associated with the specific endpoint.

ListSentimentDetectionJobs

listSentimentDetectionJobs_nextToken :: Lens' ListSentimentDetectionJobs (Maybe Text) Source #

Identifies the next page of results to return.

listSentimentDetectionJobs_filter :: Lens' ListSentimentDetectionJobs (Maybe SentimentDetectionJobFilter) Source #

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.

listSentimentDetectionJobs_maxResults :: Lens' ListSentimentDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

DeleteDocumentClassifier

deleteDocumentClassifier_documentClassifierArn :: Lens' DeleteDocumentClassifier Text Source #

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

ListDominantLanguageDetectionJobs

listDominantLanguageDetectionJobs_filter :: Lens' ListDominantLanguageDetectionJobs (Maybe DominantLanguageDetectionJobFilter) Source #

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.

listDominantLanguageDetectionJobs_maxResults :: Lens' ListDominantLanguageDetectionJobs (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

StartKeyPhrasesDetectionJob

startKeyPhrasesDetectionJob_vpcConfig :: Lens' StartKeyPhrasesDetectionJob (Maybe VpcConfig) Source #

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.

startKeyPhrasesDetectionJob_volumeKmsKeyId :: Lens' StartKeyPhrasesDetectionJob (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

startKeyPhrasesDetectionJob_clientRequestToken :: Lens' StartKeyPhrasesDetectionJob (Maybe Text) Source #

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

startKeyPhrasesDetectionJob_tags :: Lens' StartKeyPhrasesDetectionJob (Maybe [Tag]) Source #

Tags to be associated 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.

startKeyPhrasesDetectionJob_inputDataConfig :: Lens' StartKeyPhrasesDetectionJob InputDataConfig Source #

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

startKeyPhrasesDetectionJob_dataAccessRoleArn :: Lens' StartKeyPhrasesDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

startKeyPhrasesDetectionJob_languageCode :: Lens' StartKeyPhrasesDetectionJob LanguageCode Source #

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.

startKeyPhrasesDetectionJobResponse_jobId :: Lens' StartKeyPhrasesDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

startKeyPhrasesDetectionJobResponse_jobArn :: Lens' StartKeyPhrasesDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the key phrase detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

startKeyPhrasesDetectionJobResponse_jobStatus :: Lens' StartKeyPhrasesDetectionJobResponse (Maybe JobStatus) Source #

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the operation.

ListDocumentClassifiers

listDocumentClassifiers_nextToken :: Lens' ListDocumentClassifiers (Maybe Text) Source #

Identifies the next page of results to return.

listDocumentClassifiers_filter :: Lens' ListDocumentClassifiers (Maybe DocumentClassifierFilter) Source #

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.

listDocumentClassifiers_maxResults :: Lens' ListDocumentClassifiers (Maybe Natural) Source #

The maximum number of results to return in each page. The default is 100.

Types

AugmentedManifestsListItem

augmentedManifestsListItem_sourceDocumentsS3Uri :: Lens' AugmentedManifestsListItem (Maybe Text) Source #

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

augmentedManifestsListItem_documentType :: Lens' AugmentedManifestsListItem (Maybe AugmentedManifestsDocumentTypeFormat) Source #

The type of augmented manifest. PlainTextDocument or SemiStructuredDocument. 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.
  • SEMI_STRUCTURED_DOCUMENT A document type with positional and structural context, like a PDF. For training with Amazon Comprehend, only PDFs are supported. For inference, Amazon Comprehend support PDFs, DOCX and TXT.

augmentedManifestsListItem_split :: Lens' AugmentedManifestsListItem (Maybe Split) Source #

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.

augmentedManifestsListItem_annotationDataS3Uri :: Lens' AugmentedManifestsListItem (Maybe Text) Source #

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

augmentedManifestsListItem_s3Uri :: Lens' AugmentedManifestsListItem Text Source #

The Amazon S3 location of the augmented manifest file.

augmentedManifestsListItem_attributeNames :: Lens' AugmentedManifestsListItem [Text] Source #

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.

BatchDetectDominantLanguageItemResult

batchDetectDominantLanguageItemResult_languages :: Lens' BatchDetectDominantLanguageItemResult (Maybe [DominantLanguage]) Source #

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

BatchDetectEntitiesItemResult

batchDetectEntitiesItemResult_entities :: Lens' BatchDetectEntitiesItemResult (Maybe [Entity]) Source #

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

batchDetectEntitiesItemResult_index :: Lens' BatchDetectEntitiesItemResult (Maybe Int) Source #

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

BatchDetectKeyPhrasesItemResult

batchDetectKeyPhrasesItemResult_index :: Lens' BatchDetectKeyPhrasesItemResult (Maybe Int) Source #

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

batchDetectKeyPhrasesItemResult_keyPhrases :: Lens' BatchDetectKeyPhrasesItemResult (Maybe [KeyPhrase]) Source #

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

BatchDetectSentimentItemResult

batchDetectSentimentItemResult_sentimentScore :: Lens' BatchDetectSentimentItemResult (Maybe SentimentScore) Source #

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

batchDetectSentimentItemResult_index :: Lens' BatchDetectSentimentItemResult (Maybe Int) Source #

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

BatchDetectSyntaxItemResult

batchDetectSyntaxItemResult_index :: Lens' BatchDetectSyntaxItemResult (Maybe Int) Source #

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

batchDetectSyntaxItemResult_syntaxTokens :: Lens' BatchDetectSyntaxItemResult (Maybe [SyntaxToken]) Source #

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

BatchItemError

batchItemError_errorCode :: Lens' BatchItemError (Maybe Text) Source #

The numeric error code of the error.

batchItemError_errorMessage :: Lens' BatchItemError (Maybe Text) Source #

A text description of the error.

batchItemError_index :: Lens' BatchItemError (Maybe Int) Source #

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

ClassifierEvaluationMetrics

classifierEvaluationMetrics_microPrecision :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_microF1Score :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_recall :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_precision :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_microRecall :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_f1Score :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_hammingLoss :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

classifierEvaluationMetrics_accuracy :: Lens' ClassifierEvaluationMetrics (Maybe Double) Source #

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.

ClassifierMetadata

classifierMetadata_numberOfLabels :: Lens' ClassifierMetadata (Maybe Int) Source #

The number of labels in the input data.

classifierMetadata_evaluationMetrics :: Lens' ClassifierMetadata (Maybe ClassifierEvaluationMetrics) Source #

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

classifierMetadata_numberOfTrainedDocuments :: Lens' ClassifierMetadata (Maybe Int) Source #

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.

classifierMetadata_numberOfTestDocuments :: Lens' ClassifierMetadata (Maybe Int) Source #

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.

DocumentClass

documentClass_score :: Lens' DocumentClass (Maybe Double) Source #

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

DocumentClassificationJobFilter

documentClassificationJobFilter_submitTimeAfter :: Lens' DocumentClassificationJobFilter (Maybe UTCTime) Source #

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.

documentClassificationJobFilter_submitTimeBefore :: Lens' DocumentClassificationJobFilter (Maybe UTCTime) Source #

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.

documentClassificationJobFilter_jobStatus :: Lens' DocumentClassificationJobFilter (Maybe JobStatus) Source #

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

DocumentClassificationJobProperties

documentClassificationJobProperties_jobId :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

The identifier assigned to the document classification job.

documentClassificationJobProperties_jobArn :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the document classification job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

documentClassificationJobProperties_documentClassifierArn :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

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

documentClassificationJobProperties_jobName :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

The name that you assigned to the document classification job.

documentClassificationJobProperties_inputDataConfig :: Lens' DocumentClassificationJobProperties (Maybe InputDataConfig) Source #

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

documentClassificationJobProperties_vpcConfig :: Lens' DocumentClassificationJobProperties (Maybe VpcConfig) Source #

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.

documentClassificationJobProperties_volumeKmsKeyId :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

documentClassificationJobProperties_outputDataConfig :: Lens' DocumentClassificationJobProperties (Maybe OutputDataConfig) Source #

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

documentClassificationJobProperties_dataAccessRoleArn :: Lens' DocumentClassificationJobProperties (Maybe Text) Source #

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

documentClassificationJobProperties_jobStatus :: Lens' DocumentClassificationJobProperties (Maybe JobStatus) Source #

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

documentClassificationJobProperties_submitTime :: Lens' DocumentClassificationJobProperties (Maybe UTCTime) Source #

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

DocumentClassifierFilter

documentClassifierFilter_status :: Lens' DocumentClassifierFilter (Maybe ModelStatus) Source #

Filters the list of classifiers based on status.

documentClassifierFilter_submitTimeAfter :: Lens' DocumentClassifierFilter (Maybe UTCTime) Source #

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.

documentClassifierFilter_submitTimeBefore :: Lens' DocumentClassifierFilter (Maybe UTCTime) Source #

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.

documentClassifierFilter_documentClassifierName :: Lens' DocumentClassifierFilter (Maybe Text) Source #

The name that you assigned to the document classifier

DocumentClassifierInputDataConfig

documentClassifierInputDataConfig_augmentedManifests :: Lens' DocumentClassifierInputDataConfig (Maybe [AugmentedManifestsListItem]) Source #

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.

documentClassifierInputDataConfig_dataFormat :: Lens' DocumentClassifierInputDataConfig (Maybe DocumentClassifierDataFormat) Source #

The format of your training data:

  • COMPREHEND_CSV: A two-column CSV file, where labels are provided in the first column, and documents are provided in the second. If you use this value, you must provide the S3Uri parameter in your request.
  • AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its associated labels.

    If you use this value, you must provide the AugmentedManifests parameter in your request.

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

documentClassifierInputDataConfig_labelDelimiter :: Lens' DocumentClassifierInputDataConfig (Maybe Text) Source #

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.

documentClassifierInputDataConfig_testS3Uri :: Lens' DocumentClassifierInputDataConfig (Maybe Text) Source #

The Amazon S3 URI for the input data. The Amazon S3 bucket must be in the same AWS 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.

documentClassifierInputDataConfig_s3Uri :: Lens' DocumentClassifierInputDataConfig (Maybe Text) Source #

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.

DocumentClassifierOutputDataConfig

documentClassifierOutputDataConfig_kmsKeyId :: Lens' DocumentClassifierOutputDataConfig (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  • KMS Key Alias: "alias/ExampleAlias"
  • ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

documentClassifierOutputDataConfig_s3Uri :: Lens' DocumentClassifierOutputDataConfig (Maybe Text) Source #

When you use the OutputDataConfig object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file.

When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the confusion matrix.

DocumentClassifierProperties

documentClassifierProperties_status :: Lens' DocumentClassifierProperties (Maybe ModelStatus) Source #

The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.

documentClassifierProperties_languageCode :: Lens' DocumentClassifierProperties (Maybe LanguageCode) Source #

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

documentClassifierProperties_classifierMetadata :: Lens' DocumentClassifierProperties (Maybe ClassifierMetadata) Source #

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.

documentClassifierProperties_trainingEndTime :: Lens' DocumentClassifierProperties (Maybe UTCTime) Source #

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.

documentClassifierProperties_documentClassifierArn :: Lens' DocumentClassifierProperties (Maybe Text) Source #

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

documentClassifierProperties_versionName :: Lens' DocumentClassifierProperties (Maybe Text) Source #

The version name that you assigned to the document classifier.

documentClassifierProperties_modelKmsKeyId :: Lens' DocumentClassifierProperties (Maybe Text) Source #

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

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

documentClassifierProperties_mode :: Lens' DocumentClassifierProperties (Maybe DocumentClassifierMode) Source #

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.

documentClassifierProperties_inputDataConfig :: Lens' DocumentClassifierProperties (Maybe DocumentClassifierInputDataConfig) Source #

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

documentClassifierProperties_vpcConfig :: Lens' DocumentClassifierProperties (Maybe VpcConfig) Source #

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.

documentClassifierProperties_volumeKmsKeyId :: Lens' DocumentClassifierProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

documentClassifierProperties_endTime :: Lens' DocumentClassifierProperties (Maybe UTCTime) Source #

The time that training the document classifier completed.

documentClassifierProperties_outputDataConfig :: Lens' DocumentClassifierProperties (Maybe DocumentClassifierOutputDataConfig) Source #

Provides output results configuration parameters for custom classifier jobs.

documentClassifierProperties_trainingStartTime :: Lens' DocumentClassifierProperties (Maybe UTCTime) Source #

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.

documentClassifierProperties_dataAccessRoleArn :: Lens' DocumentClassifierProperties (Maybe Text) Source #

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

documentClassifierProperties_message :: Lens' DocumentClassifierProperties (Maybe Text) Source #

Additional information about the status of the classifier.

documentClassifierProperties_submitTime :: Lens' DocumentClassifierProperties (Maybe UTCTime) Source #

The time that the document classifier was submitted for training.

DocumentClassifierSummary

documentClassifierSummary_latestVersionCreatedAt :: Lens' DocumentClassifierSummary (Maybe UTCTime) Source #

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

documentClassifierSummary_latestVersionStatus :: Lens' DocumentClassifierSummary (Maybe ModelStatus) Source #

Provides the status of the latest document classifier version.

documentClassifierSummary_latestVersionName :: Lens' DocumentClassifierSummary (Maybe Text) Source #

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

DocumentLabel

documentLabel_score :: Lens' DocumentLabel (Maybe Double) Source #

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

DocumentReaderConfig

documentReaderConfig_featureTypes :: Lens' DocumentReaderConfig (Maybe (NonEmpty DocumentReadFeatureTypes)) Source #

Specifies how the text in an input file should be processed:

documentReaderConfig_documentReadMode :: Lens' DocumentReaderConfig (Maybe DocumentReadMode) Source #

This enum field provides two values:

  • SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean using an internal parser instead of Textract APIs
  • FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including Digital PDF.

documentReaderConfig_documentReadAction :: Lens' DocumentReaderConfig DocumentReadAction Source #

This enum field will start with two values which will apply to PDFs:

  • TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per page.
  • TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.

DominantLanguage

dominantLanguage_languageCode :: Lens' DominantLanguage (Maybe Text) Source #

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.

dominantLanguage_score :: Lens' DominantLanguage (Maybe Double) Source #

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

DominantLanguageDetectionJobFilter

dominantLanguageDetectionJobFilter_submitTimeAfter :: Lens' DominantLanguageDetectionJobFilter (Maybe UTCTime) Source #

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.

dominantLanguageDetectionJobFilter_submitTimeBefore :: Lens' DominantLanguageDetectionJobFilter (Maybe UTCTime) Source #

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.

dominantLanguageDetectionJobFilter_jobStatus :: Lens' DominantLanguageDetectionJobFilter (Maybe JobStatus) Source #

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

DominantLanguageDetectionJobProperties

dominantLanguageDetectionJobProperties_jobId :: Lens' DominantLanguageDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the dominant language detection job.

dominantLanguageDetectionJobProperties_jobArn :: Lens' DominantLanguageDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the dominant language detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

dominantLanguageDetectionJobProperties_jobName :: Lens' DominantLanguageDetectionJobProperties (Maybe Text) Source #

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

dominantLanguageDetectionJobProperties_inputDataConfig :: Lens' DominantLanguageDetectionJobProperties (Maybe InputDataConfig) Source #

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

dominantLanguageDetectionJobProperties_vpcConfig :: Lens' DominantLanguageDetectionJobProperties (Maybe VpcConfig) Source #

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.

dominantLanguageDetectionJobProperties_volumeKmsKeyId :: Lens' DominantLanguageDetectionJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

dominantLanguageDetectionJobProperties_outputDataConfig :: Lens' DominantLanguageDetectionJobProperties (Maybe OutputDataConfig) Source #

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

dominantLanguageDetectionJobProperties_dataAccessRoleArn :: Lens' DominantLanguageDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

dominantLanguageDetectionJobProperties_jobStatus :: Lens' DominantLanguageDetectionJobProperties (Maybe JobStatus) Source #

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

dominantLanguageDetectionJobProperties_submitTime :: Lens' DominantLanguageDetectionJobProperties (Maybe UTCTime) Source #

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

EndpointFilter

endpointFilter_status :: Lens' EndpointFilter (Maybe EndpointStatus) Source #

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

endpointFilter_modelArn :: Lens' EndpointFilter (Maybe Text) Source #

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

endpointFilter_creationTimeAfter :: Lens' EndpointFilter (Maybe UTCTime) Source #

Specifies a date after which the returned endpoint or endpoints were created.

endpointFilter_creationTimeBefore :: Lens' EndpointFilter (Maybe UTCTime) Source #

Specifies a date before which the returned endpoint or endpoints were created.

EndpointProperties

endpointProperties_creationTime :: Lens' EndpointProperties (Maybe UTCTime) Source #

The creation date and time of the endpoint.

endpointProperties_status :: Lens' EndpointProperties (Maybe EndpointStatus) Source #

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.

endpointProperties_modelArn :: Lens' EndpointProperties (Maybe Text) Source #

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

endpointProperties_desiredModelArn :: Lens' EndpointProperties (Maybe Text) Source #

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

endpointProperties_lastModifiedTime :: Lens' EndpointProperties (Maybe UTCTime) Source #

The date and time that the endpoint was last modified.

endpointProperties_desiredInferenceUnits :: Lens' EndpointProperties (Maybe Natural) Source #

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.

endpointProperties_currentInferenceUnits :: Lens' EndpointProperties (Maybe Natural) Source #

The number of inference units currently used by the model using this endpoint.

endpointProperties_dataAccessRoleArn :: Lens' EndpointProperties (Maybe Text) Source #

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

endpointProperties_desiredDataAccessRoleArn :: Lens' EndpointProperties (Maybe Text) Source #

Data access role ARN to use in case the new model is encrypted with a customer KMS key.

endpointProperties_message :: Lens' EndpointProperties (Maybe Text) Source #

Specifies a reason for failure in cases of Failed status.

endpointProperties_endpointArn :: Lens' EndpointProperties (Maybe Text) Source #

The Amazon Resource Number (ARN) of the endpoint.

EntitiesDetectionJobFilter

entitiesDetectionJobFilter_submitTimeAfter :: Lens' EntitiesDetectionJobFilter (Maybe UTCTime) Source #

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.

entitiesDetectionJobFilter_submitTimeBefore :: Lens' EntitiesDetectionJobFilter (Maybe UTCTime) Source #

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.

entitiesDetectionJobFilter_jobStatus :: Lens' EntitiesDetectionJobFilter (Maybe JobStatus) Source #

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

EntitiesDetectionJobProperties

entitiesDetectionJobProperties_jobId :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the entities detection job.

entitiesDetectionJobProperties_jobArn :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the entities detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

entitiesDetectionJobProperties_entityRecognizerArn :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

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

entitiesDetectionJobProperties_jobName :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

The name that you assigned the entities detection job.

entitiesDetectionJobProperties_inputDataConfig :: Lens' EntitiesDetectionJobProperties (Maybe InputDataConfig) Source #

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

entitiesDetectionJobProperties_vpcConfig :: Lens' EntitiesDetectionJobProperties (Maybe VpcConfig) Source #

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.

entitiesDetectionJobProperties_volumeKmsKeyId :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

entitiesDetectionJobProperties_outputDataConfig :: Lens' EntitiesDetectionJobProperties (Maybe OutputDataConfig) Source #

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

entitiesDetectionJobProperties_dataAccessRoleArn :: Lens' EntitiesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

entitiesDetectionJobProperties_jobStatus :: Lens' EntitiesDetectionJobProperties (Maybe JobStatus) Source #

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

entitiesDetectionJobProperties_submitTime :: Lens' EntitiesDetectionJobProperties (Maybe UTCTime) Source #

The time that the entities detection job was submitted for processing.

Entity

entity_beginOffset :: Lens' Entity (Maybe Int) Source #

A character offset in the input text that shows where the entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

entity_text :: Lens' Entity (Maybe Text) Source #

The text of the entity.

entity_score :: Lens' Entity (Maybe Double) Source #

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

entity_endOffset :: Lens' Entity (Maybe Int) Source #

A character offset in the input text that shows where the entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

EntityLabel

entityLabel_score :: Lens' EntityLabel (Maybe Double) Source #

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

EntityRecognizerAnnotations

entityRecognizerAnnotations_testS3Uri :: Lens' EntityRecognizerAnnotations (Maybe Text) Source #

This specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same AWS Region as the API endpoint that you are calling.

entityRecognizerAnnotations_s3Uri :: Lens' EntityRecognizerAnnotations Text Source #

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.

EntityRecognizerDocuments

entityRecognizerDocuments_inputFormat :: Lens' EntityRecognizerDocuments (Maybe InputFormat) Source #

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.

entityRecognizerDocuments_testS3Uri :: Lens' EntityRecognizerDocuments (Maybe Text) Source #

Specifies the Amazon S3 location where the test documents for an entity recognizer are located. The URI must be in the same AWS Region as the API endpoint that you are calling.

entityRecognizerDocuments_s3Uri :: Lens' EntityRecognizerDocuments Text Source #

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.

EntityRecognizerEntityList

entityRecognizerEntityList_s3Uri :: Lens' EntityRecognizerEntityList Text Source #

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.

EntityRecognizerEvaluationMetrics

entityRecognizerEvaluationMetrics_recall :: Lens' EntityRecognizerEvaluationMetrics (Maybe Double) Source #

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.

entityRecognizerEvaluationMetrics_precision :: Lens' EntityRecognizerEvaluationMetrics (Maybe Double) Source #

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.

entityRecognizerEvaluationMetrics_f1Score :: Lens' EntityRecognizerEvaluationMetrics (Maybe Double) Source #

A measure of how accurate the recognizer results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.

EntityRecognizerFilter

entityRecognizerFilter_submitTimeAfter :: Lens' EntityRecognizerFilter (Maybe UTCTime) Source #

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.

entityRecognizerFilter_submitTimeBefore :: Lens' EntityRecognizerFilter (Maybe UTCTime) Source #

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.

entityRecognizerFilter_recognizerName :: Lens' EntityRecognizerFilter (Maybe Text) Source #

The name that you assigned the entity recognizer.

EntityRecognizerInputDataConfig

entityRecognizerInputDataConfig_augmentedManifests :: Lens' EntityRecognizerInputDataConfig (Maybe [AugmentedManifestsListItem]) Source #

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.

entityRecognizerInputDataConfig_annotations :: Lens' EntityRecognizerInputDataConfig (Maybe EntityRecognizerAnnotations) Source #

The S3 location of the CSV file that annotates your training documents.

entityRecognizerInputDataConfig_dataFormat :: Lens' EntityRecognizerInputDataConfig (Maybe EntityRecognizerDataFormat) Source #

The format of your training data:

  • COMPREHEND_CSV: A CSV file that supplements your training documents. The CSV file contains information about the custom entities that your trained model will detect. The required format of the file depends on whether you are providing annotations or an entity list.

    If you use this value, you must provide your CSV file by using either the Annotations or EntityList parameters. You must provide your training documents by using the Documents parameter.

  • AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its labels. Each label annotates a named entity in the training document.

    If you use this value, you must provide the AugmentedManifests parameter in your request.

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

entityRecognizerInputDataConfig_documents :: Lens' EntityRecognizerInputDataConfig (Maybe EntityRecognizerDocuments) Source #

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.

entityRecognizerInputDataConfig_entityList :: Lens' EntityRecognizerInputDataConfig (Maybe EntityRecognizerEntityList) Source #

The S3 location of the CSV file that has the entity list for your custom entity recognizer.

entityRecognizerInputDataConfig_entityTypes :: Lens' EntityRecognizerInputDataConfig [EntityTypesListItem] Source #

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).

EntityRecognizerMetadata

entityRecognizerMetadata_numberOfTrainedDocuments :: Lens' EntityRecognizerMetadata (Maybe Int) Source #

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.

entityRecognizerMetadata_numberOfTestDocuments :: Lens' EntityRecognizerMetadata (Maybe Int) Source #

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.

EntityRecognizerMetadataEntityTypesListItem

entityRecognizerMetadataEntityTypesListItem_evaluationMetrics :: Lens' EntityRecognizerMetadataEntityTypesListItem (Maybe EntityTypesEvaluationMetrics) Source #

Detailed information about the accuracy of the entity recognizer for a specific item on the list of entity types.

entityRecognizerMetadataEntityTypesListItem_type :: Lens' EntityRecognizerMetadataEntityTypesListItem (Maybe Text) Source #

Type of entity from the list of entity types in the metadata of an entity recognizer.

entityRecognizerMetadataEntityTypesListItem_numberOfTrainMentions :: Lens' EntityRecognizerMetadataEntityTypesListItem (Maybe Int) Source #

Indicates the number of times the given entity type was seen in the training data.

EntityRecognizerProperties

entityRecognizerProperties_languageCode :: Lens' EntityRecognizerProperties (Maybe LanguageCode) Source #

The language of the input documents. All documents must be in the same language. Only English ("en") is currently supported.

entityRecognizerProperties_trainingEndTime :: Lens' EntityRecognizerProperties (Maybe UTCTime) Source #

The time that training of the entity recognizer was completed.

entityRecognizerProperties_versionName :: Lens' EntityRecognizerProperties (Maybe Text) Source #

The version name you assigned to the entity recognizer.

entityRecognizerProperties_entityRecognizerArn :: Lens' EntityRecognizerProperties (Maybe Text) Source #

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

entityRecognizerProperties_modelKmsKeyId :: Lens' EntityRecognizerProperties (Maybe Text) Source #

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

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

entityRecognizerProperties_vpcConfig :: Lens' EntityRecognizerProperties (Maybe VpcConfig) Source #

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.

entityRecognizerProperties_volumeKmsKeyId :: Lens' EntityRecognizerProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

entityRecognizerProperties_endTime :: Lens' EntityRecognizerProperties (Maybe UTCTime) Source #

The time that the recognizer creation completed.

entityRecognizerProperties_trainingStartTime :: Lens' EntityRecognizerProperties (Maybe UTCTime) Source #

The time that training of the entity recognizer started.

entityRecognizerProperties_dataAccessRoleArn :: Lens' EntityRecognizerProperties (Maybe Text) Source #

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

entityRecognizerProperties_message :: Lens' EntityRecognizerProperties (Maybe Text) Source #

A description of the status of the recognizer.

entityRecognizerProperties_submitTime :: Lens' EntityRecognizerProperties (Maybe UTCTime) Source #

The time that the recognizer was submitted for processing.

EntityRecognizerSummary

entityRecognizerSummary_latestVersionCreatedAt :: Lens' EntityRecognizerSummary (Maybe UTCTime) Source #

The time that the latest entity recognizer version was submitted for processing.

entityRecognizerSummary_latestVersionStatus :: Lens' EntityRecognizerSummary (Maybe ModelStatus) Source #

Provides the status of the latest entity recognizer version.

entityRecognizerSummary_latestVersionName :: Lens' EntityRecognizerSummary (Maybe Text) Source #

The version name you assigned to the latest entity recognizer version.

entityRecognizerSummary_recognizerName :: Lens' EntityRecognizerSummary (Maybe Text) Source #

The name that you assigned the entity recognizer.

EntityTypesEvaluationMetrics

entityTypesEvaluationMetrics_recall :: Lens' EntityTypesEvaluationMetrics (Maybe Double) Source #

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.

entityTypesEvaluationMetrics_precision :: Lens' EntityTypesEvaluationMetrics (Maybe Double) Source #

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.

entityTypesEvaluationMetrics_f1Score :: Lens' EntityTypesEvaluationMetrics (Maybe Double) Source #

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.

EntityTypesListItem

entityTypesListItem_type :: Lens' EntityTypesListItem Text Source #

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), space, and , (comma).

EventsDetectionJobFilter

eventsDetectionJobFilter_submitTimeAfter :: Lens' EventsDetectionJobFilter (Maybe UTCTime) Source #

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.

eventsDetectionJobFilter_submitTimeBefore :: Lens' EventsDetectionJobFilter (Maybe UTCTime) Source #

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.

eventsDetectionJobFilter_jobName :: Lens' EventsDetectionJobFilter (Maybe Text) Source #

Filters on the name of the events detection job.

eventsDetectionJobFilter_jobStatus :: Lens' EventsDetectionJobFilter (Maybe JobStatus) Source #

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

EventsDetectionJobProperties

eventsDetectionJobProperties_jobId :: Lens' EventsDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the events detection job.

eventsDetectionJobProperties_jobArn :: Lens' EventsDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the events detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

eventsDetectionJobProperties_jobName :: Lens' EventsDetectionJobProperties (Maybe Text) Source #

The name you assigned the events detection job.

eventsDetectionJobProperties_inputDataConfig :: Lens' EventsDetectionJobProperties (Maybe InputDataConfig) Source #

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

eventsDetectionJobProperties_endTime :: Lens' EventsDetectionJobProperties (Maybe UTCTime) Source #

The time that the events detection job completed.

eventsDetectionJobProperties_outputDataConfig :: Lens' EventsDetectionJobProperties (Maybe OutputDataConfig) Source #

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

eventsDetectionJobProperties_dataAccessRoleArn :: Lens' EventsDetectionJobProperties (Maybe Text) Source #

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

eventsDetectionJobProperties_message :: Lens' EventsDetectionJobProperties (Maybe Text) Source #

A description of the status of the events detection job.

eventsDetectionJobProperties_submitTime :: Lens' EventsDetectionJobProperties (Maybe UTCTime) Source #

The time that the events detection job was submitted for processing.

InputDataConfig

inputDataConfig_documentReaderConfig :: Lens' InputDataConfig (Maybe DocumentReaderConfig) Source #

The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.

Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.

inputDataConfig_inputFormat :: Lens' InputDataConfig (Maybe InputFormat) Source #

Specifies how the text in an input file should be processed:

  • ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers.
  • ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.

inputDataConfig_s3Uri :: Lens' InputDataConfig Text Source #

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.

KeyPhrase

keyPhrase_beginOffset :: Lens' KeyPhrase (Maybe Int) Source #

A character offset in the input text that shows where the key phrase begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

keyPhrase_text :: Lens' KeyPhrase (Maybe Text) Source #

The text of a key noun phrase.

keyPhrase_score :: Lens' KeyPhrase (Maybe Double) Source #

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

keyPhrase_endOffset :: Lens' KeyPhrase (Maybe Int) Source #

A character offset in the input text where the key phrase ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

KeyPhrasesDetectionJobFilter

keyPhrasesDetectionJobFilter_submitTimeAfter :: Lens' KeyPhrasesDetectionJobFilter (Maybe UTCTime) Source #

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.

keyPhrasesDetectionJobFilter_submitTimeBefore :: Lens' KeyPhrasesDetectionJobFilter (Maybe UTCTime) Source #

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.

keyPhrasesDetectionJobFilter_jobStatus :: Lens' KeyPhrasesDetectionJobFilter (Maybe JobStatus) Source #

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

KeyPhrasesDetectionJobProperties

keyPhrasesDetectionJobProperties_jobId :: Lens' KeyPhrasesDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the key phrases detection job.

keyPhrasesDetectionJobProperties_jobArn :: Lens' KeyPhrasesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the key phrases detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

keyPhrasesDetectionJobProperties_jobName :: Lens' KeyPhrasesDetectionJobProperties (Maybe Text) Source #

The name that you assigned the key phrases detection job.

keyPhrasesDetectionJobProperties_inputDataConfig :: Lens' KeyPhrasesDetectionJobProperties (Maybe InputDataConfig) Source #

The input data configuration that you supplied when you created the key phrases detection job.

keyPhrasesDetectionJobProperties_vpcConfig :: Lens' KeyPhrasesDetectionJobProperties (Maybe VpcConfig) Source #

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.

keyPhrasesDetectionJobProperties_volumeKmsKeyId :: Lens' KeyPhrasesDetectionJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

keyPhrasesDetectionJobProperties_endTime :: Lens' KeyPhrasesDetectionJobProperties (Maybe UTCTime) Source #

The time that the key phrases detection job completed.

keyPhrasesDetectionJobProperties_outputDataConfig :: Lens' KeyPhrasesDetectionJobProperties (Maybe OutputDataConfig) Source #

The output data configuration that you supplied when you created the key phrases detection job.

keyPhrasesDetectionJobProperties_dataAccessRoleArn :: Lens' KeyPhrasesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

keyPhrasesDetectionJobProperties_jobStatus :: Lens' KeyPhrasesDetectionJobProperties (Maybe JobStatus) Source #

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

keyPhrasesDetectionJobProperties_submitTime :: Lens' KeyPhrasesDetectionJobProperties (Maybe UTCTime) Source #

The time that the key phrases detection job was submitted for processing.

OutputDataConfig

outputDataConfig_kmsKeyId :: Lens' OutputDataConfig (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  • KMS Key Alias: "alias/ExampleAlias"
  • ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

outputDataConfig_s3Uri :: Lens' OutputDataConfig Text Source #

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.

PartOfSpeechTag

partOfSpeechTag_tag :: Lens' PartOfSpeechTag (Maybe PartOfSpeechTagType) Source #

Identifies the part of speech that the token represents.

partOfSpeechTag_score :: Lens' PartOfSpeechTag (Maybe Double) Source #

The confidence that Amazon Comprehend has that the part of speech was correctly identified.

PiiEntitiesDetectionJobFilter

piiEntitiesDetectionJobFilter_submitTimeAfter :: Lens' PiiEntitiesDetectionJobFilter (Maybe UTCTime) Source #

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.

piiEntitiesDetectionJobFilter_submitTimeBefore :: Lens' PiiEntitiesDetectionJobFilter (Maybe UTCTime) Source #

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.

piiEntitiesDetectionJobFilter_jobStatus :: Lens' PiiEntitiesDetectionJobFilter (Maybe JobStatus) Source #

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

PiiEntitiesDetectionJobProperties

piiEntitiesDetectionJobProperties_jobId :: Lens' PiiEntitiesDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the PII entities detection job.

piiEntitiesDetectionJobProperties_jobArn :: Lens' PiiEntitiesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the PII entities detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

piiEntitiesDetectionJobProperties_jobName :: Lens' PiiEntitiesDetectionJobProperties (Maybe Text) Source #

The name that you assigned the PII entities detection job.

piiEntitiesDetectionJobProperties_mode :: Lens' PiiEntitiesDetectionJobProperties (Maybe PiiEntitiesDetectionMode) Source #

Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

piiEntitiesDetectionJobProperties_redactionConfig :: Lens' PiiEntitiesDetectionJobProperties (Maybe RedactionConfig) Source #

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.

piiEntitiesDetectionJobProperties_endTime :: Lens' PiiEntitiesDetectionJobProperties (Maybe UTCTime) Source #

The time that the PII entities detection job completed.

piiEntitiesDetectionJobProperties_outputDataConfig :: Lens' PiiEntitiesDetectionJobProperties (Maybe PiiOutputDataConfig) Source #

The output data configuration that you supplied when you created the PII entities detection job.

piiEntitiesDetectionJobProperties_dataAccessRoleArn :: Lens' PiiEntitiesDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

piiEntitiesDetectionJobProperties_jobStatus :: Lens' PiiEntitiesDetectionJobProperties (Maybe JobStatus) Source #

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

piiEntitiesDetectionJobProperties_submitTime :: Lens' PiiEntitiesDetectionJobProperties (Maybe UTCTime) Source #

The time that the PII entities detection job was submitted for processing.

PiiEntity

piiEntity_beginOffset :: Lens' PiiEntity (Maybe Int) Source #

A character offset in the input text that shows where the PII entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

piiEntity_score :: Lens' PiiEntity (Maybe Double) Source #

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

piiEntity_endOffset :: Lens' PiiEntity (Maybe Int) Source #

A character offset in the input text that shows where the PII entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

PiiOutputDataConfig

piiOutputDataConfig_kmsKeyId :: Lens' PiiOutputDataConfig (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job.

piiOutputDataConfig_s3Uri :: Lens' PiiOutputDataConfig Text Source #

When you use the PiiOutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data.

RedactionConfig

redactionConfig_maskCharacter :: Lens' RedactionConfig (Maybe Text) Source #

A character that replaces each character in the redacted PII entity.

redactionConfig_maskMode :: Lens' RedactionConfig (Maybe PiiEntitiesDetectionMaskMode) Source #

Specifies whether the PII entity is redacted with the mask character or the entity type.

redactionConfig_piiEntityTypes :: Lens' RedactionConfig (Maybe [PiiEntityType]) Source #

An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

SentimentDetectionJobFilter

sentimentDetectionJobFilter_submitTimeAfter :: Lens' SentimentDetectionJobFilter (Maybe UTCTime) Source #

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.

sentimentDetectionJobFilter_submitTimeBefore :: Lens' SentimentDetectionJobFilter (Maybe UTCTime) Source #

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.

sentimentDetectionJobFilter_jobStatus :: Lens' SentimentDetectionJobFilter (Maybe JobStatus) Source #

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

SentimentDetectionJobProperties

sentimentDetectionJobProperties_jobId :: Lens' SentimentDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the sentiment detection job.

sentimentDetectionJobProperties_jobArn :: Lens' SentimentDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

sentimentDetectionJobProperties_jobName :: Lens' SentimentDetectionJobProperties (Maybe Text) Source #

The name that you assigned to the sentiment detection job

sentimentDetectionJobProperties_inputDataConfig :: Lens' SentimentDetectionJobProperties (Maybe InputDataConfig) Source #

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

sentimentDetectionJobProperties_vpcConfig :: Lens' SentimentDetectionJobProperties (Maybe VpcConfig) Source #

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.

sentimentDetectionJobProperties_volumeKmsKeyId :: Lens' SentimentDetectionJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

sentimentDetectionJobProperties_outputDataConfig :: Lens' SentimentDetectionJobProperties (Maybe OutputDataConfig) Source #

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

sentimentDetectionJobProperties_dataAccessRoleArn :: Lens' SentimentDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

sentimentDetectionJobProperties_jobStatus :: Lens' SentimentDetectionJobProperties (Maybe JobStatus) Source #

The current status of the sentiment detection job. If the status is FAILED, the Messages field shows the reason for the failure.

sentimentDetectionJobProperties_submitTime :: Lens' SentimentDetectionJobProperties (Maybe UTCTime) Source #

The time that the sentiment detection job was submitted for processing.

SentimentScore

sentimentScore_mixed :: Lens' SentimentScore (Maybe Double) Source #

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

sentimentScore_negative :: Lens' SentimentScore (Maybe Double) Source #

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

sentimentScore_neutral :: Lens' SentimentScore (Maybe Double) Source #

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

sentimentScore_positive :: Lens' SentimentScore (Maybe Double) Source #

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

SyntaxToken

syntaxToken_beginOffset :: Lens' SyntaxToken (Maybe Int) Source #

The zero-based offset from the beginning of the source text to the first character in the word.

syntaxToken_text :: Lens' SyntaxToken (Maybe Text) Source #

The word that was recognized in the source text.

syntaxToken_tokenId :: Lens' SyntaxToken (Maybe Int) Source #

A unique identifier for a token.

syntaxToken_endOffset :: Lens' SyntaxToken (Maybe Int) Source #

The zero-based offset from the beginning of the source text to the last character in the word.

syntaxToken_partOfSpeech :: Lens' SyntaxToken (Maybe PartOfSpeechTag) Source #

Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see how-syntax.

Tag

tag_value :: Lens' Tag (Maybe Text) Source #

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.

tag_key :: Lens' Tag Text Source #

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.”

TopicsDetectionJobFilter

topicsDetectionJobFilter_submitTimeAfter :: Lens' TopicsDetectionJobFilter (Maybe UTCTime) Source #

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.

topicsDetectionJobFilter_submitTimeBefore :: Lens' TopicsDetectionJobFilter (Maybe UTCTime) Source #

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.

topicsDetectionJobFilter_jobStatus :: Lens' TopicsDetectionJobFilter (Maybe JobStatus) Source #

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

TopicsDetectionJobProperties

topicsDetectionJobProperties_jobId :: Lens' TopicsDetectionJobProperties (Maybe Text) Source #

The identifier assigned to the topic detection job.

topicsDetectionJobProperties_jobArn :: Lens' TopicsDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, 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

topicsDetectionJobProperties_inputDataConfig :: Lens' TopicsDetectionJobProperties (Maybe InputDataConfig) Source #

The input data configuration supplied when you created the topic detection job.

topicsDetectionJobProperties_vpcConfig :: Lens' TopicsDetectionJobProperties (Maybe VpcConfig) Source #

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.

topicsDetectionJobProperties_volumeKmsKeyId :: Lens' TopicsDetectionJobProperties (Maybe Text) Source #

ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

topicsDetectionJobProperties_endTime :: Lens' TopicsDetectionJobProperties (Maybe UTCTime) Source #

The time that the topic detection job was completed.

topicsDetectionJobProperties_outputDataConfig :: Lens' TopicsDetectionJobProperties (Maybe OutputDataConfig) Source #

The output data configuration supplied when you created the topic detection job.

topicsDetectionJobProperties_dataAccessRoleArn :: Lens' TopicsDetectionJobProperties (Maybe Text) Source #

The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your job data.

topicsDetectionJobProperties_numberOfTopics :: Lens' TopicsDetectionJobProperties (Maybe Int) Source #

The number of topics to detect supplied when you created the topic detection job. The default is 10.

topicsDetectionJobProperties_jobStatus :: Lens' TopicsDetectionJobProperties (Maybe JobStatus) Source #

The current status of the topic detection job. If the status is Failed, the reason for the failure is shown in the Message field.

topicsDetectionJobProperties_submitTime :: Lens' TopicsDetectionJobProperties (Maybe UTCTime) Source #

The time that the topic detection job was submitted for processing.

VpcConfig

vpcConfig_securityGroupIds :: Lens' VpcConfig (NonEmpty Text) Source #

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.

vpcConfig_subnets :: Lens' VpcConfig (NonEmpty Text) Source #

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.