// // Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // A copy of the License is located at // // http://aws.amazon.com/apache2.0 // // or in the "license" file accompanying this file. This file is distributed // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language governing // permissions and limitations under the License. // #import #import #import NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const AWSComprehendErrorDomain; typedef NS_ENUM(NSInteger, AWSComprehendErrorType) { AWSComprehendErrorUnknown, AWSComprehendErrorBatchSizeLimitExceeded, AWSComprehendErrorConcurrentModification, AWSComprehendErrorInternalServer, AWSComprehendErrorInvalidFilter, AWSComprehendErrorInvalidRequest, AWSComprehendErrorJobNotFound, AWSComprehendErrorKmsKeyValidation, AWSComprehendErrorResourceInUse, AWSComprehendErrorResourceLimitExceeded, AWSComprehendErrorResourceNotFound, AWSComprehendErrorResourceUnavailable, AWSComprehendErrorTextSizeLimitExceeded, AWSComprehendErrorTooManyRequests, AWSComprehendErrorTooManyTagKeys, AWSComprehendErrorTooManyTags, AWSComprehendErrorUnsupportedLanguage, }; typedef NS_ENUM(NSInteger, AWSComprehendAugmentedManifestsDocumentTypeFormat) { AWSComprehendAugmentedManifestsDocumentTypeFormatUnknown, AWSComprehendAugmentedManifestsDocumentTypeFormatPlainTextDocument, AWSComprehendAugmentedManifestsDocumentTypeFormatSemiStructuredDocument, }; typedef NS_ENUM(NSInteger, AWSComprehendBlockType) { AWSComprehendBlockTypeUnknown, AWSComprehendBlockTypeLine, AWSComprehendBlockTypeWord, }; typedef NS_ENUM(NSInteger, AWSComprehendDatasetDataFormat) { AWSComprehendDatasetDataFormatUnknown, AWSComprehendDatasetDataFormatComprehendCsv, AWSComprehendDatasetDataFormatAugmentedManifest, }; typedef NS_ENUM(NSInteger, AWSComprehendDatasetStatus) { AWSComprehendDatasetStatusUnknown, AWSComprehendDatasetStatusCreating, AWSComprehendDatasetStatusCompleted, AWSComprehendDatasetStatusFailed, }; typedef NS_ENUM(NSInteger, AWSComprehendDatasetType) { AWSComprehendDatasetTypeUnknown, AWSComprehendDatasetTypeTrain, AWSComprehendDatasetTypeTest, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentClassifierDataFormat) { AWSComprehendDocumentClassifierDataFormatUnknown, AWSComprehendDocumentClassifierDataFormatComprehendCsv, AWSComprehendDocumentClassifierDataFormatAugmentedManifest, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentClassifierDocumentTypeFormat) { AWSComprehendDocumentClassifierDocumentTypeFormatUnknown, AWSComprehendDocumentClassifierDocumentTypeFormatPlainTextDocument, AWSComprehendDocumentClassifierDocumentTypeFormatSemiStructuredDocument, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentClassifierMode) { AWSComprehendDocumentClassifierModeUnknown, AWSComprehendDocumentClassifierModeMultiClass, AWSComprehendDocumentClassifierModeMultiLabel, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentReadAction) { AWSComprehendDocumentReadActionUnknown, AWSComprehendDocumentReadActionTextractDetectDocumentText, AWSComprehendDocumentReadActionTextractAnalyzeDocument, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentReadFeatureTypes) { AWSComprehendDocumentReadFeatureTypesUnknown, AWSComprehendDocumentReadFeatureTypesTables, AWSComprehendDocumentReadFeatureTypesForms, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentReadMode) { AWSComprehendDocumentReadModeUnknown, AWSComprehendDocumentReadModeServiceDefault, AWSComprehendDocumentReadModeForceDocumentReadAction, }; typedef NS_ENUM(NSInteger, AWSComprehendDocumentType) { AWSComprehendDocumentTypeUnknown, AWSComprehendDocumentTypeNativePdf, AWSComprehendDocumentTypeScannedPdf, AWSComprehendDocumentTypeMsWord, AWSComprehendDocumentTypeImage, AWSComprehendDocumentTypePlainText, AWSComprehendDocumentTypeTextractDetectDocumentTextJson, AWSComprehendDocumentTypeTextractAnalyzeDocumentJson, }; typedef NS_ENUM(NSInteger, AWSComprehendEndpointStatus) { AWSComprehendEndpointStatusUnknown, AWSComprehendEndpointStatusCreating, AWSComprehendEndpointStatusDeleting, AWSComprehendEndpointStatusFailed, AWSComprehendEndpointStatusInService, AWSComprehendEndpointStatusUpdating, }; typedef NS_ENUM(NSInteger, AWSComprehendEntityRecognizerDataFormat) { AWSComprehendEntityRecognizerDataFormatUnknown, AWSComprehendEntityRecognizerDataFormatComprehendCsv, AWSComprehendEntityRecognizerDataFormatAugmentedManifest, }; typedef NS_ENUM(NSInteger, AWSComprehendEntityType) { AWSComprehendEntityTypeUnknown, AWSComprehendEntityTypePerson, AWSComprehendEntityTypeLocation, AWSComprehendEntityTypeOrganization, AWSComprehendEntityTypeCommercialItem, AWSComprehendEntityTypeEvent, AWSComprehendEntityTypeDate, AWSComprehendEntityTypeQuantity, AWSComprehendEntityTypeTitle, AWSComprehendEntityTypeOther, }; typedef NS_ENUM(NSInteger, AWSComprehendFlywheelIterationStatus) { AWSComprehendFlywheelIterationStatusUnknown, AWSComprehendFlywheelIterationStatusTraining, AWSComprehendFlywheelIterationStatusEvaluating, AWSComprehendFlywheelIterationStatusCompleted, AWSComprehendFlywheelIterationStatusFailed, AWSComprehendFlywheelIterationStatusStopRequested, AWSComprehendFlywheelIterationStatusStopped, }; typedef NS_ENUM(NSInteger, AWSComprehendFlywheelStatus) { AWSComprehendFlywheelStatusUnknown, AWSComprehendFlywheelStatusCreating, AWSComprehendFlywheelStatusActive, AWSComprehendFlywheelStatusUpdating, AWSComprehendFlywheelStatusDeleting, AWSComprehendFlywheelStatusFailed, }; typedef NS_ENUM(NSInteger, AWSComprehendInputFormat) { AWSComprehendInputFormatUnknown, AWSComprehendInputFormatOneDocPerFile, AWSComprehendInputFormatOneDocPerLine, }; typedef NS_ENUM(NSInteger, AWSComprehendInvalidRequestDetailReason) { AWSComprehendInvalidRequestDetailReasonUnknown, AWSComprehendInvalidRequestDetailReasonDocumentSizeExceeded, AWSComprehendInvalidRequestDetailReasonUnsupportedDocType, AWSComprehendInvalidRequestDetailReasonPageLimitExceeded, AWSComprehendInvalidRequestDetailReasonTextractAccessDenied, }; typedef NS_ENUM(NSInteger, AWSComprehendInvalidRequestReason) { AWSComprehendInvalidRequestReasonUnknown, AWSComprehendInvalidRequestReasonInvalidDocument, }; typedef NS_ENUM(NSInteger, AWSComprehendJobStatus) { AWSComprehendJobStatusUnknown, AWSComprehendJobStatusSubmitted, AWSComprehendJobStatusInProgress, AWSComprehendJobStatusCompleted, AWSComprehendJobStatusFailed, AWSComprehendJobStatusStopRequested, AWSComprehendJobStatusStopped, }; typedef NS_ENUM(NSInteger, AWSComprehendLanguageCode) { AWSComprehendLanguageCodeUnknown, AWSComprehendLanguageCodeEn, AWSComprehendLanguageCodeEs, AWSComprehendLanguageCodeFr, AWSComprehendLanguageCodeDe, AWSComprehendLanguageCodeIt, AWSComprehendLanguageCodePt, AWSComprehendLanguageCodeAr, AWSComprehendLanguageCodeHi, AWSComprehendLanguageCodeJa, AWSComprehendLanguageCodeKo, AWSComprehendLanguageCodeZh, AWSComprehendLanguageCodeZhTW, }; typedef NS_ENUM(NSInteger, AWSComprehendModelStatus) { AWSComprehendModelStatusUnknown, AWSComprehendModelStatusSubmitted, AWSComprehendModelStatusTraining, AWSComprehendModelStatusDeleting, AWSComprehendModelStatusStopRequested, AWSComprehendModelStatusStopped, AWSComprehendModelStatusInError, AWSComprehendModelStatusTrained, AWSComprehendModelStatusTrainedWithWarning, }; typedef NS_ENUM(NSInteger, AWSComprehendModelType) { AWSComprehendModelTypeUnknown, AWSComprehendModelTypeDocumentClassifier, AWSComprehendModelTypeEntityRecognizer, }; typedef NS_ENUM(NSInteger, AWSComprehendPageBasedErrorCode) { AWSComprehendPageBasedErrorCodeUnknown, AWSComprehendPageBasedErrorCodeTextractBadPage, AWSComprehendPageBasedErrorCodeTextractProvisionedThroughputExceeded, AWSComprehendPageBasedErrorCodePageCharactersExceeded, AWSComprehendPageBasedErrorCodePageSizeExceeded, AWSComprehendPageBasedErrorCodeInternalServerError, }; typedef NS_ENUM(NSInteger, AWSComprehendPageBasedWarningCode) { AWSComprehendPageBasedWarningCodeUnknown, AWSComprehendPageBasedWarningCodeInferencingPlaintextWithNativeTrainedModel, AWSComprehendPageBasedWarningCodeInferencingNativeDocumentWithPlaintextTrainedModel, }; typedef NS_ENUM(NSInteger, AWSComprehendPartOfSpeechTagType) { AWSComprehendPartOfSpeechTagTypeUnknown, AWSComprehendPartOfSpeechTagTypeAdj, AWSComprehendPartOfSpeechTagTypeAdp, AWSComprehendPartOfSpeechTagTypeAdv, AWSComprehendPartOfSpeechTagTypeAux, AWSComprehendPartOfSpeechTagTypeConj, AWSComprehendPartOfSpeechTagTypeCconj, AWSComprehendPartOfSpeechTagTypeDet, AWSComprehendPartOfSpeechTagTypeIntj, AWSComprehendPartOfSpeechTagTypeNoun, AWSComprehendPartOfSpeechTagTypeNum, AWSComprehendPartOfSpeechTagTypeO, AWSComprehendPartOfSpeechTagTypePart, AWSComprehendPartOfSpeechTagTypePron, AWSComprehendPartOfSpeechTagTypePropn, AWSComprehendPartOfSpeechTagTypePunct, AWSComprehendPartOfSpeechTagTypeSconj, AWSComprehendPartOfSpeechTagTypeSym, AWSComprehendPartOfSpeechTagTypeVerb, }; typedef NS_ENUM(NSInteger, AWSComprehendPiiEntitiesDetectionMaskMode) { AWSComprehendPiiEntitiesDetectionMaskModeUnknown, AWSComprehendPiiEntitiesDetectionMaskModeMask, AWSComprehendPiiEntitiesDetectionMaskModeReplaceWithPiiEntityType, }; typedef NS_ENUM(NSInteger, AWSComprehendPiiEntitiesDetectionMode) { AWSComprehendPiiEntitiesDetectionModeUnknown, AWSComprehendPiiEntitiesDetectionModeOnlyRedaction, AWSComprehendPiiEntitiesDetectionModeOnlyOffsets, }; typedef NS_ENUM(NSInteger, AWSComprehendPiiEntityType) { AWSComprehendPiiEntityTypeUnknown, AWSComprehendPiiEntityTypeBankAccountNumber, AWSComprehendPiiEntityTypeBankRouting, AWSComprehendPiiEntityTypeCreditDebitNumber, AWSComprehendPiiEntityTypeCreditDebitCvv, AWSComprehendPiiEntityTypeCreditDebitExpiry, AWSComprehendPiiEntityTypePin, AWSComprehendPiiEntityTypeEmail, AWSComprehendPiiEntityTypeAddress, AWSComprehendPiiEntityTypeName, AWSComprehendPiiEntityTypePhone, AWSComprehendPiiEntityTypeSsn, AWSComprehendPiiEntityTypeDateTime, AWSComprehendPiiEntityTypePassportNumber, AWSComprehendPiiEntityTypeDriverId, AWSComprehendPiiEntityTypeUrl, AWSComprehendPiiEntityTypeAge, AWSComprehendPiiEntityTypeUsername, AWSComprehendPiiEntityTypePassword, AWSComprehendPiiEntityTypeAwsAccessKey, AWSComprehendPiiEntityTypeAwsSecretKey, AWSComprehendPiiEntityTypeIpAddress, AWSComprehendPiiEntityTypeMacAddress, AWSComprehendPiiEntityTypeAll, AWSComprehendPiiEntityTypeLicensePlate, AWSComprehendPiiEntityTypeVehicleIdentificationNumber, AWSComprehendPiiEntityTypeUkNationalInsuranceNumber, AWSComprehendPiiEntityTypeCaSocialInsuranceNumber, AWSComprehendPiiEntityTypeUsIndividualTaxIdentificationNumber, AWSComprehendPiiEntityTypeUkUniqueTaxpayerReferenceNumber, AWSComprehendPiiEntityTypeInPermanentAccountNumber, AWSComprehendPiiEntityTypeInNrega, AWSComprehendPiiEntityTypeInternationalBankAccountNumber, AWSComprehendPiiEntityTypeSwiftCode, AWSComprehendPiiEntityTypeUkNationalHealthServiceNumber, AWSComprehendPiiEntityTypeCaHealthNumber, AWSComprehendPiiEntityTypeInAadhaar, AWSComprehendPiiEntityTypeInVoterNumber, }; typedef NS_ENUM(NSInteger, AWSComprehendRelationshipType) { AWSComprehendRelationshipTypeUnknown, AWSComprehendRelationshipTypeChild, }; typedef NS_ENUM(NSInteger, AWSComprehendSentimentType) { AWSComprehendSentimentTypeUnknown, AWSComprehendSentimentTypePositive, AWSComprehendSentimentTypeNegative, AWSComprehendSentimentTypeNeutral, AWSComprehendSentimentTypeMixed, }; typedef NS_ENUM(NSInteger, AWSComprehendSplit) { AWSComprehendSplitUnknown, AWSComprehendSplitTrain, AWSComprehendSplitTest, }; typedef NS_ENUM(NSInteger, AWSComprehendSyntaxLanguageCode) { AWSComprehendSyntaxLanguageCodeUnknown, AWSComprehendSyntaxLanguageCodeEn, AWSComprehendSyntaxLanguageCodeEs, AWSComprehendSyntaxLanguageCodeFr, AWSComprehendSyntaxLanguageCodeDe, AWSComprehendSyntaxLanguageCodeIt, AWSComprehendSyntaxLanguageCodePt, }; typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { AWSComprehendTargetedSentimentEntityTypeUnknown, AWSComprehendTargetedSentimentEntityTypePerson, AWSComprehendTargetedSentimentEntityTypeLocation, AWSComprehendTargetedSentimentEntityTypeOrganization, AWSComprehendTargetedSentimentEntityTypeFacility, AWSComprehendTargetedSentimentEntityTypeBrand, AWSComprehendTargetedSentimentEntityTypeCommercialItem, AWSComprehendTargetedSentimentEntityTypeMovie, AWSComprehendTargetedSentimentEntityTypeMusic, AWSComprehendTargetedSentimentEntityTypeBook, AWSComprehendTargetedSentimentEntityTypeSoftware, AWSComprehendTargetedSentimentEntityTypeGame, AWSComprehendTargetedSentimentEntityTypePersonalTitle, AWSComprehendTargetedSentimentEntityTypeEvent, AWSComprehendTargetedSentimentEntityTypeDate, AWSComprehendTargetedSentimentEntityTypeQuantity, AWSComprehendTargetedSentimentEntityTypeAttribute, AWSComprehendTargetedSentimentEntityTypeOther, }; @class AWSComprehendAugmentedManifestsListItem; @class AWSComprehendBatchDetectDominantLanguageItemResult; @class AWSComprehendBatchDetectDominantLanguageRequest; @class AWSComprehendBatchDetectDominantLanguageResponse; @class AWSComprehendBatchDetectEntitiesItemResult; @class AWSComprehendBatchDetectEntitiesRequest; @class AWSComprehendBatchDetectEntitiesResponse; @class AWSComprehendBatchDetectKeyPhrasesItemResult; @class AWSComprehendBatchDetectKeyPhrasesRequest; @class AWSComprehendBatchDetectKeyPhrasesResponse; @class AWSComprehendBatchDetectSentimentItemResult; @class AWSComprehendBatchDetectSentimentRequest; @class AWSComprehendBatchDetectSentimentResponse; @class AWSComprehendBatchDetectSyntaxItemResult; @class AWSComprehendBatchDetectSyntaxRequest; @class AWSComprehendBatchDetectSyntaxResponse; @class AWSComprehendBatchDetectTargetedSentimentItemResult; @class AWSComprehendBatchDetectTargetedSentimentRequest; @class AWSComprehendBatchDetectTargetedSentimentResponse; @class AWSComprehendBatchItemError; @class AWSComprehendBlock; @class AWSComprehendBlockReference; @class AWSComprehendBoundingBox; @class AWSComprehendChildBlock; @class AWSComprehendClassifierEvaluationMetrics; @class AWSComprehendClassifierMetadata; @class AWSComprehendClassifyDocumentRequest; @class AWSComprehendClassifyDocumentResponse; @class AWSComprehendContainsPiiEntitiesRequest; @class AWSComprehendContainsPiiEntitiesResponse; @class AWSComprehendCreateDatasetRequest; @class AWSComprehendCreateDatasetResponse; @class AWSComprehendCreateDocumentClassifierRequest; @class AWSComprehendCreateDocumentClassifierResponse; @class AWSComprehendCreateEndpointRequest; @class AWSComprehendCreateEndpointResponse; @class AWSComprehendCreateEntityRecognizerRequest; @class AWSComprehendCreateEntityRecognizerResponse; @class AWSComprehendCreateFlywheelRequest; @class AWSComprehendCreateFlywheelResponse; @class AWSComprehendDataSecurityConfig; @class AWSComprehendDatasetAugmentedManifestsListItem; @class AWSComprehendDatasetDocumentClassifierInputDataConfig; @class AWSComprehendDatasetEntityRecognizerAnnotations; @class AWSComprehendDatasetEntityRecognizerDocuments; @class AWSComprehendDatasetEntityRecognizerEntityList; @class AWSComprehendDatasetEntityRecognizerInputDataConfig; @class AWSComprehendDatasetFilter; @class AWSComprehendDatasetInputDataConfig; @class AWSComprehendDatasetProperties; @class AWSComprehendDeleteDocumentClassifierRequest; @class AWSComprehendDeleteDocumentClassifierResponse; @class AWSComprehendDeleteEndpointRequest; @class AWSComprehendDeleteEndpointResponse; @class AWSComprehendDeleteEntityRecognizerRequest; @class AWSComprehendDeleteEntityRecognizerResponse; @class AWSComprehendDeleteFlywheelRequest; @class AWSComprehendDeleteFlywheelResponse; @class AWSComprehendDeleteResourcePolicyRequest; @class AWSComprehendDeleteResourcePolicyResponse; @class AWSComprehendDescribeDatasetRequest; @class AWSComprehendDescribeDatasetResponse; @class AWSComprehendDescribeDocumentClassificationJobRequest; @class AWSComprehendDescribeDocumentClassificationJobResponse; @class AWSComprehendDescribeDocumentClassifierRequest; @class AWSComprehendDescribeDocumentClassifierResponse; @class AWSComprehendDescribeDominantLanguageDetectionJobRequest; @class AWSComprehendDescribeDominantLanguageDetectionJobResponse; @class AWSComprehendDescribeEndpointRequest; @class AWSComprehendDescribeEndpointResponse; @class AWSComprehendDescribeEntitiesDetectionJobRequest; @class AWSComprehendDescribeEntitiesDetectionJobResponse; @class AWSComprehendDescribeEntityRecognizerRequest; @class AWSComprehendDescribeEntityRecognizerResponse; @class AWSComprehendDescribeEventsDetectionJobRequest; @class AWSComprehendDescribeEventsDetectionJobResponse; @class AWSComprehendDescribeFlywheelIterationRequest; @class AWSComprehendDescribeFlywheelIterationResponse; @class AWSComprehendDescribeFlywheelRequest; @class AWSComprehendDescribeFlywheelResponse; @class AWSComprehendDescribeKeyPhrasesDetectionJobRequest; @class AWSComprehendDescribeKeyPhrasesDetectionJobResponse; @class AWSComprehendDescribePiiEntitiesDetectionJobRequest; @class AWSComprehendDescribePiiEntitiesDetectionJobResponse; @class AWSComprehendDescribeResourcePolicyRequest; @class AWSComprehendDescribeResourcePolicyResponse; @class AWSComprehendDescribeSentimentDetectionJobRequest; @class AWSComprehendDescribeSentimentDetectionJobResponse; @class AWSComprehendDescribeTargetedSentimentDetectionJobRequest; @class AWSComprehendDescribeTargetedSentimentDetectionJobResponse; @class AWSComprehendDescribeTopicsDetectionJobRequest; @class AWSComprehendDescribeTopicsDetectionJobResponse; @class AWSComprehendDetectDominantLanguageRequest; @class AWSComprehendDetectDominantLanguageResponse; @class AWSComprehendDetectEntitiesRequest; @class AWSComprehendDetectEntitiesResponse; @class AWSComprehendDetectKeyPhrasesRequest; @class AWSComprehendDetectKeyPhrasesResponse; @class AWSComprehendDetectPiiEntitiesRequest; @class AWSComprehendDetectPiiEntitiesResponse; @class AWSComprehendDetectSentimentRequest; @class AWSComprehendDetectSentimentResponse; @class AWSComprehendDetectSyntaxRequest; @class AWSComprehendDetectSyntaxResponse; @class AWSComprehendDetectTargetedSentimentRequest; @class AWSComprehendDetectTargetedSentimentResponse; @class AWSComprehendDocumentClass; @class AWSComprehendDocumentClassificationConfig; @class AWSComprehendDocumentClassificationJobFilter; @class AWSComprehendDocumentClassificationJobProperties; @class AWSComprehendDocumentClassifierDocuments; @class AWSComprehendDocumentClassifierFilter; @class AWSComprehendDocumentClassifierInputDataConfig; @class AWSComprehendDocumentClassifierOutputDataConfig; @class AWSComprehendDocumentClassifierProperties; @class AWSComprehendDocumentClassifierSummary; @class AWSComprehendDocumentLabel; @class AWSComprehendDocumentMetadata; @class AWSComprehendDocumentReaderConfig; @class AWSComprehendDocumentTypeListItem; @class AWSComprehendDominantLanguage; @class AWSComprehendDominantLanguageDetectionJobFilter; @class AWSComprehendDominantLanguageDetectionJobProperties; @class AWSComprehendEndpointFilter; @class AWSComprehendEndpointProperties; @class AWSComprehendEntitiesDetectionJobFilter; @class AWSComprehendEntitiesDetectionJobProperties; @class AWSComprehendEntity; @class AWSComprehendEntityLabel; @class AWSComprehendEntityRecognitionConfig; @class AWSComprehendEntityRecognizerAnnotations; @class AWSComprehendEntityRecognizerDocuments; @class AWSComprehendEntityRecognizerEntityList; @class AWSComprehendEntityRecognizerEvaluationMetrics; @class AWSComprehendEntityRecognizerFilter; @class AWSComprehendEntityRecognizerInputDataConfig; @class AWSComprehendEntityRecognizerMetadata; @class AWSComprehendEntityRecognizerMetadataEntityTypesListItem; @class AWSComprehendEntityRecognizerOutputDataConfig; @class AWSComprehendEntityRecognizerProperties; @class AWSComprehendEntityRecognizerSummary; @class AWSComprehendEntityTypesEvaluationMetrics; @class AWSComprehendEntityTypesListItem; @class AWSComprehendErrorsListItem; @class AWSComprehendEventsDetectionJobFilter; @class AWSComprehendEventsDetectionJobProperties; @class AWSComprehendExtractedCharactersListItem; @class AWSComprehendFlywheelFilter; @class AWSComprehendFlywheelIterationFilter; @class AWSComprehendFlywheelIterationProperties; @class AWSComprehendFlywheelModelEvaluationMetrics; @class AWSComprehendFlywheelProperties; @class AWSComprehendFlywheelSummary; @class AWSComprehendGeometry; @class AWSComprehendImportModelRequest; @class AWSComprehendImportModelResponse; @class AWSComprehendInputDataConfig; @class AWSComprehendInvalidRequestDetail; @class AWSComprehendKeyPhrase; @class AWSComprehendKeyPhrasesDetectionJobFilter; @class AWSComprehendKeyPhrasesDetectionJobProperties; @class AWSComprehendListDatasetsRequest; @class AWSComprehendListDatasetsResponse; @class AWSComprehendListDocumentClassificationJobsRequest; @class AWSComprehendListDocumentClassificationJobsResponse; @class AWSComprehendListDocumentClassifierSummariesRequest; @class AWSComprehendListDocumentClassifierSummariesResponse; @class AWSComprehendListDocumentClassifiersRequest; @class AWSComprehendListDocumentClassifiersResponse; @class AWSComprehendListDominantLanguageDetectionJobsRequest; @class AWSComprehendListDominantLanguageDetectionJobsResponse; @class AWSComprehendListEndpointsRequest; @class AWSComprehendListEndpointsResponse; @class AWSComprehendListEntitiesDetectionJobsRequest; @class AWSComprehendListEntitiesDetectionJobsResponse; @class AWSComprehendListEntityRecognizerSummariesRequest; @class AWSComprehendListEntityRecognizerSummariesResponse; @class AWSComprehendListEntityRecognizersRequest; @class AWSComprehendListEntityRecognizersResponse; @class AWSComprehendListEventsDetectionJobsRequest; @class AWSComprehendListEventsDetectionJobsResponse; @class AWSComprehendListFlywheelIterationHistoryRequest; @class AWSComprehendListFlywheelIterationHistoryResponse; @class AWSComprehendListFlywheelsRequest; @class AWSComprehendListFlywheelsResponse; @class AWSComprehendListKeyPhrasesDetectionJobsRequest; @class AWSComprehendListKeyPhrasesDetectionJobsResponse; @class AWSComprehendListPiiEntitiesDetectionJobsRequest; @class AWSComprehendListPiiEntitiesDetectionJobsResponse; @class AWSComprehendListSentimentDetectionJobsRequest; @class AWSComprehendListSentimentDetectionJobsResponse; @class AWSComprehendListTagsForResourceRequest; @class AWSComprehendListTagsForResourceResponse; @class AWSComprehendListTargetedSentimentDetectionJobsRequest; @class AWSComprehendListTargetedSentimentDetectionJobsResponse; @class AWSComprehendListTopicsDetectionJobsRequest; @class AWSComprehendListTopicsDetectionJobsResponse; @class AWSComprehendMentionSentiment; @class AWSComprehendOutputDataConfig; @class AWSComprehendPartOfSpeechTag; @class AWSComprehendPiiEntitiesDetectionJobFilter; @class AWSComprehendPiiEntitiesDetectionJobProperties; @class AWSComprehendPiiEntity; @class AWSComprehendPiiOutputDataConfig; @class AWSComprehendPoint; @class AWSComprehendPutResourcePolicyRequest; @class AWSComprehendPutResourcePolicyResponse; @class AWSComprehendRedactionConfig; @class AWSComprehendRelationshipsListItem; @class AWSComprehendSentimentDetectionJobFilter; @class AWSComprehendSentimentDetectionJobProperties; @class AWSComprehendSentimentScore; @class AWSComprehendStartDocumentClassificationJobRequest; @class AWSComprehendStartDocumentClassificationJobResponse; @class AWSComprehendStartDominantLanguageDetectionJobRequest; @class AWSComprehendStartDominantLanguageDetectionJobResponse; @class AWSComprehendStartEntitiesDetectionJobRequest; @class AWSComprehendStartEntitiesDetectionJobResponse; @class AWSComprehendStartEventsDetectionJobRequest; @class AWSComprehendStartEventsDetectionJobResponse; @class AWSComprehendStartFlywheelIterationRequest; @class AWSComprehendStartFlywheelIterationResponse; @class AWSComprehendStartKeyPhrasesDetectionJobRequest; @class AWSComprehendStartKeyPhrasesDetectionJobResponse; @class AWSComprehendStartPiiEntitiesDetectionJobRequest; @class AWSComprehendStartPiiEntitiesDetectionJobResponse; @class AWSComprehendStartSentimentDetectionJobRequest; @class AWSComprehendStartSentimentDetectionJobResponse; @class AWSComprehendStartTargetedSentimentDetectionJobRequest; @class AWSComprehendStartTargetedSentimentDetectionJobResponse; @class AWSComprehendStartTopicsDetectionJobRequest; @class AWSComprehendStartTopicsDetectionJobResponse; @class AWSComprehendStopDominantLanguageDetectionJobRequest; @class AWSComprehendStopDominantLanguageDetectionJobResponse; @class AWSComprehendStopEntitiesDetectionJobRequest; @class AWSComprehendStopEntitiesDetectionJobResponse; @class AWSComprehendStopEventsDetectionJobRequest; @class AWSComprehendStopEventsDetectionJobResponse; @class AWSComprehendStopKeyPhrasesDetectionJobRequest; @class AWSComprehendStopKeyPhrasesDetectionJobResponse; @class AWSComprehendStopPiiEntitiesDetectionJobRequest; @class AWSComprehendStopPiiEntitiesDetectionJobResponse; @class AWSComprehendStopSentimentDetectionJobRequest; @class AWSComprehendStopSentimentDetectionJobResponse; @class AWSComprehendStopTargetedSentimentDetectionJobRequest; @class AWSComprehendStopTargetedSentimentDetectionJobResponse; @class AWSComprehendStopTrainingDocumentClassifierRequest; @class AWSComprehendStopTrainingDocumentClassifierResponse; @class AWSComprehendStopTrainingEntityRecognizerRequest; @class AWSComprehendStopTrainingEntityRecognizerResponse; @class AWSComprehendSyntaxToken; @class AWSComprehendTag; @class AWSComprehendTagResourceRequest; @class AWSComprehendTagResourceResponse; @class AWSComprehendTargetedSentimentDetectionJobFilter; @class AWSComprehendTargetedSentimentDetectionJobProperties; @class AWSComprehendTargetedSentimentEntity; @class AWSComprehendTargetedSentimentMention; @class AWSComprehendTaskConfig; @class AWSComprehendTopicsDetectionJobFilter; @class AWSComprehendTopicsDetectionJobProperties; @class AWSComprehendUntagResourceRequest; @class AWSComprehendUntagResourceResponse; @class AWSComprehendUpdateDataSecurityConfig; @class AWSComprehendUpdateEndpointRequest; @class AWSComprehendUpdateEndpointResponse; @class AWSComprehendUpdateFlywheelRequest; @class AWSComprehendUpdateFlywheelResponse; @class AWSComprehendVpcConfig; @class AWSComprehendWarningsListItem; /**

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

Required parameters: [S3Uri, AttributeNames] */ @interface AWSComprehendAugmentedManifestsListItem : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable annotationDataS3Uri; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable attributeNames; /**

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.

*/ @property (nonatomic, assign) AWSComprehendAugmentedManifestsDocumentTypeFormat documentType; /**

The Amazon S3 location of the augmented manifest file.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable sourceDocumentsS3Uri; /**

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.

*/ @property (nonatomic, assign) AWSComprehendSplit split; @end /**

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

*/ @interface AWSComprehendBatchDetectDominantLanguageItemResult : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable languages; @end /** */ @interface AWSComprehendBatchDetectDominantLanguageRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectDominantLanguageResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

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

*/ @interface AWSComprehendBatchDetectEntitiesItemResult : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable entities; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; @end /** */ @interface AWSComprehendBatchDetectEntitiesRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectEntitiesResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

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

*/ @interface AWSComprehendBatchDetectKeyPhrasesItemResult : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable keyPhrases; @end /** */ @interface AWSComprehendBatchDetectKeyPhrasesRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectKeyPhrasesResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

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

*/ @interface AWSComprehendBatchDetectSentimentItemResult : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; /**

The sentiment detected in the document.

*/ @property (nonatomic, assign) AWSComprehendSentimentType sentiment; /**

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

*/ @property (nonatomic, strong) AWSComprehendSentimentScore * _Nullable sentimentScore; @end /** */ @interface AWSComprehendBatchDetectSentimentRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectSentimentResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

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

*/ @interface AWSComprehendBatchDetectSyntaxItemResult : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable syntaxTokens; @end /** */ @interface AWSComprehendBatchDetectSyntaxRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendSyntaxLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectSyntaxResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

Analysis results for one of the documents in the batch.

*/ @interface AWSComprehendBatchDetectTargetedSentimentItemResult : AWSModel /**

An array of targeted sentiment entities.

*/ @property (nonatomic, strong) NSArray * _Nullable entities; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; @end /** */ @interface AWSComprehendBatchDetectTargetedSentimentRequest : AWSRequest /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable textList; @end /** */ @interface AWSComprehendBatchDetectTargetedSentimentResponse : AWSModel /**

List of errors that the operation can return.

*/ @property (nonatomic, strong) NSArray * _Nullable errorList; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable resultList; @end /**

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

*/ @interface AWSComprehendBatchItemError : AWSModel /**

The numeric error code of the error.

*/ @property (nonatomic, strong) NSString * _Nullable errorCode; /**

A text description of the error.

*/ @property (nonatomic, strong) NSString * _Nullable errorMessage; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable index; @end /**

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

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

*/ @interface AWSComprehendBlock : AWSModel /**

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

  • WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.

  • LINE - A string of tab-delimited, contiguous words that are detected on a document page

*/ @property (nonatomic, assign) AWSComprehendBlockType blockType; /**

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

*/ @property (nonatomic, strong) AWSComprehendGeometry * _Nullable geometry; /**

Unique identifier for the block.

*/ @property (nonatomic, strong) NSString * _Nullable identifier; /**

Page number where the block appears.

*/ @property (nonatomic, strong) NSNumber * _Nullable page; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable relationships; /**

The word or line of text extracted from the block.

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /**

A reference to a block.

*/ @interface AWSComprehendBlockReference : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

Unique identifier for the block.

*/ @property (nonatomic, strong) NSString * _Nullable blockId; /**

List of child blocks within this block.

*/ @property (nonatomic, strong) NSArray * _Nullable childBlocks; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; @end /**

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

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

*/ @interface AWSComprehendBoundingBox : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable height; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable left; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable top; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable width; @end /**

Nested block contained within a block.

*/ @interface AWSComprehendChildBlock : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

Unique identifier for the child block.

*/ @property (nonatomic, strong) NSString * _Nullable childBlockId; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; @end /**

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

*/ @interface AWSComprehendClassifierEvaluationMetrics : AWSModel /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable accuracy; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable f1Score; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable hammingLoss; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable microF1Score; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable microPrecision; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable microRecall; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable precision; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable recall; @end /**

Provides information about a document classifier.

*/ @interface AWSComprehendClassifierMetadata : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendClassifierEvaluationMetrics * _Nullable evaluationMetrics; /**

The number of labels in the input data.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfLabels; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTestDocuments; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTrainedDocuments; @end /** */ @interface AWSComprehendClassifyDocumentRequest : AWSRequest /**

Use the Bytes parameter to input a text, PDF, Word or image file. You can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

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

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

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

*/ @property (nonatomic, strong) NSData * _Nullable bytes; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /**

The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendClassifyDocumentResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable classes; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentMetadata * _Nullable documentMetadata; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable documentType; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable errors; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable labels; /**

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

The field is empty if the system generated no warnings.

*/ @property (nonatomic, strong) NSArray * _Nullable warnings; @end /** */ @interface AWSComprehendContainsPiiEntitiesRequest : AWSRequest /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendContainsPiiEntitiesResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable labels; @end /** */ @interface AWSComprehendCreateDatasetRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

Name of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable datasetName; /**

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

*/ @property (nonatomic, assign) AWSComprehendDatasetType datasetType; /**

Description of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable detail; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendDatasetInputDataConfig * _Nullable inputDataConfig; /**

Tags for the dataset.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; @end /** */ @interface AWSComprehendCreateDatasetResponse : AWSModel /**

The ARN of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable datasetArn; @end /** */ @interface AWSComprehendCreateDocumentClassifierRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The name of the document classifier.

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierName; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierInputDataConfig * _Nullable inputDataConfig; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierMode mode; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

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

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

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

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

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

*/ @property (nonatomic, strong) NSString * _Nullable modelPolicy; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable versionName; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendCreateDocumentClassifierResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; @end /** */ @interface AWSComprehendCreateEndpointRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable desiredInferenceUnits; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable endpointName; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable modelArn; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable tags; @end /** */ @interface AWSComprehendCreateEndpointResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable modelArn; @end /** */ @interface AWSComprehendCreateEntityRecognizerRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerInputDataConfig * _Nullable inputDataConfig; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

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

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

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

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

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

*/ @property (nonatomic, strong) NSString * _Nullable modelPolicy; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable recognizerName; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable versionName; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendCreateEntityRecognizerResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; @end /** */ @interface AWSComprehendCreateFlywheelRequest : AWSRequest /**

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataLakeS3Uri; /**

Data security configurations.

*/ @property (nonatomic, strong) AWSComprehendDataSecurityConfig * _Nullable dataSecurityConfig; /**

Name for the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelName; /**

The model type.

*/ @property (nonatomic, assign) AWSComprehendModelType modelType; /**

The tags to associate with this flywheel.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

Configuration about the custom classifier associated with the flywheel.

*/ @property (nonatomic, strong) AWSComprehendTaskConfig * _Nullable taskConfig; @end /** */ @interface AWSComprehendCreateFlywheelResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; /**

The Amazon Resource Number (ARN) of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /**

Data security configuration.

*/ @interface AWSComprehendDataSecurityConfig : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataLakeKmsKeyId; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

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

Required parameters: [AttributeNames, S3Uri] */ @interface AWSComprehendDatasetAugmentedManifestsListItem : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable annotationDataS3Uri; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable attributeNames; /**

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

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

*/ @property (nonatomic, assign) AWSComprehendAugmentedManifestsDocumentTypeFormat documentType; /**

The Amazon S3 location of the augmented manifest file.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable sourceDocumentsS3Uri; @end /**

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

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

Required parameters: [S3Uri] */ @interface AWSComprehendDatasetDocumentClassifierInputDataConfig : AWSModel /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable labelDelimiter; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Describes the annotations associated with a entity recognizer.

Required parameters: [S3Uri] */ @interface AWSComprehendDatasetEntityRecognizerAnnotations : AWSModel /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

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

Required parameters: [S3Uri] */ @interface AWSComprehendDatasetEntityRecognizerDocuments : AWSModel /**

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.

*/ @property (nonatomic, assign) AWSComprehendInputFormat inputFormat; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Describes the dataset entity list for an entity recognizer model.

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

Required parameters: [S3Uri] */ @interface AWSComprehendDatasetEntityRecognizerEntityList : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

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

Required parameters: [Documents] */ @interface AWSComprehendDatasetEntityRecognizerInputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendDatasetEntityRecognizerAnnotations * _Nullable annotations; /**

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

*/ @property (nonatomic, strong) AWSComprehendDatasetEntityRecognizerDocuments * _Nullable documents; /**

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

*/ @property (nonatomic, strong) AWSComprehendDatasetEntityRecognizerEntityList * _Nullable entityList; @end /**

Filter the datasets based on creation time or dataset status.

*/ @interface AWSComprehendDatasetFilter : AWSModel /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeAfter; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeBefore; /**

Filter the datasets based on the dataset type.

*/ @property (nonatomic, assign) AWSComprehendDatasetType datasetType; /**

Filter the datasets based on the dataset status.

*/ @property (nonatomic, assign) AWSComprehendDatasetStatus status; @end /**

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

*/ @interface AWSComprehendDatasetInputDataConfig : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable augmentedManifests; /**

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

AUGMENTED_MANIFEST: The data format

*/ @property (nonatomic, assign) AWSComprehendDatasetDataFormat dataFormat; /**

The input properties for training a document classifier model.

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

*/ @property (nonatomic, strong) AWSComprehendDatasetDocumentClassifierInputDataConfig * _Nullable documentClassifierInputDataConfig; /**

The input properties for training an entity recognizer model.

*/ @property (nonatomic, strong) AWSComprehendDatasetEntityRecognizerInputDataConfig * _Nullable entityRecognizerInputDataConfig; @end /**

Properties associated with the dataset.

*/ @interface AWSComprehendDatasetProperties : AWSModel /**

Creation time of the dataset.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

The ARN of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable datasetArn; /**

The name of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable datasetName; /**

The S3 URI where the dataset is stored.

*/ @property (nonatomic, strong) NSString * _Nullable datasetS3Uri; /**

The dataset type (training data or test data).

*/ @property (nonatomic, assign) AWSComprehendDatasetType datasetType; /**

Description of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable detail; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

A description of the status of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

The number of documents in the dataset.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfDocuments; /**

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

*/ @property (nonatomic, assign) AWSComprehendDatasetStatus status; @end /** */ @interface AWSComprehendDeleteDocumentClassifierRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; @end /** */ @interface AWSComprehendDeleteDocumentClassifierResponse : AWSModel @end /** */ @interface AWSComprehendDeleteEndpointRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; @end /** */ @interface AWSComprehendDeleteEndpointResponse : AWSModel @end /** */ @interface AWSComprehendDeleteEntityRecognizerRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; @end /** */ @interface AWSComprehendDeleteEntityRecognizerResponse : AWSModel @end /** */ @interface AWSComprehendDeleteFlywheelRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /** */ @interface AWSComprehendDeleteFlywheelResponse : AWSModel @end /** */ @interface AWSComprehendDeleteResourcePolicyRequest : AWSRequest /**

The revision ID of the policy to delete.

*/ @property (nonatomic, strong) NSString * _Nullable policyRevisionId; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; @end /** */ @interface AWSComprehendDeleteResourcePolicyResponse : AWSModel @end /** */ @interface AWSComprehendDescribeDatasetRequest : AWSRequest /**

The ARN of the dataset.

*/ @property (nonatomic, strong) NSString * _Nullable datasetArn; @end /** */ @interface AWSComprehendDescribeDatasetResponse : AWSModel /**

The dataset properties.

*/ @property (nonatomic, strong) AWSComprehendDatasetProperties * _Nullable datasetProperties; @end /** */ @interface AWSComprehendDescribeDocumentClassificationJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeDocumentClassificationJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassificationJobProperties * _Nullable documentClassificationJobProperties; @end /** */ @interface AWSComprehendDescribeDocumentClassifierRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; @end /** */ @interface AWSComprehendDescribeDocumentClassifierResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierProperties * _Nullable documentClassifierProperties; @end /** */ @interface AWSComprehendDescribeDominantLanguageDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeDominantLanguageDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendDominantLanguageDetectionJobProperties * _Nullable dominantLanguageDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeEndpointRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; @end /** */ @interface AWSComprehendDescribeEndpointResponse : AWSModel /**

Describes information associated with the specific endpoint.

*/ @property (nonatomic, strong) AWSComprehendEndpointProperties * _Nullable endpointProperties; @end /** */ @interface AWSComprehendDescribeEntitiesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeEntitiesDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendEntitiesDetectionJobProperties * _Nullable entitiesDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeEntityRecognizerRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; @end /** */ @interface AWSComprehendDescribeEntityRecognizerResponse : AWSModel /**

Describes information associated with an entity recognizer.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerProperties * _Nullable entityRecognizerProperties; @end /** */ @interface AWSComprehendDescribeEventsDetectionJobRequest : AWSRequest /**

The identifier of the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeEventsDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendEventsDetectionJobProperties * _Nullable eventsDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeFlywheelIterationRequest : AWSRequest /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelIterationId; @end /** */ @interface AWSComprehendDescribeFlywheelIterationResponse : AWSModel /**

The configuration properties of a flywheel iteration.

*/ @property (nonatomic, strong) AWSComprehendFlywheelIterationProperties * _Nullable flywheelIterationProperties; @end /** */ @interface AWSComprehendDescribeFlywheelRequest : AWSRequest /**

The Amazon Resource Number (ARN) of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /** */ @interface AWSComprehendDescribeFlywheelResponse : AWSModel /**

The flywheel properties.

*/ @property (nonatomic, strong) AWSComprehendFlywheelProperties * _Nullable flywheelProperties; @end /** */ @interface AWSComprehendDescribeKeyPhrasesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeKeyPhrasesDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendKeyPhrasesDetectionJobProperties * _Nullable keyPhrasesDetectionJobProperties; @end /** */ @interface AWSComprehendDescribePiiEntitiesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribePiiEntitiesDetectionJobResponse : AWSModel /**

Provides information about a PII entities detection job.

*/ @property (nonatomic, strong) AWSComprehendPiiEntitiesDetectionJobProperties * _Nullable piiEntitiesDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeResourcePolicyRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; @end /** */ @interface AWSComprehendDescribeResourcePolicyResponse : AWSModel /**

The time at which the policy was created.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

The time at which the policy was last modified.

*/ @property (nonatomic, strong) NSDate * _Nullable lastModifiedTime; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable policyRevisionId; /**

The JSON body of the resource-based policy.

*/ @property (nonatomic, strong) NSString * _Nullable resourcePolicy; @end /** */ @interface AWSComprehendDescribeSentimentDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeSentimentDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendSentimentDetectionJobProperties * _Nullable sentimentDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeTargetedSentimentDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeTargetedSentimentDetectionJobResponse : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendTargetedSentimentDetectionJobProperties * _Nullable targetedSentimentDetectionJobProperties; @end /** */ @interface AWSComprehendDescribeTopicsDetectionJobRequest : AWSRequest /**

The identifier assigned by the user to the detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendDescribeTopicsDetectionJobResponse : AWSModel /**

The list of properties for the requested job.

*/ @property (nonatomic, strong) AWSComprehendTopicsDetectionJobProperties * _Nullable topicsDetectionJobProperties; @end /** */ @interface AWSComprehendDetectDominantLanguageRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectDominantLanguageResponse : AWSModel /**

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

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

*/ @property (nonatomic, strong) NSArray * _Nullable languages; @end /** */ @interface AWSComprehendDetectEntitiesRequest : AWSRequest /**

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

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

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

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

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

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

*/ @property (nonatomic, strong) NSData * _Nullable bytes; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /**

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

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

For information about endpoints, see Managing endpoints.

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; /**

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

All input documents must be in the same language.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectEntitiesResponse : AWSModel /**

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

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

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

*/ @property (nonatomic, strong) NSArray * _Nullable blocks; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentMetadata * _Nullable documentMetadata; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable documentType; /**

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

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

*/ @property (nonatomic, strong) NSArray * _Nullable entities; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable errors; @end /** */ @interface AWSComprehendDetectKeyPhrasesRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectKeyPhrasesResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable keyPhrases; @end /** */ @interface AWSComprehendDetectPiiEntitiesRequest : AWSRequest /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectPiiEntitiesResponse : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable entities; @end /** */ @interface AWSComprehendDetectSentimentRequest : AWSRequest /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectSentimentResponse : AWSModel /**

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

*/ @property (nonatomic, assign) AWSComprehendSentimentType sentiment; /**

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

*/ @property (nonatomic, strong) AWSComprehendSentimentScore * _Nullable sentimentScore; @end /** */ @interface AWSComprehendDetectSyntaxRequest : AWSRequest /**

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

*/ @property (nonatomic, assign) AWSComprehendSyntaxLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectSyntaxResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable syntaxTokens; @end /** */ @interface AWSComprehendDetectTargetedSentimentRequest : AWSRequest /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /** */ @interface AWSComprehendDetectTargetedSentimentResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable entities; @end /**

Specifies the class that categorizes the document being analyzed

*/ @interface AWSComprehendDocumentClass : AWSModel /**

The name of the class.

*/ @property (nonatomic, strong) NSString * _Nullable name; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable page; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; @end /**

Configuration required for a custom classification model.

Required parameters: [Mode] */ @interface AWSComprehendDocumentClassificationConfig : AWSModel /**

One or more labels to associate with the custom classifier.

*/ @property (nonatomic, strong) NSArray * _Nullable labels; /**

Classification mode indicates whether the documents are MULTI_CLASS or MULTI_LABEL.

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierMode mode; @end /**

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

*/ @interface AWSComprehendDocumentClassificationJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a document classification job.

*/ @interface AWSComprehendDocumentClassificationJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; /**

The time that the document classification job completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the document classification job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned to the document classification job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

A description of the status of the job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

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

Required parameters: [S3Uri] */ @interface AWSComprehendDocumentClassifierDocuments : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable testS3Uri; @end /**

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

*/ @interface AWSComprehendDocumentClassifierFilter : AWSModel /**

The name that you assigned to the document classifier

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierName; /**

Filters the list of classifiers based on status.

*/ @property (nonatomic, assign) AWSComprehendModelStatus status; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

The input properties for training a document classifier.

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

*/ @interface AWSComprehendDocumentClassifierInputDataConfig : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable augmentedManifests; /**

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.

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierDataFormat dataFormat; /**

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

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

  • Word files - Amazon Comprehend parser extracts the text.

  • Digital PDF files - Amazon Comprehend parser extracts the text.

  • Image files and scanned PDF files - Amazon Comprehend uses the Amazon Textract DetectDocumentText API to extract the text.

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

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

*/ @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /**

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

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierDocumentTypeFormat documentType; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierDocuments * _Nullable documents; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable labelDelimiter; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable testS3Uri; @end /**

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

*/ @interface AWSComprehendDocumentClassifierOutputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelStatsS3Prefix; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable kmsKeyId; /**

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

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

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Provides information about a document classifier.

*/ @interface AWSComprehendDocumentClassifierProperties : AWSModel /**

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.

*/ @property (nonatomic, strong) AWSComprehendClassifierMetadata * _Nullable classifierMetadata; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; /**

The time that training the document classifier completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierInputDataConfig * _Nullable inputDataConfig; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Additional information about the status of the classifier.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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.

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierMode mode; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

Provides output results configuration parameters for custom classifier jobs.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable sourceModelArn; /**

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

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

*/ @property (nonatomic, assign) AWSComprehendModelStatus status; /**

The time that the document classifier was submitted for training.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable trainingEndTime; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable trainingStartTime; /**

The version name that you assigned to the document classifier.

*/ @property (nonatomic, strong) NSString * _Nullable versionName; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

Describes information about a document classifier and its versions.

*/ @interface AWSComprehendDocumentClassifierSummary : AWSModel /**

The name that you assigned the document classifier.

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierName; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable latestVersionCreatedAt; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable latestVersionName; /**

Provides the status of the latest document classifier version.

*/ @property (nonatomic, assign) AWSComprehendModelStatus latestVersionStatus; /**

The number of versions you created.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfVersions; @end /**

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

*/ @interface AWSComprehendDocumentLabel : AWSModel /**

The name of the label.

*/ @property (nonatomic, strong) NSString * _Nullable name; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable page; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; @end /**

Information about the document, discovered during text extraction.

*/ @interface AWSComprehendDocumentMetadata : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable extractedCharacters; /**

Number of pages in the document.

*/ @property (nonatomic, strong) NSNumber * _Nullable pages; @end /**

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

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

  • Word files - Amazon Comprehend parser extracts the text.

  • Digital PDF files - Amazon Comprehend parser extracts the text.

  • Image files and scanned PDF files - Amazon Comprehend uses the Amazon Textract DetectDocumentText API to extract the text.

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

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

Required parameters: [DocumentReadAction] */ @interface AWSComprehendDocumentReaderConfig : AWSModel /**

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

  • TEXTRACT_DETECT_DOCUMENT_TEXT - The Amazon Comprehend service uses the DetectDocumentText API operation.

  • TEXTRACT_ANALYZE_DOCUMENT - The Amazon Comprehend service uses the AnalyzeDocument API operation.

*/ @property (nonatomic, assign) AWSComprehendDocumentReadAction documentReadAction; /**

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

  • SERVICE_DEFAULT - use the Amazon Comprehend service defaults for PDF files.

  • FORCE_DOCUMENT_READ_ACTION - Amazon Comprehend uses the Textract API specified by DocumentReadAction for all PDF files, including digital PDF files.

*/ @property (nonatomic, assign) AWSComprehendDocumentReadMode documentReadMode; /**

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

  • TABLES - Returns information about any tables that are detected in the input document.

  • FORMS - Returns information and the data from any forms that are detected in the input document.

*/ @property (nonatomic, strong) NSArray * _Nullable featureTypes; @end /**

Document type for each page in the document.

*/ @interface AWSComprehendDocumentTypeListItem : AWSModel /**

Page number.

*/ @property (nonatomic, strong) NSNumber * _Nullable page; /**

Document type.

*/ @property (nonatomic, assign) AWSComprehendDocumentType types; @end /**

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

*/ @interface AWSComprehendDominantLanguage : AWSModel /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable languageCode; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; @end /**

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

*/ @interface AWSComprehendDominantLanguageDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a dominant language detection job.

*/ @interface AWSComprehendDominantLanguageDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the dominant language detection job completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the dominant language detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

A description for the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

The filter used to determine which endpoints are returned. You can filter jobs on their name, model, status, or the date and time that they were created. You can only set one filter at a time.

*/ @interface AWSComprehendEndpointFilter : AWSModel /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeAfter; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeBefore; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable modelArn; /**

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

*/ @property (nonatomic, assign) AWSComprehendEndpointStatus status; @end /**

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

*/ @interface AWSComprehendEndpointProperties : AWSModel /**

The creation date and time of the endpoint.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable currentInferenceUnits; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable desiredDataAccessRoleArn; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable desiredInferenceUnits; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable desiredModelArn; /**

The Amazon Resource Number (ARN) of the endpoint.

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

The date and time that the endpoint was last modified.

*/ @property (nonatomic, strong) NSDate * _Nullable lastModifiedTime; /**

Specifies a reason for failure in cases of Failed status.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable modelArn; /**

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.

*/ @property (nonatomic, assign) AWSComprehendEndpointStatus status; @end /**

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

*/ @interface AWSComprehendEntitiesDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about an entities detection job.

*/ @interface AWSComprehendEntitiesDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the entities detection job completed

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; /**

The Amazon Resource Name (ARN) of the flywheel associated with this job.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the entities detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned the entities detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

Provides information about an entity.

*/ @interface AWSComprehendEntity : AWSModel /**

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

This field is empty for non-text input.

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

A reference to each block for this entity. This field is empty for plain-text input.

*/ @property (nonatomic, strong) NSArray * _Nullable blockReferences; /**

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

This field is empty for non-text input.

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; /**

The text of the entity.

*/ @property (nonatomic, strong) NSString * _Nullable text; /**

The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.

For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.

*/ @property (nonatomic, assign) AWSComprehendEntityType types; @end /**

Specifies one of the label or labels that categorize the personally identifiable information (PII) entity being analyzed.

*/ @interface AWSComprehendEntityLabel : AWSModel /**

The name of the label.

*/ @property (nonatomic, assign) AWSComprehendPiiEntityType name; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; @end /**

Configuration required for an entity recognition model.

Required parameters: [EntityTypes] */ @interface AWSComprehendEntityRecognitionConfig : AWSModel /**

Up to 25 entity types that the model is trained to recognize.

*/ @property (nonatomic, strong) NSArray * _Nullable entityTypes; @end /**

Describes the annotations associated with a entity recognizer.

Required parameters: [S3Uri] */ @interface AWSComprehendEntityRecognizerAnnotations : AWSModel /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable testS3Uri; @end /**

Describes the training documents submitted with an entity recognizer.

Required parameters: [S3Uri] */ @interface AWSComprehendEntityRecognizerDocuments : AWSModel /**

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.

*/ @property (nonatomic, assign) AWSComprehendInputFormat inputFormat; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable testS3Uri; @end /**

Describes the entity list submitted with an entity recognizer.

Required parameters: [S3Uri] */ @interface AWSComprehendEntityRecognizerEntityList : AWSModel /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Detailed information about the accuracy of an entity recognizer.

*/ @interface AWSComprehendEntityRecognizerEvaluationMetrics : AWSModel /**

A measure of how accurate the recognizer results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.

*/ @property (nonatomic, strong) NSNumber * _Nullable f1Score; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable precision; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable recall; @end /**

Provides information for filtering a list of entity recognizers. You can only specify one filtering parameter in a request. For more information, see the ListEntityRecognizers operation./>

*/ @interface AWSComprehendEntityRecognizerFilter : AWSModel /**

The name that you assigned the entity recognizer.

*/ @property (nonatomic, strong) NSString * _Nullable recognizerName; /**

The status of an entity recognizer.

*/ @property (nonatomic, assign) AWSComprehendModelStatus status; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Specifies the format and location of the input data.

Required parameters: [EntityTypes] */ @interface AWSComprehendEntityRecognizerInputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerAnnotations * _Nullable annotations; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable augmentedManifests; /**

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.

*/ @property (nonatomic, assign) AWSComprehendEntityRecognizerDataFormat dataFormat; /**

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.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerDocuments * _Nullable documents; /**

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

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerEntityList * _Nullable entityList; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable entityTypes; @end /**

Detailed information about an entity recognizer.

*/ @interface AWSComprehendEntityRecognizerMetadata : AWSModel /**

Entity types from the metadata of an entity recognizer.

*/ @property (nonatomic, strong) NSArray * _Nullable entityTypes; /**

Detailed information about the accuracy of an entity recognizer.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerEvaluationMetrics * _Nullable evaluationMetrics; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTestDocuments; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTrainedDocuments; @end /**

Individual item from the list of entity types in the metadata of an entity recognizer.

*/ @interface AWSComprehendEntityRecognizerMetadataEntityTypesListItem : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendEntityTypesEvaluationMetrics * _Nullable evaluationMetrics; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTrainMentions; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable types; @end /**

Output data configuration.

*/ @interface AWSComprehendEntityRecognizerOutputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelStatsS3Prefix; @end /**

Describes information about an entity recognizer.

*/ @interface AWSComprehendEntityRecognizerProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the recognizer creation completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

The input data properties of an entity recognizer.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerInputDataConfig * _Nullable inputDataConfig; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of the recognizer.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

Output data configuration.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerOutputDataConfig * _Nullable outputDataConfig; /**

Provides information about an entity recognizer.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerMetadata * _Nullable recognizerMetadata; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable sourceModelArn; /**

Provides the status of the entity recognizer.

*/ @property (nonatomic, assign) AWSComprehendModelStatus status; /**

The time that the recognizer was submitted for processing.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

The time that training of the entity recognizer was completed.

*/ @property (nonatomic, strong) NSDate * _Nullable trainingEndTime; /**

The time that training of the entity recognizer started.

*/ @property (nonatomic, strong) NSDate * _Nullable trainingStartTime; /**

The version name you assigned to the entity recognizer.

*/ @property (nonatomic, strong) NSString * _Nullable versionName; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

Describes the information about an entity recognizer and its versions.

*/ @interface AWSComprehendEntityRecognizerSummary : AWSModel /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable latestVersionCreatedAt; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable latestVersionName; /**

Provides the status of the latest entity recognizer version.

*/ @property (nonatomic, assign) AWSComprehendModelStatus latestVersionStatus; /**

The number of versions you created.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfVersions; /**

The name that you assigned the entity recognizer.

*/ @property (nonatomic, strong) NSString * _Nullable recognizerName; @end /**

Detailed information about the accuracy of an entity recognizer for a specific entity type.

*/ @interface AWSComprehendEntityTypesEvaluationMetrics : AWSModel /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable f1Score; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable precision; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable recall; @end /**

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Required parameters: [Type] */ @interface AWSComprehendEntityTypesListItem : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable types; @end /**

Text extraction encountered one or more page-level errors in the input document.

The ErrorCode contains one of the following values:

  • TEXTRACT_BAD_PAGE - Amazon Textract cannot read the page. For more information about page limits in Amazon Textract, see Page Quotas in Amazon Textract.

  • TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED - The number of requests exceeded your throughput limit. For more information about throughput quotas in Amazon Textract, see Default quotas in Amazon Textract.

  • PAGE_CHARACTERS_EXCEEDED - Too many text characters on the page (10,000 characters maximum).

  • PAGE_SIZE_EXCEEDED - The maximum page size is 10 MB.

  • INTERNAL_SERVER_ERROR - The request encountered a service issue. Try the API request again.

*/ @interface AWSComprehendErrorsListItem : AWSModel /**

Error code for the cause of the error.

*/ @property (nonatomic, assign) AWSComprehendPageBasedErrorCode errorCode; /**

Text message explaining the reason for the error.

*/ @property (nonatomic, strong) NSString * _Nullable errorMessage; /**

Page number where the error occurred.

*/ @property (nonatomic, strong) NSNumber * _Nullable page; @end /**

Provides information for filtering a list of event detection jobs.

*/ @interface AWSComprehendEventsDetectionJobFilter : AWSModel /**

Filters on the name of the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about an events detection job.

*/ @interface AWSComprehendEventsDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the events detection job completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name you assigned the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

The current status of the events detection job.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

The types of events that are detected by the job.

*/ @property (nonatomic, strong) NSArray * _Nullable targetEventTypes; @end /**

Array of the number of characters extracted from each page.

*/ @interface AWSComprehendExtractedCharactersListItem : AWSModel /**

Number of characters extracted from each page.

*/ @property (nonatomic, strong) NSNumber * _Nullable count; /**

Page number.

*/ @property (nonatomic, strong) NSNumber * _Nullable page; @end /**

Filter the flywheels based on creation time or flywheel status.

*/ @interface AWSComprehendFlywheelFilter : AWSModel /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeAfter; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeBefore; /**

Filter the flywheels based on the flywheel status.

*/ @property (nonatomic, assign) AWSComprehendFlywheelStatus status; @end /**

Filter the flywheel iterations based on creation time.

*/ @interface AWSComprehendFlywheelIterationFilter : AWSModel /**

Filter the flywheel iterations to include iterations created after the specified time.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeAfter; /**

Filter the flywheel iterations to include iterations created before the specified time.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTimeBefore; @end /**

The configuration properties of a flywheel iteration.

*/ @interface AWSComprehendFlywheelIterationProperties : AWSModel /**

The creation start time of the flywheel iteration.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

The completion time of this flywheel iteration.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The ARN of the evaluated model associated with this flywheel iteration.

*/ @property (nonatomic, strong) NSString * _Nullable evaluatedModelArn; /**

The evaluation metrics associated with the evaluated model.

*/ @property (nonatomic, strong) AWSComprehendFlywheelModelEvaluationMetrics * _Nullable evaluatedModelMetrics; /**

*/ @property (nonatomic, strong) NSString * _Nullable evaluationManifestS3Prefix; /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelIterationId; /**

A description of the status of the flywheel iteration.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

The status of the flywheel iteration.

*/ @property (nonatomic, assign) AWSComprehendFlywheelIterationStatus status; /**

The ARN of the trained model associated with this flywheel iteration.

*/ @property (nonatomic, strong) NSString * _Nullable trainedModelArn; /**

The metrics associated with the trained model.

*/ @property (nonatomic, strong) AWSComprehendFlywheelModelEvaluationMetrics * _Nullable trainedModelMetrics; @end /**

The evaluation metrics associated with the evaluated model.

*/ @interface AWSComprehendFlywheelModelEvaluationMetrics : AWSModel /**

Average accuracy metric for the model.

*/ @property (nonatomic, strong) NSNumber * _Nullable averageAccuracy; /**

The average F1 score from the evaluation metrics.

*/ @property (nonatomic, strong) NSNumber * _Nullable averageF1Score; /**

Average precision metric for the model.

*/ @property (nonatomic, strong) NSNumber * _Nullable averagePrecision; /**

Average recall metric for the model.

*/ @property (nonatomic, strong) NSNumber * _Nullable averageRecall; @end /**

The flywheel properties.

*/ @interface AWSComprehendFlywheelProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; /**

Creation time of the flywheel.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

Amazon S3 URI of the data lake location.

*/ @property (nonatomic, strong) NSString * _Nullable dataLakeS3Uri; /**

Data security configuration.

*/ @property (nonatomic, strong) AWSComprehendDataSecurityConfig * _Nullable dataSecurityConfig; /**

The Amazon Resource Number (ARN) of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

Last modified time for the flywheel.

*/ @property (nonatomic, strong) NSDate * _Nullable lastModifiedTime; /**

The most recent flywheel iteration.

*/ @property (nonatomic, strong) NSString * _Nullable latestFlywheelIteration; /**

A description of the status of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

Model type of the flywheel's model.

*/ @property (nonatomic, assign) AWSComprehendModelType modelType; /**

The status of the flywheel.

*/ @property (nonatomic, assign) AWSComprehendFlywheelStatus status; /**

Configuration about the custom classifier associated with the flywheel.

*/ @property (nonatomic, strong) AWSComprehendTaskConfig * _Nullable taskConfig; @end /**

Flywheel summary information.

*/ @interface AWSComprehendFlywheelSummary : AWSModel /**

ARN of the active model version for the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; /**

Creation time of the flywheel.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

Amazon S3 URI of the data lake location.

*/ @property (nonatomic, strong) NSString * _Nullable dataLakeS3Uri; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

Last modified time for the flywheel.

*/ @property (nonatomic, strong) NSDate * _Nullable lastModifiedTime; /**

The most recent flywheel iteration.

*/ @property (nonatomic, strong) NSString * _Nullable latestFlywheelIteration; /**

A description of the status of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

Model type of the flywheel's model.

*/ @property (nonatomic, assign) AWSComprehendModelType modelType; /**

The status of the flywheel.

*/ @property (nonatomic, assign) AWSComprehendFlywheelStatus status; @end /**

Information about the location of items on a document page.

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

*/ @interface AWSComprehendGeometry : AWSModel /**

An axis-aligned coarse representation of the location of the recognized item on the document page.

*/ @property (nonatomic, strong) AWSComprehendBoundingBox * _Nullable boundingBox; /**

Within the bounding box, a fine-grained polygon around the recognized item.

*/ @property (nonatomic, strong) NSArray * _Nullable polygon; @end /** */ @interface AWSComprehendImportModelRequest : AWSRequest /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to use Amazon Key Management Service (KMS) to encrypt or decrypt the custom model.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

The name to assign to the custom model that is created in Amazon Comprehend by this import.

*/ @property (nonatomic, strong) NSString * _Nullable modelName; /**

The Amazon Resource Name (ARN) of the custom model to import.

*/ @property (nonatomic, strong) NSString * _Nullable sourceModelArn; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

The version name given to the custom model that is created by this import. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/Region.

*/ @property (nonatomic, strong) NSString * _Nullable versionName; @end /** */ @interface AWSComprehendImportModelResponse : AWSModel /**

The Amazon Resource Name (ARN) of the custom model being imported.

*/ @property (nonatomic, strong) NSString * _Nullable modelArn; @end /**

The input properties for an inference job. The document reader config field applies only to non-text inputs for custom analysis.

Required parameters: [S3Uri] */ @interface AWSComprehendInputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /**

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.

*/ @property (nonatomic, assign) AWSComprehendInputFormat inputFormat; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Provides additional detail about why the request failed:

  • Document size is too large - Check the size of your file and resubmit the request.

  • Document type is not supported - Check the file type and resubmit the request.

  • Too many pages in the document - Check the number of pages in your file and resubmit the request.

  • Access denied to Amazon Textract - Verify that your account has permission to use Amazon Textract API operations and resubmit the request.

*/ @interface AWSComprehendInvalidRequestDetail : AWSModel /**

Reason code is INVALID_DOCUMENT.

*/ @property (nonatomic, assign) AWSComprehendInvalidRequestDetailReason reason; @end /**

Describes a key noun phrase.

*/ @interface AWSComprehendKeyPhrase : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; /**

The text of a key noun phrase.

*/ @property (nonatomic, strong) NSString * _Nullable text; @end /**

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

*/ @interface AWSComprehendKeyPhrasesDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a key phrases detection job.

*/ @interface AWSComprehendKeyPhrasesDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the key phrases detection job completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:key-phrases-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the key phrases detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned the key phrases detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendListDatasetsRequest : AWSRequest /**

Filters the datasets to be returned in the response.

*/ @property (nonatomic, strong) AWSComprehendDatasetFilter * _Nullable filter; /**

The Amazon Resource Number (ARN) of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

Maximum number of results to return in a response. The default is 100.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDatasetsResponse : AWSModel /**

The dataset properties list.

*/ @property (nonatomic, strong) NSArray * _Nullable datasetPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassificationJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassificationJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassificationJobsResponse : AWSModel /**

A list containing the properties of each job returned.

*/ @property (nonatomic, strong) NSArray * _Nullable documentClassificationJobPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassifierSummariesRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassifierSummariesResponse : AWSModel /**

The list of summaries of document classifiers.

*/ @property (nonatomic, strong) NSArray * _Nullable documentClassifierSummariesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassifiersRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDocumentClassifiersResponse : AWSModel /**

A list containing the properties of each job returned.

*/ @property (nonatomic, strong) NSArray * _Nullable documentClassifierPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDominantLanguageDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendDominantLanguageDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListDominantLanguageDetectionJobsResponse : AWSModel /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable dominantLanguageDetectionJobPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEndpointsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendEndpointFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEndpointsResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable endpointPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntitiesDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendEntitiesDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntitiesDetectionJobsResponse : AWSModel /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable entitiesDetectionJobPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntityRecognizerSummariesRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntityRecognizerSummariesResponse : AWSModel /**

The list entity recognizer summaries.

*/ @property (nonatomic, strong) NSArray * _Nullable entityRecognizerSummariesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntityRecognizersRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) AWSComprehendEntityRecognizerFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEntityRecognizersResponse : AWSModel /**

The list of properties of an entity recognizer.

*/ @property (nonatomic, strong) NSArray * _Nullable entityRecognizerPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEventsDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendEventsDetectionJobFilter * _Nullable filter; /**

The maximum number of results to return in each page.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListEventsDetectionJobsResponse : AWSModel /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable eventsDetectionJobPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListFlywheelIterationHistoryRequest : AWSRequest /**

Filter the flywheel iteration history based on creation time.

*/ @property (nonatomic, strong) AWSComprehendFlywheelIterationFilter * _Nullable filter; /**

The ARN of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

Maximum number of iteration history results to return

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Next token

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListFlywheelIterationHistoryResponse : AWSModel /**

List of flywheel iteration properties

*/ @property (nonatomic, strong) NSArray * _Nullable flywheelIterationPropertiesList; /**

Next token

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListFlywheelsRequest : AWSRequest /**

Filters the flywheels that are returned. You can filter flywheels on their status, or the date and time that they were submitted. You can only set one filter at a time.

*/ @property (nonatomic, strong) AWSComprehendFlywheelFilter * _Nullable filter; /**

Maximum number of results to return in a response. The default is 100.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListFlywheelsResponse : AWSModel /**

A list of flywheel properties retrieved by the service in response to the request.

*/ @property (nonatomic, strong) NSArray * _Nullable flywheelSummaryList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListKeyPhrasesDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendKeyPhrasesDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListKeyPhrasesDetectionJobsResponse : AWSModel /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable keyPhrasesDetectionJobPropertiesList; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListPiiEntitiesDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendPiiEntitiesDetectionJobFilter * _Nullable filter; /**

The maximum number of results to return in each page.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListPiiEntitiesDetectionJobsResponse : AWSModel /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable piiEntitiesDetectionJobPropertiesList; @end /** */ @interface AWSComprehendListSentimentDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendSentimentDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListSentimentDetectionJobsResponse : AWSModel /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable sentimentDetectionJobPropertiesList; @end /** */ @interface AWSComprehendListTagsForResourceRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; @end /** */ @interface AWSComprehendListTagsForResourceResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; @end /** */ @interface AWSComprehendListTargetedSentimentDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendTargetedSentimentDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListTargetedSentimentDetectionJobsResponse : AWSModel /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable targetedSentimentDetectionJobPropertiesList; @end /** */ @interface AWSComprehendListTopicsDetectionJobsRequest : AWSRequest /**

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.

*/ @property (nonatomic, strong) AWSComprehendTopicsDetectionJobFilter * _Nullable filter; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSComprehendListTopicsDetectionJobsResponse : AWSModel /**

Identifies the next page of results to return.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

A list containing the properties of each job that is returned.

*/ @property (nonatomic, strong) NSArray * _Nullable topicsDetectionJobPropertiesList; @end /**

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment.

*/ @interface AWSComprehendMentionSentiment : AWSModel /**

The sentiment of the mention.

*/ @property (nonatomic, assign) AWSComprehendSentimentType sentiment; /**

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

*/ @property (nonatomic, strong) AWSComprehendSentimentScore * _Nullable sentimentScore; @end /**

Provides configuration parameters for the output of inference jobs.

Required parameters: [S3Uri] */ @interface AWSComprehendOutputDataConfig : AWSModel /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable kmsKeyId; /**

When you use the OutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output file.

When the topic detection job is finished, the service creates an output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the ouput of the operation.

For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with .out appended at the end.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see Syntax in the Comprehend Developer Guide.

*/ @interface AWSComprehendPartOfSpeechTag : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; /**

Identifies the part of speech that the token represents.

*/ @property (nonatomic, assign) AWSComprehendPartOfSpeechTagType tag; @end /**

Provides information for filtering a list of PII entity detection jobs.

*/ @interface AWSComprehendPiiEntitiesDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a PII entities detection job.

*/ @interface AWSComprehendPiiEntitiesDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the PII entities detection job completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The input properties for a PII entities detection job.

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the PII entities detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned the PII entities detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, assign) AWSComprehendPiiEntitiesDetectionMode mode; /**

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

*/ @property (nonatomic, strong) AWSComprehendPiiOutputDataConfig * _Nullable outputDataConfig; /**

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.

*/ @property (nonatomic, strong) AWSComprehendRedactionConfig * _Nullable redactionConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; @end /**

Provides information about a PII entity.

*/ @interface AWSComprehendPiiEntity : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable score; /**

The entity's type.

*/ @property (nonatomic, assign) AWSComprehendPiiEntityType types; @end /**

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

Required parameters: [S3Uri] */ @interface AWSComprehendPiiOutputDataConfig : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable kmsKeyId; /**

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

For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with .out appended at the end.

*/ @property (nonatomic, strong) NSString * _Nullable s3Uri; @end /**

The X and Y coordinates of a point on a document page.

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

*/ @interface AWSComprehendPoint : AWSModel /**

The value of the X coordinate for a point on a polygon

*/ @property (nonatomic, strong) NSNumber * _Nullable X; /**

The value of the Y coordinate for a point on a polygon

*/ @property (nonatomic, strong) NSNumber * _Nullable Y; @end /** */ @interface AWSComprehendPutResourcePolicyRequest : AWSRequest /**

The revision ID that Amazon Comprehend assigned to the policy that you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you.

*/ @property (nonatomic, strong) NSString * _Nullable policyRevisionId; /**

The Amazon Resource Name (ARN) of the custom model to attach the policy to.

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; /**

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

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

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

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

*/ @property (nonatomic, strong) NSString * _Nullable resourcePolicy; @end /** */ @interface AWSComprehendPutResourcePolicyResponse : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable policyRevisionId; @end /**

Provides configuration parameters for PII entity redaction.

*/ @interface AWSComprehendRedactionConfig : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable maskCharacter; /**

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

*/ @property (nonatomic, assign) AWSComprehendPiiEntitiesDetectionMaskMode maskMode; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable piiEntityTypes; @end /**

List of child blocks for the current block.

*/ @interface AWSComprehendRelationshipsListItem : AWSModel /**

Identifers of the child blocks.

*/ @property (nonatomic, strong) NSArray * _Nullable ids; /**

Only supported relationship is a child relationship.

*/ @property (nonatomic, assign) AWSComprehendRelationshipType types; @end /**

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

*/ @interface AWSComprehendSentimentDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a sentiment detection job.

*/ @interface AWSComprehendSentimentDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the sentiment detection job ended.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the sentiment detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned to the sentiment detection job

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

*/ @interface AWSComprehendSentimentScore : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable mixed; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable negative; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable neutral; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable positive; @end /** */ @interface AWSComprehendStartDocumentClassificationJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; /**

The Amazon Resource Number (ARN) of the flywheel associated with the model to use.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartDocumentClassificationJobResponse : AWSModel /**

The ARN of the custom classification model.

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartDominantLanguageDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

An identifier for the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the dominant language detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartDominantLanguageDetectionJobResponse : AWSModel /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartEntitiesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; /**

The Amazon Resource Number (ARN) of the flywheel associated with the model to use.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartEntitiesDetectionJobResponse : AWSModel /**

The ARN of the custom entity recognition model.

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartEventsDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the events detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the events detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

The types of events to detect in the input documents.

*/ @property (nonatomic, strong) NSArray * _Nullable targetEventTypes; @end /** */ @interface AWSComprehendStartEventsDetectionJobResponse : AWSModel /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The status of the events detection job.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartFlywheelIterationRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The ARN of the flywheel.

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /** */ @interface AWSComprehendStartFlywheelIterationResponse : AWSModel /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; /**

*/ @property (nonatomic, strong) NSString * _Nullable flywheelIterationId; @end /** */ @interface AWSComprehendStartKeyPhrasesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the key phrases detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartKeyPhrasesDetectionJobResponse : AWSModel /**

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

arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:key-phrases-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartPiiEntitiesDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The input properties for a PII entities detection job.

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

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

*/ @property (nonatomic, assign) AWSComprehendPiiEntitiesDetectionMode mode; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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.

*/ @property (nonatomic, strong) AWSComprehendRedactionConfig * _Nullable redactionConfig; /**

Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; @end /** */ @interface AWSComprehendStartPiiEntitiesDetectionJobResponse : AWSModel /**

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

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier generated for the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The status of the job.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartSentimentDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the sentiment detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartSentimentDetectionJobResponse : AWSModel /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartTargetedSentimentDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The input properties for an inference job. The document reader config field applies only to non-text inputs for custom analysis.

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

Specifies where to send the output files.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartTargetedSentimentDetectionJobResponse : AWSModel /**

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

arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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 DescribeTargetedSentimentDetectionJob operation.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStartTopicsDetectionJobRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

The identifier of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

The number of topics to detect.

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTopics; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

Tags to associate with the topics detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendStartTopicsDetectionJobResponse : AWSModel /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopDominantLanguageDetectionJobRequest : AWSRequest /**

The identifier of the dominant language detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopDominantLanguageDetectionJobResponse : AWSModel /**

The identifier of the dominant language detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopEntitiesDetectionJobRequest : AWSRequest /**

The identifier of the entities detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopEntitiesDetectionJobResponse : AWSModel /**

The identifier of the entities detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopEventsDetectionJobRequest : AWSRequest /**

The identifier of the events detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopEventsDetectionJobResponse : AWSModel /**

The identifier of the events detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The status of the events detection job.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopKeyPhrasesDetectionJobRequest : AWSRequest /**

The identifier of the key phrases detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopKeyPhrasesDetectionJobResponse : AWSModel /**

The identifier of the key phrases detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopPiiEntitiesDetectionJobRequest : AWSRequest /**

The identifier of the PII entities detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopPiiEntitiesDetectionJobResponse : AWSModel /**

The identifier of the PII entities detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The status of the PII entities detection job.

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopSentimentDetectionJobRequest : AWSRequest /**

The identifier of the sentiment detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopSentimentDetectionJobResponse : AWSModel /**

The identifier of the sentiment detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopTargetedSentimentDetectionJobRequest : AWSRequest /**

The identifier of the targeted sentiment detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; @end /** */ @interface AWSComprehendStopTargetedSentimentDetectionJobResponse : AWSModel /**

The identifier of the targeted sentiment detection job to stop.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; @end /** */ @interface AWSComprehendStopTrainingDocumentClassifierRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable documentClassifierArn; @end /** */ @interface AWSComprehendStopTrainingDocumentClassifierResponse : AWSModel @end /** */ @interface AWSComprehendStopTrainingEntityRecognizerRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable entityRecognizerArn; @end /** */ @interface AWSComprehendStopTrainingEntityRecognizerResponse : AWSModel @end /**

Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.

*/ @interface AWSComprehendSyntaxToken : AWSModel /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; /**

Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see Syntax in the Comprehend Developer Guide.

*/ @property (nonatomic, strong) AWSComprehendPartOfSpeechTag * _Nullable partOfSpeech; /**

The word that was recognized in the source text.

*/ @property (nonatomic, strong) NSString * _Nullable text; /**

A unique identifier for a token.

*/ @property (nonatomic, strong) NSNumber * _Nullable tokenId; @end /**

A key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with the key-value pair ‘Department’:’Sales’ might be added to a resource to indicate its use by a particular department.

Required parameters: [Key] */ @interface AWSComprehendTag : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable key; /**

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.

*/ @property (nonatomic, strong) NSString * _Nullable value; @end /** */ @interface AWSComprehendTagResourceRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable tags; @end /** */ @interface AWSComprehendTagResourceResponse : AWSModel @end /**

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

*/ @interface AWSComprehendTargetedSentimentDetectionJobFilter : AWSModel /**

Filters on the name of the job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a targeted sentiment detection job.

*/ @interface AWSComprehendTargetedSentimentDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the targeted sentiment detection job ended.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

The input properties for an inference job. The document reader config field applies only to non-text inputs for custom analysis.

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the targeted sentiment detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name that you assigned to the targeted sentiment detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

The language code of the input documents.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /**

A description of the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

Provides configuration parameters for the output of inference jobs.

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /**

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment.

*/ @interface AWSComprehendTargetedSentimentEntity : AWSModel /**

One or more index into the Mentions array that provides the best name for the entity group.

*/ @property (nonatomic, strong) NSArray * _Nullable descriptiveMentionIndex; /**

An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.

*/ @property (nonatomic, strong) NSArray * _Nullable mentions; @end /**

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment.

*/ @interface AWSComprehendTargetedSentimentMention : AWSModel /**

The offset into the document text where the mention begins.

*/ @property (nonatomic, strong) NSNumber * _Nullable beginOffset; /**

The offset into the document text where the mention ends.

*/ @property (nonatomic, strong) NSNumber * _Nullable endOffset; /**

The confidence that all the entities mentioned in the group relate to the same entity.

*/ @property (nonatomic, strong) NSNumber * _Nullable groupScore; /**

Contains the sentiment and sentiment score for the mention.

*/ @property (nonatomic, strong) AWSComprehendMentionSentiment * _Nullable mentionSentiment; /**

Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

*/ @property (nonatomic, strong) NSNumber * _Nullable score; /**

The text in the document that identifies the entity.

*/ @property (nonatomic, strong) NSString * _Nullable text; /**

The type of the entity. Amazon Comprehend supports a variety of entity types.

*/ @property (nonatomic, assign) AWSComprehendTargetedSentimentEntityType types; @end /**

Configuration about the custom classifier associated with the flywheel.

Required parameters: [LanguageCode] */ @interface AWSComprehendTaskConfig : AWSModel /**

Configuration required for a classification model.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassificationConfig * _Nullable documentClassificationConfig; /**

Configuration required for an entity recognition model.

*/ @property (nonatomic, strong) AWSComprehendEntityRecognitionConfig * _Nullable entityRecognitionConfig; /**

Language code for the language that the model supports.

*/ @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; @end /**

Provides information for filtering topic detection jobs. For more information, see .

*/ @interface AWSComprehendTopicsDetectionJobFilter : AWSModel /**

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeAfter; /**

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.

*/ @property (nonatomic, strong) NSDate * _Nullable submitTimeBefore; @end /**

Provides information about a topic detection job.

*/ @interface AWSComprehendTopicsDetectionJobProperties : AWSModel /**

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

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

The time that the topic detection job was completed.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; /**

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

*/ @property (nonatomic, strong) AWSComprehendInputDataConfig * _Nullable inputDataConfig; /**

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

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

The following is an example job ARN:

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

*/ @property (nonatomic, strong) NSString * _Nullable jobArn; /**

The identifier assigned to the topic detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobId; /**

The name of the topic detection job.

*/ @property (nonatomic, strong) NSString * _Nullable jobName; /**

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

*/ @property (nonatomic, assign) AWSComprehendJobStatus jobStatus; /**

A description for the status of a job.

*/ @property (nonatomic, strong) NSString * _Nullable message; /**

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

*/ @property (nonatomic, strong) NSNumber * _Nullable numberOfTopics; /**

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

*/ @property (nonatomic, strong) AWSComprehendOutputDataConfig * _Nullable outputDataConfig; /**

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

*/ @property (nonatomic, strong) NSDate * _Nullable submitTime; /**

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

  • 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"

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

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.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendUntagResourceRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable resourceArn; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable tagKeys; @end /** */ @interface AWSComprehendUntagResourceResponse : AWSModel @end /**

Data security configuration.

*/ @interface AWSComprehendUpdateDataSecurityConfig : AWSModel /**

ID for the 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"

*/ @property (nonatomic, strong) NSString * _Nullable modelKmsKeyId; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /**

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** */ @interface AWSComprehendUpdateEndpointRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable desiredDataAccessRoleArn; /**

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.

*/ @property (nonatomic, strong) NSNumber * _Nullable desiredInferenceUnits; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable desiredModelArn; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; /**

The Amazon Resource Number (ARN) of the flywheel

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /** */ @interface AWSComprehendUpdateEndpointResponse : AWSModel /**

The Amazon Resource Number (ARN) of the new model.

*/ @property (nonatomic, strong) NSString * _Nullable desiredModelArn; @end /** */ @interface AWSComprehendUpdateFlywheelRequest : AWSRequest /**

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

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; /**

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; /**

Flywheel data security configuration.

*/ @property (nonatomic, strong) AWSComprehendUpdateDataSecurityConfig * _Nullable dataSecurityConfig; /**

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

*/ @property (nonatomic, strong) NSString * _Nullable flywheelArn; @end /** */ @interface AWSComprehendUpdateFlywheelResponse : AWSModel /**

The flywheel properties.

*/ @property (nonatomic, strong) AWSComprehendFlywheelProperties * _Nullable flywheelProperties; @end /**

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.

Required parameters: [SecurityGroupIds, Subnets] */ @interface AWSComprehendVpcConfig : AWSModel /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable securityGroupIds; /**

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.

*/ @property (nonatomic, strong) NSArray * _Nullable subnets; @end /**

The system identified one of the following warnings while processing the input document:

  • The document to classify is plain text, but the classifier is a native model.

  • The document to classify is semi-structured, but the classifier is a plain-text model.

*/ @interface AWSComprehendWarningsListItem : AWSModel /**

Page number in the input document.

*/ @property (nonatomic, strong) NSNumber * _Nullable page; /**

The type of warning.

*/ @property (nonatomic, assign) AWSComprehendPageBasedWarningCode warnCode; /**

Text message associated with the warning.

*/ @property (nonatomic, strong) NSString * _Nullable warnMessage; @end NS_ASSUME_NONNULL_END