Struct: s3.LifecycleExpiration
Overview
Container for the expiration for the lifecycle of the object.
For more information see, Managing your storage lifecycle (docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) in the Amazon S3 User Guide.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Date *time.Time
Indicates at what date the object is to be moved or deleted.
-
Days *int64
Indicates the lifetime, in days, of the objects that are subject to the rule.
-
ExpiredObjectDeleteMarker *bool
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetDate(time.Time) *LifecycleExpiration
operation
SetDate sets the Date field’s value.
-
SetDays(int64) *LifecycleExpiration
operation
SetDays sets the Days field’s value.
-
SetExpiredObjectDeleteMarker(bool) *LifecycleExpiration
operation
SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field’s value.
-
String() string
operation
String returns the string representation.
Structure Field Details
Date *time.Time
`type:"timestamp" timestampFormat:"iso8601"`
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
Days *int64
`type:"integer"`
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
ExpiredObjectDeleteMarker *bool
`type:"boolean"`
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
_ struct{}
`type:"structure"`
Method Details
func (s LifecycleExpiration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
15709 15710 15711 |
// File 'service/s3/api.go', line 15709
|
func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration
SetDate sets the Date field’s value.
15714 15715 15716 15717 |
// File 'service/s3/api.go', line 15714
|
func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration
SetDays sets the Days field’s value.
15720 15721 15722 15723 |
// File 'service/s3/api.go', line 15720
|
func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration
SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field’s value.
15726 15727 15728 15729 |
// File 'service/s3/api.go', line 15726
|
func (s LifecycleExpiration) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
15700 15701 15702 |
// File 'service/s3/api.go', line 15700
|