Actions, resources, and condition keys for Amazon Cognito Identity
Amazon Cognito Identity (service prefix: cognito-identity) 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 Cognito Identity
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 |
|---|---|---|---|---|
|
CreateIdentityPool |
Write |
|||
Tagging, Write |
||||
|
DeleteIdentities |
Write |
|||
|
DeleteIdentityPool |
Write |
|||
|
DescribeIdentity |
Read |
|||
|
DescribeIdentityPool |
Read |
|||
|
GetCredentialsForIdentity |
Read |
|||
|
GetId |
Write |
|||
|
GetIdentityPoolRoles |
Read |
|||
|
GetOpenIdToken |
Read |
|||
|
GetOpenIdTokenForDeveloperIdentity |
Read |
|||
|
GetPrincipalTagAttributeMap |
Read |
|||
|
ListIdentities |
List |
|||
|
ListIdentityPools |
List |
|||
|
ListTagsForResource |
Read |
|||
|
LookupDeveloperIdentity |
Read |
|||
|
MergeDeveloperIdentities |
Write |
|||
|
SetIdentityPoolRoles |
Write |
|||
Write |
||||
|
SetPrincipalTagAttributeMap |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UnlinkDeveloperIdentity |
Write |
|||
|
UnlinkIdentity |
Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateIdentityPool |
Tagging, Write |
|||
Tagging, Write |
||||
Write |
Actions defined by Amazon Cognito Identity
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 Amazon. 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 create a new identity pool |
Write |
|||
Grants permission to delete identities from an identity pool. You can specify a list of 1-60 identities that you want to delete |
Write |
|||
Grants permission to delete a user pool. Once a pool is deleted, users will not be able to authenticate with the pool |
Write |
|||
Grants permission to return metadata related to the given identity, including when the identity was created and any associated linked logins |
Read |
|||
Grants permission to get details about a particular identity pool, including the pool name, ID description, creation date, and current number of users |
Read |
|||
Grants permission to return credentials for the provided identity ID |
cognito-identity-auth:AccountId cognito-identity-auth:IdentityPoolArn |
Read |
||
Grants permission to generate (or retrieve) a Cognito ID. Supplying multiple logins will create an implicit linked account |
cognito-identity-auth:AccountId cognito-identity-auth:IdentityPoolArn |
Write |
||
Grants permission to get analytics data about the total current identity count for all identity pool identity provider (IdPs) |
Read |
|||
Grants permission to get analytics data about the number of new identities and total identities for all identity pool identity providers (IdPs) |
Read |
|||
Grants permission to get the roles for an identity pool |
Read |
|||
Grants permission to get analytics data about the number of new identities and total identities for one identity pool identity provider (IdPs) |
Read |
|||
Grants permission to get an OpenID token, using a known Cognito ID |
cognito-identity-auth:AccountId cognito-identity-auth:IdentityPoolArn |
Read |
||
Grants permission to register (or retrieve) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process |
Read |
|||
Grants permission to get the principal tags for an identity pool and provider |
Read |
|||
Grants permission to list the identities in an identity pool |
List |
|||
Grants permission to list all of the Cognito identity pools registered for your account |
List |
|||
Grants permission to list the tags that are assigned to an Amazon Cognito identity pool |
Read |
|||
Grants permission to retrieve the IdentityId associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity |
Read |
|||
Grants permission to merge two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider |
Write |
|||
Grants permission to set the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action |
Write |
|||
Grants permission to set the principal tags for an identity pool and provider. These tags are used when making calls to GetOpenIdToken action |
Write |
|||
Grants permission to assign a set of tags to an Amazon Cognito identity pool |
Tagging, Write |
|||
Grants permission to unlink a DeveloperUserIdentifier from an existing identity |
Write |
|||
Grants permission to unlink a federated identity from an existing account |
Write |
|||
Grants permission to remove the specified tags from an Amazon Cognito identity pool |
Tagging, Write |
|||
Grants permission to update an identity pool |
Write |
Resource types defined by Amazon Cognito Identity
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}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId} |
Condition keys for Amazon Cognito Identity
Amazon Cognito Identity defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by tag key-value pairs in the request |
String |
|
Filters access by tag key-value pairs attached to the resource |
String |
|
Filters access by a key that is present in the request |
ArrayOfString |
|
Filters access by the owning Amazon Web Services account ID for identity pool authenticated users. Applies to unauthenticated (public) API operations |
String |
|
Filters access by the identity pool ID for a given authenticated-user identity ID. Applies to unauthenticated (public) API operations |
ARN |
|
Filters access by the owning Amazon Web Services account ID of an identity pool for identity pool guest users. Applies to unauthenticated (public) API operations |
String |
|
Filters access by the identity pool ID for a given guest-user identity ID. Applies to unauthenticated (public) API operations |
ARN |
|
Filters access by the identity pool ID for a given identity ID for DeleteIdentities and DescribeIdentity |
ARN |