Check out example codes for "java s3 images". It will help you in understanding the concepts better.

Code Example 1

{
   "Version": "2012-10-17",
   "Statement": [
      {
         "Effect": "Allow",
         "Action": [
            "s3:ListBucket"
         ],
         "Resource": [
            "arn:aws:s3:::BUCKET_NAME"
         ]
      }
   ]
}

Learn ReactJs, React Native from akashmittal.com