#[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 ==
.