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”.
21364 21365 21366 |
// File 'service/s3/api.go', line 21364
|
func (s *PutObjectRetentionInput) SetBucket(v string) *PutObjectRetentionInput
SetBucket sets the Bucket field’s value.
21391 21392 21393 21394 |
// File 'service/s3/api.go', line 21391
|
func (s *PutObjectRetentionInput) SetBypassGovernanceRetention(v bool) *PutObjectRetentionInput
SetBypassGovernanceRetention sets the BypassGovernanceRetention field’s value.
21404 21405 21406 21407 |
// File 'service/s3/api.go', line 21404
|
func (s *PutObjectRetentionInput) SetExpectedBucketOwner(v string) *PutObjectRetentionInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
21410 21411 21412 21413 |
// File 'service/s3/api.go', line 21410
|
func (s *PutObjectRetentionInput) SetKey(v string) *PutObjectRetentionInput
SetKey sets the Key field’s value.
21416 21417 21418 21419 |
// File 'service/s3/api.go', line 21416
|
func (s *PutObjectRetentionInput) SetRequestPayer(v string) *PutObjectRetentionInput
SetRequestPayer sets the RequestPayer field’s value.
21422 21423 21424 21425 |
// File 'service/s3/api.go', line 21422
|
func (s *PutObjectRetentionInput) SetRetention(v *ObjectLockRetention) *PutObjectRetentionInput
SetRetention sets the Retention field’s value.
21428 21429 21430 21431 |
// File 'service/s3/api.go', line 21428
|
func (s *PutObjectRetentionInput) SetVersionId(v string) *PutObjectRetentionInput
SetVersionId sets the VersionId field’s value.
21434 21435 21436 21437 |
// File 'service/s3/api.go', line 21434
|
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”.
21355 21356 21357 |
// File 'service/s3/api.go', line 21355
|
func (s *PutObjectRetentionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 |
// File 'service/s3/api.go', line 21369
|