# MinimumHealthyHosts

Minimum number of healthy hosts for a server deployment.

- Source: [`aws-codedeploy/lib/host-health-config.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codedeploy/lib/host-health-config.ts#L8)

## Example

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

## Methods

- `count(value: number): MinimumHealthyHosts // chainable` (static) — The minimum healthy hosts threshold expressed as an absolute number.

- `percentage(value: number): MinimumHealthyHosts // chainable` (static) — The minimum healthy hosts threshold expressed as a percentage of the fleet.
