Class 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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticBeanstalk
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MaxAgeRuleProperty : Object, CfnApplication.IMaxAgeRuleProperty
Syntax (vb)
Public Class MaxAgeRuleProperty
Inherits Object
Implements CfnApplication.IMaxAgeRuleProperty
Remarks
A lifecycle rule that deletes application versions after the specified number of days.
MaxAgeRule
is a property of the ApplicationVersionLifecycleConfig property type.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticBeanstalk;
var maxAgeRuleProperty = new MaxAgeRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxAgeInDays = 123
};
Synopsis
Constructors
MaxAgeRuleProperty() |
Properties
DeleteSourceFromS3 | Set to |
Enabled | Specify |
MaxAgeInDays | Specify the number of days to retain an application versions. |
Constructors
MaxAgeRuleProperty()
public MaxAgeRuleProperty()
Properties
DeleteSourceFromS3
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
public object DeleteSourceFromS3 { get; set; }
Property Value
System.Object
Remarks
Enabled
Specify true
to apply the rule, or false
to disable it.
public object Enabled { get; set; }
Property Value
System.Object
Remarks
MaxAgeInDays
Specify the number of days to retain an application versions.
public Nullable<double> MaxAgeInDays { get; set; }
Property Value
System.Nullable<System.Double>