View a markdown version of this page

Actions, resources, and condition keys for Amazon Cognito Sync - Service Authorization Reference

Actions, resources, and condition keys for Amazon Cognito Sync

Amazon Cognito Sync (service prefix: cognito-sync) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Cognito Sync

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

BulkPublish

cognito-sync:BulkPublish

Write

DeleteDataset

cognito-sync:DeleteDataset

Write

DescribeDataset

cognito-sync:DescribeDataset

Read

DescribeIdentityPoolUsage

cognito-sync:DescribeIdentityPoolUsage

Read

DescribeIdentityUsage

cognito-sync:DescribeIdentityUsage

Read

GetBulkPublishDetails

cognito-sync:GetBulkPublishDetails

Read

GetCognitoEvents

cognito-sync:GetCognitoEvents

Read

GetIdentityPoolConfiguration

cognito-sync:GetIdentityPoolConfiguration

Read

ListDatasets

cognito-sync:ListDatasets

List

ListIdentityPoolUsage

cognito-sync:ListIdentityPoolUsage

Read

ListRecords

cognito-sync:ListRecords

Read

RegisterDevice

cognito-sync:RegisterDevice

Write

SetCognitoEvents

cognito-sync:SetCognitoEvents

Write

SetIdentityPoolConfiguration

cognito-sync:SetIdentityPoolConfiguration

Write

iam:PassRole

Write

SubscribeToDataset

cognito-sync:SubscribeToDataset

Write

UnsubscribeFromDataset

cognito-sync:UnsubscribeFromDataset

Write

UpdateRecords

cognito-sync:UpdateRecords

Write

Actions defined by Amazon Cognito Sync

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

BulkPublish

Grants permission to initiate a bulk publish of all existing datasets for an Identity Pool to the configured stream

identitypool*

Write

DeleteDataset

Grants permission to delete a specific dataset

dataset*

Write

DescribeDataset

Grants permission to get metadata about a dataset by identity and dataset name

dataset*

Read

DescribeIdentityPoolUsage

Grants permission to get usage details (for example, data storage) about a particular identity pool

identitypool*

Read

DescribeIdentityUsage

Grants permission to get usage information for an identity, including number of datasets and data usage

identity*

Read

GetBulkPublishDetails

Grants permission to get the status of the last BulkPublish operation for an identity pool

identitypool*

Read

GetCognitoEvents

Grants permission to get the events and the corresponding Lambda functions associated with an identity pool

identitypool*

Read

GetIdentityPoolConfiguration

Grants permission to get the configuration settings of an identity pool

identitypool*

Read

ListDatasets

Grants permission to list datasets for an identity

dataset*

List

ListIdentityPoolUsage

Grants permission to get a list of identity pools registered with Cognito

identitypool*

Read

ListRecords

Grants permission to get paginated records, optionally changed after a particular sync count for a dataset and identity

dataset*

Read

RegisterDevice

Grants permission to register a device to receive push sync notifications

identity*

Write

SetCognitoEvents

Grants permission to set the AWS Lambda function for a given event type for an identity pool

identitypool*

Write

SetIdentityPoolConfiguration

Grants permission to set the necessary configuration for push sync

identitypool*

Write

SubscribeToDataset

Grants permission to subscribe to receive notifications when a dataset is modified by another device

dataset*

Write

UnsubscribeFromDataset

Grants permission to unsubscribe from receiving notifications when a dataset is modified by another device

dataset*

Write

UpdateRecords

Grants permission to post updates to records and add and delete records for a dataset and user

dataset*

Write

Permission-only actions for Amazon Cognito Sync

The following actions are defined by Amazon Cognito Sync but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.

Actions Description Resource types (*required) Condition keys Access level

QueryRecords

Grants permission to query records

Read

SetDatasetConfiguration

Grants permission to configure datasets

dataset*

Write

Resource types defined by Amazon Cognito Sync

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

dataset

arn:${Partition}:cognito-sync:${Region}:${Account}:identitypool/${IdentityPoolId}/identity/${IdentityId}/dataset/${DatasetName}

identity

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

identitypool

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

Condition keys for Amazon Cognito Sync

Amazon Cognito Sync has no service-specific condition keys that can be used in the Condition element of policy statements.