#[non_exhaustive]pub struct UpdateBucketInput {
pub bucket_name: Option<String>,
pub access_rules: Option<AccessRules>,
pub versioning: Option<String>,
pub readonly_access_accounts: Option<Vec<String>>,
pub access_log_config: Option<BucketAccessLogConfig>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket_name: Option<String>
The name of the bucket to update.
access_rules: Option<AccessRules>
An object that sets the public accessibility of objects in the specified bucket.
versioning: 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.
readonly_access_accounts: 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.
access_log_config: Option<BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
Implementations§
source§impl UpdateBucketInput
impl UpdateBucketInput
sourcepub fn bucket_name(&self) -> Option<&str>
pub fn bucket_name(&self) -> Option<&str>
The name of the bucket to update.
sourcepub fn access_rules(&self) -> Option<&AccessRules>
pub fn access_rules(&self) -> Option<&AccessRules>
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn versioning(&self) -> Option<&str>
pub fn versioning(&self) -> Option<&str>
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) -> &[String]
pub fn readonly_access_accounts(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .readonly_access_accounts.is_none()
.
sourcepub fn access_log_config(&self) -> Option<&BucketAccessLogConfig>
pub fn access_log_config(&self) -> Option<&BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
source§impl UpdateBucketInput
impl UpdateBucketInput
sourcepub fn builder() -> UpdateBucketInputBuilder
pub fn builder() -> UpdateBucketInputBuilder
Creates a new builder-style object to manufacture UpdateBucketInput
.
Trait Implementations§
source§impl Clone for UpdateBucketInput
impl Clone for UpdateBucketInput
source§fn clone(&self) -> UpdateBucketInput
fn clone(&self) -> UpdateBucketInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateBucketInput
impl Debug for UpdateBucketInput
source§impl PartialEq for UpdateBucketInput
impl PartialEq for UpdateBucketInput
source§fn eq(&self, other: &UpdateBucketInput) -> bool
fn eq(&self, other: &UpdateBucketInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateBucketInput
Auto Trait Implementations§
impl Freeze for UpdateBucketInput
impl RefUnwindSafe for UpdateBucketInput
impl Send for UpdateBucketInput
impl Sync for UpdateBucketInput
impl Unpin for UpdateBucketInput
impl UnwindSafe for UpdateBucketInput
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