| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.S3.DeleteBucketCors
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 S3 User Guide.
Related Resources:
Synopsis
- data DeleteBucketCors = DeleteBucketCors' {}
- newDeleteBucketCors :: BucketName -> DeleteBucketCors
- deleteBucketCors_expectedBucketOwner :: Lens' DeleteBucketCors (Maybe Text)
- deleteBucketCors_bucket :: Lens' DeleteBucketCors BucketName
- data DeleteBucketCorsResponse = DeleteBucketCorsResponse' {
- newDeleteBucketCorsResponse :: DeleteBucketCorsResponse
Creating a Request
data DeleteBucketCors Source #
See: newDeleteBucketCors smart constructor.
Constructors
| DeleteBucketCors' | |
Fields
| |
Instances
Arguments
| :: BucketName | |
| -> DeleteBucketCors |
Create a value of DeleteBucketCors with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expectedBucketOwner:DeleteBucketCors', deleteBucketCors_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request fails with the HTTP status code
403 Forbidden (access denied).
DeleteBucketCors, deleteBucketCors_bucket - Specifies the bucket whose cors configuration is being deleted.
Request Lenses
deleteBucketCors_expectedBucketOwner :: Lens' DeleteBucketCors (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request fails with the HTTP status code
403 Forbidden (access denied).
deleteBucketCors_bucket :: Lens' DeleteBucketCors BucketName Source #
Specifies the bucket whose cors configuration is being deleted.
Destructuring the Response
data DeleteBucketCorsResponse Source #
See: newDeleteBucketCorsResponse smart constructor.
Constructors
| DeleteBucketCorsResponse' | |
Instances
newDeleteBucketCorsResponse :: DeleteBucketCorsResponse Source #
Create a value of DeleteBucketCorsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.