If you want to share some file in S3 with some one for a period of time you can create presign url.
aws s3 presign s3://<bucket_name>/<filen_ame> --expires-in <seconds>
Example:
aws s3 presign s3://cjrivas-demo-bucket/images.jpg --expires-in 30
So this image will expires in 30 seconds.