amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 fails with the HTTP status code 403 Forbidden (access denied).

  • bucket :: BucketName

    The bucket name of the lifecycle to delete.

Instances

Instances details
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

AWSRequest DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type AWSResponse DeleteBucketLifecycle #

Generic DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type Rep DeleteBucketLifecycle :: Type -> Type #

Read DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Show DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

NFData DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Methods

rnf :: DeleteBucketLifecycle -> () #

Eq DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Hashable DeleteBucketLifecycle Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

type AWSResponse 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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)))

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 fails with the HTTP status code 403 Forbidden (access denied).

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 fails with the HTTP status code 403 Forbidden (access denied).

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
Generic DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Associated Types

type Rep DeleteBucketLifecycleResponse :: Type -> Type #

Read DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Show DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

NFData DeleteBucketLifecycleResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketLifecycle

Eq 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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.