pub struct UpdateBucketFluentBuilder { /* 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 Amazon Web Services accounts that can access the bucket.
Implementations§
source§impl UpdateBucketFluentBuilder
impl UpdateBucketFluentBuilder
sourcepub fn as_input(&self) -> &UpdateBucketInputBuilder
pub fn as_input(&self) -> &UpdateBucketInputBuilder
Access the UpdateBucket as a reference.
sourcepub async fn send(
self
) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateBucketOutput, UpdateBucketError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateBucketOutput, UpdateBucketError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of the bucket to update.
sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of the bucket to update.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name of the bucket to update.
sourcepub fn access_rules(self, input: AccessRules) -> Self
pub fn access_rules(self, input: AccessRules) -> Self
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn set_access_rules(self, input: Option<AccessRules>) -> Self
pub fn set_access_rules(self, input: Option<AccessRules>) -> Self
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn get_access_rules(&self) -> &Option<AccessRules>
pub fn get_access_rules(&self) -> &Option<AccessRules>
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn versioning(self, input: impl Into<String>) -> Self
pub fn versioning(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_versioning(self, input: Option<String>) -> Self
pub fn set_versioning(self, input: Option<String>) -> Self
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.
sourcepub fn get_versioning(&self) -> &Option<String>
pub fn get_versioning(&self) -> &Option<String>
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.
sourcepub fn readonly_access_accounts(self, input: impl Into<String>) -> Self
pub fn readonly_access_accounts(self, input: impl Into<String>) -> Self
Appends an item to readonlyAccessAccounts
.
To override the contents of this collection use set_readonly_access_accounts
.
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn set_readonly_access_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_readonly_access_accounts(self, input: Option<Vec<String>>) -> Self
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn get_readonly_access_accounts(&self) -> &Option<Vec<String>>
pub fn get_readonly_access_accounts(&self) -> &Option<Vec<String>>
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn access_log_config(self, input: BucketAccessLogConfig) -> Self
pub fn access_log_config(self, input: BucketAccessLogConfig) -> Self
An object that describes the access log configuration for the bucket.
sourcepub fn set_access_log_config(self, input: Option<BucketAccessLogConfig>) -> Self
pub fn set_access_log_config(self, input: Option<BucketAccessLogConfig>) -> Self
An object that describes the access log configuration for the bucket.
sourcepub fn get_access_log_config(&self) -> &Option<BucketAccessLogConfig>
pub fn get_access_log_config(&self) -> &Option<BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
Trait Implementations§
source§impl Clone for UpdateBucketFluentBuilder
impl Clone for UpdateBucketFluentBuilder
source§fn clone(&self) -> UpdateBucketFluentBuilder
fn clone(&self) -> UpdateBucketFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateBucketFluentBuilder
impl !RefUnwindSafe for UpdateBucketFluentBuilder
impl Send for UpdateBucketFluentBuilder
impl Sync for UpdateBucketFluentBuilder
impl Unpin for UpdateBucketFluentBuilder
impl !UnwindSafe for UpdateBucketFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more