我有以下代码来获取文件数据:
client = Aws::S3::Client.new(***settings***)
client.get_object(bucket: Settings.aws.data_migrations.s3_bucket, key: filename)
它返回Aws::S3::Types::GetObjectOutput
是否可以使用存储桶和文件名获取文件URL?
答案 0 :(得分:0)
url是: https://.s3-.amazonaws.com/
示例: https://testbucket.s3-us-east-1.amazonaws.com/sample_folder/image.jpeg