Class ZonalConfig.Builder

java.lang.Object
software.amazon.awscdk.services.codedeploy.ZonalConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ZonalConfig>
Enclosing interface:
ZonalConfig

@Stability(Stable) public static final class ZonalConfig.Builder extends Object implements software.amazon.jsii.Builder<ZonalConfig>
A builder for ZonalConfig
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • firstZoneMonitorDuration

      @Stability(Stable) public ZonalConfig.Builder firstZoneMonitorDuration(Duration firstZoneMonitorDuration)
      Parameters:
      firstZoneMonitorDuration - The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone. Accepted Values:

      • 0
      • Greater than or equal to 1
      Returns:
      this
    • minimumHealthyHostsPerZone

      @Stability(Stable) public ZonalConfig.Builder minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone minimumHealthyHostsPerZone)
      Parameters:
      minimumHealthyHostsPerZone - The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with the minimumHealthyHosts option.
      Returns:
      this
    • monitorDuration

      @Stability(Stable) public ZonalConfig.Builder monitorDuration(Duration monitorDuration)
      Parameters:
      monitorDuration - The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone. Accepted Values:

      • 0
      • Greater than or equal to 1
      Returns:
      this
    • build

      @Stability(Stable) public ZonalConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ZonalConfig>
      Returns:
      a new instance of ZonalConfig
      Throws:
      NullPointerException - if any required attribute was not provided