class MinimumHealthyHosts
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.MinimumHealthyHosts |
Java | software.amazon.awscdk.services.codedeploy.MinimumHealthyHosts |
Python | aws_cdk.aws_codedeploy.MinimumHealthyHosts |
TypeScript (source) | @aws-cdk/aws-codedeploy » MinimumHealthyHosts |
Minimum number of healthy hosts for a server deployment.
Example
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
Name | Description |
---|---|
static count(value) | The minimum healhty hosts threshold expressed as an absolute number. |
static percentage(value) | The minmum healhty hosts threshold expressed as a percentage of the fleet. |
static count(value)
public static count(value: number): MinimumHealthyHosts
Parameters
- value
number
Returns
The minimum healhty hosts threshold expressed as an absolute number.
static percentage(value)
public static percentage(value: number): MinimumHealthyHosts
Parameters
- value
number
Returns
The minmum healhty hosts threshold expressed as a percentage of the fleet.