Class MinimumHealthyHosts

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codedeploy.MinimumHealthyHosts
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.387Z") @Stability(Stable) public class MinimumHealthyHosts extends software.amazon.jsii.JsiiObject
Minimum number of healthy hosts for a server deployment.

Example:

 ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, "DeploymentConfiguration")
         .deploymentConfigName("MyDeploymentConfiguration") // optional property
         // one of these is required, but both cannot be specified at the same time
         .minimumHealthyHosts(MinimumHealthyHosts.count(2))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MinimumHealthyHosts(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    MinimumHealthyHosts(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    count(Number value)
    The minimum healhty hosts threshold expressed as an absolute number.
    The minmum healhty hosts threshold expressed as a percentage of the fleet.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • MinimumHealthyHosts

      protected MinimumHealthyHosts(software.amazon.jsii.JsiiObjectRef objRef)
    • MinimumHealthyHosts

      protected MinimumHealthyHosts(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • count

      @Stability(Stable) @NotNull public static MinimumHealthyHosts count(@NotNull Number value)
      The minimum healhty hosts threshold expressed as an absolute number.

      Parameters:
      value - This parameter is required.
    • percentage

      @Stability(Stable) @NotNull public static MinimumHealthyHosts percentage(@NotNull Number value)
      The minmum healhty hosts threshold expressed as a percentage of the fleet.

      Parameters:
      value - This parameter is required.