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.DeleteBucketLifecycle

Description

Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration.

To use this operation, you must have permission to perform the s3:PutLifecycleConfiguration action. By default, the bucket owner has this permission and the bucket owner can grant this permission to others.

There is usually some time lag before lifecycle configuration deletion is fully propagated to all the Amazon S3 systems.

For more information about the object expiration, see Elements to Describe Lifecycle Actions.

Related actions include:

Synopsis

Creating a Request

data DeleteBucketLifecycle Source #

See: newDeleteBucketLifecycle smart constructor.

Constructors

DeleteBucketLifecycle' 

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

    The bucket name of the lifecycle to delete.

Instances

Instances details
Eq DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Read DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Show DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Generic DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type Rep DeleteBucketLifecycle :: Type -> Type #

NFData DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Methods

rnf :: DeleteBucketLifecycle -> () #

Hashable DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

AWSRequest DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type AWSResponse DeleteBucketLifecycle #

ToHeaders DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

ToPath DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

ToQuery DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

type Rep DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

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

Defined in Amazonka.S3.DeleteBucketLifecycle

newDeleteBucketLifecycle Source #

Create a value of DeleteBucketLifecycle 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:DeleteBucketLifecycle', deleteBucketLifecycle_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:DeleteBucketLifecycle', deleteBucketLifecycle_bucket - The bucket name of the lifecycle to delete.

Request Lenses

deleteBucketLifecycle_expectedBucketOwner :: Lens' DeleteBucketLifecycle (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.

deleteBucketLifecycle_bucket :: Lens' DeleteBucketLifecycle BucketName Source #

The bucket name of the lifecycle to delete.

Destructuring the Response

data DeleteBucketLifecycleResponse Source #

See: newDeleteBucketLifecycleResponse smart constructor.

Instances

Instances details
Eq DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Read DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Show DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Generic DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type Rep DeleteBucketLifecycleResponse :: Type -> Type #

NFData DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

type Rep DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

type Rep DeleteBucketLifecycleResponse = D1 ('MetaData "DeleteBucketLifecycleResponse" "Amazonka.S3.DeleteBucketLifecycle" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketLifecycleResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBucketLifecycleResponse :: DeleteBucketLifecycleResponse Source #

Create a value of DeleteBucketLifecycleResponse with all optional fields omitted.

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