Interface CfnApplication.MaxCountRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.MaxCountRuleProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
@Stability(Stable)
public static interface CfnApplication.MaxCountRuleProperty
extends software.amazon.jsii.JsiiSerializable
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.
A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.
MaxCountRule
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 software.amazon.awscdk.services.elasticbeanstalk.*; MaxCountRuleProperty maxCountRuleProperty = MaxCountRuleProperty.builder() .deleteSourceFromS3(false) .enabled(false) .maxCount(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApplication.MaxCountRuleProperty
static final class
An implementation forCfnApplication.MaxCountRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Set totrue
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.default Object
Specifytrue
to apply the rule, orfalse
to disable it.default Number
Specify the maximum number of application versions to retain.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeleteSourceFromS3
Set totrue
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.- See Also:
-
getEnabled
Specifytrue
to apply the rule, orfalse
to disable it.- See Also:
-
getMaxCount
Specify the maximum number of application versions to retain.- See Also:
-
builder
-