#[non_exhaustive]pub struct GetBucketLifecycleConfigurationOutputBuilder { /* private fields */ }
Expand description
A builder for GetBucketLifecycleConfigurationOutput
.
Implementations§
source§impl GetBucketLifecycleConfigurationOutputBuilder
impl GetBucketLifecycleConfigurationOutputBuilder
sourcepub fn rules(self, input: LifecycleRule) -> Self
pub fn rules(self, input: LifecycleRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
Container for a lifecycle rule.
sourcepub fn set_rules(self, input: Option<Vec<LifecycleRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<LifecycleRule>>) -> Self
Container for a lifecycle rule.
sourcepub fn get_rules(&self) -> &Option<Vec<LifecycleRule>>
pub fn get_rules(&self) -> &Option<Vec<LifecycleRule>>
Container for a lifecycle rule.
sourcepub fn transition_default_minimum_object_size(
self,
input: TransitionDefaultMinimumObjectSize,
) -> Self
pub fn transition_default_minimum_object_size( self, input: TransitionDefaultMinimumObjectSize, ) -> Self
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.
sourcepub fn set_transition_default_minimum_object_size(
self,
input: Option<TransitionDefaultMinimumObjectSize>,
) -> Self
pub fn set_transition_default_minimum_object_size( self, input: Option<TransitionDefaultMinimumObjectSize>, ) -> Self
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.
sourcepub fn get_transition_default_minimum_object_size(
&self,
) -> &Option<TransitionDefaultMinimumObjectSize>
pub fn get_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.
sourcepub fn build(self) -> GetBucketLifecycleConfigurationOutput
pub fn build(self) -> GetBucketLifecycleConfigurationOutput
Consumes the builder and constructs a GetBucketLifecycleConfigurationOutput
.
Trait Implementations§
source§impl Clone for GetBucketLifecycleConfigurationOutputBuilder
impl Clone for GetBucketLifecycleConfigurationOutputBuilder
source§fn clone(&self) -> GetBucketLifecycleConfigurationOutputBuilder
fn clone(&self) -> GetBucketLifecycleConfigurationOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetBucketLifecycleConfigurationOutputBuilder
impl Default for GetBucketLifecycleConfigurationOutputBuilder
source§fn default() -> GetBucketLifecycleConfigurationOutputBuilder
fn default() -> GetBucketLifecycleConfigurationOutputBuilder
source§impl PartialEq for GetBucketLifecycleConfigurationOutputBuilder
impl PartialEq for GetBucketLifecycleConfigurationOutputBuilder
source§fn eq(&self, other: &GetBucketLifecycleConfigurationOutputBuilder) -> bool
fn eq(&self, other: &GetBucketLifecycleConfigurationOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetBucketLifecycleConfigurationOutputBuilder
Auto Trait Implementations§
impl Freeze for GetBucketLifecycleConfigurationOutputBuilder
impl RefUnwindSafe for GetBucketLifecycleConfigurationOutputBuilder
impl Send for GetBucketLifecycleConfigurationOutputBuilder
impl Sync for GetBucketLifecycleConfigurationOutputBuilder
impl Unpin for GetBucketLifecycleConfigurationOutputBuilder
impl UnwindSafe for GetBucketLifecycleConfigurationOutputBuilder
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