Struct aws_sdk_s3control::model::LifecycleRule
source · #[non_exhaustive]pub struct LifecycleRule { /* private fields */ }
Expand description
The container for the Outposts bucket lifecycle rule.
Implementations§
source§impl LifecycleRule
impl LifecycleRule
sourcepub fn expiration(&self) -> Option<&LifecycleExpiration>
pub fn expiration(&self) -> Option<&LifecycleExpiration>
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
Unique identifier for the rule. The value cannot be longer than 255 characters.
sourcepub fn filter(&self) -> Option<&LifecycleRuleFilter>
pub fn filter(&self) -> Option<&LifecycleRuleFilter>
The container for the filter of lifecycle rule.
sourcepub fn status(&self) -> Option<&ExpirationStatus>
pub fn status(&self) -> Option<&ExpirationStatus>
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
sourcepub fn transitions(&self) -> Option<&[Transition]>
pub fn transitions(&self) -> Option<&[Transition]>
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
sourcepub fn noncurrent_version_transitions(
&self
) -> Option<&[NoncurrentVersionTransition]>
pub fn noncurrent_version_transitions(
&self
) -> Option<&[NoncurrentVersionTransition]>
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
sourcepub fn noncurrent_version_expiration(
&self
) -> Option<&NoncurrentVersionExpiration>
pub fn noncurrent_version_expiration(
&self
) -> Option<&NoncurrentVersionExpiration>
The noncurrent version expiration of the lifecycle rule.
This is not supported by Amazon S3 on Outposts buckets.
sourcepub fn abort_incomplete_multipart_upload(
&self
) -> Option<&AbortIncompleteMultipartUpload>
pub fn abort_incomplete_multipart_upload(
&self
) -> Option<&AbortIncompleteMultipartUpload>
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy in the Amazon S3 User Guide.
source§impl LifecycleRule
impl LifecycleRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LifecycleRule
.
Examples found in repository?
3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712
pub fn deser_structure_crate_model_lifecycle_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LifecycleRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LifecycleRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Expiration") /* Expiration com.amazonaws.s3control#LifecycleRule$Expiration */ => {
let var_153 =
Some(
crate::xml_deser::deser_structure_crate_model_lifecycle_expiration(&mut tag)
?
)
;
builder = builder.set_expiration(var_153);
}
,
s if s.matches("ID") /* ID com.amazonaws.s3control#LifecycleRule$ID */ => {
let var_154 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_id(var_154);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3control#LifecycleRule$Filter */ => {
let var_155 =
Some(
crate::xml_deser::deser_structure_crate_model_lifecycle_rule_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_155);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3control#LifecycleRule$Status */ => {
let var_156 =
Some(
Result::<crate::model::ExpirationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ExpirationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_156);
}
,
s if s.matches("Transitions") /* Transitions com.amazonaws.s3control#LifecycleRule$Transitions */ => {
let var_157 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3control_transition_list(&mut tag)
?
)
;
builder = builder.set_transitions(var_157);
}
,
s if s.matches("NoncurrentVersionTransitions") /* NoncurrentVersionTransitions com.amazonaws.s3control#LifecycleRule$NoncurrentVersionTransitions */ => {
let var_158 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3control_noncurrent_version_transition_list(&mut tag)
?
)
;
builder = builder.set_noncurrent_version_transitions(var_158);
}
,
s if s.matches("NoncurrentVersionExpiration") /* NoncurrentVersionExpiration com.amazonaws.s3control#LifecycleRule$NoncurrentVersionExpiration */ => {
let var_159 =
Some(
crate::xml_deser::deser_structure_crate_model_noncurrent_version_expiration(&mut tag)
?
)
;
builder = builder.set_noncurrent_version_expiration(var_159);
}
,
s if s.matches("AbortIncompleteMultipartUpload") /* AbortIncompleteMultipartUpload com.amazonaws.s3control#LifecycleRule$AbortIncompleteMultipartUpload */ => {
let var_160 =
Some(
crate::xml_deser::deser_structure_crate_model_abort_incomplete_multipart_upload(&mut tag)
?
)
;
builder = builder.set_abort_incomplete_multipart_upload(var_160);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LifecycleRule
impl Clone for LifecycleRule
source§fn clone(&self) -> LifecycleRule
fn clone(&self) -> LifecycleRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more