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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forZonalConfig
static final class
An implementation forZonalConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZonalConfig.Builder
builder()
default Duration
The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone.default MinimumHealthyHostsPerZone
The number or percentage of instances that must remain available per Availability Zone during a deployment.default Duration
The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
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
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
- Returns:
- a
ZonalConfig.Builder
ofZonalConfig
-