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