Skip to contents

Check if an S3 bucket exists

Usage

aws_bucket_exists(bucket)

Arguments

bucket

(character) bucket name; must be length 1. required

Value

a single boolean (logical)

Note

internally uses head_bucket

Examples

if (FALSE) { # \dontrun{
# exists
aws_bucket_exists(bucket = "s64-test-2")
# does not exist
aws_bucket_exists(bucket = "no-bucket")
} # }