#[non_exhaustive]pub struct CopyDistributionInput {
pub primary_distribution_id: Option<String>,
pub staging: Option<bool>,
pub if_match: Option<String>,
pub caller_reference: Option<String>,
}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.primary_distribution_id: Option<String>The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.
staging: Option<bool>The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.
if_match: Option<String>The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to GetDistribution and GetDistributionConfig.
caller_reference: Option<String>A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
Implementations§
source§impl CopyDistributionInput
impl CopyDistributionInput
sourcepub fn primary_distribution_id(&self) -> Option<&str>
pub fn primary_distribution_id(&self) -> Option<&str>
The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.
sourcepub fn staging(&self) -> Option<bool>
pub fn staging(&self) -> Option<bool>
The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.
sourcepub fn if_match(&self) -> Option<&str>
pub fn if_match(&self) -> Option<&str>
The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to GetDistribution and GetDistributionConfig.
sourcepub fn caller_reference(&self) -> Option<&str>
pub fn caller_reference(&self) -> Option<&str>
A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
source§impl CopyDistributionInput
impl CopyDistributionInput
sourcepub fn builder() -> CopyDistributionInputBuilder
pub fn builder() -> CopyDistributionInputBuilder
Creates a new builder-style object to manufacture CopyDistributionInput.
Trait Implementations§
source§impl Clone for CopyDistributionInput
impl Clone for CopyDistributionInput
source§fn clone(&self) -> CopyDistributionInput
fn clone(&self) -> CopyDistributionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CopyDistributionInput
impl Debug for CopyDistributionInput
source§impl PartialEq<CopyDistributionInput> for CopyDistributionInput
impl PartialEq<CopyDistributionInput> for CopyDistributionInput
source§fn eq(&self, other: &CopyDistributionInput) -> bool
fn eq(&self, other: &CopyDistributionInput) -> bool
self and other values to be equal, and is used
by ==.