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”.
15558 15559 15560 |
// File 'service/s3/api.go', line 15558
|
func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration
SetDate sets the Date field's value.
15563 15564 15565 15566 |
// File 'service/s3/api.go', line 15563
|
func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration
SetDays sets the Days field's value.
15569 15570 15571 15572 |
// File 'service/s3/api.go', line 15569
|
func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration
SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.
15575 15576 15577 15578 |
// File 'service/s3/api.go', line 15575
|
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”.
15549 15550 15551 |
// File 'service/s3/api.go', line 15549
|