This creates a file system "like" API based off fs
(e.g. dir_ls, file_copy, etc.) for AWS S3 storage. To set up AWS
credentials please look at
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
s3_file_system(
aws_access_key_id = NULL,
aws_secret_access_key = NULL,
aws_session_token = NULL,
region_name = NULL,
profile_name = NULL,
endpoint = NULL,
disable_ssl = FALSE,
multipart_threshold = fs_bytes("2GB"),
request_payer = FALSE,
anonymous = FALSE,
retries = 5,
refresh = FALSE,
...
)
(character): AWS access key ID
(character): AWS secret access key
(character): AWS temporary session token
(character): Default region when creating new connections
(character): The name of a profile to use. If not given, then the default profile is used.
(character): The complete URL to use for the constructed client.
(logical): Whether or not to use SSL. By default, SSL is used.
(fs_bytes): Threshold to use multipart instead of standard copy and upload methods.
(logical): Confirms that the requester knows that they will be charged for the request.
(logical): Set up anonymous credentials when connecting to AWS S3.
(numeric): max number of retry attempts
(logical): Refresh cached S3FileSystem class
Other parameters within paws
client.
S3FileSystem class invisible
if (FALSE) {
# Require AWS S3 credentials
# Set up connection using profile
s3_file_system(profile_name = "s3fs_example")
# Reset connection to connect to a different region
s3_file_system(
profile_name = "s3fs_example",
region_name = "us-east-1",
refresh = TRUE
)
}