Class 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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticBeanstalk
Assembly: Amazon.CDK.AWS.ElasticBeanstalk.dll
Syntax (csharp)
public class MaxCountRuleProperty : Object, CfnApplication.IMaxCountRuleProperty
Syntax (vb)
Public Class MaxCountRuleProperty
Inherits Object
Implements CfnApplication.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
Constructors
MaxCountRuleProperty() |
Properties
DeleteSourceFromS3 | Set to |
Enabled | Specify |
MaxCount | Specify the maximum number of application versions to retain. |
Constructors
MaxCountRuleProperty()
public MaxCountRuleProperty()
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
MaxCount
Specify the maximum number of application versions to retain.
public Nullable<double> MaxCount { get; set; }
Property Value
System.Nullable<System.Double>