#[non_exhaustive]pub struct DeploymentCanarySettings {
pub percent_traffic: f64,
pub stage_variable_overrides: Option<HashMap<String, String>>,
pub use_stage_cache: bool,
}
Expand description
The input configuration for a canary deployment.
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.percent_traffic: f64
The percentage (0.0-100.0) of traffic routed to the canary deployment.
stage_variable_overrides: Option<HashMap<String, String>>
A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
use_stage_cache: bool
A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.
Implementations§
source§impl DeploymentCanarySettings
impl DeploymentCanarySettings
sourcepub fn percent_traffic(&self) -> f64
pub fn percent_traffic(&self) -> f64
The percentage (0.0-100.0) of traffic routed to the canary deployment.
sourcepub fn stage_variable_overrides(&self) -> Option<&HashMap<String, String>>
pub fn stage_variable_overrides(&self) -> Option<&HashMap<String, String>>
A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
sourcepub fn use_stage_cache(&self) -> bool
pub fn use_stage_cache(&self) -> bool
A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.
source§impl DeploymentCanarySettings
impl DeploymentCanarySettings
sourcepub fn builder() -> DeploymentCanarySettingsBuilder
pub fn builder() -> DeploymentCanarySettingsBuilder
Creates a new builder-style object to manufacture DeploymentCanarySettings
.
Trait Implementations§
source§impl Clone for DeploymentCanarySettings
impl Clone for DeploymentCanarySettings
source§fn clone(&self) -> DeploymentCanarySettings
fn clone(&self) -> DeploymentCanarySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentCanarySettings
impl Debug for DeploymentCanarySettings
source§impl PartialEq for DeploymentCanarySettings
impl PartialEq for DeploymentCanarySettings
source§fn eq(&self, other: &DeploymentCanarySettings) -> bool
fn eq(&self, other: &DeploymentCanarySettings) -> bool
self
and other
values to be equal, and is used
by ==
.