Skip to contents

S3 Generate Presigned URL

Usage

s3_file_presignedurl(client, s3path, expiry_seconds = 3600)

Arguments

client

S3 client. Make sure you use signature_version = "s3v4" (see example).

s3path

Full path to S3 object.

expiry_seconds

Number of seconds the presigned URL is valid for (3600 = 1 hour).

Value

An S3 presigned URL.

Examples

if (FALSE) { # \dontrun{
client <- paws.storage::s3(paws.storage::config(signature_version = "s3v4"))
s3path <- "s3://bucket1/path/to/file.tsv"
s3_file_presignedurl(client, s3path)
} # }