interface MaxCountRuleProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticBeanstalk.CfnApplication.MaxCountRuleProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticbeanstalk#CfnApplication_MaxCountRuleProperty |
![]() | software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxCountRuleProperty |
![]() | aws_cdk.aws_elasticbeanstalk.CfnApplication.MaxCountRuleProperty |
![]() | 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
Name | Type | Description |
---|---|---|
delete | boolean | IResolvable | Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version. |
enabled? | boolean | IResolvable | Specify true to apply the rule, or false to disable it. |
max | number | Specify 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.