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