# CfnApplicationProps

Properties for defining a `CfnApplication`.

Used as props by: [CfnApplication](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticbeanstalk.CfnApplication.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
            }
        }
    }
};
```

Golang:

```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

- `applicationName`: string — A name for the Elastic Beanstalk application.

  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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .

  > 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.

- `description`: string — Your description of the application.

- `resourceLifecycleConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.ApplicationResourceLifecycleConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty.html) — Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.
