interface MaxAgeRuleProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticBeanstalk.CfnApplication.MaxAgeRuleProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticbeanstalk#CfnApplication_MaxAgeRuleProperty |
![]() | software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxAgeRuleProperty |
![]() | aws_cdk.aws_elasticbeanstalk.CfnApplication.MaxAgeRuleProperty |
![]() | 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
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 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.