aws-cdk-lib.aws_elasticbeanstalk.CfnApplication.MaxCountRuleProperty

interface MaxCountRuleProperty

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

Use the MaxAgeRule property type to specify a max count rule to restrict the number of application versions that 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 the oldest application version when the maximum count is exceeded.

MaxCountRule 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 maxCountRuleProperty: elasticbeanstalk.CfnApplication.MaxCountRuleProperty = {
  deleteSourceFromS3: false,
  enabled: false,
  maxCount: 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.
maxCount?numberSpecify the maximum number of application versions to retain.

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.


maxCount?

Type: number (optional)

Specify the maximum number of application versions to retain.