Struct aws_sdk_cloudfront::types::TrafficConfig
source · #[non_exhaustive]pub struct TrafficConfig {
pub single_weight_config: Option<ContinuousDeploymentSingleWeightConfig>,
pub single_header_config: Option<ContinuousDeploymentSingleHeaderConfig>,
pub type: ContinuousDeploymentPolicyType,
}
Expand description
The traffic configuration of your continuous deployment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.single_weight_config: Option<ContinuousDeploymentSingleWeightConfig>
Contains the percentage of traffic to send to the staging distribution.
single_header_config: Option<ContinuousDeploymentSingleHeaderConfig>
Determines which HTTP requests are sent to the staging distribution.
type: ContinuousDeploymentPolicyType
The type of traffic configuration.
Implementations§
source§impl TrafficConfig
impl TrafficConfig
sourcepub fn single_weight_config(
&self
) -> Option<&ContinuousDeploymentSingleWeightConfig>
pub fn single_weight_config( &self ) -> Option<&ContinuousDeploymentSingleWeightConfig>
Contains the percentage of traffic to send to the staging distribution.
sourcepub fn single_header_config(
&self
) -> Option<&ContinuousDeploymentSingleHeaderConfig>
pub fn single_header_config( &self ) -> Option<&ContinuousDeploymentSingleHeaderConfig>
Determines which HTTP requests are sent to the staging distribution.
sourcepub fn type(&self) -> &ContinuousDeploymentPolicyType
pub fn type(&self) -> &ContinuousDeploymentPolicyType
The type of traffic configuration.
source§impl TrafficConfig
impl TrafficConfig
sourcepub fn builder() -> TrafficConfigBuilder
pub fn builder() -> TrafficConfigBuilder
Creates a new builder-style object to manufacture TrafficConfig
.
Trait Implementations§
source§impl Clone for TrafficConfig
impl Clone for TrafficConfig
source§fn clone(&self) -> TrafficConfig
fn clone(&self) -> TrafficConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrafficConfig
impl Debug for TrafficConfig
source§impl PartialEq for TrafficConfig
impl PartialEq for TrafficConfig
source§fn eq(&self, other: &TrafficConfig) -> bool
fn eq(&self, other: &TrafficConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrafficConfig
Auto Trait Implementations§
impl RefUnwindSafe for TrafficConfig
impl Send for TrafficConfig
impl Sync for TrafficConfig
impl Unpin for TrafficConfig
impl UnwindSafe for TrafficConfig
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.