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
GetDistributionConfigto 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
ETagfield toIfMatch, leaving the value unchanged. (Set the value ofIfMatchto the value ofETag, then remove theETagfield.) -
You can't change the value of
CallerReference.
-
-
Submit an
UpdateDistributionrequest, providing the distribution configuration. The new configuration replaces the existing configuration. The values that you specify in anUpdateDistributionrequest 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 async fn customize(
self
) -> Result<CustomizableOperation<UpdateDistributionOutput, UpdateDistributionError>, SdkError<UpdateDistributionError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateDistributionOutput, UpdateDistributionError>, SdkError<UpdateDistributionError>>
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 more