Class ZonalConfig
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.ZonalConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ZonalConfig.Builder,ZonalConfig>
@Generated("software.amazon.awssdk:codegen") public final class ZonalConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ZonalConfig.Builder,ZonalConfig>
Configure the
ZonalConfigobject if you want CodeDeploy to deploy your application to one Availability Zone at a time, within an Amazon Web Services Region. By deploying to one Availability Zone at a time, you can expose your deployment to a progressively larger audience as confidence in the deployment's performance and viability grows. If you don't configure theZonalConfigobject, CodeDeploy deploys your application to a random selection of hosts across a Region.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceZonalConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZonalConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongfirstZoneMonitorDurationInSeconds()The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MinimumHealthyHostsPerZoneminimumHealthyHostsPerZone()The number or percentage of instances that must remain available per Availability Zone during a deployment.LongmonitorDurationInSeconds()The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone.List<SdkField<?>>sdkFields()static Class<? extends ZonalConfig.Builder>serializableBuilderClass()ZonalConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
firstZoneMonitorDurationInSeconds
public final Long 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.
- Returns:
- 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.
-
monitorDurationInSeconds
public final Long 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.
- Returns:
- 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.
-
minimumHealthyHostsPerZone
public final 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.
- Returns:
- 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.
-
toBuilder
public ZonalConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ZonalConfig.Builder,ZonalConfig>
-
builder
public static ZonalConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ZonalConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-