// 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
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon Simple
// Storage Service Developer Guide. Related Resources:
//
// * PutBucketCors
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html)
//
// *
// RESTOPTIONSobject
// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html)
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.

PutBucketCors

RESTOPTIONSobject
// 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 // ( https : // docs . aws . amazon . com / AmazonS3 / latest / dev / cors . html ) in the Amazon Simple // Storage Service Developer Guide . Related Resources : // // * PutBucketCors // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_PutBucketCors . html ) // // * // RESTOPTIONSobject // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / RESTOPTIONSobject . html )
func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error) {
	if params == nil {
		params = &DeleteBucketCorsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteBucketCors", params, optFns, addOperationDeleteBucketCorsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteBucketCorsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteBucketCors ( ctx context . Context , params * DeleteBucketCorsInput , optFns ... func ( * Options ) ) ( * DeleteBucketCorsOutput , error ) { if params == nil { params = & DeleteBucketCorsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteBucketCorsMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteBucketCorsOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the cors configuration information set for the bucket.
Deletes the cors configuration information set for the bucket .