

# ContainerLogRotationConfiguration
<a name="API_ContainerLogRotationConfiguration"></a>

The settings for container log rotation.

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

 ** maxFilesToKeep **   <a name="emroneks-Type-ContainerLogRotationConfiguration-maxFilesToKeep"></a>
The number of files to keep in container after rotation.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 50.  
Required: Yes

 ** rotationSize **   <a name="emroneks-Type-ContainerLogRotationConfiguration-rotationSize"></a>
The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.  
Type: String  
Length Constraints: Minimum length of 3. Maximum length of 12.  
Pattern: `^\d+(\.\d+)?[KMG][Bb]?$`   
Required: Yes

## See Also
<a name="API_ContainerLogRotationConfiguration_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/emr-containers-2020-10-01/ContainerLogRotationConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/emr-containers-2020-10-01/ContainerLogRotationConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/emr-containers-2020-10-01/ContainerLogRotationConfiguration) 