Struct: s3.ObjectLockRule
Overview
The container element for an Object Lock rule.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
DefaultRetention *DefaultRetention
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetDefaultRetention(*DefaultRetention) *ObjectLockRule
operation
SetDefaultRetention sets the DefaultRetention field’s value.
-
String() string
operation
String returns the string representation.
Structure Field Details
DefaultRetention *DefaultRetention
`type:"structure"`
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
_ struct{}
`type:"structure"`
Method Details
func (s ObjectLockRule) 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”.
18808 18809 18810 |
// File 'service/s3/api.go', line 18808
|
func (s *ObjectLockRule) SetDefaultRetention(v *DefaultRetention) *ObjectLockRule
SetDefaultRetention sets the DefaultRetention field’s value.
18813 18814 18815 18816 |
// File 'service/s3/api.go', line 18813
|
func (s ObjectLockRule) 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”.
18799 18800 18801 |
// File 'service/s3/api.go', line 18799
|