Actions, resources, and condition keys for Amazon Rekognition
Amazon Rekognition (service prefix: rekognition) 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 Rekognition
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 |
|---|---|---|---|---|
|
AssociateFaces |
Write |
|||
|
CompareFaces |
Read |
|||
|
CopyProjectVersion |
Write |
|||
Write |
||||
Tagging, Write |
||||
|
CreateCollection |
Write |
|||
Tagging, Write |
||||
|
CreateDataset |
Write |
|||
Read |
||||
Tagging, Write |
||||
|
CreateFaceLivenessSession |
Write |
|||
|
CreateProject |
Write |
|||
Tagging, Write |
||||
|
CreateProjectVersion |
Write |
|||
Tagging, Write |
||||
|
CreateStreamProcessor |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
CreateUser |
Write |
|||
|
DeleteCollection |
Write |
|||
|
DeleteDataset |
Write |
|||
|
DeleteFaces |
Write |
|||
|
DeleteProject |
Write |
|||
|
DeleteProjectPolicy |
Write |
|||
|
DeleteProjectVersion |
Write |
|||
|
DeleteStreamProcessor |
Write |
|||
|
DeleteUser |
Write |
|||
|
DescribeCollection |
Read |
|||
|
DescribeDataset |
Read |
|||
|
DescribeProjectVersions |
Read |
|||
|
DescribeProjects |
Read |
|||
|
DescribeStreamProcessor |
Read |
|||
|
DetectCustomLabels |
Read |
|||
|
DetectFaces |
Read |
|||
|
DetectLabels |
Read |
|||
|
DetectModerationLabels |
Read |
|||
|
DetectProtectiveEquipment |
Read |
|||
|
DetectText |
Read |
|||
|
DisassociateFaces |
Write |
|||
|
DistributeDatasetEntries |
Write |
|||
|
GetCelebrityInfo |
Read |
|||
|
GetCelebrityRecognition |
Read |
|||
|
GetContentModeration |
Read |
|||
|
GetFaceDetection |
Read |
|||
|
GetFaceLivenessSessionResults |
Read |
|||
|
GetFaceSearch |
Read |
|||
|
GetLabelDetection |
Read |
|||
|
GetMediaAnalysisJob |
Read |
|||
|
GetPersonTracking |
Read |
|||
|
GetSegmentDetection |
Read |
|||
|
GetTextDetection |
Read |
|||
|
IndexFaces |
Write |
|||
|
ListCollections |
Read |
|||
|
ListDatasetEntries |
Read |
|||
|
ListDatasetLabels |
Read |
|||
|
ListFaces |
Read |
|||
|
ListMediaAnalysisJobs |
Read |
|||
|
ListProjectPolicies |
Read |
|||
|
ListStreamProcessors |
List |
|||
|
ListTagsForResource |
Read |
|||
|
ListUsers |
Read |
|||
|
PutProjectPolicy |
Write |
|||
|
RecognizeCelebrities |
Read |
|||
|
SearchFaces |
Read |
|||
|
SearchFacesByImage |
Read |
|||
|
SearchUsers |
Read |
|||
|
SearchUsersByImage |
Read |
|||
|
StartCelebrityRecognition |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartContentModeration |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartFaceDetection |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartFaceSearch |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartLabelDetection |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartMediaAnalysisJob |
Write |
|||
|
StartPersonTracking |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartProjectVersion |
Write |
|||
|
StartSegmentDetection |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StartStreamProcessor |
Write |
|||
|
StartTextDetection |
Write |
|||
iam:PassedToService |
rekognition.amazonaws.com |
Write |
||
|
StopProjectVersion |
Write |
|||
|
StopStreamProcessor |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateDatasetEntries |
Write |
|||
|
UpdateStreamProcessor |
Write |
Actions defined by Amazon Rekognition
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 associate multiple individual faces with a single user |
Write |
|||
Grants permission to compare faces in the source input image with each face detected in the target input image |
Read |
|||
Grants permission to copy an existing model version to a new model version |
Write |
|||
Grants permission to create a collection in an AWS Region |
Write |
|||
Grants permission to create a new Amazon Rekognition Custom Labels dataset |
Write |
|||
Grants permission to create a face liveness session |
Write |
|||
Grants permission to create an Amazon Rekognition Custom Labels project |
Write |
|||
Grants permission to begin training a new version of a model |
Write |
|||
Grants permission to create an Amazon Rekognition stream processor |
Write |
|||
Grants permission to create a new user in a collection using a unique user ID you provide |
Write |
|||
Grants permission to delete the specified collection |
Write |
|||
Grants permission to delete an existing Amazon Rekognition Custom Labels dataset |
Write |
|||
Grants permission to delete faces from a collection |
Write |
|||
Grants permission to delete a project |
Write |
|||
Grants permission to delete a resource policy attached to a project |
Write |
|||
Grants permission to delete a model |
Write |
|||
Grants permission to delete the specified stream processor |
Write |
|||
Grants permission to delete a user from a collection based on the provided user ID |
Write |
|||
Grants permission to read details about a collection |
Read |
|||
Grants permission to describe an Amazon Rekognition Custom Labels dataset |
Read |
|||
Grants permission to list the versions of a model in an Amazon Rekognition Custom Labels project |
Read |
|||
Grants permission to list Amazon Rekognition Custom Labels projects |
Read |
|||
Grants permission to get information about the specified stream processor |
Read |
|||
Grants permission to detect custom labels in a supplied image |
Read |
|||
Grants permission to detect human faces within an image provided as input |
Read |
|||
Grants permission to detect instances of real-world labels within an image provided as input |
Read |
|||
Grants permission to detect moderation labels within the input image |
Read |
|||
Grants permission to detect Personal Protective Equipment in the input image |
Read |
|||
Grants permission to detect text in the input image and convert it into machine-readable text |
Read |
|||
Grants permission to remove the association between a user ID and a face ID |
Write |
|||
Grants permission to distribute the entries in a training dataset across the training dataset and the test dataset for a project |
Write |
|||
Grants permission to read the name, and additional information, of a celebrity |
Read |
|||
Grants permission to read the celebrity recognition results found in a stored video by an asynchronous celebrity recognition job |
Read |
|||
Grants permission to read the content moderation analysis results found in a stored video by an asynchronous content moderation job |
Read |
|||
Grants permission to read the faces detection results found in a stored video by an asynchronous face detection job |
Read |
|||
Grants permission to get results of a face liveness session |
Read |
|||
Grants permission to read the matching collection faces found in a stored video by an asynchronous face search job |
Read |
|||
Grants permission to read the label detected resuls found in a stored video by an asynchronous label detection job |
Read |
|||
Grants permission to read the reference to job results in S3 and additional information about a media analysis job |
Read |
|||
Grants permission to read the list of persons detected in a stored video by an asynchronous person tracking job |
Read |
|||
Grants permission to get the vdeo segments found in a stored video by an asynchronous segment detection job |
Read |
|||
Grants permission to get the text found in a stored video by an asynchronous text detection job |
Read |
|||
Grants permission to update an existing collection with faces detected in the input image |
Write |
|||
Grants permission to read the collection Id's in your account |
Read |
|||
Grants permission to list the dataset entries in an existing Amazon Rekognition Custom Labels dataset |
Read |
|||
Grants permission to list the labels in a dataset |
Read |
|||
Grants permission to read metadata for faces in the specificed collection |
Read |
|||
Grants permission to read the list of media analysis jobs |
Read |
|||
Grants permission to list the resource policies attached to a project |
Read |
|||
Grants permission to get a list of your stream processors |
List |
|||
Grants permission to return a list of tags associated with a resource |
Read |
|||
Grants permission to list UserIds and the UserStatus |
Read |
|||
Grants permission to attach a resource policy to a project |
Write |
|||
Grants permission to detect celebrities in the input image |
Read |
|||
Grants permission to search the specificed collection for the supplied face ID |
Read |
|||
Grants permission to search the specificed collection for the largest face in the input image |
Read |
|||
Grants permission to search the specificed collection for user match result with given either face ID or user ID |
Read |
|||
Grants permission to search the specificed collection for user match result by using the largest face in the input image |
Read |
|||
Grants permission to start the asynchronous recognition of celebrities in a stored video |
Write |
|||
Grants permission to start asynchronous detection of explicit or suggestive adult content in a stored video |
Write |
|||
Grants permission to start asynchronous detection of faces in a stored video |
Write |
|||
Grants permission to start streaming video for a face liveness session |
Write |
|||
Grants permission to start an asynchronous search for faces in a collection that match the faces of persons detected in a stored video |
Write |
|||
Grants permission to start asynchronous detection of labels in a stored video |
Write |
|||
Grants permission to start a media analysis job |
Write |
|||
Grants permission to start the asynchronous tracking of persons in a stored video |
Write |
|||
Grants permission to start running a model version |
Write |
|||
Grants permission to start the asynchronous detection of segments in a stored video |
Write |
|||
Grants permission to start running a stream processor |
Write |
|||
Grants permission to start the asynchronous detection of text in a stored video |
Write |
|||
Grants permission to stop a running model version |
Write |
|||
Grants permission to stop a running stream processor |
Write |
|||
Grants permission to add one or more tags to a resource |
Tagging, Write |
|||
Grants permission to remove one or more tags from a resource |
Tagging, Write |
|||
Grants permission to add or update one or more JSON Lines (entries) in a dataset |
Write |
|||
Grants permission to modify properties for a stream processor |
Write |
Resource types defined by Amazon Rekognition
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}:rekognition:${Region}:${Account}:collection/${CollectionId} |
||
arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp} |
||
arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp} |
||
arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp} |
||
arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId} |
Condition keys for Amazon Rekognition
Amazon Rekognition defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by tags that are passed in the request |
String |
|
Filters access by tags associated with the resource |
String |
|
Filters access by tag keys that are passed in the request |
ArrayOfString |