Struct: s3.PutObjectRetentionInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The bucket name that contains the object you want to apply this Object Retention configuration to.
-
BypassGovernanceRetention *bool
Ignored by COS.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
The key name for the object that you want to apply this Object Retention configuration to.
-
RequestPayer *string
Ignored by COS.
-
Retention *ObjectLockRetention
The container element for the Object Retention configuration.
-
VersionId *string
The version ID for the object that you want to apply this Object Retention configuration to.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *PutObjectRetentionInput
operation
SetBucket sets the Bucket field's value.
-
SetBypassGovernanceRetention(bool) *PutObjectRetentionInput
operation
SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
-
SetExpectedBucketOwner(string) *PutObjectRetentionInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetKey(string) *PutObjectRetentionInput
operation
SetKey sets the Key field's value.
-
SetRequestPayer(string) *PutObjectRetentionInput
operation
SetRequestPayer sets the RequestPayer field's value.
-
SetRetention(*ObjectLockRetention) *PutObjectRetentionInput
operation
SetRetention sets the Retention field's value.
-
SetVersionId(string) *PutObjectRetentionInput
operation
SetVersionId sets the VersionId field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The bucket name that contains the object you want to apply this Object Retention configuration to.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.
Bucket is a required field
BypassGovernanceRetention *bool
`location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"`
Ignored by COS.
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
Key *string
`location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
The key name for the object that you want to apply this Object Retention configuration to.
Key is a required field
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Ignored by COS.
Retention *ObjectLockRetention
`locationName:"Retention" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
The container element for the Object Retention configuration.
VersionId *string
`location:"querystring" locationName:"versionId" type:"string"`
The version ID for the object that you want to apply this Object Retention configuration to.
_ struct{}
`locationName:"PutObjectRetentionRequest" type:"structure" payload:"Retention"`
Method Details
func (s PutObjectRetentionInput) 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”.
20599 20600 20601 |
// File 'service/s3/api.go', line 20599
|
func (s *PutObjectRetentionInput) SetBucket(v string) *PutObjectRetentionInput
SetBucket sets the Bucket field's value.
20626 20627 20628 20629 |
// File 'service/s3/api.go', line 20626
|
func (s *PutObjectRetentionInput) SetBypassGovernanceRetention(v bool) *PutObjectRetentionInput
SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
20639 20640 20641 20642 |
// File 'service/s3/api.go', line 20639
|
func (s *PutObjectRetentionInput) SetExpectedBucketOwner(v string) *PutObjectRetentionInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
20645 20646 20647 20648 |
// File 'service/s3/api.go', line 20645
|
func (s *PutObjectRetentionInput) SetKey(v string) *PutObjectRetentionInput
SetKey sets the Key field's value.
20651 20652 20653 20654 |
// File 'service/s3/api.go', line 20651
|
func (s *PutObjectRetentionInput) SetRequestPayer(v string) *PutObjectRetentionInput
SetRequestPayer sets the RequestPayer field's value.
20657 20658 20659 20660 |
// File 'service/s3/api.go', line 20657
|
func (s *PutObjectRetentionInput) SetRetention(v *ObjectLockRetention) *PutObjectRetentionInput
SetRetention sets the Retention field's value.
20663 20664 20665 20666 |
// File 'service/s3/api.go', line 20663
|
func (s *PutObjectRetentionInput) SetVersionId(v string) *PutObjectRetentionInput
SetVersionId sets the VersionId field's value.
20669 20670 20671 20672 |
// File 'service/s3/api.go', line 20669
|
func (s PutObjectRetentionInput) 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”.
20590 20591 20592 |
// File 'service/s3/api.go', line 20590
|
func (s *PutObjectRetentionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 |
// File 'service/s3/api.go', line 20604
|