Rule class

Specifies lifecycle rules for an Amazon S3 bucket. For more information, see Put Bucket Lifecycle Configuration in the Amazon Simple Storage Service API Reference. For examples, see Put Bucket Lifecycle Configuration Examples

Constructors

Rule({required String prefix, required ExpirationStatus status, AbortIncompleteMultipartUpload? abortIncompleteMultipartUpload, LifecycleExpiration? expiration, String? id, NoncurrentVersionExpiration? noncurrentVersionExpiration, NoncurrentVersionTransition? noncurrentVersionTransition, Transition? transition})
Rule.fromXml(XmlElement elem)
factory

Properties

abortIncompleteMultipartUpload AbortIncompleteMultipartUpload?
final
expiration LifecycleExpiration?
Specifies the expiration for the lifecycle of the object.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
Unique identifier for the rule. The value can't be longer than 255 characters.
final
noncurrentVersionExpiration NoncurrentVersionExpiration?
final
noncurrentVersionTransition NoncurrentVersionTransition?
final
prefix String
Object key prefix that identifies one or more objects to which this rule applies.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ExpirationStatus
If Enabled, the rule is currently being applied. If Disabled, the rule is not currently being applied.
final
transition Transition?
Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon Simple Storage Service Developer Guide.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXml(String elemName, {List<XmlAttribute>? attributes}) → XmlElement

Operators

operator ==(Object other) bool
The equality operator.
inherited