#[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 ==
.impl StructuralPartialEq for AwsApiGatewayCanarySettings
Auto Trait Implementations§
impl Freeze for AwsApiGatewayCanarySettings
impl RefUnwindSafe for AwsApiGatewayCanarySettings
impl Send for AwsApiGatewayCanarySettings
impl Sync for AwsApiGatewayCanarySettings
impl Unpin for AwsApiGatewayCanarySettings
impl UnwindSafe for AwsApiGatewayCanarySettings
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