Struct: s3.NoncurrentVersionTransition
Overview
Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class at a specific period in the object's lifetime.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
- NewerNoncurrentVersions *int64
-
NoncurrentDays *int64
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action.
-
StorageClass *string
The class of storage used to store the object.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetNewerNoncurrentVersions(int64) *NoncurrentVersionTransition
operation
SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field's value.
-
SetNoncurrentDays(int64) *NoncurrentVersionTransition
operation
SetNoncurrentDays sets the NoncurrentDays field's value.
-
SetStorageClass(string) *NoncurrentVersionTransition
operation
SetStorageClass sets the StorageClass field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
NewerNoncurrentVersions *int64
`type:"integer"`
NoncurrentDays *int64
`type:"integer"`
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent (docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the Amazon S3 User Guide.
StorageClass *string
`type:"string" enum:"TransitionStorageClass"`
The class of storage used to store the object.
_ struct{}
`type:"structure"`
Method Details
func (s NoncurrentVersionTransition) 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”.
18110 18111 18112 |
// File 'service/s3/api.go', line 18110
|
func (s *NoncurrentVersionTransition) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionTransition
SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field's value.
18115 18116 18117 18118 |
// File 'service/s3/api.go', line 18115
|
func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition
SetNoncurrentDays sets the NoncurrentDays field's value.
18121 18122 18123 18124 |
// File 'service/s3/api.go', line 18121
|
func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition
SetStorageClass sets the StorageClass field's value.
18127 18128 18129 18130 |
// File 'service/s3/api.go', line 18127
|
func (s NoncurrentVersionTransition) 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”.
18101 18102 18103 |
// File 'service/s3/api.go', line 18101
|