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.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final LongThe 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 inthashCode()The number or percentage of instances that must remain available per Availability Zone during a deployment.final LongThe 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 StringtoString()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 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
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ZonalConfig.Builder,ZonalConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-