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:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
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 |
Read |
|||
|
BatchDetectEntities |
Read |
|||
|
BatchDetectKeyPhrases |
Read |
|||
|
BatchDetectSentiment |
Read |
|||
|
BatchDetectSyntax |
Read |
|||
|
BatchDetectTargetedSentiment |
Read |
|||
|
ClassifyDocument |
Read |
|||
|
ContainsPiiEntities |
Read |
|||
|
CreateDataset |
Write |
|||
Tagging, Write |
||||
|
CreateDocumentClassifier |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
CreateEndpoint |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
CreateEntityRecognizer |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
CreateFlywheel |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
DeleteDocumentClassifier |
Write |
|||
|
DeleteEndpoint |
Write |
|||
|
DeleteEntityRecognizer |
Write |
|||
|
DeleteFlywheel |
Write |
|||
|
DeleteResourcePolicy |
Write |
|||
|
DescribeDataset |
Read |
|||
|
DescribeDocumentClassificationJob |
Read |
|||
|
DescribeDocumentClassifier |
Read |
|||
|
DescribeDominantLanguageDetectionJob |
Read |
|||
|
DescribeEndpoint |
Read |
|||
|
DescribeEntitiesDetectionJob |
Read |
|||
|
DescribeEntityRecognizer |
Read |
|||
|
DescribeEventsDetectionJob |
Read |
|||
|
DescribeFlywheel |
Read |
|||
|
DescribeFlywheelIteration |
Read |
|||
|
DescribeKeyPhrasesDetectionJob |
Read |
|||
|
DescribePiiEntitiesDetectionJob |
Read |
|||
|
DescribeResourcePolicy |
Read |
|||
|
DescribeSentimentDetectionJob |
Read |
|||
|
DescribeTargetedSentimentDetectionJob |
Read |
|||
|
DescribeTopicsDetectionJob |
Read |
|||
|
DetectDominantLanguage |
Read |
|||
|
DetectEntities |
Read |
|||
|
DetectKeyPhrases |
Read |
|||
|
DetectPiiEntities |
Read |
|||
|
DetectSentiment |
Read |
|||
|
DetectSyntax |
Read |
|||
|
DetectTargetedSentiment |
Read |
|||
|
DetectToxicContent |
Read |
|||
|
ImportModel |
Write |
|||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
ListDatasets |
Read |
|||
|
ListDocumentClassificationJobs |
Read |
|||
|
ListDocumentClassifierSummaries |
Read |
|||
|
ListDocumentClassifiers |
Read |
|||
|
ListDominantLanguageDetectionJobs |
Read |
|||
|
ListEndpoints |
Read |
|||
|
ListEntitiesDetectionJobs |
Read |
|||
|
ListEntityRecognizerSummaries |
Read |
|||
|
ListEntityRecognizers |
Read |
|||
|
ListEventsDetectionJobs |
Read |
|||
|
ListFlywheelIterationHistory |
Read |
|||
|
ListFlywheels |
Read |
|||
|
ListKeyPhrasesDetectionJobs |
Read |
|||
|
ListPiiEntitiesDetectionJobs |
Read |
|||
|
ListSentimentDetectionJobs |
Read |
|||
|
ListTagsForResource |
Read |
|||
|
ListTargetedSentimentDetectionJobs |
Read |
|||
|
ListTopicsDetectionJobs |
Read |
|||
|
PutResourcePolicy |
Write |
|||
|
StartDocumentClassificationJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartDominantLanguageDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartEntitiesDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartEventsDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartFlywheelIteration |
Write |
|||
|
StartKeyPhrasesDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartPiiEntitiesDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartSentimentDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartTargetedSentimentDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StartTopicsDetectionJob |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
StopDominantLanguageDetectionJob |
Write |
|||
|
StopEntitiesDetectionJob |
Write |
|||
|
StopEventsDetectionJob |
Write |
|||
|
StopKeyPhrasesDetectionJob |
Write |
|||
|
StopPiiEntitiesDetectionJob |
Write |
|||
|
StopSentimentDetectionJob |
Write |
|||
|
StopTargetedSentimentDetectionJob |
Write |
|||
|
StopTrainingDocumentClassifier |
Write |
|||
|
StopTrainingEntityRecognizer |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateEndpoint |
Write |
|||
iam:PassedToService |
comprehend.amazonaws.com |
Write |
||
|
UpdateFlywheel |
Write |
|||
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 |
|---|---|---|---|---|
Grants permission to detect the language or languages present in the list of text documents |
Read |
|||
Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given list of text documents |
Read |
|||
Grants permission to detect the phrases in the list of text documents that are most indicative of the content |
Read |
|||
Grants permission to detect the sentiment of a text in the list of documents (Positive, Negative, Neutral, or Mixed) |
Read |
|||
Grants permission to detect syntactic information (like Part of Speech, Tokens) in a list of text documents |
Read |
|||
Grants permission to detect the sentiments associated with specific entities (such as brands or products) within the given list of text documents |
Read |
|||
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 |
Read |
|||
Grants permission to classify the personally identifiable information within given documents in real-time |
Read |
|||
Grants permission to create a new dataset within a flywheel |
Write |
|||
Grants permission to create a new document classifier that you can use to categorize documents |
Write |
|||
Grants permission to create a model-specific endpoint for synchronous inference for a previously trained custom model |
Write |
|||
Grants permission to create an entity recognizer using submitted files |
Write |
|||
Grants permission to create a new flywheel that you can use to train model versions |
Write |
|||
Grants permission to delete a previously created document classifier |
Write |
|||
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 |
Write |
|||
Grants permission to delete a submitted entity recognizer |
Write |
|||
Grants permission to Delete a flywheel |
Write |
|||
Grants permission to remove policy on resource |
Write |
|||
Grants permission to get the properties associated with a dataset |
Read |
|||
Grants permission to get the properties associated with a document classification job |
Read |
|||
Grants permission to get the properties associated with a document classifier |
Read |
|||
Grants permission to get the properties associated with a dominant language detection job |
Read |
|||
Grants permission to get the properties associated with a specific endpoint. Use this operation to get the status of an endpoint |
Read |
|||
Grants permission to get the properties associated with an entities detection job |
Read |
|||
Grants permission to provide details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on |
Read |
|||
Grants permission to get the properties associated with an Events detection job |
Read |
|||
Grants permission to get the properties associated with a flywheel |
Read |
|||
Grants permission to get the properties associated with a flywheel iteration for a flywheel |
Read |
|||
Grants permission to get the properties associated with a key phrases detection job |
Read |
|||
Grants permission to get the properties associated with a PII entities detection job |
Read |
|||
Grants permission to read attached policy on resource |
Read |
|||
Grants permission to get the properties associated with a sentiment detection job |
Read |
|||
Grants permission to get the properties associated with a targeted sentiment detection job |
Read |
|||
Grants permission to get the properties associated with a topic detection job |
Read |
|||
Grants permission to detect the language or languages present in the text |
Read |
|||
Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given text document |
Read |
|||
Grants permission to detect the phrases in the text that are most indicative of the content |
Read |
|||
Grants permission to detect the personally identifiable information entities ("Name", "SSN", "PIN", etc) within the given text document |
Read |
|||
Grants permission to detect the sentiment of a text in a document (Positive, Negative, Neutral, or Mixed) |
Read |
|||
Grants permission to detect syntactic information (like Part of Speech, Tokens) in a text document |
Read |
|||
Grants permission to detect the sentiments associated with specific entities (such as brands or products) in a document |
Read |
|||
Grants permission to detect toxic content within the given list of text segments |
Read |
|||
Grants permission to import a trained Comprehend model |
Write |
|||
Grants permission to get a list of the Datasets associated with a flywheel |
Read |
|||
Grants permission to get a list of the document classification jobs that you have submitted |
Read |
|||
Grants permission to get a list of summaries of the document classifiers that you have created |
Read |
|||
Grants permission to get a list of the document classifiers that you have created |
Read |
|||
Grants permission to get a list of the dominant language detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of all existing endpoints that you've created |
Read |
|||
Grants permission to get a list of the entity detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of summaries for the entity recognizers that you have created |
Read |
|||
Grants permission to get a list of the properties of all entity recognizers that you created, including recognizers currently in training |
Read |
|||
Grants permission to get a list of Events detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of iterations associated for a flywheel |
Read |
|||
Grants permission to get a list of the flywheels that you have created |
Read |
|||
Grants permission to get a list of key phrase detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of PII entities detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of sentiment detection jobs that you have submitted |
Read |
|||
Grants permission to list tags for a resource |
Read |
|||
Grants permission to get a list of targeted sentiment detection jobs that you have submitted |
Read |
|||
Grants permission to get a list of the topic detection jobs that you have submitted |
Read |
|||
Grants permission to attach policy to resource |
Write |
|||
Grants permission to start an asynchronous document classification job |
Write |
|||
Grants permission to start an asynchronous dominant language detection job for a collection of documents |
Write |
|||
Grants permission to start an asynchronous entity detection job for a collection of documents |
Write |
|||
Grants permission to start an asynchronous Events detection job for a collection of documents |
Write |
|||
Grants permission to start a flywheel iteration for a flywheel |
Write |
|||
Grants permission to start an asynchronous key phrase detection job for a collection of documents |
Write |
|||
Grants permission to start an asynchronous PII entities detection job for a collection of documents |
Write |
|||
Grants permission to start an asynchronous sentiment detection job for a collection of documents |
Write |
|||
Grants permission to start an asynchronous targeted sentiment detection job for a collection of documents |
Write |
|||
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 |
Write |
|||
Grants permission to stop a dominant language detection job |
Write |
|||
Grants permission to stop an entity detection job |
Write |
|||
Grants permission to stop an Events detection job |
Write |
|||
Grants permission to stop a key phrase detection job |
Write |
|||
Grants permission to stop a PII entities detection job |
Write |
|||
Grants permission to stop a sentiment detection job |
Write |
|||
Grants permission to stop a targeted sentiment detection job |
Write |
|||
Grants permission to stop a previously created document classifier training job |
Write |
|||
Grants permission to stop a previously created entity recognizer training job |
Write |
|||
Grants permission to tag a resource with given key value pairs |
Tagging, Write |
|||
Grants permission to untag a resource with given key |
Tagging, Write |
|||
Grants permission to update information about the specified endpoint |
Write |
|||
Grants permission to Update a flywheel's configuration |
Write |
|||
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 |
|---|---|---|
arn:${Partition}:comprehend:${Region}:${Account}:document-classification-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:document-classifier/${DocumentClassifierName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:document-classifier-endpoint/${DocumentClassifierEndpointName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:dominant-language-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:entities-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer/${EntityRecognizerName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer-endpoint/${EntityRecognizerEndpointName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:events-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:flywheel/${FlywheelName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:flywheel/${FlywheelName}/dataset/${DatasetName} |
||
arn:${Partition}:comprehend:${Region}:${Account}:key-phrases-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:pii-entities-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:sentiment-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:targeted-sentiment-detection-job/${JobId} |
||
arn:${Partition}:comprehend:${Region}:${Account}:topics-detection-job/${JobId} |
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 |
|---|---|---|
Filters access by requiring tag values present in a resource creation request |
String |
|
Filters access by requiring tag value associated with the resource |
String |
|
Filters access by requiring the presence of mandatory tags in the request |
ArrayOfString |
|
Filters access by the DataLake Kms Key associated with the flywheel resource in the request |
ARN |
|
Filters access by particular Iteration Id for a flywheel |
String |
|
Filters access by the model KMS key associated with the resource in the request |
ARN |
|
Filters access by the output KMS key associated with the resource in the request |
ARN |
|
Filters access by the volume KMS key associated with the resource in the request |
ARN |
|
Filters access by the list of all VPC security group ids associated with the resource in the request |
ArrayOfString |
|
Filters access by the list of all VPC subnets associated with the resource in the request |
ArrayOfString |