Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteBucketCorsCommand

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:

example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, DeleteBucketCorsCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, DeleteBucketCorsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const command = new DeleteBucketCorsCommand(input);
const response = await client.send(command);
see

DeleteBucketCorsCommandInput for command's input shape.

see

DeleteBucketCorsCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeleteBucketCorsCommandInput

Readonly middlewareStack