diff --git a/NAMESPACE b/NAMESPACE index fbad636..e82e7d0 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,8 +1,6 @@ # Generated by roxygen2: do not edit by hand export(as_policy_arn) -export(aws_bucket_acl_get) -export(aws_bucket_acl_modify) export(aws_bucket_create) export(aws_bucket_delete) export(aws_bucket_download) diff --git a/R/bucket.R b/R/bucket.R index 5e632db..fac2a16 100644 --- a/R/bucket.R +++ b/R/bucket.R @@ -205,34 +205,3 @@ aws_buckets <- function(...) { aws_bucket_tree <- function(bucket, recurse = TRUE, ...) { s3fs::s3_dir_tree(bucket, recurse = recurse, ...) } - -#' Get a bucket ACL -#' -#' @export -#' @inheritParams aws_bucket_exists -#' @details see docs at -#' @return named list, with slots: `Owner`, `Grants` -#' @examples \dontrun{ -#' aws_bucket_acl_get("s3://s64-test-2") -#' } -aws_bucket_acl_get <- function(bucket) { - bucket <- path_s3_parse(bucket)[[1]]$bucket - env64$s3$get_bucket_acl(bucket) -} -#' Modify a bucket ACL -#' -#' NOTE: Not tested as don't have access to edit ACLs -#' -#' @export -#' @inheritParams aws_bucket_exists -#' @param acl (character) The canned ACL to apply to the bucket. required -#' @param ... named params passed on to -#' -#' @examples \dontrun{ -#' aws_bucket_acl_modify("s3://s64-test-2", acl = "authenticated-read") -#' aws_bucket_acl_get("s3://s64-test-2") -#' } -aws_bucket_acl_modify <- function(bucket, acl, ...) { - bucket <- path_s3_parse(bucket)[[1]]$bucket - env64$s3$put_bucket_acl(ACL = acl, Bucket = bucket, ...) -} diff --git a/man/aws_bucket_acl_get.Rd b/man/aws_bucket_acl_get.Rd deleted file mode 100644 index 964e195..0000000 --- a/man/aws_bucket_acl_get.Rd +++ /dev/null @@ -1,25 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/bucket.R -\name{aws_bucket_acl_get} -\alias{aws_bucket_acl_get} -\title{Get a bucket ACL} -\usage{ -aws_bucket_acl_get(bucket) -} -\arguments{ -\item{bucket}{(character) bucket name. required} -} -\value{ -named list, with slots: \code{Owner}, \code{Grants} -} -\description{ -Get a bucket ACL -} -\details{ -see docs at \url{https://www.paws-r-sdk.com/docs/s3_get_bucket_acl/} -} -\examples{ -\dontrun{ -aws_bucket_acl_get("s3://s64-test-2") -} -} diff --git a/man/aws_bucket_acl_modify.Rd b/man/aws_bucket_acl_modify.Rd deleted file mode 100644 index a753362..0000000 --- a/man/aws_bucket_acl_modify.Rd +++ /dev/null @@ -1,25 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/bucket.R -\name{aws_bucket_acl_modify} -\alias{aws_bucket_acl_modify} -\title{Modify a bucket ACL} -\usage{ -aws_bucket_acl_modify(bucket, acl, ...) -} -\arguments{ -\item{bucket}{(character) bucket name. required} - -\item{acl}{(character) The canned ACL to apply to the bucket. required} - -\item{...}{named params passed on to -\url{https://www.paws-r-sdk.com/docs/s3_put_bucket_acl/}} -} -\description{ -NOTE: Not tested as don't have access to edit ACLs -} -\examples{ -\dontrun{ -aws_bucket_acl_modify("s3://s64-test-2", acl = "authenticated-read") -aws_bucket_acl_get("s3://s64-test-2") -} -}