paws.common-v0.7.5
DyfanJones
released this
23 Aug 12:29
·
62 commits
to main
since this release
- build endpoint with host_prefix (#804), thanks to @joseale2310 and @lyschoening for raising issue.
- fix
unix_time
ensure seconds is numeric (#804), thanks to @joseale2310 and @lyschoening for raising issue. - fix stop anonymous credentials removing
x-amz-*
headers (#815) thanks to @cgostic for raising issue - fix s3 redirect for download_file
- fix encode
CopySource
in operationCopyObject
(#819) - enable lists to be passed to
CopySource
forCopyObject
operations (#819). This is to align withboto3
implementation.
library(paws)
client <- s3()
bucket = "BUCKET"
key = "%01file%/output.txt"
resp <- client$put_object(
Bucket = bucket,
Key = key,
Body = charToRaw("helloworld")
)
client$copy_object(
Bucket = bucket,
Key = "file_out_1.txt",
CopySource = sprintf("/%s/%s", bucket, key)
)
client$copy_object(
Bucket = bucket,
Key = "file_out_2.txt",
CopySource = list(
Bucket = bucket,
Key = key
)
)
- convert
uuid
tocpp
for performance improvement.