#[non_exhaustive]pub struct TrafficRoutingConfigBuilder { /* private fields */ }
Expand description
A builder for TrafficRoutingConfig
.
Implementations§
source§impl TrafficRoutingConfigBuilder
impl TrafficRoutingConfigBuilder
sourcepub fn type(self, input: TrafficRoutingType) -> Self
pub fn type(self, input: TrafficRoutingType) -> Self
The type of traffic shifting (TimeBasedCanary
or TimeBasedLinear
) used by a deployment configuration.
sourcepub fn set_type(self, input: Option<TrafficRoutingType>) -> Self
pub fn set_type(self, input: Option<TrafficRoutingType>) -> Self
The type of traffic shifting (TimeBasedCanary
or TimeBasedLinear
) used by a deployment configuration.
sourcepub fn get_type(&self) -> &Option<TrafficRoutingType>
pub fn get_type(&self) -> &Option<TrafficRoutingType>
The type of traffic shifting (TimeBasedCanary
or TimeBasedLinear
) used by a deployment configuration.
sourcepub fn time_based_canary(self, input: TimeBasedCanary) -> Self
pub fn time_based_canary(self, input: TimeBasedCanary) -> Self
A configuration that shifts traffic from one version of a Lambda function or 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.
sourcepub fn set_time_based_canary(self, input: Option<TimeBasedCanary>) -> Self
pub fn set_time_based_canary(self, input: Option<TimeBasedCanary>) -> Self
A configuration that shifts traffic from one version of a Lambda function or 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.
sourcepub fn get_time_based_canary(&self) -> &Option<TimeBasedCanary>
pub fn get_time_based_canary(&self) -> &Option<TimeBasedCanary>
A configuration that shifts traffic from one version of a Lambda function or 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.
sourcepub fn time_based_linear(self, input: TimeBasedLinear) -> Self
pub fn time_based_linear(self, input: TimeBasedLinear) -> Self
A configuration that shifts traffic from one version of a Lambda function or Amazon 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 Amazon ECS task sets are specified in the deployment's AppSpec file.
sourcepub fn set_time_based_linear(self, input: Option<TimeBasedLinear>) -> Self
pub fn set_time_based_linear(self, input: Option<TimeBasedLinear>) -> Self
A configuration that shifts traffic from one version of a Lambda function or Amazon 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 Amazon ECS task sets are specified in the deployment's AppSpec file.
sourcepub fn get_time_based_linear(&self) -> &Option<TimeBasedLinear>
pub fn get_time_based_linear(&self) -> &Option<TimeBasedLinear>
A configuration that shifts traffic from one version of a Lambda function or Amazon 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 Amazon ECS task sets are specified in the deployment's AppSpec file.
sourcepub fn build(self) -> TrafficRoutingConfig
pub fn build(self) -> TrafficRoutingConfig
Consumes the builder and constructs a TrafficRoutingConfig
.
Trait Implementations§
source§impl Clone for TrafficRoutingConfigBuilder
impl Clone for TrafficRoutingConfigBuilder
source§fn clone(&self) -> TrafficRoutingConfigBuilder
fn clone(&self) -> TrafficRoutingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TrafficRoutingConfigBuilder
impl Debug for TrafficRoutingConfigBuilder
source§impl Default for TrafficRoutingConfigBuilder
impl Default for TrafficRoutingConfigBuilder
source§fn default() -> TrafficRoutingConfigBuilder
fn default() -> TrafficRoutingConfigBuilder
source§impl PartialEq for TrafficRoutingConfigBuilder
impl PartialEq for TrafficRoutingConfigBuilder
source§fn eq(&self, other: &TrafficRoutingConfigBuilder) -> bool
fn eq(&self, other: &TrafficRoutingConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrafficRoutingConfigBuilder
Auto Trait Implementations§
impl Freeze for TrafficRoutingConfigBuilder
impl RefUnwindSafe for TrafficRoutingConfigBuilder
impl Send for TrafficRoutingConfigBuilder
impl Sync for TrafficRoutingConfigBuilder
impl Unpin for TrafficRoutingConfigBuilder
impl UnwindSafe for TrafficRoutingConfigBuilder
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