View a markdown version of this page

Amazon Cognito Identity 的動作、資源與條件索引鍵 - 服務授權參考

Amazon Cognito Identity 的動作、資源與條件索引鍵

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

參考資料:

Amazon Cognito Identity 定義的 API 操作

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

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

CreateIdentityPool

cognito-identity:CreateIdentityPool

寫入

cognito-identity:TagResource

標記、寫入

DeleteIdentities

cognito-identity:DeleteIdentities

寫入

DeleteIdentityPool

cognito-identity:DeleteIdentityPool

寫入

DescribeIdentity

cognito-identity:DescribeIdentity

讀取

DescribeIdentityPool

cognito-identity:DescribeIdentityPool

讀取

GetCredentialsForIdentity

cognito-identity:GetCredentialsForIdentity

讀取

GetId

cognito-identity:GetId

寫入

GetIdentityPoolRoles

cognito-identity:GetIdentityPoolRoles

讀取

GetOpenIdToken

cognito-identity:GetOpenIdToken

讀取

GetOpenIdTokenForDeveloperIdentity

cognito-identity:GetOpenIdTokenForDeveloperIdentity

讀取

GetPrincipalTagAttributeMap

cognito-identity:GetPrincipalTagAttributeMap

讀取

ListIdentities

cognito-identity:ListIdentities

清單

ListIdentityPools

cognito-identity:ListIdentityPools

清單

ListTagsForResource

cognito-identity:ListTagsForResource

讀取

LookupDeveloperIdentity

cognito-identity:LookupDeveloperIdentity

讀取

MergeDeveloperIdentities

cognito-identity:MergeDeveloperIdentities

寫入

SetIdentityPoolRoles

cognito-identity:SetIdentityPoolRoles

寫入

iam:PassRole

寫入

SetPrincipalTagAttributeMap

cognito-identity:SetPrincipalTagAttributeMap

寫入

TagResource

cognito-identity:TagResource

標記、寫入

UnlinkDeveloperIdentity

cognito-identity:UnlinkDeveloperIdentity

寫入

UnlinkIdentity

cognito-identity:UnlinkIdentity

寫入

UntagResource

cognito-identity:UntagResource

標記、寫入

UpdateIdentityPool

cognito-identity:TagResource

標記、寫入

cognito-identity:UntagResource

標記、寫入

cognito-identity:UpdateIdentityPool

寫入

Amazon Cognito Identity 定義的動作

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

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

CreateIdentityPool

准許建立新身分集區

aws:RequestTag/${TagKey}

aws:TagKeys

寫入

DeleteIdentities

准許從身分集區刪除身分。您可以指定要刪除 1-60 個身分的清單

cognito-identity:IdentityPoolArn

寫入

DeleteIdentityPool

准許刪除使用者集區 一旦刪除集區,使用者將無法用集區進行驗證

identitypool*

aws:ResourceTag/${TagKey}

寫入

DescribeIdentity

准許傳回與指定身分相關的中繼資料,包括建立身分的時間和任何相關聯的連結登入

cognito-identity:IdentityPoolArn

讀取

DescribeIdentityPool

准許取得關於特定身分集區的詳細資訊,包括集區名稱、ID 描述、建立日期和目前使用者的數量

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetCredentialsForIdentity

准許傳回所提供身分 ID 的登入資料

cognito-identity-auth:AccountId

cognito-identity-auth:IdentityPoolArn

cognito-identity-unauth:AccountId

cognito-identity-unauth:IdentityPoolArn

讀取

GetId

准許產生 (或擷取) Cognito ID。提供多個登入將會建立隱含連結的帳戶

cognito-identity-auth:AccountId

cognito-identity-auth:IdentityPoolArn

cognito-identity-unauth:AccountId

cognito-identity-unauth:IdentityPoolArn

寫入

GetIdentityPoolAnalytics

准許為所有身分池的身分提供者 (IdP) 取得有關目前身分總計數的分析資料

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetIdentityPoolDailyAnalytics

准許為所有身分池的身分提供者 (IdP) 取得有關新身分數目和身分總數目的分析資料

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetIdentityPoolRoles

准許取得身分集區的角色

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetIdentityProviderDailyAnalytics

准許為一個身分池的身分提供者 (IdP) 取得有關新身分數目和身分總數目的分析資料

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetOpenIdToken

准許使用已知 Cognito ID 取得 OpenID 字符

cognito-identity-auth:AccountId

cognito-identity-auth:IdentityPoolArn

cognito-identity-unauth:AccountId

cognito-identity-unauth:IdentityPoolArn

讀取

GetOpenIdTokenForDeveloperIdentity

准許註冊 (或擷取) 由後端身分驗證程序進行身分驗證之使用者的 Cognito IdentityId 及 OpenID Connect 字符。

identitypool*

aws:ResourceTag/${TagKey}

讀取

GetPrincipalTagAttributeMap

准許取得身分集區和提供者的委託人標籤

identitypool*

aws:ResourceTag/${TagKey}

讀取

ListIdentities

准許在身分集區中列出身分

identitypool*

aws:ResourceTag/${TagKey}

清單

ListIdentityPools

准許列出針對您帳戶註冊的所有 Cognito 身分集區。

清單

ListTagsForResource

准許列出指派給 Amazon Cognito 身分集區的標籤。

identitypool

aws:ResourceTag/${TagKey}

讀取

LookupDeveloperIdentity

准許擷取與 DeveloperUserIdentifier 相關聯的 IdentityId,或是與現有身分之 IdentityId 相關聯的 DeveloperUserIdentifiers 清單。

identitypool*

aws:ResourceTag/${TagKey}

讀取

MergeDeveloperIdentities

准許合併兩個使用者,其各自具有不同的 IdentityId,而且存在於同一個身分集區,由相同的開發人員提供者加以識別。

identitypool*

aws:ResourceTag/${TagKey}

寫入

SetIdentityPoolRoles

准許設定身分集區的角色。呼叫 GetCredentialsForIdentity 動作時,會使用這些角色

寫入

SetPrincipalTagAttributeMap

准許設定身分集區和提供者的委託人標籤。呼叫 GetOpenIdToken 動作時,會使用這些標籤

寫入

TagResource

准許將一組標籤指派給 Amazon Cognito 身分集區

identitypool*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

UnlinkDeveloperIdentity

准許取消現有身分的 DeveloperUserIdentifier 連結

identitypool*

aws:ResourceTag/${TagKey}

寫入

UnlinkIdentity

准許取消現有帳戶的聯合身分連結

cognito-identity-auth:AccountId

cognito-identity-auth:IdentityPoolArn

寫入

UntagResource

准許從 Amazon Cognito 身分集區移除指定標籤

identitypool*

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

UpdateIdentityPool

准許更新身分集區

identitypool*

aws:ResourceTag/${TagKey}

寫入

Amazon Cognito Identity 定義的資源類型

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

資源類型 ARN 條件索引鍵

identitypool

arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}

aws:ResourceTag/${TagKey}

Amazon Cognito Identity 條件索引鍵

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

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依請求中的標籤鍵值對篩選存取權

String

aws:ResourceTag/${TagKey}

依連接到資源的標籤鍵值對篩選存取權

String

aws:TagKeys

依請求中的金鑰是否存在來篩選存取

ArrayOfString

cognito-identity-auth:AccountId

依身分集區已驗證使用者的擁有 AWS 帳戶 ID 篩選存取權。適用於未經驗證的 (公有) API 操作

String

cognito-identity-auth:IdentityPoolArn

依指定已驗證使用者身分 ID 的身分集區 ID 篩選存取權。適用於未經驗證的 (公有) API 操作

ARN

cognito-identity-unauth:AccountId

依擁有身分集區訪客使用者的身分集區 AWS 帳戶 ID 篩選存取權。適用於未經驗證的 (公有) API 操作

String

cognito-identity-unauth:IdentityPoolArn

依指定訪客使用者身分 ID 的身分集區 ID 篩選存取權。適用於未經驗證的 (公有) API 操作

ARN

cognito-identity:IdentityPoolArn

依 DeleteIdentities 和 DescribeIdentity 之指定身分 ID 的身分集區 ID 篩選存取權

ARN