Skip to main content

aws_sdk_cloudfront/client/
update_distribution_with_staging_config.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateDistributionWithStagingConfig`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::set_id):<br>required: **true**<br><p>The identifier of the primary distribution to which you are copying a staging distribution's configuration.</p><br>
7    ///   - [`staging_distribution_id(impl Into<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::staging_distribution_id) / [`set_staging_distribution_id(Option<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::set_staging_distribution_id):<br>required: **false**<br><p>The identifier of the staging distribution whose configuration you are copying to the primary distribution.</p><br>
8    ///   - [`if_match(impl Into<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::set_if_match):<br>required: **false**<br><p>The current versions (<code>ETag</code> values) of both primary and staging distributions. Provide these in the following format:</p> <p><code>&lt;primary ETag&gt;, &lt;staging ETag&gt;</code></p><br>
9    /// - On success, responds with [`UpdateDistributionWithStagingConfigOutput`](crate::operation::update_distribution_with_staging_config::UpdateDistributionWithStagingConfigOutput) with field(s):
10    ///   - [`distribution(Option<Distribution>)`](crate::operation::update_distribution_with_staging_config::UpdateDistributionWithStagingConfigOutput::distribution): <p>A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.</p>
11    ///   - [`e_tag(Option<String>)`](crate::operation::update_distribution_with_staging_config::UpdateDistributionWithStagingConfigOutput::e_tag): <p>The current version of the primary distribution (after it's updated).</p>
12    /// - On failure, responds with [`SdkError<UpdateDistributionWithStagingConfigError>`](crate::operation::update_distribution_with_staging_config::UpdateDistributionWithStagingConfigError)
13    pub fn update_distribution_with_staging_config(
14        &self,
15    ) -> crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder {
16        crate::operation::update_distribution_with_staging_config::builders::UpdateDistributionWithStagingConfigFluentBuilder::new(
17            self.handle.clone(),
18        )
19    }
20}