Struct aws_sdk_codedeploy::types::TimeBasedCanary
source · #[non_exhaustive]pub struct TimeBasedCanary {
pub canary_percentage: i32,
pub canary_interval: i32,
}
Expand description
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments. 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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.canary_percentage: i32
The percentage of traffic to shift in the first increment of a TimeBasedCanary
deployment.
canary_interval: i32
The number of minutes between the first and second traffic shifts of a TimeBasedCanary
deployment.
Implementations§
source§impl TimeBasedCanary
impl TimeBasedCanary
sourcepub fn canary_percentage(&self) -> i32
pub fn canary_percentage(&self) -> i32
The percentage of traffic to shift in the first increment of a TimeBasedCanary
deployment.
sourcepub fn canary_interval(&self) -> i32
pub fn canary_interval(&self) -> i32
The number of minutes between the first and second traffic shifts of a TimeBasedCanary
deployment.
source§impl TimeBasedCanary
impl TimeBasedCanary
sourcepub fn builder() -> TimeBasedCanaryBuilder
pub fn builder() -> TimeBasedCanaryBuilder
Creates a new builder-style object to manufacture TimeBasedCanary
.
Trait Implementations§
source§impl Clone for TimeBasedCanary
impl Clone for TimeBasedCanary
source§fn clone(&self) -> TimeBasedCanary
fn clone(&self) -> TimeBasedCanary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimeBasedCanary
impl Debug for TimeBasedCanary
source§impl PartialEq for TimeBasedCanary
impl PartialEq for TimeBasedCanary
source§fn eq(&self, other: &TimeBasedCanary) -> bool
fn eq(&self, other: &TimeBasedCanary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimeBasedCanary
Auto Trait Implementations§
impl Freeze for TimeBasedCanary
impl RefUnwindSafe for TimeBasedCanary
impl Send for TimeBasedCanary
impl Sync for TimeBasedCanary
impl Unpin for TimeBasedCanary
impl UnwindSafe for TimeBasedCanary
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.