CfnApplicationProps Struct
Properties for defining a CfnApplication.
| Source |
|---|
Example
ts
// 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 cfnApplicationProps: elasticbeanstalk.CfnApplicationProps = {
applicationName: 'applicationName',
description: 'description',
resourceLifecycleConfig: {
serviceRole: 'serviceRole',
versionLifecycleConfig: {
maxAgeRule: {
deleteSourceFromS3: false,
enabled: false,
maxAgeInDays: 123,
},
maxCountRule: {
deleteSourceFromS3: false,
enabled: false,
maxCount: 123,
},
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticbeanstalk as elasticbeanstalk
cfn_application_props = elasticbeanstalk.CfnApplicationProps(
application_name="applicationName",
description="description",
resource_lifecycle_config=elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty(
service_role="serviceRole",
version_lifecycle_config=elasticbeanstalk.CfnApplication.ApplicationVersionLifecycleConfigProperty(
max_age_rule=elasticbeanstalk.CfnApplication.MaxAgeRuleProperty(
delete_source_from_s3=False,
enabled=False,
max_age_in_days=123
),
max_count_rule=elasticbeanstalk.CfnApplication.MaxCountRuleProperty(
delete_source_from_s3=False,
enabled=False,
max_count=123
)
)
)
)
java
// 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.*;
CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
.applicationName("applicationName")
.description("description")
.resourceLifecycleConfig(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())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnApplicationProps = new CfnApplicationProps {
ApplicationName = "applicationName",
Description = "description",
ResourceLifecycleConfig = 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
}
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnApplicationProps := &CfnApplicationProps{
ApplicationName: jsii.String("applicationName"),
Description: jsii.String("description"),
ResourceLifecycleConfig: &ApplicationResourceLifecycleConfigProperty{
ServiceRole: jsii.String("serviceRole"),
VersionLifecycleConfig: &ApplicationVersionLifecycleConfigProperty{
MaxAgeRule: &MaxAgeRuleProperty{
DeleteSourceFromS3: jsii.Boolean(false),
Enabled: jsii.Boolean(false),
MaxAgeInDays: jsii.Number(123),
},
MaxCountRule: &MaxCountRuleProperty{
DeleteSourceFromS3: jsii.Boolean(false),
Enabled: jsii.Boolean(false),
MaxCount: jsii.Number(123),
},
},
},
}
Properties
applicationNameoptionalstringapplication_nameoptionalstrapplicationNameoptionalStringApplicationNameoptionalstringApplicationNameoptional*string #A name for the Elastic Beanstalk application.
notes
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Your description of the application.
resourceLifecycleConfigoptionalIResolvable | CfnApplication.resource_lifecycle_configoptionaltyping.Union[IResolvable, ApplicationResourceLifecycleConfigProperty]resourceLifecycleConfigoptionalIResolvableResourceLifecycleConfigoptionalIResolvableResourceLifecycleConfigoptionalinterface{} #Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.