AWS Identity and Access Management
User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Actions, Resources, and Condition Keys for Amazon DynamoDB

Amazon DynamoDB (service prefix: dynamodb) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Actions Defined by Amazon DynamoDB

Amazon DynamoDB has no API operations that can be used in the Actions element of an IAM policy statement. To allow access to Amazon DynamoDB, specify “Action”: “dynamodb:*” in your policy.

Resources Defined by Amazon DynamoDB

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the table. For details about the columns in the following table, see The Resource Types Table.

Resource Types ARN Condition Keys
index arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/index/${IndexName}
stream arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/stream/${StreamLabel}
table arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}
backup arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}
global-table arn:${Partition}:dynamodb::${Account}:global-table/${GlobalTableName}

Condition Keys for Amazon DynamoDB

Amazon DynamoDB defines the following condition keys that can be used in the Condition element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see The Condition Keys Table.

To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference.

Note

For information about how to use context keys to refine DynamoDB access using an IAM policy, see Using IAM Policy Conditions for Fine-Grained Access Control in the Amazon DynamoDB Developer Guide.

Condition Keys Description Type
dynamodb:Attributes Filter based on the attribute (field or column) names of the table. String
dynamodb:EnclosingOperation Used to block Transactions APIs calls and allow the non-Transaction APIs calls and vice-versa. String
dynamodb:LeadingKeys Filters based on the partition key of the table. String
dynamodb:ReturnConsumedCapacity Filter based on the ReturnConsumedCapacity parameter of a request. Contains either "TOTAL" or "NONE". String
dynamodb:ReturnValues Filter based on the ReturnValues parameter of request. Contains one of the following: "ALL_OLD", "UPDATED_OLD","ALL_NEW","UPDATED_NEW", or "NONE". String
dynamodb:Select Filter based on the Select parameter of a Query or Scan request. String