Struct aws_sdk_codedeploy::types::TimeBasedLinear
source · #[non_exhaustive]pub struct TimeBasedLinear {
pub linear_percentage: i32,
pub linear_interval: i32,
}
Expand description
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
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.linear_percentage: i32
The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear
deployment.
linear_interval: i32
The number of minutes between each incremental traffic shift of a TimeBasedLinear
deployment.
Implementations§
source§impl TimeBasedLinear
impl TimeBasedLinear
sourcepub fn linear_percentage(&self) -> i32
pub fn linear_percentage(&self) -> i32
The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear
deployment.
sourcepub fn linear_interval(&self) -> i32
pub fn linear_interval(&self) -> i32
The number of minutes between each incremental traffic shift of a TimeBasedLinear
deployment.
source§impl TimeBasedLinear
impl TimeBasedLinear
sourcepub fn builder() -> TimeBasedLinearBuilder
pub fn builder() -> TimeBasedLinearBuilder
Creates a new builder-style object to manufacture TimeBasedLinear
.
Trait Implementations§
source§impl Clone for TimeBasedLinear
impl Clone for TimeBasedLinear
source§fn clone(&self) -> TimeBasedLinear
fn clone(&self) -> TimeBasedLinear
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimeBasedLinear
impl Debug for TimeBasedLinear
source§impl PartialEq for TimeBasedLinear
impl PartialEq for TimeBasedLinear
source§fn eq(&self, other: &TimeBasedLinear) -> bool
fn eq(&self, other: &TimeBasedLinear) -> bool
self
and other
values to be equal, and is used
by ==
.