#[non_exhaustive]pub struct ContinuousDeploymentPolicyConfig {
pub staging_distribution_dns_names: Option<StagingDistributionDnsNames>,
pub enabled: bool,
pub traffic_config: Option<TrafficConfig>,
}
Expand description
Contains the configuration for a continuous deployment policy.
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.staging_distribution_dns_names: Option<StagingDistributionDnsNames>
The CloudFront domain name of the staging distribution. For example: d111111abcdef8.cloudfront.net
.
enabled: bool
A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is true
, this policy is enabled and in effect. When this value is false
, this policy is not enabled and has no effect.
traffic_config: Option<TrafficConfig>
Contains the parameters for routing production traffic from your primary to staging distributions.
Implementations§
source§impl ContinuousDeploymentPolicyConfig
impl ContinuousDeploymentPolicyConfig
sourcepub fn staging_distribution_dns_names(
&self
) -> Option<&StagingDistributionDnsNames>
pub fn staging_distribution_dns_names( &self ) -> Option<&StagingDistributionDnsNames>
The CloudFront domain name of the staging distribution. For example: d111111abcdef8.cloudfront.net
.
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is true
, this policy is enabled and in effect. When this value is false
, this policy is not enabled and has no effect.
sourcepub fn traffic_config(&self) -> Option<&TrafficConfig>
pub fn traffic_config(&self) -> Option<&TrafficConfig>
Contains the parameters for routing production traffic from your primary to staging distributions.
source§impl ContinuousDeploymentPolicyConfig
impl ContinuousDeploymentPolicyConfig
sourcepub fn builder() -> ContinuousDeploymentPolicyConfigBuilder
pub fn builder() -> ContinuousDeploymentPolicyConfigBuilder
Creates a new builder-style object to manufacture ContinuousDeploymentPolicyConfig
.
Trait Implementations§
source§impl Clone for ContinuousDeploymentPolicyConfig
impl Clone for ContinuousDeploymentPolicyConfig
source§fn clone(&self) -> ContinuousDeploymentPolicyConfig
fn clone(&self) -> ContinuousDeploymentPolicyConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ContinuousDeploymentPolicyConfig
impl PartialEq for ContinuousDeploymentPolicyConfig
source§fn eq(&self, other: &ContinuousDeploymentPolicyConfig) -> bool
fn eq(&self, other: &ContinuousDeploymentPolicyConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContinuousDeploymentPolicyConfig
Auto Trait Implementations§
impl Freeze for ContinuousDeploymentPolicyConfig
impl RefUnwindSafe for ContinuousDeploymentPolicyConfig
impl Send for ContinuousDeploymentPolicyConfig
impl Sync for ContinuousDeploymentPolicyConfig
impl Unpin for ContinuousDeploymentPolicyConfig
impl UnwindSafe for ContinuousDeploymentPolicyConfig
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