Copy the generated policy text, and return to the Edit bucket policy page in the Amazon S3 console. Under Bucket policy, choose Edit. In the Policy text field, type or copy and paste a new bucket policy, or edit an existing policy. The bucket policy is a JSON file.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/add-bucket-policy.html