s3_get_bucket_tagging: Returns the tag set associated with the bucket

Description Usage Arguments Value Request syntax Examples

View source: R/s3_operations.R

Description

Returns the tag set associated with the bucket.

To use this operation, you must have permission to perform the s3:GetBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

get_bucket_tagging has the following special error:

The following operations are related to get_bucket_tagging:

Usage

1
s3_get_bucket_tagging(Bucket, ExpectedBucketOwner)

Arguments

Bucket

[required] The name of the bucket for which to get the tagging 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
list(
  TagSet = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Request syntax

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

Examples

1
2
3
4
5
6
7
## Not run: 
# The following example returns tag set associated with a bucket
svc$get_bucket_tagging(
  Bucket = "examplebucket"
)

## End(Not run)

paws.storage documentation built on Aug. 23, 2021, 1:06 a.m.