View a markdown version of this page

Amazon Rekognition 的動作、資源和條件索引鍵 - 服務授權參考

Amazon Rekognition 的動作、資源和條件索引鍵

Amazon Rekognition (服務字首:rekognition) 提供下列服務特定的操作、資源、動作和條件索引鍵,可用於 IAM 許可政策。

參考資料:

Amazon Rekognition 定義的 API 操作

下表將 API 操作映射至其授權的 IAM 動作。只會列出具有指定 API 和動作靜態值的條件金鑰;如需每個動作支援的完整條件金鑰集,請參閱動作表格。

作業 IAM 動作 條件鍵 可能的值 (s) 存取層級

AssociateFaces

rekognition:AssociateFaces

寫入

CompareFaces

rekognition:CompareFaces

讀取

CopyProjectVersion

rekognition:CopyProjectVersion

寫入

rekognition:CreateProjectVersion

寫入

rekognition:TagResource

標記、寫入

CreateCollection

rekognition:CreateCollection

寫入

rekognition:TagResource

標記、寫入

CreateDataset

rekognition:CreateDataset

寫入

rekognition:ListDatasetEntries

讀取

rekognition:TagResource

標記、寫入

CreateFaceLivenessSession

rekognition:CreateFaceLivenessSession

寫入

CreateProject

rekognition:CreateProject

寫入

rekognition:TagResource

標記、寫入

CreateProjectVersion

rekognition:CreateProjectVersion

寫入

rekognition:TagResource

標記、寫入

CreateStreamProcessor

rekognition:CreateStreamProcessor

寫入

rekognition:TagResource

標記、寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

CreateUser

rekognition:CreateUser

寫入

DeleteCollection

rekognition:DeleteCollection

寫入

DeleteDataset

rekognition:DeleteDataset

寫入

DeleteFaces

rekognition:DeleteFaces

寫入

DeleteProject

rekognition:DeleteProject

寫入

DeleteProjectPolicy

rekognition:DeleteProjectPolicy

寫入

DeleteProjectVersion

rekognition:DeleteProjectVersion

寫入

DeleteStreamProcessor

rekognition:DeleteStreamProcessor

寫入

DeleteUser

rekognition:DeleteUser

寫入

DescribeCollection

rekognition:DescribeCollection

讀取

DescribeDataset

rekognition:DescribeDataset

讀取

DescribeProjectVersions

rekognition:DescribeProjectVersions

讀取

DescribeProjects

rekognition:DescribeProjects

讀取

DescribeStreamProcessor

rekognition:DescribeStreamProcessor

讀取

DetectCustomLabels

rekognition:DetectCustomLabels

讀取

DetectFaces

rekognition:DetectFaces

讀取

DetectLabels

rekognition:DetectLabels

讀取

DetectModerationLabels

rekognition:DetectModerationLabels

讀取

DetectProtectiveEquipment

rekognition:DetectProtectiveEquipment

讀取

DetectText

rekognition:DetectText

讀取

DisassociateFaces

rekognition:DisassociateFaces

寫入

DistributeDatasetEntries

rekognition:DistributeDatasetEntries

寫入

GetCelebrityInfo

rekognition:GetCelebrityInfo

讀取

GetCelebrityRecognition

rekognition:GetCelebrityRecognition

讀取

GetContentModeration

rekognition:GetContentModeration

讀取

GetFaceDetection

rekognition:GetFaceDetection

讀取

GetFaceLivenessSessionResults

rekognition:GetFaceLivenessSessionResults

讀取

GetFaceSearch

rekognition:GetFaceSearch

讀取

GetLabelDetection

rekognition:GetLabelDetection

讀取

GetMediaAnalysisJob

rekognition:GetMediaAnalysisJob

讀取

GetPersonTracking

rekognition:GetPersonTracking

讀取

GetSegmentDetection

rekognition:GetSegmentDetection

讀取

GetTextDetection

rekognition:GetTextDetection

讀取

IndexFaces

rekognition:IndexFaces

寫入

ListCollections

rekognition:ListCollections

讀取

ListDatasetEntries

rekognition:ListDatasetEntries

讀取

ListDatasetLabels

rekognition:ListDatasetLabels

讀取

ListFaces

rekognition:ListFaces

讀取

ListMediaAnalysisJobs

rekognition:ListMediaAnalysisJobs

讀取

ListProjectPolicies

rekognition:ListProjectPolicies

讀取

ListStreamProcessors

rekognition:ListStreamProcessors

清單

ListTagsForResource

rekognition:ListTagsForResource

讀取

ListUsers

rekognition:ListUsers

讀取

PutProjectPolicy

rekognition:PutProjectPolicy

寫入

RecognizeCelebrities

rekognition:RecognizeCelebrities

讀取

SearchFaces

rekognition:SearchFaces

讀取

SearchFacesByImage

rekognition:SearchFacesByImage

讀取

SearchUsers

rekognition:SearchUsers

讀取

SearchUsersByImage

rekognition:SearchUsersByImage

讀取

StartCelebrityRecognition

rekognition:StartCelebrityRecognition

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartContentModeration

rekognition:StartContentModeration

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartFaceDetection

rekognition:StartFaceDetection

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartFaceSearch

rekognition:StartFaceSearch

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartLabelDetection

rekognition:StartLabelDetection

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartMediaAnalysisJob

rekognition:StartMediaAnalysisJob

寫入

StartPersonTracking

rekognition:StartPersonTracking

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartProjectVersion

rekognition:StartProjectVersion

寫入

StartSegmentDetection

rekognition:StartSegmentDetection

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StartStreamProcessor

rekognition:StartStreamProcessor

寫入

StartTextDetection

rekognition:StartTextDetection

寫入

iam:PassRole

iam:PassedToService

rekognition.amazonaws.com

寫入

StopProjectVersion

rekognition:StopProjectVersion

寫入

StopStreamProcessor

rekognition:StopStreamProcessor

寫入

TagResource

rekognition:TagResource

標記、寫入

UntagResource

rekognition:UntagResource

標記、寫入

UpdateDatasetEntries

rekognition:UpdateDatasetEntries

寫入

UpdateStreamProcessor

rekognition:UpdateStreamProcessor

寫入

Amazon Rekognition 定義的動作

您可在 IAM 政策陳述式的 Action 元素中指定以下動作。使用政策來授予在 AWS中執行操作的許可。在政策中使用動作時,通常會允許或拒絕存取相同名稱的 API 操作或 CLI 命令。不過,在某些情況下,單一動作可控制對多個操作的存取。或者,某些操作需要多種不同的動作。

動作 說明 資源類型 (*必填項目) 條件索引鍵 存取層級

AssociateFaces

准許將多個個別人臉與單一使用者關聯

集合*

aws:ResourceTag/${TagKey}

寫入

CompareFaces

准許將來源輸入影像中的臉部與目標輸入影像中偵測到每個臉部進行比對

讀取

CopyProjectVersion

准許將現有模型版本複製到新模型版本

專案*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

projectversion*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateCollection

准許在 中建立集合 AWS 區域

aws:RequestTag/${TagKey}

aws:TagKeys

寫入

CreateDataset

准許建立新的 Amazon Rekognition 自訂標籤資料集

專案*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateFaceLivenessSession

准許建立人臉活體工作階段

寫入

CreateProject

准許建立 Amazon Rekognition 自訂標籤專案

aws:RequestTag/${TagKey}

aws:TagKeys

寫入

CreateProjectVersion

准許開始訓練新的模型版本

專案*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateStreamProcessor

准許建立 Amazon Rekognition 串流處理器

集合*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateUser

准許使用您提供的唯一使用者 ID 在集合中建立新使用者

集合*

aws:ResourceTag/${TagKey}

寫入

DeleteCollection

准許刪除指定的集合

集合*

aws:ResourceTag/${TagKey}

寫入

DeleteDataset

准許刪除現有 Amazon Rekognition 自訂標籤資料集

資料集*

aws:ResourceTag/${TagKey}

寫入

DeleteFaces

准許刪除集合中的臉部

集合*

aws:ResourceTag/${TagKey}

寫入

DeleteProject

授予許可來刪除專案

專案*

aws:ResourceTag/${TagKey}

寫入

DeleteProjectPolicy

准許刪除連接至專案的資源政策

專案*

aws:ResourceTag/${TagKey}

寫入

DeleteProjectVersion

准許刪除模型

projectversion*

aws:ResourceTag/${TagKey}

寫入

DeleteStreamProcessor

准許刪除指定的串流處理器

streamprocessor*

aws:ResourceTag/${TagKey}

寫入

DeleteUser

准許根據提供的使用者 ID 從集合中刪除使用者

集合*

aws:ResourceTag/${TagKey}

寫入

DescribeCollection

准許讀取集合的詳細資訊

集合*

aws:ResourceTag/${TagKey}

讀取

DescribeDataset

准許描述 Amazon Rekognition 自訂標籤資料集

資料集*

aws:ResourceTag/${TagKey}

讀取

DescribeProjectVersions

准許列出 Amazon Rekognition 自訂標籤專案中的模型版本

專案*

aws:ResourceTag/${TagKey}

讀取

DescribeProjects

准許列出 Amazon Rekognition 自訂標籤專案

讀取

DescribeStreamProcessor

准許取得指定串流處理器的相關資訊

streamprocessor*

aws:ResourceTag/${TagKey}

讀取

DetectCustomLabels

准許在提供的影像中偵測自訂標籤

projectversion*

aws:ResourceTag/${TagKey}

讀取

DetectFaces

准許在提供做為輸入的影像內偵測人臉

讀取

DetectLabels

准許在提供做為輸入的影像內偵測真實標籤的執行個體

讀取

DetectModerationLabels

准許在輸入影像內偵測管制標籤

projectversion

aws:ResourceTag/${TagKey}

讀取

DetectProtectiveEquipment

准許在輸入影像中偵測個人保護設備

讀取

DetectText

准許偵測輸入影像中的文字,並轉換為機器可讀取的文字

讀取

DisassociateFaces

准許移除使用者 ID 與人臉 ID 之間的關聯

集合*

aws:ResourceTag/${TagKey}

寫入

DistributeDatasetEntries

准許將訓練資料集中的項目分配至專案的訓練資料集和測試資料集

資料集*

aws:ResourceTag/${TagKey}

寫入

GetCelebrityInfo

准許讀取名人姓名和其他資訊

讀取

GetCelebrityRecognition

准許讀取非同步名人辨識任務在儲存的影片中找到的名人辨識結果

讀取

GetContentModeration

准許讀取非同步內容管制任務在儲存的影片中找到的內容管制分析結果

讀取

GetFaceDetection

准許讀取非同步臉部偵測任務在儲存的影片中找到的臉部偵測結果

讀取

GetFaceLivenessSessionResults

准許取得人臉活體工作階段的結果

讀取

GetFaceSearch

准許讀取非同步臉部搜尋任務在儲存的影片中找到的相符集合臉部

讀取

GetLabelDetection

准許讀取非同步標籤偵測任務在儲存的影片中找到的標籤偵測結果

讀取

GetMediaAnalysisJob

准許讀取 S3 中的任務結果參考,以及有關媒體分析任務的其他資訊

讀取

GetPersonTracking

准許讀取非同步人物追蹤任務在儲存的影片中偵測到的人物清單

讀取

GetSegmentDetection

准許取得非同步區段偵測任務在儲存的影片中找到的影片區段

讀取

GetTextDetection

准許取得非同步文字偵測任務在儲存的影片中找到的文字

讀取

IndexFaces

准許更新在輸入影像中偵測到的現有臉部集合

集合*

aws:ResourceTag/${TagKey}

寫入

ListCollections

准許讀取您帳戶中的集合 ID

讀取

ListDatasetEntries

准許列出現有 Amazon Rekognition 自訂標籤資料集中的資料集項目

資料集*

aws:ResourceTag/${TagKey}

讀取

ListDatasetLabels

准許列出資料集中的標籤

資料集*

aws:ResourceTag/${TagKey}

讀取

ListFaces

准許讀取指定集合中臉部的中繼資料

集合*

aws:ResourceTag/${TagKey}

讀取

ListMediaAnalysisJobs

准許讀取媒體分析任務的清單

讀取

ListProjectPolicies

准許列出連接至專案的資源政策

專案*

aws:ResourceTag/${TagKey}

讀取

ListStreamProcessors

准許取得串流處理器清單

清單

ListTagsForResource

准許傳回與資源相關聯的標籤清單

集合

aws:ResourceTag/${TagKey}

讀取

資料集

aws:ResourceTag/${TagKey}

project

aws:ResourceTag/${TagKey}

projectversion

aws:ResourceTag/${TagKey}

串流處理器

aws:ResourceTag/${TagKey}

ListUsers

准許列出使用者 ID 和使用者狀態

集合*

aws:ResourceTag/${TagKey}

讀取

PutProjectPolicy

准許將資源政策連接至專案

專案*

aws:ResourceTag/${TagKey}

寫入

RecognizeCelebrities

准許偵測輸入影像中的名人

讀取

SearchFaces

准許依提供的臉部 ID 搜尋指定的集合

集合*

aws:ResourceTag/${TagKey}

讀取

SearchFacesByImage

准許依輸入影像中的最大臉部搜尋指定的集合

集合*

aws:ResourceTag/${TagKey}

讀取

SearchUsers

准許使用提供的人臉 ID 或使用者 ID 搜尋使用者比對結果的指定集合

集合*

aws:ResourceTag/${TagKey}

讀取

SearchUsersByImage

准許使用輸入影像中的最大人臉來搜尋使用者比對結果的指定集合

集合*

aws:ResourceTag/${TagKey}

讀取

StartCelebrityRecognition

准許在儲存的影片中開始非同步辨識名人

寫入

StartContentModeration

准許在儲存的影片中開始非同步偵測露骨或暗示性的成人內容

寫入

StartFaceDetection

准許在儲存的影片中開始非同步偵測臉部

寫入

StartFaceLivenessSession

准許開始串流人臉活體工作階段的視訊

寫入

StartFaceSearch

准許根據在儲存的影片中偵測到的人臉,開始非同步搜尋集合中相符的臉部

集合*

aws:ResourceTag/${TagKey}

寫入

StartLabelDetection

准許在儲存的影片中開始非同步偵測標籤

寫入

StartMediaAnalysisJob

准許啟動媒體分析任務

projectversion

aws:ResourceTag/${TagKey}

寫入

StartPersonTracking

准許在儲存的影片中開始非同步追蹤人物

寫入

StartProjectVersion

准許開始執行模型版本

projectversion*

aws:ResourceTag/${TagKey}

寫入

StartSegmentDetection

准許在儲存的影片中開始非同步偵測區段

寫入

StartStreamProcessor

准許開始執行串流處理器

streamprocessor*

aws:ResourceTag/${TagKey}

寫入

StartTextDetection

准許在儲存的影片中開始非同步偵測文字

寫入

StopProjectVersion

准許停止執行中模型版本

projectversion*

aws:ResourceTag/${TagKey}

寫入

StopStreamProcessor

准許停止執行中串流處理器

streamprocessor*

aws:ResourceTag/${TagKey}

寫入

TagResource

授予許可來將一或多個標籤新增到資源

集合

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

資料集

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

project

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

projectversion

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

串流處理器

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

准許從資源移除一或多個標籤

集合

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

資料集

aws:ResourceTag/${TagKey}

aws:TagKeys

project

aws:ResourceTag/${TagKey}

aws:TagKeys

projectversion

aws:ResourceTag/${TagKey}

aws:TagKeys

串流處理器

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateDatasetEntries

准許在資料集中新增或更新一或多個 JSON 行 (項目)

資料集*

aws:ResourceTag/${TagKey}

寫入

UpdateStreamProcessor

准許修改串流處理器的屬性

streamprocessor*

aws:ResourceTag/${TagKey}

寫入

Amazon Rekognition 定義的資源類型

此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。

資源類型 ARN 條件索引鍵

集合

arn:${Partition}:rekognition:${Region}:${Account}:collection/${CollectionId}

aws:ResourceTag/${TagKey}

資料集

arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp}

aws:ResourceTag/${TagKey}

專案

arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp}

aws:ResourceTag/${TagKey}

projectversion

arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp}

aws:ResourceTag/${TagKey}

串流處理器

arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId}

aws:ResourceTag/${TagKey}

Amazon Rekognition 的條件索引鍵

Amazon Rekognition 定義了下列條件索引鍵,可用於 IAM 政策的 Condition 元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依要求中傳遞的標籤來篩選存取權

String

aws:ResourceTag/${TagKey}

依與資源關聯的標籤來篩選存取權

String

aws:TagKeys

依要求中傳遞的標籤索引鍵來篩選存取權

ArrayOfString