Struct: s3.NoncurrentVersionExpiration
Overview
Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions 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.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetNewerNoncurrentVersions(int64) *NoncurrentVersionExpiration
operation
SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field’s value.
-
SetNoncurrentDays(int64) *NoncurrentVersionExpiration
operation
SetNoncurrentDays sets the NoncurrentDays 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 When an Object Became Noncurrent (docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the Amazon Simple Storage Service Developer Guide.
_ struct{}
`type:"structure"`
Method Details
func (s NoncurrentVersionExpiration) 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”.
18434 18435 18436 |
// File 'service/s3/api.go', line 18434
|
func (s *NoncurrentVersionExpiration) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionExpiration
SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field’s value.
18439 18440 18441 18442 |
// File 'service/s3/api.go', line 18439
|
func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration
SetNoncurrentDays sets the NoncurrentDays field’s value.
18445 18446 18447 18448 |
// File 'service/s3/api.go', line 18445
|
func (s NoncurrentVersionExpiration) 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”.
18425 18426 18427 |
// File 'service/s3/api.go', line 18425
|