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”.
22255 22256 22257 |
// File 'service/s3/api.go', line 22255
|
func (s *Transition) SetDate(v time.Time) *Transition
SetDate sets the Date field's value.
22260 22261 22262 22263 |
// File 'service/s3/api.go', line 22260
|
func (s *Transition) SetDays(v int64) *Transition
SetDays sets the Days field's value.
22266 22267 22268 22269 |
// File 'service/s3/api.go', line 22266
|
func (s *Transition) SetStorageClass(v string) *Transition
SetStorageClass sets the StorageClass field's value.
22272 22273 22274 22275 |
// File 'service/s3/api.go', line 22272
|
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”.
22246 22247 22248 |
// File 'service/s3/api.go', line 22246
|