aws_sdk_lightsail/client/update_distribution_bundle.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 [`UpdateDistributionBundle`](crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`distribution_name(impl Into<String>)`](crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder::distribution_name) / [`set_distribution_name(Option<String>)`](crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder::set_distribution_name):<br>required: **false**<br><p>The name of the distribution for which to update the bundle.</p> <p>Use the <code>GetDistributions</code> action to get a list of distribution names that you can specify.</p><br>
7 /// - [`bundle_id(impl Into<String>)`](crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder::bundle_id) / [`set_bundle_id(Option<String>)`](crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder::set_bundle_id):<br>required: **false**<br><p>The bundle ID of the new bundle to apply to your distribution.</p> <p>Use the <code>GetDistributionBundles</code> action to get a list of distribution bundle IDs that you can specify.</p><br>
8 /// - On success, responds with [`UpdateDistributionBundleOutput`](crate::operation::update_distribution_bundle::UpdateDistributionBundleOutput) with field(s):
9 /// - [`operation(Option<Operation>)`](crate::operation::update_distribution_bundle::UpdateDistributionBundleOutput::operation): <p>An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10 /// - On failure, responds with [`SdkError<UpdateDistributionBundleError>`](crate::operation::update_distribution_bundle::UpdateDistributionBundleError)
11 pub fn update_distribution_bundle(&self) -> crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder {
12 crate::operation::update_distribution_bundle::builders::UpdateDistributionBundleFluentBuilder::new(self.handle.clone())
13 }
14}