Interface ZonalConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ZonalConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:28.169Z") @Stability(Stable) public interface ZonalConfig extends software.amazon.jsii.JsiiSerializable
Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.

Example:

 ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, "DeploymentConfiguration")
         .minimumHealthyHosts(MinimumHealthyHosts.count(2))
         .zonalConfig(ZonalConfig.builder()
                 .monitorDuration(Duration.minutes(30))
                 .firstZoneMonitorDuration(Duration.minutes(60))
                 .minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone.count(1))
                 .build())
         .build();
 
  • Method Details

    • getFirstZoneMonitorDuration

      @Stability(Stable) @Nullable default Duration getFirstZoneMonitorDuration()
      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

      Default: - the same value as `monitorDuration`

    • getMinimumHealthyHostsPerZone

      @Stability(Stable) @Nullable default MinimumHealthyHostsPerZone getMinimumHealthyHostsPerZone()
      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.

      Default: - 0 percent

      See Also:
    • getMonitorDuration

      @Stability(Stable) @Nullable default Duration getMonitorDuration()
      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

      Default: - CodeDeploy starts deploying to the next Availability Zone immediately

    • builder

      @Stability(Stable) static ZonalConfig.Builder builder()
      Returns:
      a ZonalConfig.Builder of ZonalConfig