# ServerDeploymentConfigProps

Construction properties of `ServerDeploymentConfig`.

Extends: [BaseDeploymentConfigOptions](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.BaseDeploymentConfigOptions.html)
Used as props by: [ServerDeploymentConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.ServerDeploymentConfig.html)

- Source: [`aws-codedeploy/lib/server/deployment-config.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-codedeploy/lib/server/deployment-config.ts#L22)
- Type last changed: v2.149.0 · 12 Jul 2024

## Example

TypeScript:

```ts
const deploymentConfig = new codedeploy.ServerDeploymentConfig(this, 'DeploymentConfiguration', {
  deploymentConfigName: 'MyDeploymentConfiguration', // optional property
  // one of these is required, but both cannot be specified at the same time
  minimumHealthyHosts: codedeploy.MinimumHealthyHosts.count(2),
  // minimumHealthyHosts: codedeploy.MinimumHealthyHosts.percentage(75),
});
```

Python:

```python
deployment_config = codedeploy.ServerDeploymentConfig(self, "DeploymentConfiguration",
    deployment_config_name="MyDeploymentConfiguration",  # optional property
    # one of these is required, but both cannot be specified at the same time
    minimum_healthy_hosts=codedeploy.MinimumHealthyHosts.count(2)
)
```

Java:

```java
ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, "DeploymentConfiguration")
        .deploymentConfigName("MyDeploymentConfiguration") // optional property
        // one of these is required, but both cannot be specified at the same time
        .minimumHealthyHosts(MinimumHealthyHosts.count(2))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
    DeploymentConfigName = "MyDeploymentConfiguration",  // optional property
    // one of these is required, but both cannot be specified at the same time
    MinimumHealthyHosts = MinimumHealthyHosts.Count(2)
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
deploymentConfig := codedeploy.NewServerDeploymentConfig(this, jsii.String("DeploymentConfiguration"), &ServerDeploymentConfigProps{
	DeploymentConfigName: jsii.String("MyDeploymentConfiguration"),
	 // optional property
	// one of these is required, but both cannot be specified at the same time
	MinimumHealthyHosts: codedeploy.MinimumHealthyHosts_Count(jsii.Number(2)),
})
```

## Properties

- `deploymentConfigName`: string — The physical, human-readable name of the Deployment Configuration.

  **Default:** automatically generated name

- `minimumHealthyHosts`: [MinimumHealthyHosts](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.MinimumHealthyHosts.html) (required) — Minimum number of healthy hosts.

- `zonalConfig`: [ZonalConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.ZonalConfig.html) — Configure CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.

  **Default:** deploy your application to a random selection of hosts across a Region
