Interface CfnApplication.ApplicationResourceLifecycleConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApplication.ApplicationResourceLifecycleConfigProperty.Jsii$Proxy
Enclosing class:
CfnApplication

@Stability(Stable) public static interface CfnApplication.ApplicationResourceLifecycleConfigProperty extends software.amazon.jsii.JsiiSerializable
Use the 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: