aws_sdk_lightsail/client/
update_bucket_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 [`UpdateBucketBundle`](crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bucket_name(impl Into<String>)`](crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder::bucket_name) / [`set_bucket_name(Option<String>)`](crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder::set_bucket_name):<br>required: **true**<br><p>The name of the bucket for which to update the bundle.</p><br>
7    ///   - [`bundle_id(impl Into<String>)`](crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder::bundle_id) / [`set_bundle_id(Option<String>)`](crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder::set_bundle_id):<br>required: **true**<br><p>The ID of the new bundle to apply to the bucket.</p> <p>Use the <a href="https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketBundles.html">GetBucketBundles</a> action to get a list of bundle IDs that you can specify.</p><br>
8    /// - On success, responds with [`UpdateBucketBundleOutput`](crate::operation::update_bucket_bundle::UpdateBucketBundleOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::update_bucket_bundle::UpdateBucketBundleOutput::operations): <p>An array of objects that describe 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<UpdateBucketBundleError>`](crate::operation::update_bucket_bundle::UpdateBucketBundleError)
11    pub fn update_bucket_bundle(&self) -> crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder {
12        crate::operation::update_bucket_bundle::builders::UpdateBucketBundleFluentBuilder::new(self.handle.clone())
13    }
14}