

# s3-lifecycle-policy-check
<a name="s3-lifecycle-policy-check"></a>

Checks if a lifecycle rule is configured for an Amazon Simple Storage Service (Amazon S3) bucket. The rule is NON\_COMPLIANT if there is no active lifecycle configuration rules or the configuration does not match with the parameter values. 



**Identifier:** S3\_LIFECYCLE\_POLICY\_CHECK

**Resource Types:** AWS::S3::Bucket

**Trigger type:** Configuration changes

**Amazon Web Services Region:** All supported Amazon regions

**Parameters:**

targetTransitionDays (Optional)Type: int  
Number of days after object creation when objects are transitioned to a specified storage class (for example, 30 days).

targetExpirationDays (Optional)Type: int  
Number of days after object creation when objects are deleted (for example, 395 days).

targetTransitionStorageClass (Optional)Type: String  
Destination storage class type. For example, Amazon S3 Standard-Infrequent Access (S3 Standard-IA). For more information, see [Understanding and managing Amazon S3 storage classes](https://docs.amazonaws.cn/AmazonS3/latest/dev/storage-class-intro.html).

targetPrefix (Optional)Type: String  
Amazon S3 Object prefix to identify one or more objects.

bucketNames (Optional)Type: CSV  
Comma-separated list of Amazon S3 bucket names that have lifecycle policy enabled.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7e1421c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).