

# ExpirationDataRule
<a name="API_S3Files_ExpirationDataRule"></a>

Specifies a rule that controls when cached data expires from the file system based on last access time.

## Contents
<a name="API_S3Files_ExpirationDataRule_Contents"></a>

 ** daysAfterLastAccess **   <a name="AmazonS3-Type-S3Files_ExpirationDataRule-daysAfterLastAccess"></a>
The number of days after last access before cached data expires from the file system.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 365.  
Required: Yes

## See Also
<a name="API_S3Files_ExpirationDataRule_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/s3files-2025-05-05/ExpirationDataRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3files-2025-05-05/ExpirationDataRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3files-2025-05-05/ExpirationDataRule) 