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 |
Amazonka.S3.DeleteBucket
Description
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.
Constructors
DeleteBucket' | |
Fields
|
Instances
Arguments
:: BucketName | |
-> DeleteBucket |
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.
Constructors
DeleteBucketResponse' | |
Instances
newDeleteBucketResponse :: DeleteBucketResponse Source #
Create a value of DeleteBucketResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.