pub struct AwsS3BucketBucketLifecycleConfigurationRulesDetails {
pub abort_incomplete_multipart_upload: Option<AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails>,
pub expiration_date: Option<String>,
pub expiration_in_days: Option<i64>,
pub expired_object_delete_marker: Option<bool>,
pub filter: Option<AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails>,
pub id: Option<String>,
pub noncurrent_version_expiration_in_days: Option<i64>,
pub noncurrent_version_transitions: Option<Vec<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails>>,
pub prefix: Option<String>,
pub status: Option<String>,
pub transitions: Option<Vec<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails>>,
}
Expand description
Configuration for a lifecycle rule.
Fields
abort_incomplete_multipart_upload: Option<AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails>
How Amazon S3 responds when a multipart upload is incomplete. Specifically, provides a number of days before Amazon S3 cancels the entire upload.
expiration_date: Option<String>
The date when objects are moved or deleted.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
expiration_in_days: Option<i64>
The length in days of the lifetime for objects that are subject to the rule.
expired_object_delete_marker: Option<bool>
Whether Amazon S3 removes a delete marker that has no noncurrent versions. If set to true
, the delete marker is expired. If set to false
, the policy takes no action.
If you provide ExpiredObjectDeleteMarker
, you cannot provide ExpirationInDays
or ExpirationDate
.
filter: Option<AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails>
Identifies the objects that a rule applies to.
id: Option<String>
The unique identifier of the rule.
noncurrent_version_expiration_in_days: Option<i64>
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
noncurrent_version_transitions: Option<Vec<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails>>
Transition rules that describe when noncurrent objects transition to a specified storage class.
prefix: Option<String>
A prefix that identifies one or more objects that the rule applies to.
status: Option<String>
The current status of the rule. Indicates whether the rule is currently being applied.
transitions: Option<Vec<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails>>
Transition rules that indicate when objects transition to a specified storage class.
Trait Implementations
sourceimpl Clone for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl Clone for AwsS3BucketBucketLifecycleConfigurationRulesDetails
sourcefn clone(&self) -> AwsS3BucketBucketLifecycleConfigurationRulesDetails
fn clone(&self) -> AwsS3BucketBucketLifecycleConfigurationRulesDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl Default for AwsS3BucketBucketLifecycleConfigurationRulesDetails
sourcefn default() -> AwsS3BucketBucketLifecycleConfigurationRulesDetails
fn default() -> AwsS3BucketBucketLifecycleConfigurationRulesDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl<'de> Deserialize<'de> for AwsS3BucketBucketLifecycleConfigurationRulesDetails
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AwsS3BucketBucketLifecycleConfigurationRulesDetails> for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl PartialEq<AwsS3BucketBucketLifecycleConfigurationRulesDetails> for AwsS3BucketBucketLifecycleConfigurationRulesDetails
sourcefn eq(
&self,
other: &AwsS3BucketBucketLifecycleConfigurationRulesDetails
) -> bool
fn eq(
&self,
other: &AwsS3BucketBucketLifecycleConfigurationRulesDetails
) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(
&self,
other: &AwsS3BucketBucketLifecycleConfigurationRulesDetails
) -> bool
fn ne(
&self,
other: &AwsS3BucketBucketLifecycleConfigurationRulesDetails
) -> bool
This method tests for !=
.
impl StructuralPartialEq for AwsS3BucketBucketLifecycleConfigurationRulesDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl Send for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl Sync for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl Unpin for AwsS3BucketBucketLifecycleConfigurationRulesDetails
impl UnwindSafe for AwsS3BucketBucketLifecycleConfigurationRulesDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more