MinimumHealthyHostsPerZone

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

Bases: object

Minimum number of healthy hosts per availability zone for a server deployment.

ExampleMetadata:

infused

Example:

deployment_config = codedeploy.ServerDeploymentConfig(self, "DeploymentConfiguration",
    minimum_healthy_hosts=codedeploy.MinimumHealthyHosts.count(2),
    zonal_config=codedeploy.ZonalConfig(
        monitor_duration=Duration.minutes(30),
        first_zone_monitor_duration=Duration.minutes(60),
        minimum_healthy_hosts_per_zone=codedeploy.MinimumHealthyHostsPerZone.count(1)
    )
)

Static Methods

classmethod count(value)

The minimum healthy hosts threshold expressed as an absolute number.

Parameters:

value (Union[int, float]) –

Return type:

MinimumHealthyHostsPerZone

classmethod percentage(value)

The minimum healthy hosts threshold expressed as a percentage of the fleet.

Parameters:

value (Union[int, float]) –

Return type:

MinimumHealthyHostsPerZone