Interface CfnApplication.MaxAgeRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.MaxAgeRuleProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
@Stability(Stable)
public static interface CfnApplication.MaxAgeRuleProperty
extends software.amazon.jsii.JsiiSerializable
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.
A lifecycle rule that deletes application versions after the specified number of days.
MaxAgeRule 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.*;
MaxAgeRuleProperty maxAgeRuleProperty = MaxAgeRuleProperty.builder()
.deleteSourceFromS3(false)
.enabled(false)
.maxAgeInDays(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplication.MaxAgeRulePropertystatic final classAn implementation forCfnApplication.MaxAgeRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSet totrueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.default ObjectSpecifytrueto apply the rule, orfalseto disable it.default NumberSpecify the number of days to retain an application versions.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeleteSourceFromS3
Set totrueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.Returns union: either
BooleanorIResolvable- See Also:
-
getEnabled
Specifytrueto apply the rule, orfalseto disable it.Returns union: either
BooleanorIResolvable- See Also:
-
getMaxAgeInDays
Specify the number of days to retain an application versions.- See Also:
-
builder
-