Class ZonalConfig
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ZonalConfig.Builder,
ZonalConfig>
Configure the ZonalConfig
object 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 the ZonalConfig
object, 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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonalConfig.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Long
The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
The number or percentage of instances that must remain available per Availability Zone during a deployment.final Long
The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone.static Class
<? extends ZonalConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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 themonitorDurationInSeconds
value 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 themonitorDurationInSeconds
value for the first Availability Zone.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
-
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
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. 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
minimumHealthyHostsPerZone
option, then CodeDeploy uses a default value of0
percent.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
MinimumHealthyHosts
option. 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
minimumHealthyHostsPerZone
option, then CodeDeploy uses a default value of0
percent.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ZonalConfig.Builder,
ZonalConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-