Interface CfnApplication.IMaxCountRuleProperty
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.
Namespace: Amazon.CDK.AWS.ElasticBeanstalk
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IMaxCountRuleProperty
Syntax (vb)
Public Interface IMaxCountRuleProperty
Remarks
A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.
MaxCountRule
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 maxCountRuleProperty = new MaxCountRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxCount = 123
};
Synopsis
Properties
DeleteSourceFromS3 | Set to |
Enabled | Specify |
MaxCount | Specify the maximum number of application versions to retain. |
Properties
DeleteSourceFromS3
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
virtual object DeleteSourceFromS3 { get; }
Property Value
System.Object
Remarks
Enabled
Specify true
to apply the rule, or false
to disable it.
virtual object Enabled { get; }
Property Value
System.Object
Remarks
MaxCount
Specify the maximum number of application versions to retain.
virtual Nullable<double> MaxCount { get; }
Property Value
System.Nullable<System.Double>