Struct aws_sdk_lightsail::client::fluent_builders::UpdateBucketBundle [−][src]
pub struct UpdateBucketBundle<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateBucketBundle
.
Updates the bundle, or storage plan, of an existing Amazon Lightsail bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. You can update a bucket's bundle only one time within a monthly AWS billing cycle. To determine if you can update a bucket's bundle, use the GetBuckets
action. The ableToUpdateBundle
parameter in the response will indicate whether you can currently update a bucket's bundle.
Update a bucket's bundle if it's consistently going over its storage space or data transfer quota, or if a bucket's usage is consistently in the lower range of its storage space or data transfer quota. Due to the unpredictable usage fluctuations that a bucket might experience, we strongly recommend that you update a bucket's bundle only as a long-term strategy, instead of as a short-term, monthly cost-cutting measure. Choose a bucket bundle that will provide the bucket with ample storage space and data transfer for a long time to come.
Implementations
impl<C, M, R> UpdateBucketBundle<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateBucketBundle<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateBucketBundleOutput, SdkError<UpdateBucketBundleError>> where
R::Policy: SmithyRetryPolicy<UpdateBucketBundleInputOperationOutputAlias, UpdateBucketBundleOutput, UpdateBucketBundleError, UpdateBucketBundleInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateBucketBundleOutput, SdkError<UpdateBucketBundleError>> where
R::Policy: SmithyRetryPolicy<UpdateBucketBundleInputOperationOutputAlias, UpdateBucketBundleOutput, UpdateBucketBundleError, UpdateBucketBundleInputOperationRetryAlias>,
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.
The name of the bucket for which to update the bundle.
The name of the bucket for which to update the bundle.
The ID of the new bundle to apply to the bucket.
Use the GetBucketBundles
action to get a list of bundle IDs that you can specify.
The ID of the new bundle to apply to the bucket.
Use the GetBucketBundles
action to get a list of bundle IDs that you can specify.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateBucketBundle<C, M, R>
impl<C, M, R> Send for UpdateBucketBundle<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateBucketBundle<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateBucketBundle<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateBucketBundle<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more