@Stability(value=Stable)
public static interface CfnApplication.MaxAgeRuleProperty
extends software.amazon.jsii.JsiiSerializable
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 Object |
getDeleteSourceFromS3()
Set to `true` to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
|
default Object |
getEnabled()
Specify `true` to apply the rule, or `false` to disable it.
|
default Number |
getMaxAgeInDays()
Specify the number of days to retain an application versions.
|
@Stability(value=Stable) @Nullable default Object getDeleteSourceFromS3()
@Stability(value=Stable) @Nullable default Object getEnabled()
@Stability(value=Stable) @Nullable default Number getMaxAgeInDays()
@Stability(value=Stable) static CfnApplication.MaxAgeRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.