Interface CfnApplication.IApplicationVersionLifecycleConfigProperty
Use the ApplicationVersionLifecycleConfig
property type to specify application version lifecycle settings 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 IApplicationVersionLifecycleConfigProperty
Syntax (vb)
Public Interface IApplicationVersionLifecycleConfigProperty
Remarks
The application version lifecycle settings for an application. Defines the rules that Elastic Beanstalk applies to an application's versions in order to avoid hitting the per-region limit for application versions.
When Elastic Beanstalk deletes an application version from its database, you can no longer deploy that version to an environment. The source bundle remains in S3 unless you configure the rule to delete it.
ApplicationVersionLifecycleConfig
is a property of the ApplicationResourceLifecycleConfig 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 applicationVersionLifecycleConfigProperty = new ApplicationVersionLifecycleConfigProperty {
MaxAgeRule = new MaxAgeRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxAgeInDays = 123
},
MaxCountRule = new MaxCountRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxCount = 123
}
};
Synopsis
Properties
MaxAgeRule | Specify a max age rule to restrict the length of time that application versions are retained for an application. |
MaxCountRule | Specify a max count rule to restrict the number of application versions that are retained for an application. |
Properties
MaxAgeRule
Specify a max age rule to restrict the length of time that application versions are retained for an application.
virtual object MaxAgeRule { get; }
Property Value
System.Object
Remarks
MaxCountRule
Specify a max count rule to restrict the number of application versions that are retained for an application.
virtual object MaxCountRule { get; }
Property Value
System.Object