# MinimumHealthyHostsPerZone

Minimum number of healthy hosts per availability zone for a server deployment.

- Source: [`aws-codedeploy/lib/host-health-config.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codedeploy/lib/host-health-config.ts#L42)
- Type last changed: v2.149.0 · 12 Jul 2024

## Example

```ts
const deploymentConfig = new codedeploy.ServerDeploymentConfig(this, 'DeploymentConfiguration', {
  minimumHealthyHosts: codedeploy.MinimumHealthyHosts.count(2),
  zonalConfig: {
    monitorDuration: Duration.minutes(30),
    firstZoneMonitorDuration: Duration.minutes(60),
    minimumHealthyHostsPerZone: codedeploy.MinimumHealthyHostsPerZone.count(1),
  },
});
```

## Methods

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

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