AWS::EMRContainers::Endpoint ContainerLogRotationConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::EMRContainers::Endpoint ContainerLogRotationConfiguration

The settings for container log rotation.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "MaxFilesToKeep" : Integer, "RotationSize" : String }

YAML

MaxFilesToKeep: Integer RotationSize: String

Properties

MaxFilesToKeep

The number of files to keep in container after rotation.

Required: Yes

Type: Integer

Minimum: 1

Maximum: 50

Update requires: Replacement

RotationSize

The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.

Required: Yes

Type: String

Pattern: ^\d+(\.\d+)?[KMG][Bb]?$

Minimum: 3

Maximum: 12

Update requires: Replacement