Class MinimumHealthyHosts
Minimum number of healthy hosts for a server deployment.
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MinimumHealthyHosts : DeputyBase
Syntax (vb)
Public Class MinimumHealthyHosts Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
DeploymentConfigName = "MyDeploymentConfiguration", // optional property
// one of these is required, but both cannot be specified at the same time
MinimumHealthyHosts = MinimumHealthyHosts.Count(2)
});
Synopsis
Methods
| Count(double) | The minimum healthy hosts threshold expressed as an absolute number. |
| Percentage(double) | The minimum healthy hosts threshold expressed as a percentage of the fleet. |
Methods
Count(double)
The minimum healthy hosts threshold expressed as an absolute number.
public static MinimumHealthyHosts Count(double value)
Parameters
- value double
Returns
Remarks
ExampleMetadata: infused
Percentage(double)
The minimum healthy hosts threshold expressed as a percentage of the fleet.
public static MinimumHealthyHosts Percentage(double value)
Parameters
- value double
Returns
Remarks
ExampleMetadata: infused