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.
// The following example deletes CORS configuration on a bucket. constinput = { "Bucket":"examplebucket" }; constcommand = newDeleteBucketCorsCommand(input); awaitclient.send(command); // example id: to-delete-cors-configuration-on-a-bucket-1483042856112
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 S3 User Guide.Related Resources:
PutBucketCors
RESTOPTIONSobject
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteBucketCorsCommandInput
Returns
DeleteBucketCorsCommandOutput
See
input
shape.response
shape.config
shape.Example
To delete cors configuration on a bucket.