Struct aws_sdk_codedeploy::types::builders::ZonalConfigBuilder
source · #[non_exhaustive]pub struct ZonalConfigBuilder { /* private fields */ }
Expand description
A builder for ZonalConfig
.
Implementations§
source§impl ZonalConfigBuilder
impl ZonalConfigBuilder
sourcepub fn first_zone_monitor_duration_in_seconds(self, input: i64) -> Self
pub fn first_zone_monitor_duration_in_seconds(self, input: i64) -> Self
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 the monitorDurationInSeconds
value for the first Availability Zone.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn set_first_zone_monitor_duration_in_seconds(
self,
input: Option<i64>
) -> Self
pub fn set_first_zone_monitor_duration_in_seconds( self, input: Option<i64> ) -> Self
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 the monitorDurationInSeconds
value for the first Availability Zone.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn get_first_zone_monitor_duration_in_seconds(&self) -> &Option<i64>
pub fn get_first_zone_monitor_duration_in_seconds(&self) -> &Option<i64>
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 the monitorDurationInSeconds
value for the first Availability Zone.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn monitor_duration_in_seconds(self, input: i64) -> Self
pub fn monitor_duration_in_seconds(self, input: i64) -> Self
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.
sourcepub fn set_monitor_duration_in_seconds(self, input: Option<i64>) -> Self
pub fn set_monitor_duration_in_seconds(self, input: Option<i64>) -> Self
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.
sourcepub fn get_monitor_duration_in_seconds(&self) -> &Option<i64>
pub fn get_monitor_duration_in_seconds(&self) -> &Option<i64>
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.
sourcepub fn minimum_healthy_hosts_per_zone(
self,
input: MinimumHealthyHostsPerZone
) -> Self
pub fn minimum_healthy_hosts_per_zone( self, input: MinimumHealthyHostsPerZone ) -> Self
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 of 0
percent.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn set_minimum_healthy_hosts_per_zone(
self,
input: Option<MinimumHealthyHostsPerZone>
) -> Self
pub fn set_minimum_healthy_hosts_per_zone( self, input: Option<MinimumHealthyHostsPerZone> ) -> Self
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 of 0
percent.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn get_minimum_healthy_hosts_per_zone(
&self
) -> &Option<MinimumHealthyHostsPerZone>
pub fn get_minimum_healthy_hosts_per_zone( &self ) -> &Option<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 of 0
percent.
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
sourcepub fn build(self) -> ZonalConfig
pub fn build(self) -> ZonalConfig
Consumes the builder and constructs a ZonalConfig
.
Trait Implementations§
source§impl Clone for ZonalConfigBuilder
impl Clone for ZonalConfigBuilder
source§fn clone(&self) -> ZonalConfigBuilder
fn clone(&self) -> ZonalConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZonalConfigBuilder
impl Debug for ZonalConfigBuilder
source§impl Default for ZonalConfigBuilder
impl Default for ZonalConfigBuilder
source§fn default() -> ZonalConfigBuilder
fn default() -> ZonalConfigBuilder
source§impl PartialEq for ZonalConfigBuilder
impl PartialEq for ZonalConfigBuilder
source§fn eq(&self, other: &ZonalConfigBuilder) -> bool
fn eq(&self, other: &ZonalConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ZonalConfigBuilder
Auto Trait Implementations§
impl Freeze for ZonalConfigBuilder
impl RefUnwindSafe for ZonalConfigBuilder
impl Send for ZonalConfigBuilder
impl Sync for ZonalConfigBuilder
impl Unpin for ZonalConfigBuilder
impl UnwindSafe for ZonalConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more