Learn R Programming

paws.storage (version 0.1.9)

s3_get_bucket_cors: Returns the cors configuration information set for the bucket

Description

Returns the cors configuration information set for the bucket.

Usage

s3_get_bucket_cors(Bucket)

Arguments

Bucket

[required] The bucket name for which to get the cors configuration.

Request syntax

svc$get_bucket_cors(
  Bucket = "string"
)

Details

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

For more information about cors, see Enabling Cross-Origin Resource Sharing.

The following operations are related to GetBucketCors:

  • PutBucketCors

  • DeleteBucketCors

Examples

Run this code
# NOT RUN {
# The following example returns cross-origin resource sharing (CORS)
# configuration set on a bucket.
svc$get_bucket_cors(
  Bucket = "examplebucket"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab