Struct: s3.DefaultRetention
Overview
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
-
The DefaultRetention settings require both a mode and a period.
-
The DefaultRetention period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Days *int64
The number of days that you want to specify for the default retention period.
-
Mode *string
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
-
Years *int64
The number of years that you want to specify for the default retention period.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetDays(int64) *DefaultRetention
operation
SetDays sets the Days field’s value.
-
SetMode(string) *DefaultRetention
operation
SetMode sets the Mode field’s value.
-
SetYears(int64) *DefaultRetention
operation
SetYears sets the Years field’s value.
-
String() string
operation
String returns the string representation.
Structure Field Details
Days *int64
`type:"integer"`
The number of days that you want to specify for the default retention period. Must be used with Mode.
Mode *string
`type:"string" enum:"ObjectLockRetentionMode"`
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.
Years *int64
`type:"integer"`
The number of years that you want to specify for the default retention period. Must be used with Mode.
_ struct{}
`type:"structure"`
Method Details
func (s DefaultRetention) 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”.
9994 9995 9996 |
// File 'service/s3/api.go', line 9994
|
func (s *DefaultRetention) SetDays(v int64) *DefaultRetention
SetDays sets the Days field’s value.
9999 10000 10001 10002 |
// File 'service/s3/api.go', line 9999
|
func (s *DefaultRetention) SetMode(v string) *DefaultRetention
SetMode sets the Mode field’s value.
10005 10006 10007 10008 |
// File 'service/s3/api.go', line 10005
|
func (s *DefaultRetention) SetYears(v int64) *DefaultRetention
SetYears sets the Years field’s value.
10011 10012 10013 10014 |
// File 'service/s3/api.go', line 10011
|
func (s DefaultRetention) 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”.
9985 9986 9987 |
// File 'service/s3/api.go', line 9985
|