Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Id": "arn:aws:sqs:us-east-1:930XXXXXX332:task-queue/SQSDefaultPolicy",
  4. "Statement": [
  5. {
  6. "Sid": "Sid1487598389851",
  7. "Effect": "Deny",
  8. "Principal": "*",
  9. "Action": "SQS:*",
  10. "Resource": "arn:aws:sqs:us-east-1:930XXXXXX332:task-queue",
  11. "Condition": {
  12. "ArnNotEquals": {
  13. "aws:SourceArn": "arn:aws:iam::930XXXXXX332:user/test-sqs"
  14. }
  15. }
  16. },
  17. {
  18. "Sid": "Sid1487599825058",
  19. "Effect": "Allow",
  20. "Principal": {
  21. "AWS": "arn:aws:iam::930XXXXXX332:user/test-sqs"
  22. },
  23. "Action": "SQS:*",
  24. "Resource": "arn:aws:sqs:us-east-1:930XXXXXX332:task-queue"
  25. }
  26. ]
  27. }
  28.  
  29. "Condition": {
  30. "NotPrincipal": {
  31. "AWS": "arn:aws:iam::930XXXXXX332:user/test-sqs"
  32. }
  33. }
  34.  
  35. Allow: user1, user2
  36. Deny: *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement