#[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 ==
.