public static interface CfnApplication.MaxAgeRuleProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnApplication.MaxAgeRuleProperty.Builder
A builder for
CfnApplication.MaxAgeRuleProperty |
static class |
CfnApplication.MaxAgeRuleProperty.Jsii$Proxy
An implementation for
CfnApplication.MaxAgeRuleProperty |
Modifier and Type | Method and Description |
---|---|
static CfnApplication.MaxAgeRuleProperty.Builder |
builder() |
default java.lang.Object |
getDeleteSourceFromS3()
Set to `true` to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
|
default java.lang.Object |
getEnabled()
Specify `true` to apply the rule, or `false` to disable it.
|
default java.lang.Number |
getMaxAgeInDays()
Specify the number of days to retain an application versions.
|
default java.lang.Object getDeleteSourceFromS3()
default java.lang.Object getEnabled()
default java.lang.Number getMaxAgeInDays()
static CfnApplication.MaxAgeRuleProperty.Builder builder()