Class MinimumHealthyHosts
Minimum number of healthy hosts for a server deployment.
Inheritance
System.Object
MinimumHealthyHosts
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
Constructors
MinimumHealthyHosts(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
MinimumHealthyHosts(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Count(Double) | The minimum healhty hosts threshold expressed as an absolute number. |
Percentage(Double) | The minmum healhty hosts threshold expressed as a percentage of the fleet. |
Constructors
MinimumHealthyHosts(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected MinimumHealthyHosts(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
MinimumHealthyHosts(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected MinimumHealthyHosts(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Count(Double)
The minimum healhty hosts threshold expressed as an absolute number.
public static MinimumHealthyHosts Count(double value)
Parameters
- value System.Double
Returns
Percentage(Double)
The minmum healhty hosts threshold expressed as a percentage of the fleet.
public static MinimumHealthyHosts Percentage(double value)
Parameters
- value System.Double
Returns