s3-lifecycle-policy-check - Amazon Config
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

s3-lifecycle-policy-check

检查是否为 Amazon Simple Storage Service (Amazon S3) 存储桶配置了生命周期规则。如果没有有效的生命周期配置规则,或者配置与参数值不匹配,则此规则为 NON_COMPLIANT。

标识符:S3_LIFECYCLE_POLICY_CHECK

资源类型: AWS::S3::Bucket

触发器类型: 配置更改

Amazon Web Services 区域:除亚太 Amazon 地区(雅加达)区域之外的所有支持区域

参数:

targetTransitionDays (可选)
类型:int

对象在创建后过渡到指定存储类的天数(例如 30 天)。

targetExpirationDays (可选)
类型:int

对象创建后删除对象的天数(例如,395 天)。

targetTransitionStorage班级(可选)
类型:字符串

目标存储类类型(例如,Amazon S3 Standard-Infrequent Access (S3 Standard-IA)。有关更多信息,请参阅 https: //docs.aws.amazon.com/amazons3/latest/dev/. storage-class-intro html。

targetPrefix(可选)
类型:字符串

用于标识一个或多个对象的 Amazon S3 对象前缀。

bucketNames(可选)
类型:CSV

启用生命周期策略的 Amazon S3 存储桶名称的逗号分隔列表。

Amazon CloudFormation 模板

要使用 Amazon CloudFormation 模板创建 Amazon Config 托管规则,请参阅使用 Amazon CloudFormation 模板创建 Amazon Config 托管规则