Learn R Programming

paws.storage (version 0.1.12)

s3_delete_bucket_cors: Deletes the cors configuration information set for the bucket

Description

Deletes the cors configuration information set for the bucket.

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

For information about cors, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

Related Resources:

Usage

s3_delete_bucket_cors(Bucket, ExpectedBucketOwner)

Value

An empty list.

Arguments

Bucket

[required] Specifies the bucket whose cors configuration is being deleted.

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.

Request syntax

svc$delete_bucket_cors(
  Bucket = "string",
  ExpectedBucketOwner = "string"
)

Examples

Run this code
if (FALSE) {
# The following example deletes CORS configuration on a bucket.
svc$delete_bucket_cors(
  Bucket = "examplebucket"
)
}

Run the code above in your browser using DataLab