aws-cdk-lib.aws_elasticbeanstalk.CfnApplication.MaxAgeRuleProperty

interface MaxAgeRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticBeanstalk.CfnApplication.MaxAgeRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticbeanstalk#CfnApplication_MaxAgeRuleProperty
Javasoftware.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxAgeRuleProperty
Pythonaws_cdk.aws_elasticbeanstalk.CfnApplication.MaxAgeRuleProperty
TypeScript aws-cdk-lib » aws_elasticbeanstalk » CfnApplication » MaxAgeRuleProperty

Use the MaxAgeRule property type to specify a max age rule to restrict the length of time that application versions are retained for an AWS Elastic Beanstalk application when defining an AWS::ElasticBeanstalk::Application resource in an AWS CloudFormation template.

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

MaxAgeRule is a property of the ApplicationVersionLifecycleConfig property type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticbeanstalk as elasticbeanstalk } from 'aws-cdk-lib';
const maxAgeRuleProperty: elasticbeanstalk.CfnApplication.MaxAgeRuleProperty = {
  deleteSourceFromS3: false,
  enabled: false,
  maxAgeInDays: 123,
};

Properties

NameTypeDescription
deleteSourceFromS3?boolean | IResolvableSet to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
enabled?boolean | IResolvableSpecify true to apply the rule, or false to disable it.
maxAgeInDays?numberSpecify the number of days to retain an application versions.

deleteSourceFromS3?

Type: boolean | IResolvable (optional)

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


enabled?

Type: boolean | IResolvable (optional)

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


maxAgeInDays?

Type: number (optional)

Specify the number of days to retain an application versions.