Struct aws_sdk_lightsail::client::fluent_builders::UpdateBucket
source · [−]pub struct UpdateBucket<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateBucket
.
Updates an existing Amazon Lightsail bucket.
Use this action to update the configuration of an existing bucket, such as versioning, public accessibility, and the AWS accounts that can access the bucket.
Implementations
impl<C, M, R> UpdateBucket<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateBucket<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError>> where
R::Policy: SmithyRetryPolicy<UpdateBucketInputOperationOutputAlias, UpdateBucketOutput, UpdateBucketError, UpdateBucketInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError>> where
R::Policy: SmithyRetryPolicy<UpdateBucketInputOperationOutputAlias, UpdateBucketOutput, UpdateBucketError, UpdateBucketInputOperationRetryAlias>,
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 to update.
The name of the bucket to update.
An object that sets the public accessibility of objects in the specified bucket.
An object that sets the public accessibility of objects in the specified bucket.
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled
- Enables versioning of objects in the specified bucket. -
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled
- Enables versioning of objects in the specified bucket. -
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
Appends an item to readonlyAccessAccounts
.
To override the contents of this collection use set_readonly_access_accounts
.
An array of strings to specify the AWS account IDs that can access the bucket.
You can give a maximum of 10 AWS accounts access to a bucket.
An array of strings to specify the AWS account IDs that can access the bucket.
You can give a maximum of 10 AWS accounts access to a bucket.
An object that describes the access log configuration for the bucket.
An object that describes the access log configuration for the bucket.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateBucket<C, M, R>
impl<C, M, R> Unpin for UpdateBucket<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateBucket<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