Get URL(link) of a public S3 object programmatically

后端 未结 7 670
心在旅途
心在旅途 2021-01-01 14:06

I am storing one public object in AWS S3 bucket using given java API in my server Now i need to return back the public URL of the S3 object to my client

Till now i h

相关标签:
7条回答
  • 2021-01-01 14:57

    For SDK-2 version, Kotlin:

    s3.utilities().getUrl { it.bucket("BUCKET").key("FILEPATH") }.toExternalForm()
    
    0 讨论(0)
提交回复
热议问题