This is a feature of S3 I use a lot - see the Amazon S3 docs.