Created
February 24, 2017 20:34
-
-
Save prestomation/2e62c67357b665d7a9ca6d10cce5c20c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"dynamodb:GetItem", | |
"dynamodb:BatchGetItem", | |
"dynamodb:Query", | |
"dynamodb:PutItem", | |
"dynamodb:UpdateItem", | |
"dynamodb:DeleteItem", | |
"dynamodb:BatchWriteItem" | |
], | |
"Resource": [ | |
"arn:aws:dynamodb:us-west-2:123456789012:table/MyTable" | |
], | |
"Condition": { | |
"ForAllValues:StringEquals": { | |
"dynamodb:LeadingKeys": ["${cognito-identity.amazonaws.com:sub}"] | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment