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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.firstZoneMonitorDuration
(Duration firstZoneMonitorDuration) Sets the value ofZonalConfig.getFirstZoneMonitorDuration()
minimumHealthyHostsPerZone
(MinimumHealthyHostsPerZone minimumHealthyHostsPerZone) Sets the value ofZonalConfig.getMinimumHealthyHostsPerZone()
monitorDuration
(Duration monitorDuration) Sets the value ofZonalConfig.getMonitorDuration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firstZoneMonitorDuration
@Stability(Stable) public ZonalConfig.Builder firstZoneMonitorDuration(Duration firstZoneMonitorDuration) Sets the value ofZonalConfig.getFirstZoneMonitorDuration()
- 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) Sets the value ofZonalConfig.getMinimumHealthyHostsPerZone()
- Parameters:
minimumHealthyHostsPerZone
- The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with theminimumHealthyHosts
option.- Returns:
this
-
monitorDuration
Sets the value ofZonalConfig.getMonitorDuration()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ZonalConfig>
- Returns:
- a new instance of
ZonalConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-