AWS::ElasticBeanstalk::Application MaxAgeRule - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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

AWS::ElasticBeanstalk::Application MaxAgeRule

A lifecycle rule that deletes application versions after the specified number of days.

MaxAgeRule is a property of the ApplicationVersionLifecycleConfig property type.

Syntax

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

JSON

{ "DeleteSourceFromS3" : Boolean, "Enabled" : Boolean, "MaxAgeInDays" : Integer }

YAML

DeleteSourceFromS3: Boolean Enabled: Boolean MaxAgeInDays: Integer

Properties

DeleteSourceFromS3

Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

Required: No

Type: Boolean

Update requires: No interruption

Enabled

Specify true to apply the rule, or false to disable it.

Required: No

Type: Boolean

Update requires: No interruption

MaxAgeInDays

Specify the number of days to retain an application versions.

Required: No

Type: Integer

Update requires: No interruption