class MinimumHealthyHosts
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeDeploy.MinimumHealthyHosts |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#MinimumHealthyHosts |
![]() | software.amazon.awscdk.services.codedeploy.MinimumHealthyHosts |
![]() | aws_cdk.aws_codedeploy.MinimumHealthyHosts |
![]() | aws-cdk-lib » 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 healthy hosts threshold expressed as an absolute number. |
static percentage(value) | The minimum healthy hosts threshold expressed as a percentage of the fleet. |
static count(value)
public static count(value: number): MinimumHealthyHosts
Parameters
- value
number
Returns
The minimum healthy hosts threshold expressed as an absolute number.
static percentage(value)
public static percentage(value: number): MinimumHealthyHosts
Parameters
- value
number
Returns
The minimum healthy hosts threshold expressed as a percentage of the fleet.