Interface CfnApplication.ApplicationResourceLifecycleConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.ApplicationResourceLifecycleConfigProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
ApplicationResourceLifecycleConfig
property type to specify lifecycle settings for resources that belong to an AWS Elastic Beanstalk application when defining an AWS::ElasticBeanstalk::Application resource in an AWS CloudFormation template.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnApplication.ApplicationResourceLifecycleConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServiceRole
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.The
ServiceRole
property is required the first time that you provide aResourceLifecycleConfig
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.- See Also:
-
getVersionLifecycleConfig
Defines lifecycle settings for application versions.- See Also:
-
builder
@Stability(Stable) static CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder builder()
-