ServiceResource / Sub-Resource / BucketLifecycle

BucketLifecycle#

S3.ServiceResource.BucketLifecycle(bucket_name)#

Creates a BucketLifecycle resource.:

bucket_lifecycle = s3.BucketLifecycle('bucket_name')
Parameters:

bucket_name (string) – The BucketLifecycle’s bucket_name identifier. This must be set.

Return type:

S3.BucketLifecycle

Returns:

A BucketLifecycle resource