Struct: s3.Transition
Overview
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 (docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the Amazon S3 User Guide.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Date *time.Time
Indicates when objects are transitioned to the specified storage class.
-
Days *int64
Indicates the number of days after creation when objects are transitioned to the specified storage class.
-
StorageClass *string
The storage class to which you want the object to transition.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetDate(time.Time) *Transition
operation
SetDate sets the Date field's value.
-
SetDays(int64) *Transition
operation
SetDays sets the Days field's value.
-
SetStorageClass(string) *Transition
operation
SetStorageClass sets the StorageClass field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
Date *time.Time
`type:"timestamp" timestampFormat:"iso8601"`
Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
Days *int64
`type:"integer"`
Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
StorageClass *string
`type:"string" enum:"TransitionStorageClass"`
The storage class to which you want the object to transition.
_ struct{}
`type:"structure"`
Method Details
func (s Transition) 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”.
22018 22019 22020 |
// File 'service/s3/api.go', line 22018
|
func (s *Transition) SetDate(v time.Time) *Transition
SetDate sets the Date field's value.
22023 22024 22025 22026 |
// File 'service/s3/api.go', line 22023
|
func (s *Transition) SetDays(v int64) *Transition
SetDays sets the Days field's value.
22029 22030 22031 22032 |
// File 'service/s3/api.go', line 22029
|
func (s *Transition) SetStorageClass(v string) *Transition
SetStorageClass sets the StorageClass field's value.
22035 22036 22037 22038 |
// File 'service/s3/api.go', line 22035
|
func (s Transition) 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”.
22009 22010 22011 |
// File 'service/s3/api.go', line 22009
|