{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Comprehend.Types
(
defaultService,
_BatchSizeLimitExceededException,
_ConcurrentModificationException,
_InternalServerException,
_InvalidFilterException,
_InvalidRequestException,
_JobNotFoundException,
_KmsKeyValidationException,
_ResourceInUseException,
_ResourceLimitExceededException,
_ResourceNotFoundException,
_ResourceUnavailableException,
_TextSizeLimitExceededException,
_TooManyRequestsException,
_TooManyTagKeysException,
_TooManyTagsException,
_UnsupportedLanguageException,
AugmentedManifestsDocumentTypeFormat (..),
BlockType (..),
DocumentClassifierDataFormat (..),
DocumentClassifierMode (..),
DocumentReadAction (..),
DocumentReadFeatureTypes (..),
DocumentReadMode (..),
DocumentType (..),
EndpointStatus (..),
EntityRecognizerDataFormat (..),
EntityType (..),
InputFormat (..),
JobStatus (..),
LanguageCode (..),
ModelStatus (..),
PageBasedErrorCode (..),
PartOfSpeechTagType (..),
PiiEntitiesDetectionMaskMode (..),
PiiEntitiesDetectionMode (..),
PiiEntityType (..),
RelationshipType (..),
SentimentType (..),
Split (..),
SyntaxLanguageCode (..),
TargetedSentimentEntityType (..),
AugmentedManifestsListItem (..),
newAugmentedManifestsListItem,
augmentedManifestsListItem_annotationDataS3Uri,
augmentedManifestsListItem_documentType,
augmentedManifestsListItem_sourceDocumentsS3Uri,
augmentedManifestsListItem_split,
augmentedManifestsListItem_s3Uri,
augmentedManifestsListItem_attributeNames,
BatchDetectDominantLanguageItemResult (..),
newBatchDetectDominantLanguageItemResult,
batchDetectDominantLanguageItemResult_index,
batchDetectDominantLanguageItemResult_languages,
BatchDetectEntitiesItemResult (..),
newBatchDetectEntitiesItemResult,
batchDetectEntitiesItemResult_entities,
batchDetectEntitiesItemResult_index,
BatchDetectKeyPhrasesItemResult (..),
newBatchDetectKeyPhrasesItemResult,
batchDetectKeyPhrasesItemResult_index,
batchDetectKeyPhrasesItemResult_keyPhrases,
BatchDetectSentimentItemResult (..),
newBatchDetectSentimentItemResult,
batchDetectSentimentItemResult_index,
batchDetectSentimentItemResult_sentiment,
batchDetectSentimentItemResult_sentimentScore,
BatchDetectSyntaxItemResult (..),
newBatchDetectSyntaxItemResult,
batchDetectSyntaxItemResult_index,
batchDetectSyntaxItemResult_syntaxTokens,
BatchDetectTargetedSentimentItemResult (..),
newBatchDetectTargetedSentimentItemResult,
batchDetectTargetedSentimentItemResult_entities,
batchDetectTargetedSentimentItemResult_index,
BatchItemError (..),
newBatchItemError,
batchItemError_errorCode,
batchItemError_errorMessage,
batchItemError_index,
Block (..),
newBlock,
block_blockType,
block_geometry,
block_id,
block_page,
block_relationships,
block_text,
BlockReference (..),
newBlockReference,
blockReference_beginOffset,
blockReference_blockId,
blockReference_childBlocks,
blockReference_endOffset,
BoundingBox (..),
newBoundingBox,
boundingBox_height,
boundingBox_left,
boundingBox_top,
boundingBox_width,
ChildBlock (..),
newChildBlock,
childBlock_beginOffset,
childBlock_childBlockId,
childBlock_endOffset,
ClassifierEvaluationMetrics (..),
newClassifierEvaluationMetrics,
classifierEvaluationMetrics_accuracy,
classifierEvaluationMetrics_f1Score,
classifierEvaluationMetrics_hammingLoss,
classifierEvaluationMetrics_microF1Score,
classifierEvaluationMetrics_microPrecision,
classifierEvaluationMetrics_microRecall,
classifierEvaluationMetrics_precision,
classifierEvaluationMetrics_recall,
ClassifierMetadata (..),
newClassifierMetadata,
classifierMetadata_evaluationMetrics,
classifierMetadata_numberOfLabels,
classifierMetadata_numberOfTestDocuments,
classifierMetadata_numberOfTrainedDocuments,
DocumentClass (..),
newDocumentClass,
documentClass_name,
documentClass_page,
documentClass_score,
DocumentClassificationJobFilter (..),
newDocumentClassificationJobFilter,
documentClassificationJobFilter_jobName,
documentClassificationJobFilter_jobStatus,
documentClassificationJobFilter_submitTimeAfter,
documentClassificationJobFilter_submitTimeBefore,
DocumentClassificationJobProperties (..),
newDocumentClassificationJobProperties,
documentClassificationJobProperties_dataAccessRoleArn,
documentClassificationJobProperties_documentClassifierArn,
documentClassificationJobProperties_endTime,
documentClassificationJobProperties_inputDataConfig,
documentClassificationJobProperties_jobArn,
documentClassificationJobProperties_jobId,
documentClassificationJobProperties_jobName,
documentClassificationJobProperties_jobStatus,
documentClassificationJobProperties_message,
documentClassificationJobProperties_outputDataConfig,
documentClassificationJobProperties_submitTime,
documentClassificationJobProperties_volumeKmsKeyId,
documentClassificationJobProperties_vpcConfig,
DocumentClassifierFilter (..),
newDocumentClassifierFilter,
documentClassifierFilter_documentClassifierName,
documentClassifierFilter_status,
documentClassifierFilter_submitTimeAfter,
documentClassifierFilter_submitTimeBefore,
DocumentClassifierInputDataConfig (..),
newDocumentClassifierInputDataConfig,
documentClassifierInputDataConfig_augmentedManifests,
documentClassifierInputDataConfig_dataFormat,
documentClassifierInputDataConfig_labelDelimiter,
documentClassifierInputDataConfig_s3Uri,
documentClassifierInputDataConfig_testS3Uri,
DocumentClassifierOutputDataConfig (..),
newDocumentClassifierOutputDataConfig,
documentClassifierOutputDataConfig_kmsKeyId,
documentClassifierOutputDataConfig_s3Uri,
DocumentClassifierProperties (..),
newDocumentClassifierProperties,
documentClassifierProperties_classifierMetadata,
documentClassifierProperties_dataAccessRoleArn,
documentClassifierProperties_documentClassifierArn,
documentClassifierProperties_endTime,
documentClassifierProperties_inputDataConfig,
documentClassifierProperties_languageCode,
documentClassifierProperties_message,
documentClassifierProperties_mode,
documentClassifierProperties_modelKmsKeyId,
documentClassifierProperties_outputDataConfig,
documentClassifierProperties_sourceModelArn,
documentClassifierProperties_status,
documentClassifierProperties_submitTime,
documentClassifierProperties_trainingEndTime,
documentClassifierProperties_trainingStartTime,
documentClassifierProperties_versionName,
documentClassifierProperties_volumeKmsKeyId,
documentClassifierProperties_vpcConfig,
DocumentClassifierSummary (..),
newDocumentClassifierSummary,
documentClassifierSummary_documentClassifierName,
documentClassifierSummary_latestVersionCreatedAt,
documentClassifierSummary_latestVersionName,
documentClassifierSummary_latestVersionStatus,
documentClassifierSummary_numberOfVersions,
DocumentLabel (..),
newDocumentLabel,
documentLabel_name,
documentLabel_page,
documentLabel_score,
DocumentMetadata (..),
newDocumentMetadata,
documentMetadata_extractedCharacters,
documentMetadata_pages,
DocumentReaderConfig (..),
newDocumentReaderConfig,
documentReaderConfig_documentReadMode,
documentReaderConfig_featureTypes,
documentReaderConfig_documentReadAction,
DocumentTypeListItem (..),
newDocumentTypeListItem,
documentTypeListItem_page,
documentTypeListItem_type,
DominantLanguage (..),
newDominantLanguage,
dominantLanguage_languageCode,
dominantLanguage_score,
DominantLanguageDetectionJobFilter (..),
newDominantLanguageDetectionJobFilter,
dominantLanguageDetectionJobFilter_jobName,
dominantLanguageDetectionJobFilter_jobStatus,
dominantLanguageDetectionJobFilter_submitTimeAfter,
dominantLanguageDetectionJobFilter_submitTimeBefore,
DominantLanguageDetectionJobProperties (..),
newDominantLanguageDetectionJobProperties,
dominantLanguageDetectionJobProperties_dataAccessRoleArn,
dominantLanguageDetectionJobProperties_endTime,
dominantLanguageDetectionJobProperties_inputDataConfig,
dominantLanguageDetectionJobProperties_jobArn,
dominantLanguageDetectionJobProperties_jobId,
dominantLanguageDetectionJobProperties_jobName,
dominantLanguageDetectionJobProperties_jobStatus,
dominantLanguageDetectionJobProperties_message,
dominantLanguageDetectionJobProperties_outputDataConfig,
dominantLanguageDetectionJobProperties_submitTime,
dominantLanguageDetectionJobProperties_volumeKmsKeyId,
dominantLanguageDetectionJobProperties_vpcConfig,
EndpointFilter (..),
newEndpointFilter,
endpointFilter_creationTimeAfter,
endpointFilter_creationTimeBefore,
endpointFilter_modelArn,
endpointFilter_status,
EndpointProperties (..),
newEndpointProperties,
endpointProperties_creationTime,
endpointProperties_currentInferenceUnits,
endpointProperties_dataAccessRoleArn,
endpointProperties_desiredDataAccessRoleArn,
endpointProperties_desiredInferenceUnits,
endpointProperties_desiredModelArn,
endpointProperties_endpointArn,
endpointProperties_lastModifiedTime,
endpointProperties_message,
endpointProperties_modelArn,
endpointProperties_status,
EntitiesDetectionJobFilter (..),
newEntitiesDetectionJobFilter,
entitiesDetectionJobFilter_jobName,
entitiesDetectionJobFilter_jobStatus,
entitiesDetectionJobFilter_submitTimeAfter,
entitiesDetectionJobFilter_submitTimeBefore,
EntitiesDetectionJobProperties (..),
newEntitiesDetectionJobProperties,
entitiesDetectionJobProperties_dataAccessRoleArn,
entitiesDetectionJobProperties_endTime,
entitiesDetectionJobProperties_entityRecognizerArn,
entitiesDetectionJobProperties_inputDataConfig,
entitiesDetectionJobProperties_jobArn,
entitiesDetectionJobProperties_jobId,
entitiesDetectionJobProperties_jobName,
entitiesDetectionJobProperties_jobStatus,
entitiesDetectionJobProperties_languageCode,
entitiesDetectionJobProperties_message,
entitiesDetectionJobProperties_outputDataConfig,
entitiesDetectionJobProperties_submitTime,
entitiesDetectionJobProperties_volumeKmsKeyId,
entitiesDetectionJobProperties_vpcConfig,
Entity (..),
newEntity,
entity_beginOffset,
entity_blockReferences,
entity_endOffset,
entity_score,
entity_text,
entity_type,
EntityLabel (..),
newEntityLabel,
entityLabel_name,
entityLabel_score,
EntityRecognizerAnnotations (..),
newEntityRecognizerAnnotations,
entityRecognizerAnnotations_testS3Uri,
entityRecognizerAnnotations_s3Uri,
EntityRecognizerDocuments (..),
newEntityRecognizerDocuments,
entityRecognizerDocuments_inputFormat,
entityRecognizerDocuments_testS3Uri,
entityRecognizerDocuments_s3Uri,
EntityRecognizerEntityList (..),
newEntityRecognizerEntityList,
entityRecognizerEntityList_s3Uri,
EntityRecognizerEvaluationMetrics (..),
newEntityRecognizerEvaluationMetrics,
entityRecognizerEvaluationMetrics_f1Score,
entityRecognizerEvaluationMetrics_precision,
entityRecognizerEvaluationMetrics_recall,
EntityRecognizerFilter (..),
newEntityRecognizerFilter,
entityRecognizerFilter_recognizerName,
entityRecognizerFilter_status,
entityRecognizerFilter_submitTimeAfter,
entityRecognizerFilter_submitTimeBefore,
EntityRecognizerInputDataConfig (..),
newEntityRecognizerInputDataConfig,
entityRecognizerInputDataConfig_annotations,
entityRecognizerInputDataConfig_augmentedManifests,
entityRecognizerInputDataConfig_dataFormat,
entityRecognizerInputDataConfig_documents,
entityRecognizerInputDataConfig_entityList,
entityRecognizerInputDataConfig_entityTypes,
EntityRecognizerMetadata (..),
newEntityRecognizerMetadata,
entityRecognizerMetadata_entityTypes,
entityRecognizerMetadata_evaluationMetrics,
entityRecognizerMetadata_numberOfTestDocuments,
entityRecognizerMetadata_numberOfTrainedDocuments,
EntityRecognizerMetadataEntityTypesListItem (..),
newEntityRecognizerMetadataEntityTypesListItem,
entityRecognizerMetadataEntityTypesListItem_evaluationMetrics,
entityRecognizerMetadataEntityTypesListItem_numberOfTrainMentions,
entityRecognizerMetadataEntityTypesListItem_type,
EntityRecognizerProperties (..),
newEntityRecognizerProperties,
entityRecognizerProperties_dataAccessRoleArn,
entityRecognizerProperties_endTime,
entityRecognizerProperties_entityRecognizerArn,
entityRecognizerProperties_inputDataConfig,
entityRecognizerProperties_languageCode,
entityRecognizerProperties_message,
entityRecognizerProperties_modelKmsKeyId,
entityRecognizerProperties_recognizerMetadata,
entityRecognizerProperties_sourceModelArn,
entityRecognizerProperties_status,
entityRecognizerProperties_submitTime,
entityRecognizerProperties_trainingEndTime,
entityRecognizerProperties_trainingStartTime,
entityRecognizerProperties_versionName,
entityRecognizerProperties_volumeKmsKeyId,
entityRecognizerProperties_vpcConfig,
EntityRecognizerSummary (..),
newEntityRecognizerSummary,
entityRecognizerSummary_latestVersionCreatedAt,
entityRecognizerSummary_latestVersionName,
entityRecognizerSummary_latestVersionStatus,
entityRecognizerSummary_numberOfVersions,
entityRecognizerSummary_recognizerName,
EntityTypesEvaluationMetrics (..),
newEntityTypesEvaluationMetrics,
entityTypesEvaluationMetrics_f1Score,
entityTypesEvaluationMetrics_precision,
entityTypesEvaluationMetrics_recall,
EntityTypesListItem (..),
newEntityTypesListItem,
entityTypesListItem_type,
ErrorsListItem (..),
newErrorsListItem,
errorsListItem_errorCode,
errorsListItem_errorMessage,
errorsListItem_page,
EventsDetectionJobFilter (..),
newEventsDetectionJobFilter,
eventsDetectionJobFilter_jobName,
eventsDetectionJobFilter_jobStatus,
eventsDetectionJobFilter_submitTimeAfter,
eventsDetectionJobFilter_submitTimeBefore,
EventsDetectionJobProperties (..),
newEventsDetectionJobProperties,
eventsDetectionJobProperties_dataAccessRoleArn,
eventsDetectionJobProperties_endTime,
eventsDetectionJobProperties_inputDataConfig,
eventsDetectionJobProperties_jobArn,
eventsDetectionJobProperties_jobId,
eventsDetectionJobProperties_jobName,
eventsDetectionJobProperties_jobStatus,
eventsDetectionJobProperties_languageCode,
eventsDetectionJobProperties_message,
eventsDetectionJobProperties_outputDataConfig,
eventsDetectionJobProperties_submitTime,
eventsDetectionJobProperties_targetEventTypes,
ExtractedCharactersListItem (..),
newExtractedCharactersListItem,
extractedCharactersListItem_count,
extractedCharactersListItem_page,
Geometry (..),
newGeometry,
geometry_boundingBox,
geometry_polygon,
InputDataConfig (..),
newInputDataConfig,
inputDataConfig_documentReaderConfig,
inputDataConfig_inputFormat,
inputDataConfig_s3Uri,
KeyPhrase (..),
newKeyPhrase,
keyPhrase_beginOffset,
keyPhrase_endOffset,
keyPhrase_score,
keyPhrase_text,
KeyPhrasesDetectionJobFilter (..),
newKeyPhrasesDetectionJobFilter,
keyPhrasesDetectionJobFilter_jobName,
keyPhrasesDetectionJobFilter_jobStatus,
keyPhrasesDetectionJobFilter_submitTimeAfter,
keyPhrasesDetectionJobFilter_submitTimeBefore,
KeyPhrasesDetectionJobProperties (..),
newKeyPhrasesDetectionJobProperties,
keyPhrasesDetectionJobProperties_dataAccessRoleArn,
keyPhrasesDetectionJobProperties_endTime,
keyPhrasesDetectionJobProperties_inputDataConfig,
keyPhrasesDetectionJobProperties_jobArn,
keyPhrasesDetectionJobProperties_jobId,
keyPhrasesDetectionJobProperties_jobName,
keyPhrasesDetectionJobProperties_jobStatus,
keyPhrasesDetectionJobProperties_languageCode,
keyPhrasesDetectionJobProperties_message,
keyPhrasesDetectionJobProperties_outputDataConfig,
keyPhrasesDetectionJobProperties_submitTime,
keyPhrasesDetectionJobProperties_volumeKmsKeyId,
keyPhrasesDetectionJobProperties_vpcConfig,
MentionSentiment (..),
newMentionSentiment,
mentionSentiment_sentiment,
mentionSentiment_sentimentScore,
OutputDataConfig (..),
newOutputDataConfig,
outputDataConfig_kmsKeyId,
outputDataConfig_s3Uri,
PartOfSpeechTag (..),
newPartOfSpeechTag,
partOfSpeechTag_score,
partOfSpeechTag_tag,
PiiEntitiesDetectionJobFilter (..),
newPiiEntitiesDetectionJobFilter,
piiEntitiesDetectionJobFilter_jobName,
piiEntitiesDetectionJobFilter_jobStatus,
piiEntitiesDetectionJobFilter_submitTimeAfter,
piiEntitiesDetectionJobFilter_submitTimeBefore,
PiiEntitiesDetectionJobProperties (..),
newPiiEntitiesDetectionJobProperties,
piiEntitiesDetectionJobProperties_dataAccessRoleArn,
piiEntitiesDetectionJobProperties_endTime,
piiEntitiesDetectionJobProperties_inputDataConfig,
piiEntitiesDetectionJobProperties_jobArn,
piiEntitiesDetectionJobProperties_jobId,
piiEntitiesDetectionJobProperties_jobName,
piiEntitiesDetectionJobProperties_jobStatus,
piiEntitiesDetectionJobProperties_languageCode,
piiEntitiesDetectionJobProperties_message,
piiEntitiesDetectionJobProperties_mode,
piiEntitiesDetectionJobProperties_outputDataConfig,
piiEntitiesDetectionJobProperties_redactionConfig,
piiEntitiesDetectionJobProperties_submitTime,
PiiEntity (..),
newPiiEntity,
piiEntity_beginOffset,
piiEntity_endOffset,
piiEntity_score,
piiEntity_type,
PiiOutputDataConfig (..),
newPiiOutputDataConfig,
piiOutputDataConfig_kmsKeyId,
piiOutputDataConfig_s3Uri,
Point (..),
newPoint,
point_x,
point_y,
RedactionConfig (..),
newRedactionConfig,
redactionConfig_maskCharacter,
redactionConfig_maskMode,
redactionConfig_piiEntityTypes,
RelationshipsListItem (..),
newRelationshipsListItem,
relationshipsListItem_ids,
relationshipsListItem_type,
SentimentDetectionJobFilter (..),
newSentimentDetectionJobFilter,
sentimentDetectionJobFilter_jobName,
sentimentDetectionJobFilter_jobStatus,
sentimentDetectionJobFilter_submitTimeAfter,
sentimentDetectionJobFilter_submitTimeBefore,
SentimentDetectionJobProperties (..),
newSentimentDetectionJobProperties,
sentimentDetectionJobProperties_dataAccessRoleArn,
sentimentDetectionJobProperties_endTime,
sentimentDetectionJobProperties_inputDataConfig,
sentimentDetectionJobProperties_jobArn,
sentimentDetectionJobProperties_jobId,
sentimentDetectionJobProperties_jobName,
sentimentDetectionJobProperties_jobStatus,
sentimentDetectionJobProperties_languageCode,
sentimentDetectionJobProperties_message,
sentimentDetectionJobProperties_outputDataConfig,
sentimentDetectionJobProperties_submitTime,
sentimentDetectionJobProperties_volumeKmsKeyId,
sentimentDetectionJobProperties_vpcConfig,
SentimentScore (..),
newSentimentScore,
sentimentScore_mixed,
sentimentScore_negative,
sentimentScore_neutral,
sentimentScore_positive,
SyntaxToken (..),
newSyntaxToken,
syntaxToken_beginOffset,
syntaxToken_endOffset,
syntaxToken_partOfSpeech,
syntaxToken_text,
syntaxToken_tokenId,
Tag (..),
newTag,
tag_value,
tag_key,
TargetedSentimentDetectionJobFilter (..),
newTargetedSentimentDetectionJobFilter,
targetedSentimentDetectionJobFilter_jobName,
targetedSentimentDetectionJobFilter_jobStatus,
targetedSentimentDetectionJobFilter_submitTimeAfter,
targetedSentimentDetectionJobFilter_submitTimeBefore,
TargetedSentimentDetectionJobProperties (..),
newTargetedSentimentDetectionJobProperties,
targetedSentimentDetectionJobProperties_dataAccessRoleArn,
targetedSentimentDetectionJobProperties_endTime,
targetedSentimentDetectionJobProperties_inputDataConfig,
targetedSentimentDetectionJobProperties_jobArn,
targetedSentimentDetectionJobProperties_jobId,
targetedSentimentDetectionJobProperties_jobName,
targetedSentimentDetectionJobProperties_jobStatus,
targetedSentimentDetectionJobProperties_languageCode,
targetedSentimentDetectionJobProperties_message,
targetedSentimentDetectionJobProperties_outputDataConfig,
targetedSentimentDetectionJobProperties_submitTime,
targetedSentimentDetectionJobProperties_volumeKmsKeyId,
targetedSentimentDetectionJobProperties_vpcConfig,
TargetedSentimentEntity (..),
newTargetedSentimentEntity,
targetedSentimentEntity_descriptiveMentionIndex,
targetedSentimentEntity_mentions,
TargetedSentimentMention (..),
newTargetedSentimentMention,
targetedSentimentMention_beginOffset,
targetedSentimentMention_endOffset,
targetedSentimentMention_groupScore,
targetedSentimentMention_mentionSentiment,
targetedSentimentMention_score,
targetedSentimentMention_text,
targetedSentimentMention_type,
TopicsDetectionJobFilter (..),
newTopicsDetectionJobFilter,
topicsDetectionJobFilter_jobName,
topicsDetectionJobFilter_jobStatus,
topicsDetectionJobFilter_submitTimeAfter,
topicsDetectionJobFilter_submitTimeBefore,
TopicsDetectionJobProperties (..),
newTopicsDetectionJobProperties,
topicsDetectionJobProperties_dataAccessRoleArn,
topicsDetectionJobProperties_endTime,
topicsDetectionJobProperties_inputDataConfig,
topicsDetectionJobProperties_jobArn,
topicsDetectionJobProperties_jobId,
topicsDetectionJobProperties_jobName,
topicsDetectionJobProperties_jobStatus,
topicsDetectionJobProperties_message,
topicsDetectionJobProperties_numberOfTopics,
topicsDetectionJobProperties_outputDataConfig,
topicsDetectionJobProperties_submitTime,
topicsDetectionJobProperties_volumeKmsKeyId,
topicsDetectionJobProperties_vpcConfig,
VpcConfig (..),
newVpcConfig,
vpcConfig_securityGroupIds,
vpcConfig_subnets,
)
where
import Amazonka.Comprehend.Types.AugmentedManifestsDocumentTypeFormat
import Amazonka.Comprehend.Types.AugmentedManifestsListItem
import Amazonka.Comprehend.Types.BatchDetectDominantLanguageItemResult
import Amazonka.Comprehend.Types.BatchDetectEntitiesItemResult
import Amazonka.Comprehend.Types.BatchDetectKeyPhrasesItemResult
import Amazonka.Comprehend.Types.BatchDetectSentimentItemResult
import Amazonka.Comprehend.Types.BatchDetectSyntaxItemResult
import Amazonka.Comprehend.Types.BatchDetectTargetedSentimentItemResult
import Amazonka.Comprehend.Types.BatchItemError
import Amazonka.Comprehend.Types.Block
import Amazonka.Comprehend.Types.BlockReference
import Amazonka.Comprehend.Types.BlockType
import Amazonka.Comprehend.Types.BoundingBox
import Amazonka.Comprehend.Types.ChildBlock
import Amazonka.Comprehend.Types.ClassifierEvaluationMetrics
import Amazonka.Comprehend.Types.ClassifierMetadata
import Amazonka.Comprehend.Types.DocumentClass
import Amazonka.Comprehend.Types.DocumentClassificationJobFilter
import Amazonka.Comprehend.Types.DocumentClassificationJobProperties
import Amazonka.Comprehend.Types.DocumentClassifierDataFormat
import Amazonka.Comprehend.Types.DocumentClassifierFilter
import Amazonka.Comprehend.Types.DocumentClassifierInputDataConfig
import Amazonka.Comprehend.Types.DocumentClassifierMode
import Amazonka.Comprehend.Types.DocumentClassifierOutputDataConfig
import Amazonka.Comprehend.Types.DocumentClassifierProperties
import Amazonka.Comprehend.Types.DocumentClassifierSummary
import Amazonka.Comprehend.Types.DocumentLabel
import Amazonka.Comprehend.Types.DocumentMetadata
import Amazonka.Comprehend.Types.DocumentReadAction
import Amazonka.Comprehend.Types.DocumentReadFeatureTypes
import Amazonka.Comprehend.Types.DocumentReadMode
import Amazonka.Comprehend.Types.DocumentReaderConfig
import Amazonka.Comprehend.Types.DocumentType
import Amazonka.Comprehend.Types.DocumentTypeListItem
import Amazonka.Comprehend.Types.DominantLanguage
import Amazonka.Comprehend.Types.DominantLanguageDetectionJobFilter
import Amazonka.Comprehend.Types.DominantLanguageDetectionJobProperties
import Amazonka.Comprehend.Types.EndpointFilter
import Amazonka.Comprehend.Types.EndpointProperties
import Amazonka.Comprehend.Types.EndpointStatus
import Amazonka.Comprehend.Types.EntitiesDetectionJobFilter
import Amazonka.Comprehend.Types.EntitiesDetectionJobProperties
import Amazonka.Comprehend.Types.Entity
import Amazonka.Comprehend.Types.EntityLabel
import Amazonka.Comprehend.Types.EntityRecognizerAnnotations
import Amazonka.Comprehend.Types.EntityRecognizerDataFormat
import Amazonka.Comprehend.Types.EntityRecognizerDocuments
import Amazonka.Comprehend.Types.EntityRecognizerEntityList
import Amazonka.Comprehend.Types.EntityRecognizerEvaluationMetrics
import Amazonka.Comprehend.Types.EntityRecognizerFilter
import Amazonka.Comprehend.Types.EntityRecognizerInputDataConfig
import Amazonka.Comprehend.Types.EntityRecognizerMetadata
import Amazonka.Comprehend.Types.EntityRecognizerMetadataEntityTypesListItem
import Amazonka.Comprehend.Types.EntityRecognizerProperties
import Amazonka.Comprehend.Types.EntityRecognizerSummary
import Amazonka.Comprehend.Types.EntityType
import Amazonka.Comprehend.Types.EntityTypesEvaluationMetrics
import Amazonka.Comprehend.Types.EntityTypesListItem
import Amazonka.Comprehend.Types.ErrorsListItem
import Amazonka.Comprehend.Types.EventsDetectionJobFilter
import Amazonka.Comprehend.Types.EventsDetectionJobProperties
import Amazonka.Comprehend.Types.ExtractedCharactersListItem
import Amazonka.Comprehend.Types.Geometry
import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.InputFormat
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.KeyPhrase
import Amazonka.Comprehend.Types.KeyPhrasesDetectionJobFilter
import Amazonka.Comprehend.Types.KeyPhrasesDetectionJobProperties
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.MentionSentiment
import Amazonka.Comprehend.Types.ModelStatus
import Amazonka.Comprehend.Types.OutputDataConfig
import Amazonka.Comprehend.Types.PageBasedErrorCode
import Amazonka.Comprehend.Types.PartOfSpeechTag
import Amazonka.Comprehend.Types.PartOfSpeechTagType
import Amazonka.Comprehend.Types.PiiEntitiesDetectionJobFilter
import Amazonka.Comprehend.Types.PiiEntitiesDetectionJobProperties
import Amazonka.Comprehend.Types.PiiEntitiesDetectionMaskMode
import Amazonka.Comprehend.Types.PiiEntitiesDetectionMode
import Amazonka.Comprehend.Types.PiiEntity
import Amazonka.Comprehend.Types.PiiEntityType
import Amazonka.Comprehend.Types.PiiOutputDataConfig
import Amazonka.Comprehend.Types.Point
import Amazonka.Comprehend.Types.RedactionConfig
import Amazonka.Comprehend.Types.RelationshipType
import Amazonka.Comprehend.Types.RelationshipsListItem
import Amazonka.Comprehend.Types.SentimentDetectionJobFilter
import Amazonka.Comprehend.Types.SentimentDetectionJobProperties
import Amazonka.Comprehend.Types.SentimentScore
import Amazonka.Comprehend.Types.SentimentType
import Amazonka.Comprehend.Types.Split
import Amazonka.Comprehend.Types.SyntaxLanguageCode
import Amazonka.Comprehend.Types.SyntaxToken
import Amazonka.Comprehend.Types.Tag
import Amazonka.Comprehend.Types.TargetedSentimentDetectionJobFilter
import Amazonka.Comprehend.Types.TargetedSentimentDetectionJobProperties
import Amazonka.Comprehend.Types.TargetedSentimentEntity
import Amazonka.Comprehend.Types.TargetedSentimentEntityType
import Amazonka.Comprehend.Types.TargetedSentimentMention
import Amazonka.Comprehend.Types.TopicsDetectionJobFilter
import Amazonka.Comprehend.Types.TopicsDetectionJobProperties
import Amazonka.Comprehend.Types.VpcConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"Comprehend",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"comprehend",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"comprehend",
$sel:version:Service :: ByteString
Core.version = ByteString
"2017-11-27",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"Comprehend",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_BatchSizeLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BatchSizeLimitExceededException :: forall a. AsError a => Fold a ServiceError
_BatchSizeLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BatchSizeLimitExceededException"
_ConcurrentModificationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConcurrentModificationException :: forall a. AsError a => Fold a ServiceError
_ConcurrentModificationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
_InvalidFilterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidFilterException :: forall a. AsError a => Fold a ServiceError
_InvalidFilterException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidFilterException"
_InvalidRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRequestException :: forall a. AsError a => Fold a ServiceError
_InvalidRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidRequestException"
_JobNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_JobNotFoundException :: forall a. AsError a => Fold a ServiceError
_JobNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"JobNotFoundException"
_KmsKeyValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_KmsKeyValidationException :: forall a. AsError a => Fold a ServiceError
_KmsKeyValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"KmsKeyValidationException"
_ResourceInUseException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceInUseException :: forall a. AsError a => Fold a ServiceError
_ResourceInUseException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"
_ResourceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ResourceLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceLimitExceededException"
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
_ResourceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceUnavailableException :: forall a. AsError a => Fold a ServiceError
_ResourceUnavailableException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceUnavailableException"
_TextSizeLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TextSizeLimitExceededException :: forall a. AsError a => Fold a ServiceError
_TextSizeLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TextSizeLimitExceededException"
_TooManyRequestsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyRequestsException :: forall a. AsError a => Fold a ServiceError
_TooManyRequestsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
_TooManyTagKeysException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyTagKeysException :: forall a. AsError a => Fold a ServiceError
_TooManyTagKeysException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagKeysException"
_TooManyTagsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyTagsException :: forall a. AsError a => Fold a ServiceError
_TooManyTagsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
_UnsupportedLanguageException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnsupportedLanguageException :: forall a. AsError a => Fold a ServiceError
_UnsupportedLanguageException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedLanguageException"