MinimumHealthyHosts

class aws_cdk.aws_codedeploy.MinimumHealthyHosts(*args: Any, **kwargs)

Bases: object

Minimum number of healthy hosts for a server deployment.

ExampleMetadata:

infused

Example:

deployment_config = codedeploy.ServerDeploymentConfig(self, "DeploymentConfiguration",
    deployment_config_name="MyDeploymentConfiguration",  # optional property
    # one of these is required, but both cannot be specified at the same time
    minimum_healthy_hosts=codedeploy.MinimumHealthyHosts.count(2)
)

Static Methods

classmethod count(value)

The minimum healhty hosts threshold expressed as an absolute number.

Parameters:

value (Union[int, float]) –

Return type:

MinimumHealthyHosts

classmethod percentage(value)

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

Parameters:

value (Union[int, float]) –

Return type:

MinimumHealthyHosts