libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • expectedBucketOwner :: Maybe Text

    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.

  • bucket :: BucketName

    Specifies the bucket being deleted.

Instances

Instances details
Eq DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Read DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Show DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Generic DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Associated Types

type Rep DeleteBucket :: Type -> Type #

NFData DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Methods

rnf :: DeleteBucket -> () #

Hashable DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

AWSRequest DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

Associated Types

type AWSResponse DeleteBucket #

ToHeaders DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

ToPath DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

ToQuery DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

type Rep DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

type Rep DeleteBucket = D1 ('MetaData "DeleteBucket" "Amazonka.S3.DeleteBucket" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucket'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))
type AWSResponse DeleteBucket Source # 
Instance details

Defined in Amazonka.S3.DeleteBucket

newDeleteBucket Source #

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' 

newDeleteBucketResponse :: DeleteBucketResponse Source #

Create a value of DeleteBucketResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.