interface ApplicationResourceLifecycleConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticBeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticbeanstalk#CfnApplication_ApplicationResourceLifecycleConfigProperty |
Java | software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty |
Python | aws_cdk.aws_elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty |
TypeScript | aws-cdk-lib » aws_elasticbeanstalk » CfnApplication » ApplicationResourceLifecycleConfigProperty |
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 { aws_elasticbeanstalk as elasticbeanstalk } from 'aws-cdk-lib';
const applicationResourceLifecycleConfigProperty: elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty = {
serviceRole: 'serviceRole',
versionLifecycleConfig: {
maxAgeRule: {
deleteSourceFromS3: false,
enabled: false,
maxAgeInDays: 123,
},
maxCountRule: {
deleteSourceFromS3: false,
enabled: false,
maxCount: 123,
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| service | string | The ARN of an IAM service role that Elastic Beanstalk has permission to assume. |
| version | IResolvable | Application | Defines lifecycle settings for application versions. |
serviceRole?
Type:
string
(optional)
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 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.
versionLifecycleConfig?
Type:
IResolvable | Application
(optional)
Defines lifecycle settings for application versions.

.NET
Go
Java
Python
TypeScript