class Aws::S3::Types::LifecycleRule


@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRule AWS API Documentation
@return [Types::AbortIncompleteMultipartUpload]
@!attribute [rw] abort_incomplete_multipart_upload
@return [Types::NoncurrentVersionExpiration]
@!attribute [rw] noncurrent_version_expiration
@return [Array<Types::NoncurrentVersionTransition>]
@!attribute [rw] noncurrent_version_transitions
@return [Array<Types::Transition>]
@!attribute [rw] transitions
@return [String]
‘Disabled’, the rule is not currently being applied.
If ‘Enabled’, the rule is currently being applied. If
@!attribute [rw] status
@return [Types::LifecycleRuleFilter]
@!attribute [rw] filter
@return [String]
This is No longer used; use Filter instead.
Prefix identifying one or more objects to which the rule applies.
@!attribute [rw] prefix
@return [String]
characters.
Unique identifier for the rule. The value cannot be longer than 255
@!attribute [rw] id
@return [Types::LifecycleExpiration]
@!attribute [rw] expiration
}
},
days_after_initiation: 1,
abort_incomplete_multipart_upload: {
},
noncurrent_days: 1,
noncurrent_version_expiration: {
],
},
storage_class: “GLACIER”, # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
noncurrent_days: 1,
{
noncurrent_version_transitions: [
],
},
storage_class: “GLACIER”, # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
days: 1,
date: Time.now,
{
transitions: [
status: “Enabled”, # required, accepts Enabled, Disabled
},
},
],
},
value: “Value”, # required
key: “ObjectKey”, # required
{
tags: [
prefix: “Prefix”,
and: {
},
value: “Value”, # required
key: “ObjectKey”, # required
tag: {
prefix: “Prefix”,
filter: {
prefix: “Prefix”,
id: “ID”,
},
expired_object_delete_marker: false,
days: 1,
date: Time.now,
expiration: {
{
data as a hash:
@note When making an API call, you may pass LifecycleRule