Class 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.
Inheritance
Namespace: Amazon.CDK.AWS.ElasticBeanstalk
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApplicationResourceLifecycleConfigProperty : Object, CfnApplication.IApplicationResourceLifecycleConfigProperty
Syntax (vb)
Public Class ApplicationResourceLifecycleConfigProperty
Inherits Object
Implements CfnApplication.IApplicationResourceLifecycleConfigProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticBeanstalk;
var applicationResourceLifecycleConfigProperty = new ApplicationResourceLifecycleConfigProperty {
ServiceRole = "serviceRole",
VersionLifecycleConfig = new ApplicationVersionLifecycleConfigProperty {
MaxAgeRule = new MaxAgeRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxAgeInDays = 123
},
MaxCountRule = new MaxCountRuleProperty {
DeleteSourceFromS3 = false,
Enabled = false,
MaxCount = 123
}
}
};
Synopsis
Constructors
ApplicationResourceLifecycleConfigProperty() |
Properties
ServiceRole | The ARN of an IAM service role that Elastic Beanstalk has permission to assume. |
VersionLifecycleConfig | Defines lifecycle settings for application versions. |
Constructors
ApplicationResourceLifecycleConfigProperty()
public ApplicationResourceLifecycleConfigProperty()
Properties
ServiceRole
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
public string ServiceRole { get; set; }
Property Value
System.String
Remarks
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
Defines lifecycle settings for application versions.
public object VersionLifecycleConfig { get; set; }
Property Value
System.Object