s3_get_bucket_logging: Returns the logging status of a bucket and the permissions...

Description Usage Arguments Value Request syntax

View source: R/s3_operations.R

Description

Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.

The following operations are related to get_bucket_logging:

Usage

1
s3_get_bucket_logging(Bucket, ExpectedBucketOwner)

Arguments

Bucket

[required] The bucket name for which to get the logging information.

ExpectedBucketOwner

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
list(
  LoggingEnabled = list(
    TargetBucket = "string",
    TargetGrants = list(
      list(
        Grantee = list(
          DisplayName = "string",
          EmailAddress = "string",
          ID = "string",
          Type = "CanonicalUser"|"AmazonCustomerByEmail"|"Group",
          URI = "string"
        ),
        Permission = "FULL_CONTROL"|"READ"|"WRITE"
      )
    ),
    TargetPrefix = "string"
  )
)

Request syntax

1
2
3
4
svc$get_bucket_logging(
  Bucket = "string",
  ExpectedBucketOwner = "string"
)

paws.storage documentation built on March 7, 2021, 5:07 p.m.