Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
DeleteBucketCors' | |
|
Instances
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 will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket: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 will fail with an HTTP
403 (Access Denied)
error.
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.
Instances
Eq DeleteBucketCorsResponse Source # | |
Defined in Amazonka.S3.DeleteBucketCors | |
Read DeleteBucketCorsResponse Source # | |
Show DeleteBucketCorsResponse Source # | |
Defined in Amazonka.S3.DeleteBucketCors showsPrec :: Int -> DeleteBucketCorsResponse -> ShowS # show :: DeleteBucketCorsResponse -> String # showList :: [DeleteBucketCorsResponse] -> ShowS # | |
Generic DeleteBucketCorsResponse Source # | |
Defined in Amazonka.S3.DeleteBucketCors type Rep DeleteBucketCorsResponse :: Type -> Type # | |
NFData DeleteBucketCorsResponse Source # | |
Defined in Amazonka.S3.DeleteBucketCors rnf :: DeleteBucketCorsResponse -> () # | |
type Rep DeleteBucketCorsResponse Source # | |
newDeleteBucketCorsResponse :: DeleteBucketCorsResponse Source #
Create a value of DeleteBucketCorsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.