Interface ZonalConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ZonalConfig.Builder,,ZonalConfig> SdkBuilder<ZonalConfig.Builder,,ZonalConfig> SdkPojo
- Enclosing class:
ZonalConfig
-
Method Summary
Modifier and TypeMethodDescriptionfirstZoneMonitorDurationInSeconds(Long firstZoneMonitorDurationInSeconds) The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone.default ZonalConfig.BuilderminimumHealthyHostsPerZone(Consumer<MinimumHealthyHostsPerZone.Builder> minimumHealthyHostsPerZone) The number or percentage of instances that must remain available per Availability Zone during a deployment.minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone minimumHealthyHostsPerZone) The number or percentage of instances that must remain available per Availability Zone during a deployment.monitorDurationInSeconds(Long monitorDurationInSeconds) The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
firstZoneMonitorDurationInSeconds
The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the second Availability Zone. You might set this option if you want to allow extra bake time for the first Availability Zone. If you don't specify a value for
firstZoneMonitorDurationInSeconds, then CodeDeploy uses themonitorDurationInSecondsvalue for the first Availability Zone.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Parameters:
firstZoneMonitorDurationInSeconds- The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the second Availability Zone. You might set this option if you want to allow extra bake time for the first Availability Zone. If you don't specify a value forfirstZoneMonitorDurationInSeconds, then CodeDeploy uses themonitorDurationInSecondsvalue for the first Availability Zone.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitorDurationInSeconds
The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the next Availability Zone. Consider adding a monitor duration to give the deployment some time to prove itself (or 'bake') in one Availability Zone before it is released in the next zone. If you don't specify a
monitorDurationInSeconds, CodeDeploy starts deploying to the next Availability Zone immediately.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Parameters:
monitorDurationInSeconds- The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the next Availability Zone. Consider adding a monitor duration to give the deployment some time to prove itself (or 'bake') in one Availability Zone before it is released in the next zone. If you don't specify amonitorDurationInSeconds, CodeDeploy starts deploying to the next Availability Zone immediately.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumHealthyHostsPerZone
ZonalConfig.Builder minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone minimumHealthyHostsPerZone) The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with the
MinimumHealthyHostsoption. For more information, see About the minimum number of healthy hosts per Availability Zone in the CodeDeploy User Guide.If you don't specify the
minimumHealthyHostsPerZoneoption, then CodeDeploy uses a default value of0percent.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Parameters:
minimumHealthyHostsPerZone- The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with theMinimumHealthyHostsoption. For more information, see About the minimum number of healthy hosts per Availability Zone in the CodeDeploy User Guide.If you don't specify the
minimumHealthyHostsPerZoneoption, then CodeDeploy uses a default value of0percent.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumHealthyHostsPerZone
default ZonalConfig.Builder minimumHealthyHostsPerZone(Consumer<MinimumHealthyHostsPerZone.Builder> minimumHealthyHostsPerZone) The number or percentage of instances that must remain available per Availability Zone during a deployment. This option works in conjunction with the
MinimumHealthyHostsoption. For more information, see About the minimum number of healthy hosts per Availability Zone in the CodeDeploy User Guide.If you don't specify the
minimumHealthyHostsPerZoneoption, then CodeDeploy uses a default value of0percent.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
This is a convenience method that creates an instance of theMinimumHealthyHostsPerZone.Builderavoiding the need to create one manually viaMinimumHealthyHostsPerZone.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tominimumHealthyHostsPerZone(MinimumHealthyHostsPerZone).- Parameters:
minimumHealthyHostsPerZone- a consumer that will call methods onMinimumHealthyHostsPerZone.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-