#[non_exhaustive]pub struct PutBucketLifecycleConfigurationInput {
pub bucket: Option<String>,
pub checksum_algorithm: Option<ChecksumAlgorithm>,
pub lifecycle_configuration: Option<BucketLifecycleConfiguration>,
pub expected_bucket_owner: Option<String>,
pub transition_default_minimum_object_size: Option<TransitionDefaultMinimumObjectSize>,
}
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: Option<String>
The name of the bucket for which to set the configuration.
checksum_algorithm: Option<ChecksumAlgorithm>
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
lifecycle_configuration: Option<BucketLifecycleConfiguration>
Container for lifecycle rules. You can add as many as 1,000 rules.
expected_bucket_owner: Option<String>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
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 PutBucketLifecycleConfigurationInput
impl PutBucketLifecycleConfigurationInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the bucket for which to set the configuration.
sourcepub fn checksum_algorithm(&self) -> Option<&ChecksumAlgorithm>
pub fn checksum_algorithm(&self) -> Option<&ChecksumAlgorithm>
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
sourcepub fn lifecycle_configuration(&self) -> Option<&BucketLifecycleConfiguration>
pub fn lifecycle_configuration(&self) -> Option<&BucketLifecycleConfiguration>
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
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 PutBucketLifecycleConfigurationInput
impl PutBucketLifecycleConfigurationInput
sourcepub fn builder() -> PutBucketLifecycleConfigurationInputBuilder
pub fn builder() -> PutBucketLifecycleConfigurationInputBuilder
Creates a new builder-style object to manufacture PutBucketLifecycleConfigurationInput
.
Trait Implementations§
source§impl Clone for PutBucketLifecycleConfigurationInput
impl Clone for PutBucketLifecycleConfigurationInput
source§fn clone(&self) -> PutBucketLifecycleConfigurationInput
fn clone(&self) -> PutBucketLifecycleConfigurationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PutBucketLifecycleConfigurationInput
impl PartialEq for PutBucketLifecycleConfigurationInput
source§fn eq(&self, other: &PutBucketLifecycleConfigurationInput) -> bool
fn eq(&self, other: &PutBucketLifecycleConfigurationInput) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PutBucketLifecycleConfigurationInput
Auto Trait Implementations§
impl Freeze for PutBucketLifecycleConfigurationInput
impl RefUnwindSafe for PutBucketLifecycleConfigurationInput
impl Send for PutBucketLifecycleConfigurationInput
impl Sync for PutBucketLifecycleConfigurationInput
impl Unpin for PutBucketLifecycleConfigurationInput
impl UnwindSafe for PutBucketLifecycleConfigurationInput
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