Example of using a function to resolve a URL. The example is trivial and won't work for general s3 urls, but illustrates the principle of using a function to translate a URL.