Struct aws_sdk_codedeploy::types::DeploymentReadyOption
source · #[non_exhaustive]pub struct DeploymentReadyOption {
pub action_on_timeout: Option<DeploymentReadyAction>,
pub wait_time_in_minutes: i32,
}
Expand description
Information about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action_on_timeout: Option<DeploymentReadyAction>
Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
-
CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
-
STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using
ContinueDeployment
. If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.
wait_time_in_minutes: i32
The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT
option for actionOnTimeout
.
Implementations§
source§impl DeploymentReadyOption
impl DeploymentReadyOption
sourcepub fn action_on_timeout(&self) -> Option<&DeploymentReadyAction>
pub fn action_on_timeout(&self) -> Option<&DeploymentReadyAction>
Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
-
CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
-
STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using
ContinueDeployment
. If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.
sourcepub fn wait_time_in_minutes(&self) -> i32
pub fn wait_time_in_minutes(&self) -> i32
The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT
option for actionOnTimeout
.
source§impl DeploymentReadyOption
impl DeploymentReadyOption
sourcepub fn builder() -> DeploymentReadyOptionBuilder
pub fn builder() -> DeploymentReadyOptionBuilder
Creates a new builder-style object to manufacture DeploymentReadyOption
.
Trait Implementations§
source§impl Clone for DeploymentReadyOption
impl Clone for DeploymentReadyOption
source§fn clone(&self) -> DeploymentReadyOption
fn clone(&self) -> DeploymentReadyOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentReadyOption
impl Debug for DeploymentReadyOption
source§impl PartialEq for DeploymentReadyOption
impl PartialEq for DeploymentReadyOption
source§fn eq(&self, other: &DeploymentReadyOption) -> bool
fn eq(&self, other: &DeploymentReadyOption) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeploymentReadyOption
Auto Trait Implementations§
impl Freeze for DeploymentReadyOption
impl RefUnwindSafe for DeploymentReadyOption
impl Send for DeploymentReadyOption
impl Sync for DeploymentReadyOption
impl Unpin for DeploymentReadyOption
impl UnwindSafe for DeploymentReadyOption
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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