Struct aws_sdk_s3::model::NoncurrentVersionExpiration
source · [−]#[non_exhaustive]pub struct NoncurrentVersionExpiration { /* private fields */ }
Expand description
Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.
Implementations
sourceimpl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn noncurrent_days(&self) -> i32
pub fn noncurrent_days(&self) -> i32
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. The value must be a non-zero positive integer. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.
sourcepub fn newer_noncurrent_versions(&self) -> i32
pub fn newer_noncurrent_versions(&self) -> i32
Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.
sourceimpl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NoncurrentVersionExpiration
.
Trait Implementations
sourceimpl Clone for NoncurrentVersionExpiration
impl Clone for NoncurrentVersionExpiration
sourcefn clone(&self) -> NoncurrentVersionExpiration
fn clone(&self) -> NoncurrentVersionExpiration
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more