#[non_exhaustive]pub struct AwsApiGatewayCanarySettings {
pub percent_traffic: Option<f64>,
pub deployment_id: Option<String>,
pub stage_variable_overrides: Option<HashMap<String, String>>,
pub use_stage_cache: Option<bool>,
}
Expand description
Contains information about settings for canary deployment in the stage.
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: Option<f64>
The percentage of traffic that is diverted to a canary deployment.
deployment_id: Option<String>
The deployment identifier for the canary deployment.
stage_variable_overrides: Option<HashMap<String, String>>
Stage variables that are overridden in the canary release deployment. The variables include new stage variables that are introduced in the canary.
Each variable is represented as a string-to-string map between the stage variable name and the variable value.
use_stage_cache: Option<bool>
Indicates whether the canary deployment uses the stage cache.
Implementations§
source§impl AwsApiGatewayCanarySettings
impl AwsApiGatewayCanarySettings
sourcepub fn percent_traffic(&self) -> Option<f64>
pub fn percent_traffic(&self) -> Option<f64>
The percentage of traffic that is diverted to a canary deployment.
sourcepub fn deployment_id(&self) -> Option<&str>
pub fn deployment_id(&self) -> Option<&str>
The deployment identifier for the canary deployment.
sourcepub fn stage_variable_overrides(&self) -> Option<&HashMap<String, String>>
pub fn stage_variable_overrides(&self) -> Option<&HashMap<String, String>>
Stage variables that are overridden in the canary release deployment. The variables include new stage variables that are introduced in the canary.
Each variable is represented as a string-to-string map between the stage variable name and the variable value.
sourcepub fn use_stage_cache(&self) -> Option<bool>
pub fn use_stage_cache(&self) -> Option<bool>
Indicates whether the canary deployment uses the stage cache.
source§impl AwsApiGatewayCanarySettings
impl AwsApiGatewayCanarySettings
sourcepub fn builder() -> AwsApiGatewayCanarySettingsBuilder
pub fn builder() -> AwsApiGatewayCanarySettingsBuilder
Creates a new builder-style object to manufacture AwsApiGatewayCanarySettings
.
Trait Implementations§
source§impl Clone for AwsApiGatewayCanarySettings
impl Clone for AwsApiGatewayCanarySettings
source§fn clone(&self) -> AwsApiGatewayCanarySettings
fn clone(&self) -> AwsApiGatewayCanarySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsApiGatewayCanarySettings
impl Debug for AwsApiGatewayCanarySettings
source§impl PartialEq for AwsApiGatewayCanarySettings
impl PartialEq for AwsApiGatewayCanarySettings
source§fn eq(&self, other: &AwsApiGatewayCanarySettings) -> bool
fn eq(&self, other: &AwsApiGatewayCanarySettings) -> bool
self
and other
values to be equal, and is used
by ==
.