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 S3 bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.
Related Resources
Synopsis
Creating a Request
data DeleteBucket Source #
See: newDeleteBucket
smart constructor.
DeleteBucket' | |
|
Instances
Create a value of DeleteBucket
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:DeleteBucket'
, deleteBucket_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:DeleteBucket'
, deleteBucket_bucket
- Specifies the bucket being deleted.
Request Lenses
deleteBucket_expectedBucketOwner :: Lens' DeleteBucket (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.
deleteBucket_bucket :: Lens' DeleteBucket BucketName Source #
Specifies the bucket being deleted.
Destructuring the Response
data DeleteBucketResponse Source #
See: newDeleteBucketResponse
smart constructor.
Instances
Eq DeleteBucketResponse Source # | |
Defined in Amazonka.S3.DeleteBucket (==) :: DeleteBucketResponse -> DeleteBucketResponse -> Bool # (/=) :: DeleteBucketResponse -> DeleteBucketResponse -> Bool # | |
Read DeleteBucketResponse Source # | |
Defined in Amazonka.S3.DeleteBucket | |
Show DeleteBucketResponse Source # | |
Defined in Amazonka.S3.DeleteBucket showsPrec :: Int -> DeleteBucketResponse -> ShowS # show :: DeleteBucketResponse -> String # showList :: [DeleteBucketResponse] -> ShowS # | |
Generic DeleteBucketResponse Source # | |
Defined in Amazonka.S3.DeleteBucket type Rep DeleteBucketResponse :: Type -> Type # from :: DeleteBucketResponse -> Rep DeleteBucketResponse x # to :: Rep DeleteBucketResponse x -> DeleteBucketResponse # | |
NFData DeleteBucketResponse Source # | |
Defined in Amazonka.S3.DeleteBucket rnf :: DeleteBucketResponse -> () # | |
type Rep DeleteBucketResponse Source # | |
newDeleteBucketResponse :: DeleteBucketResponse Source #
Create a value of DeleteBucketResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.