删除桶生命周期

生命周期管理可以通过设置规则实现自动清理过期的对象,优化存储空间。本文介绍如何删除桶(Bucket)生命周期规则。以下为示例代码

public void deleteBucketLifecycleConfiguration() throws AmazonClientException {
	System.out.println("deleteBucketLifecycleConfiguration");
	s3Client.deleteBucketLifecycleConfiguration(bucket);
	System.out.println("deleteBucketLifecycleConfiguration success");
}