Struct aws_sdk_cloudfront::operation::update_distribution::builders::UpdateDistributionFluentBuilder
source · pub struct UpdateDistributionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDistribution
.
Updates the configuration for a CloudFront distribution.
The update process includes getting the current distribution configuration, updating it to make your changes, and then submitting an UpdateDistribution
request to make the updates.
To update a web distribution using the CloudFront API
-
Use
GetDistributionConfig
to get the current configuration, including the version identifier (ETag
). -
Update the distribution configuration that was returned in the response. Note the following important requirements and restrictions:
-
You must rename the
ETag
field toIfMatch
, leaving the value unchanged. (Set the value ofIfMatch
to the value ofETag
, then remove theETag
field.) -
You can't change the value of
CallerReference
.
-
-
Submit an
UpdateDistribution
request, providing the distribution configuration. The new configuration replaces the existing configuration. The values that you specify in anUpdateDistribution
request are not merged into your existing configuration. Make sure to include all fields: the ones that you modified and also the ones that you didn't.
Implementations§
source§impl UpdateDistributionFluentBuilder
impl UpdateDistributionFluentBuilder
sourcepub fn as_input(&self) -> &UpdateDistributionInputBuilder
pub fn as_input(&self) -> &UpdateDistributionInputBuilder
Access the UpdateDistribution as a reference.
sourcepub async fn send(
self
) -> Result<UpdateDistributionOutput, SdkError<UpdateDistributionError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateDistributionOutput, SdkError<UpdateDistributionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateDistributionOutput, UpdateDistributionError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateDistributionOutput, UpdateDistributionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn distribution_config(self, input: DistributionConfig) -> Self
pub fn distribution_config(self, input: DistributionConfig) -> Self
The distribution's configuration information.
sourcepub fn set_distribution_config(self, input: Option<DistributionConfig>) -> Self
pub fn set_distribution_config(self, input: Option<DistributionConfig>) -> Self
The distribution's configuration information.
sourcepub fn get_distribution_config(&self) -> &Option<DistributionConfig>
pub fn get_distribution_config(&self) -> &Option<DistributionConfig>
The distribution's configuration information.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The value of the ETag
header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The value of the ETag
header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL
.
sourcepub fn get_if_match(&self) -> &Option<String>
pub fn get_if_match(&self) -> &Option<String>
The value of the ETag
header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL
.
Trait Implementations§
source§impl Clone for UpdateDistributionFluentBuilder
impl Clone for UpdateDistributionFluentBuilder
source§fn clone(&self) -> UpdateDistributionFluentBuilder
fn clone(&self) -> UpdateDistributionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateDistributionFluentBuilder
impl !RefUnwindSafe for UpdateDistributionFluentBuilder
impl Send for UpdateDistributionFluentBuilder
impl Sync for UpdateDistributionFluentBuilder
impl Unpin for UpdateDistributionFluentBuilder
impl !UnwindSafe for UpdateDistributionFluentBuilder
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