aws-cdk-lib.aws_codedeploy.MinimumHealthyHosts

class MinimumHealthyHosts

LanguageType name
.NETAmazon.CDK.AWS.CodeDeploy.MinimumHealthyHosts
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#MinimumHealthyHosts
Javasoftware.amazon.awscdk.services.codedeploy.MinimumHealthyHosts
Pythonaws_cdk.aws_codedeploy.MinimumHealthyHosts
TypeScript (source)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

NameDescription
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

  • MinimumHealthyHosts

The minimum healhty hosts threshold expressed as an absolute number.


static percentage(value)

public static percentage(value: number): MinimumHealthyHosts

Parameters

  • value number

Returns

  • MinimumHealthyHosts

The minmum healhty hosts threshold expressed as a percentage of the fleet.