#[non_exhaustive]pub struct GetBucketLifecycleConfigurationOutput {
pub rules: Option<Vec<LifecycleRule>>,
pub transition_default_minimum_object_size: Option<TransitionDefaultMinimumObjectSize>,
/* private fields */
}
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.rules: Option<Vec<LifecycleRule>>
Container for a lifecycle rule.
transition_default_minimum_object_size: Option<TransitionDefaultMinimumObjectSize>
Indicates which default minimum object size behavior is applied to the lifecycle configuration.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
-
all_storage_classes_128K
- Objects smaller than 128 KB will not transition to any storage class by default. -
varies_by_storage_class
- Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.
To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan
or ObjectSizeLessThan
in the body of your transition rule. Custom filters always take precedence over the default transition behavior.
Implementations§
source§impl GetBucketLifecycleConfigurationOutput
impl GetBucketLifecycleConfigurationOutput
sourcepub fn rules(&self) -> &[LifecycleRule]
pub fn rules(&self) -> &[LifecycleRule]
Container for a lifecycle rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none()
.
sourcepub fn transition_default_minimum_object_size(
&self,
) -> Option<&TransitionDefaultMinimumObjectSize>
pub fn transition_default_minimum_object_size( &self, ) -> Option<&TransitionDefaultMinimumObjectSize>
Indicates which default minimum object size behavior is applied to the lifecycle configuration.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
-
all_storage_classes_128K
- Objects smaller than 128 KB will not transition to any storage class by default. -
varies_by_storage_class
- Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.
To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan
or ObjectSizeLessThan
in the body of your transition rule. Custom filters always take precedence over the default transition behavior.
source§impl GetBucketLifecycleConfigurationOutput
impl GetBucketLifecycleConfigurationOutput
sourcepub fn builder() -> GetBucketLifecycleConfigurationOutputBuilder
pub fn builder() -> GetBucketLifecycleConfigurationOutputBuilder
Creates a new builder-style object to manufacture GetBucketLifecycleConfigurationOutput
.
Trait Implementations§
source§impl Clone for GetBucketLifecycleConfigurationOutput
impl Clone for GetBucketLifecycleConfigurationOutput
source§fn clone(&self) -> GetBucketLifecycleConfigurationOutput
fn clone(&self) -> GetBucketLifecycleConfigurationOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetBucketLifecycleConfigurationOutput
impl PartialEq for GetBucketLifecycleConfigurationOutput
source§fn eq(&self, other: &GetBucketLifecycleConfigurationOutput) -> bool
fn eq(&self, other: &GetBucketLifecycleConfigurationOutput) -> bool
self
and other
values to be equal, and is used by ==
.source§impl RequestId for GetBucketLifecycleConfigurationOutput
impl RequestId for GetBucketLifecycleConfigurationOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.source§impl RequestIdExt for GetBucketLifecycleConfigurationOutput
impl RequestIdExt for GetBucketLifecycleConfigurationOutput
source§fn extended_request_id(&self) -> Option<&str>
fn extended_request_id(&self) -> Option<&str>
impl StructuralPartialEq for GetBucketLifecycleConfigurationOutput
Auto Trait Implementations§
impl Freeze for GetBucketLifecycleConfigurationOutput
impl RefUnwindSafe for GetBucketLifecycleConfigurationOutput
impl Send for GetBucketLifecycleConfigurationOutput
impl Sync for GetBucketLifecycleConfigurationOutput
impl Unpin for GetBucketLifecycleConfigurationOutput
impl UnwindSafe for GetBucketLifecycleConfigurationOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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