@Stability(value=Stable)
public static interface CfnApplication.MaxCountRuleProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnApplication.MaxCountRuleProperty.Builder
A builder for
CfnApplication.MaxCountRuleProperty |
static class |
CfnApplication.MaxCountRuleProperty.Jsii$Proxy
An implementation for
CfnApplication.MaxCountRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnApplication.MaxCountRuleProperty.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 |
getMaxCount()
Specify the maximum number of application versions to retain.
|
@Stability(value=Stable) @Nullable default Object getDeleteSourceFromS3()
@Stability(value=Stable) @Nullable default Object getEnabled()
@Stability(value=Stable) @Nullable default Number getMaxCount()
@Stability(value=Stable) static CfnApplication.MaxCountRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.