MinimumHealthyHostsPerZone Class
Minimum number of healthy hosts per availability zone for a server deployment.
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@staticmethod def count(value: int | float) -> MinimumHealthyHostsPerZonepublic static MinimumHealthyHostsPerZone count(Number value)public static MinimumHealthyHostsPerZone Count(double value)func Count(Value *float64) MinimumHealthyHostsPerZonestatic#The minimum healthy hosts threshold expressed as an absolute number.
percentage(value: number): MinimumHealthyHostsPerZone // chainable@staticmethod def percentage(value: int | float) -> MinimumHealthyHostsPerZonepublic static MinimumHealthyHostsPerZone percentage(Number value)public static MinimumHealthyHostsPerZone Percentage(double value)func Percentage(Value *float64) MinimumHealthyHostsPerZonestatic#The minimum healthy hosts threshold expressed as a percentage of the fleet.