#[non_exhaustive]pub struct TrafficRoutingConfigBuilder { /* private fields */ }
Expand description
A builder for TrafficRoutingConfig
.
Implementations§
source§impl TrafficRoutingConfigBuilder
impl TrafficRoutingConfigBuilder
sourcepub fn type(self, input: TrafficRoutingConfigType) -> Self
pub fn type(self, input: TrafficRoutingConfigType) -> Self
Traffic routing strategy type.
-
ALL_AT_ONCE
: Endpoint traffic shifts to the new fleet in a single step. -
CANARY
: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic. -
LINEAR
: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
sourcepub fn set_type(self, input: Option<TrafficRoutingConfigType>) -> Self
pub fn set_type(self, input: Option<TrafficRoutingConfigType>) -> Self
Traffic routing strategy type.
-
ALL_AT_ONCE
: Endpoint traffic shifts to the new fleet in a single step. -
CANARY
: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic. -
LINEAR
: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
sourcepub fn get_type(&self) -> &Option<TrafficRoutingConfigType>
pub fn get_type(&self) -> &Option<TrafficRoutingConfigType>
Traffic routing strategy type.
-
ALL_AT_ONCE
: Endpoint traffic shifts to the new fleet in a single step. -
CANARY
: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic. -
LINEAR
: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
sourcepub fn wait_interval_in_seconds(self, input: i32) -> Self
pub fn wait_interval_in_seconds(self, input: i32) -> Self
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
This field is required.sourcepub fn set_wait_interval_in_seconds(self, input: Option<i32>) -> Self
pub fn set_wait_interval_in_seconds(self, input: Option<i32>) -> Self
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
sourcepub fn get_wait_interval_in_seconds(&self) -> &Option<i32>
pub fn get_wait_interval_in_seconds(&self) -> &Option<i32>
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
sourcepub fn canary_size(self, input: CapacitySize) -> Self
pub fn canary_size(self, input: CapacitySize) -> Self
Batch size for the first step to turn on traffic on the new endpoint fleet. Value
must be less than or equal to 50% of the variant's total instance count.
sourcepub fn set_canary_size(self, input: Option<CapacitySize>) -> Self
pub fn set_canary_size(self, input: Option<CapacitySize>) -> Self
Batch size for the first step to turn on traffic on the new endpoint fleet. Value
must be less than or equal to 50% of the variant's total instance count.
sourcepub fn get_canary_size(&self) -> &Option<CapacitySize>
pub fn get_canary_size(&self) -> &Option<CapacitySize>
Batch size for the first step to turn on traffic on the new endpoint fleet. Value
must be less than or equal to 50% of the variant's total instance count.
sourcepub fn linear_step_size(self, input: CapacitySize) -> Self
pub fn linear_step_size(self, input: CapacitySize) -> Self
Batch size for each step to turn on traffic on the new endpoint fleet. Value
must be 10-50% of the variant's total instance count.
sourcepub fn set_linear_step_size(self, input: Option<CapacitySize>) -> Self
pub fn set_linear_step_size(self, input: Option<CapacitySize>) -> Self
Batch size for each step to turn on traffic on the new endpoint fleet. Value
must be 10-50% of the variant's total instance count.
sourcepub fn get_linear_step_size(&self) -> &Option<CapacitySize>
pub fn get_linear_step_size(&self) -> &Option<CapacitySize>
Batch size for each step to turn on traffic on the new endpoint fleet. Value
must be 10-50% of the variant's total instance count.
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
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> 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