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 ==
.impl StructuralPartialEq for TimeBasedLinear
Auto Trait Implementations§
impl Freeze for TimeBasedLinear
impl RefUnwindSafe for TimeBasedLinear
impl Send for TimeBasedLinear
impl Sync for TimeBasedLinear
impl Unpin for TimeBasedLinear
impl UnwindSafe for TimeBasedLinear
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