@Stability(value=Stable)
public static interface CfnApplication.ApplicationResourceLifecycleConfigProperty
extends software.amazon.jsii.JsiiSerializable
The resource lifecycle configuration for an application. Defines lifecycle settings for resources that belong to the application, and the service role that Elastic Beanstalk assumes in order to apply lifecycle settings. The version lifecycle configuration defines lifecycle settings for application versions.
ApplicationResourceLifecycleConfig is a property of the AWS::ElasticBeanstalk::Application resource.
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.*;
ApplicationResourceLifecycleConfigProperty applicationResourceLifecycleConfigProperty = ApplicationResourceLifecycleConfigProperty.builder()
.serviceRole("serviceRole")
.versionLifecycleConfig(ApplicationVersionLifecycleConfigProperty.builder()
.maxAgeRule(MaxAgeRuleProperty.builder()
.deleteSourceFromS3(false)
.enabled(false)
.maxAgeInDays(123)
.build())
.maxCountRule(MaxCountRuleProperty.builder()
.deleteSourceFromS3(false)
.enabled(false)
.maxCount(123)
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder
|
static class |
CfnApplication.ApplicationResourceLifecycleConfigProperty.Jsii$Proxy
An implementation for
CfnApplication.ApplicationResourceLifecycleConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder |
builder() |
default String |
getServiceRole()
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
|
default Object |
getVersionLifecycleConfig()
Defines lifecycle settings for application versions.
|
@Stability(value=Stable) @Nullable default String getServiceRole()
The ServiceRole property is required the first time that you provide a ResourceLifecycleConfig for the application. After you provide it once, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again. You can, however, specify it in subsequent updates to change the Service Role to another value.
@Stability(value=Stable) @Nullable default Object getVersionLifecycleConfig()
@Stability(value=Stable) static CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.