#[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>,
pub enabled: Option<bool>,
}
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.
enabled: Option<bool>
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True
, the staging distribution is enabled. When you set this value to False
, the staging distribution is disabled.
If you omit this field, the default value is True
.
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.
sourcepub fn enabled(&self) -> Option<bool>
pub fn enabled(&self) -> Option<bool>
A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True
, the staging distribution is enabled. When you set this value to False
, the staging distribution is disabled.
If you omit this field, the default value is True
.
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 for CopyDistributionInput
impl PartialEq 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 ==
.impl StructuralPartialEq for CopyDistributionInput
Auto Trait Implementations§
impl Freeze for CopyDistributionInput
impl RefUnwindSafe for CopyDistributionInput
impl Send for CopyDistributionInput
impl Sync for CopyDistributionInput
impl Unpin for CopyDistributionInput
impl UnwindSafe for CopyDistributionInput
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