View a markdown version of this page

Actions, resources, and condition keys for Amazon Comprehend - Service Authorization Reference

Actions, resources, and condition keys for Amazon Comprehend

Amazon Comprehend (service prefix: comprehend) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Comprehend

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

BatchDetectDominantLanguage

comprehend:BatchDetectDominantLanguage

Read

BatchDetectEntities

comprehend:BatchDetectEntities

Read

BatchDetectKeyPhrases

comprehend:BatchDetectKeyPhrases

Read

BatchDetectSentiment

comprehend:BatchDetectSentiment

Read

BatchDetectSyntax

comprehend:BatchDetectSyntax

Read

BatchDetectTargetedSentiment

comprehend:BatchDetectTargetedSentiment

Read

ClassifyDocument

comprehend:ClassifyDocument

Read

ContainsPiiEntities

comprehend:ContainsPiiEntities

Read

CreateDataset

comprehend:CreateDataset

Write

comprehend:TagResource

Tagging, Write

CreateDocumentClassifier

comprehend:CreateDocumentClassifier

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

CreateEndpoint

comprehend:CreateEndpoint

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

CreateEntityRecognizer

comprehend:CreateEntityRecognizer

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

CreateFlywheel

comprehend:CreateFlywheel

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

DeleteDocumentClassifier

comprehend:DeleteDocumentClassifier

Write

DeleteEndpoint

comprehend:DeleteEndpoint

Write

DeleteEntityRecognizer

comprehend:DeleteEntityRecognizer

Write

DeleteFlywheel

comprehend:DeleteFlywheel

Write

DeleteResourcePolicy

comprehend:DeleteResourcePolicy

Write

DescribeDataset

comprehend:DescribeDataset

Read

DescribeDocumentClassificationJob

comprehend:DescribeDocumentClassificationJob

Read

DescribeDocumentClassifier

comprehend:DescribeDocumentClassifier

Read

DescribeDominantLanguageDetectionJob

comprehend:DescribeDominantLanguageDetectionJob

Read

DescribeEndpoint

comprehend:DescribeEndpoint

Read

DescribeEntitiesDetectionJob

comprehend:DescribeEntitiesDetectionJob

Read

DescribeEntityRecognizer

comprehend:DescribeEntityRecognizer

Read

DescribeEventsDetectionJob

comprehend:DescribeEventsDetectionJob

Read

DescribeFlywheel

comprehend:DescribeFlywheel

Read

DescribeFlywheelIteration

comprehend:DescribeFlywheelIteration

Read

DescribeKeyPhrasesDetectionJob

comprehend:DescribeKeyPhrasesDetectionJob

Read

DescribePiiEntitiesDetectionJob

comprehend:DescribePiiEntitiesDetectionJob

Read

DescribeResourcePolicy

comprehend:DescribeResourcePolicy

Read

DescribeSentimentDetectionJob

comprehend:DescribeSentimentDetectionJob

Read

DescribeTargetedSentimentDetectionJob

comprehend:DescribeTargetedSentimentDetectionJob

Read

DescribeTopicsDetectionJob

comprehend:DescribeTopicsDetectionJob

Read

DetectDominantLanguage

comprehend:DetectDominantLanguage

Read

DetectEntities

comprehend:DetectEntities

Read

DetectKeyPhrases

comprehend:DetectKeyPhrases

Read

DetectPiiEntities

comprehend:DetectPiiEntities

Read

DetectSentiment

comprehend:DetectSentiment

Read

DetectSyntax

comprehend:DetectSyntax

Read

DetectTargetedSentiment

comprehend:DetectTargetedSentiment

Read

DetectToxicContent

comprehend:DetectToxicContent

Read

ImportModel

comprehend:ImportModel

Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

ListDatasets

comprehend:ListDatasets

Read

ListDocumentClassificationJobs

comprehend:ListDocumentClassificationJobs

Read

ListDocumentClassifierSummaries

comprehend:ListDocumentClassifierSummaries

Read

ListDocumentClassifiers

comprehend:ListDocumentClassifiers

Read

ListDominantLanguageDetectionJobs

comprehend:ListDominantLanguageDetectionJobs

Read

ListEndpoints

comprehend:ListEndpoints

Read

ListEntitiesDetectionJobs

comprehend:ListEntitiesDetectionJobs

Read

ListEntityRecognizerSummaries

comprehend:ListEntityRecognizerSummaries

Read

ListEntityRecognizers

comprehend:ListEntityRecognizers

Read

ListEventsDetectionJobs

comprehend:ListEventsDetectionJobs

Read

ListFlywheelIterationHistory

comprehend:ListFlywheelIterationHistory

Read

ListFlywheels

comprehend:ListFlywheels

Read

ListKeyPhrasesDetectionJobs

comprehend:ListKeyPhrasesDetectionJobs

Read

ListPiiEntitiesDetectionJobs

comprehend:ListPiiEntitiesDetectionJobs

Read

ListSentimentDetectionJobs

comprehend:ListSentimentDetectionJobs

Read

ListTagsForResource

comprehend:ListTagsForResource

Read

ListTargetedSentimentDetectionJobs

comprehend:ListTargetedSentimentDetectionJobs

Read

ListTopicsDetectionJobs

comprehend:ListTopicsDetectionJobs

Read

PutResourcePolicy

comprehend:PutResourcePolicy

Write

StartDocumentClassificationJob

comprehend:StartDocumentClassificationJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartDominantLanguageDetectionJob

comprehend:StartDominantLanguageDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartEntitiesDetectionJob

comprehend:StartEntitiesDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartEventsDetectionJob

comprehend:StartEventsDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartFlywheelIteration

comprehend:StartFlywheelIteration

Write

StartKeyPhrasesDetectionJob

comprehend:StartKeyPhrasesDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartPiiEntitiesDetectionJob

comprehend:StartPiiEntitiesDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartSentimentDetectionJob

comprehend:StartSentimentDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartTargetedSentimentDetectionJob

comprehend:StartTargetedSentimentDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StartTopicsDetectionJob

comprehend:StartTopicsDetectionJob

Write

comprehend:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

StopDominantLanguageDetectionJob

comprehend:StopDominantLanguageDetectionJob

Write

StopEntitiesDetectionJob

comprehend:StopEntitiesDetectionJob

Write

StopEventsDetectionJob

comprehend:StopEventsDetectionJob

Write

StopKeyPhrasesDetectionJob

comprehend:StopKeyPhrasesDetectionJob

Write

StopPiiEntitiesDetectionJob

comprehend:StopPiiEntitiesDetectionJob

Write

StopSentimentDetectionJob

comprehend:StopSentimentDetectionJob

Write

StopTargetedSentimentDetectionJob

comprehend:StopTargetedSentimentDetectionJob

Write

StopTrainingDocumentClassifier

comprehend:StopTrainingDocumentClassifier

Write

StopTrainingEntityRecognizer

comprehend:StopTrainingEntityRecognizer

Write

TagResource

comprehend:TagResource

Tagging, Write

UntagResource

comprehend:UntagResource

Tagging, Write

UpdateEndpoint

comprehend:UpdateEndpoint

Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

UpdateFlywheel

comprehend:UpdateFlywheel

Write

iam:PassRole

iam:PassedToService

comprehend.amazonaws.com

Write

Actions defined by Amazon Comprehend

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

BatchDetectDominantLanguage

Grants permission to detect the language or languages present in the list of text documents

Read

BatchDetectEntities

Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given list of text documents

Read

BatchDetectKeyPhrases

Grants permission to detect the phrases in the list of text documents that are most indicative of the content

Read

BatchDetectSentiment

Grants permission to detect the sentiment of a text in the list of documents (Positive, Negative, Neutral, or Mixed)

Read

BatchDetectSyntax

Grants permission to detect syntactic information (like Part of Speech, Tokens) in a list of text documents

Read

BatchDetectTargetedSentiment

Grants permission to detect the sentiments associated with specific entities (such as brands or products) within the given list of text documents

Read

ClassifyDocument

Grants permission to create a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint

document-classifier-endpoint*

aws:ResourceTag/${TagKey}

Read

ContainsPiiEntities

Grants permission to classify the personally identifiable information within given documents in real-time

Read

CreateDataset

Grants permission to create a new dataset within a flywheel

flywheel*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateDocumentClassifier

Grants permission to create a new document classifier that you can use to categorize documents

document-classifier*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:ModelKmsKey

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

CreateEndpoint

Grants permission to create a model-specific endpoint for synchronous inference for a previously trained custom model

document-classifier*

aws:ResourceTag/${TagKey}

Write

document-classifier-endpoint*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

entity-recognizer*

aws:ResourceTag/${TagKey}

entity-recognizer-endpoint*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

flywheel

aws:ResourceTag/${TagKey}

CreateEntityRecognizer

Grants permission to create an entity recognizer using submitted files

entity-recognizer*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:ModelKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

CreateFlywheel

Grants permission to create a new flywheel that you can use to train model versions

document-classifier

aws:ResourceTag/${TagKey}

Write

entity-recognizer

aws:ResourceTag/${TagKey}

flywheel*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:DataLakeKmsKey

comprehend:ModelKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

DeleteDocumentClassifier

Grants permission to delete a previously created document classifier

document-classifier*

aws:ResourceTag/${TagKey}

Write

DeleteEndpoint

Grants permission to delete a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted

document-classifier-endpoint*

aws:ResourceTag/${TagKey}

Write

entity-recognizer-endpoint*

aws:ResourceTag/${TagKey}

DeleteEntityRecognizer

Grants permission to delete a submitted entity recognizer

entity-recognizer*

aws:ResourceTag/${TagKey}

Write

DeleteFlywheel

Grants permission to Delete a flywheel

flywheel*

aws:ResourceTag/${TagKey}

Write

DeleteResourcePolicy

Grants permission to remove policy on resource

document-classifier*

aws:ResourceTag/${TagKey}

Write

entity-recognizer*

aws:ResourceTag/${TagKey}

DescribeDataset

Grants permission to get the properties associated with a dataset

flywheel-dataset*

aws:ResourceTag/${TagKey}

Read

DescribeDocumentClassificationJob

Grants permission to get the properties associated with a document classification job

document-classification-job*

aws:ResourceTag/${TagKey}

Read

DescribeDocumentClassifier

Grants permission to get the properties associated with a document classifier

document-classifier*

aws:ResourceTag/${TagKey}

Read

DescribeDominantLanguageDetectionJob

Grants permission to get the properties associated with a dominant language detection job

dominant-language-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeEndpoint

Grants permission to get the properties associated with a specific endpoint. Use this operation to get the status of an endpoint

document-classifier-endpoint*

aws:ResourceTag/${TagKey}

Read

entity-recognizer-endpoint*

aws:ResourceTag/${TagKey}

DescribeEntitiesDetectionJob

Grants permission to get the properties associated with an entities detection job

entities-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeEntityRecognizer

Grants permission to provide details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on

entity-recognizer*

aws:ResourceTag/${TagKey}

Read

DescribeEventsDetectionJob

Grants permission to get the properties associated with an Events detection job

events-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeFlywheel

Grants permission to get the properties associated with a flywheel

flywheel*

aws:ResourceTag/${TagKey}

Read

DescribeFlywheelIteration

Grants permission to get the properties associated with a flywheel iteration for a flywheel

flywheel*

aws:ResourceTag/${TagKey}

comprehend:FlywheelIterationId

Read

DescribeKeyPhrasesDetectionJob

Grants permission to get the properties associated with a key phrases detection job

key-phrases-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribePiiEntitiesDetectionJob

Grants permission to get the properties associated with a PII entities detection job

pii-entities-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeResourcePolicy

Grants permission to read attached policy on resource

document-classifier*

aws:ResourceTag/${TagKey}

Read

entity-recognizer*

aws:ResourceTag/${TagKey}

DescribeSentimentDetectionJob

Grants permission to get the properties associated with a sentiment detection job

sentiment-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeTargetedSentimentDetectionJob

Grants permission to get the properties associated with a targeted sentiment detection job

targeted-sentiment-detection-job*

aws:ResourceTag/${TagKey}

Read

DescribeTopicsDetectionJob

Grants permission to get the properties associated with a topic detection job

topics-detection-job*

aws:ResourceTag/${TagKey}

Read

DetectDominantLanguage

Grants permission to detect the language or languages present in the text

Read

DetectEntities

Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given text document

entity-recognizer-endpoint

aws:ResourceTag/${TagKey}

Read

DetectKeyPhrases

Grants permission to detect the phrases in the text that are most indicative of the content

Read

DetectPiiEntities

Grants permission to detect the personally identifiable information entities ("Name", "SSN", "PIN", etc) within the given text document

Read

DetectSentiment

Grants permission to detect the sentiment of a text in a document (Positive, Negative, Neutral, or Mixed)

Read

DetectSyntax

Grants permission to detect syntactic information (like Part of Speech, Tokens) in a text document

Read

DetectTargetedSentiment

Grants permission to detect the sentiments associated with specific entities (such as brands or products) in a document

Read

DetectToxicContent

Grants permission to detect toxic content within the given list of text segments

Read

ImportModel

Grants permission to import a trained Comprehend model

document-classifier*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:ModelKmsKey

Write

entity-recognizer*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:ModelKmsKey

ListDatasets

Grants permission to get a list of the Datasets associated with a flywheel

flywheel*

aws:ResourceTag/${TagKey}

Read

ListDocumentClassificationJobs

Grants permission to get a list of the document classification jobs that you have submitted

Read

ListDocumentClassifierSummaries

Grants permission to get a list of summaries of the document classifiers that you have created

Read

ListDocumentClassifiers

Grants permission to get a list of the document classifiers that you have created

Read

ListDominantLanguageDetectionJobs

Grants permission to get a list of the dominant language detection jobs that you have submitted

Read

ListEndpoints

Grants permission to get a list of all existing endpoints that you've created

Read

ListEntitiesDetectionJobs

Grants permission to get a list of the entity detection jobs that you have submitted

Read

ListEntityRecognizerSummaries

Grants permission to get a list of summaries for the entity recognizers that you have created

Read

ListEntityRecognizers

Grants permission to get a list of the properties of all entity recognizers that you created, including recognizers currently in training

Read

ListEventsDetectionJobs

Grants permission to get a list of Events detection jobs that you have submitted

Read

ListFlywheelIterationHistory

Grants permission to get a list of iterations associated for a flywheel

flywheel*

aws:ResourceTag/${TagKey}

Read

ListFlywheels

Grants permission to get a list of the flywheels that you have created

Read

ListKeyPhrasesDetectionJobs

Grants permission to get a list of key phrase detection jobs that you have submitted

Read

ListPiiEntitiesDetectionJobs

Grants permission to get a list of PII entities detection jobs that you have submitted

Read

ListSentimentDetectionJobs

Grants permission to get a list of sentiment detection jobs that you have submitted

Read

ListTagsForResource

Grants permission to list tags for a resource

document-classification-job

aws:ResourceTag/${TagKey}

Read

document-classifier

aws:ResourceTag/${TagKey}

document-classifier-endpoint

aws:ResourceTag/${TagKey}

dominant-language-detection-job

aws:ResourceTag/${TagKey}

entities-detection-job

aws:ResourceTag/${TagKey}

entity-recognizer

aws:ResourceTag/${TagKey}

entity-recognizer-endpoint

aws:ResourceTag/${TagKey}

events-detection-job

aws:ResourceTag/${TagKey}

flywheel

aws:ResourceTag/${TagKey}

flywheel-dataset

aws:ResourceTag/${TagKey}

key-phrases-detection-job

aws:ResourceTag/${TagKey}

pii-entities-detection-job

aws:ResourceTag/${TagKey}

sentiment-detection-job

aws:ResourceTag/${TagKey}

targeted-sentiment-detection-job

aws:ResourceTag/${TagKey}

topics-detection-job

aws:ResourceTag/${TagKey}

ListTargetedSentimentDetectionJobs

Grants permission to get a list of targeted sentiment detection jobs that you have submitted

Read

ListTopicsDetectionJobs

Grants permission to get a list of the topic detection jobs that you have submitted

Read

PutResourcePolicy

Grants permission to attach policy to resource

document-classifier*

aws:ResourceTag/${TagKey}

Write

entity-recognizer*

aws:ResourceTag/${TagKey}

StartDocumentClassificationJob

Grants permission to start an asynchronous document classification job

document-classification-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

document-classifier

aws:ResourceTag/${TagKey}

flywheel

aws:ResourceTag/${TagKey}

StartDominantLanguageDetectionJob

Grants permission to start an asynchronous dominant language detection job for a collection of documents

dominant-language-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

StartEntitiesDetectionJob

Grants permission to start an asynchronous entity detection job for a collection of documents

entities-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

entity-recognizer

aws:ResourceTag/${TagKey}

flywheel

aws:ResourceTag/${TagKey}

StartEventsDetectionJob

Grants permission to start an asynchronous Events detection job for a collection of documents

events-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

Write

StartFlywheelIteration

Grants permission to start a flywheel iteration for a flywheel

flywheel*

aws:ResourceTag/${TagKey}

Write

StartKeyPhrasesDetectionJob

Grants permission to start an asynchronous key phrase detection job for a collection of documents

key-phrases-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

StartPiiEntitiesDetectionJob

Grants permission to start an asynchronous PII entities detection job for a collection of documents

pii-entities-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

Write

StartSentimentDetectionJob

Grants permission to start an asynchronous sentiment detection job for a collection of documents

sentiment-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

StartTargetedSentimentDetectionJob

Grants permission to start an asynchronous targeted sentiment detection job for a collection of documents

targeted-sentiment-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

StartTopicsDetectionJob

Grants permission to start an asynchronous job to detect the most common topics in the collection of documents and the phrases associated with each topic

topics-detection-job*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

comprehend:OutputKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Write

StopDominantLanguageDetectionJob

Grants permission to stop a dominant language detection job

dominant-language-detection-job*

aws:ResourceTag/${TagKey}

Write

StopEntitiesDetectionJob

Grants permission to stop an entity detection job

entities-detection-job*

aws:ResourceTag/${TagKey}

Write

StopEventsDetectionJob

Grants permission to stop an Events detection job

events-detection-job*

aws:ResourceTag/${TagKey}

Write

StopKeyPhrasesDetectionJob

Grants permission to stop a key phrase detection job

key-phrases-detection-job*

aws:ResourceTag/${TagKey}

Write

StopPiiEntitiesDetectionJob

Grants permission to stop a PII entities detection job

pii-entities-detection-job*

aws:ResourceTag/${TagKey}

Write

StopSentimentDetectionJob

Grants permission to stop a sentiment detection job

sentiment-detection-job*

aws:ResourceTag/${TagKey}

Write

StopTargetedSentimentDetectionJob

Grants permission to stop a targeted sentiment detection job

targeted-sentiment-detection-job*

aws:ResourceTag/${TagKey}

Write

StopTrainingDocumentClassifier

Grants permission to stop a previously created document classifier training job

document-classifier*

aws:ResourceTag/${TagKey}

Write

StopTrainingEntityRecognizer

Grants permission to stop a previously created entity recognizer training job

entity-recognizer*

aws:ResourceTag/${TagKey}

Write

TagResource

Grants permission to tag a resource with given key value pairs

document-classification-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

document-classifier

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

document-classifier-endpoint

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

dominant-language-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

entities-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

entity-recognizer

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

entity-recognizer-endpoint

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

events-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

flywheel

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

flywheel-dataset

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

key-phrases-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

pii-entities-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

sentiment-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

targeted-sentiment-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

topics-detection-job

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

Grants permission to untag a resource with given key

document-classification-job

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

document-classifier

aws:ResourceTag/${TagKey}

aws:TagKeys

document-classifier-endpoint

aws:ResourceTag/${TagKey}

aws:TagKeys

dominant-language-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

entities-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

entity-recognizer

aws:ResourceTag/${TagKey}

aws:TagKeys

entity-recognizer-endpoint

aws:ResourceTag/${TagKey}

aws:TagKeys

events-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

flywheel

aws:ResourceTag/${TagKey}

aws:TagKeys

flywheel-dataset

aws:ResourceTag/${TagKey}

aws:TagKeys

key-phrases-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

pii-entities-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

sentiment-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

targeted-sentiment-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

topics-detection-job

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateEndpoint

Grants permission to update information about the specified endpoint

document-classifier-endpoint*

aws:ResourceTag/${TagKey}

Write

entity-recognizer-endpoint*

aws:ResourceTag/${TagKey}

flywheel

aws:ResourceTag/${TagKey}

UpdateFlywheel

Grants permission to Update a flywheel's configuration

document-classifier

aws:ResourceTag/${TagKey}

Write

entity-recognizer

aws:ResourceTag/${TagKey}

flywheel*

aws:ResourceTag/${TagKey}

comprehend:ModelKmsKey

comprehend:VolumeKmsKey

comprehend:VpcSecurityGroupIds

comprehend:VpcSubnets

Resource types defined by Amazon Comprehend

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

document-classification-job

arn:${Partition}:comprehend:${Region}:${Account}:document-classification-job/${JobId}

aws:ResourceTag/${TagKey}

document-classifier

arn:${Partition}:comprehend:${Region}:${Account}:document-classifier/${DocumentClassifierName}

aws:ResourceTag/${TagKey}

document-classifier-endpoint

arn:${Partition}:comprehend:${Region}:${Account}:document-classifier-endpoint/${DocumentClassifierEndpointName}

aws:ResourceTag/${TagKey}

dominant-language-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:dominant-language-detection-job/${JobId}

aws:ResourceTag/${TagKey}

entities-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:entities-detection-job/${JobId}

aws:ResourceTag/${TagKey}

entity-recognizer

arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer/${EntityRecognizerName}

aws:ResourceTag/${TagKey}

entity-recognizer-endpoint

arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer-endpoint/${EntityRecognizerEndpointName}

aws:ResourceTag/${TagKey}

events-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:events-detection-job/${JobId}

aws:ResourceTag/${TagKey}

flywheel

arn:${Partition}:comprehend:${Region}:${Account}:flywheel/${FlywheelName}

aws:ResourceTag/${TagKey}

flywheel-dataset

arn:${Partition}:comprehend:${Region}:${Account}:flywheel/${FlywheelName}/dataset/${DatasetName}

aws:ResourceTag/${TagKey}

key-phrases-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:key-phrases-detection-job/${JobId}

aws:ResourceTag/${TagKey}

pii-entities-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:pii-entities-detection-job/${JobId}

aws:ResourceTag/${TagKey}

sentiment-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:sentiment-detection-job/${JobId}

aws:ResourceTag/${TagKey}

targeted-sentiment-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:targeted-sentiment-detection-job/${JobId}

aws:ResourceTag/${TagKey}

topics-detection-job

arn:${Partition}:comprehend:${Region}:${Account}:topics-detection-job/${JobId}

aws:ResourceTag/${TagKey}

Condition keys for Amazon Comprehend

Amazon Comprehend defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters access by requiring tag values present in a resource creation request

String

aws:ResourceTag/${TagKey}

Filters access by requiring tag value associated with the resource

String

aws:TagKeys

Filters access by requiring the presence of mandatory tags in the request

ArrayOfString

comprehend:DataLakeKmsKey

Filters access by the DataLake Kms Key associated with the flywheel resource in the request

ARN

comprehend:FlywheelIterationId

Filters access by particular Iteration Id for a flywheel

String

comprehend:ModelKmsKey

Filters access by the model KMS key associated with the resource in the request

ARN

comprehend:OutputKmsKey

Filters access by the output KMS key associated with the resource in the request

ARN

comprehend:VolumeKmsKey

Filters access by the volume KMS key associated with the resource in the request

ARN

comprehend:VpcSecurityGroupIds

Filters access by the list of all VPC security group ids associated with the resource in the request

ArrayOfString

comprehend:VpcSubnets

Filters access by the list of all VPC subnets associated with the resource in the request

ArrayOfString