This operation is not supported for directory buckets.
Places an Object Retention configuration on an object. For more information, see Locking Objects. Users or
accounts require the s3:PutObjectRetention permission in order to place an Object Retention
configuration on objects. Bypassing a Governance Retention configuration requires the
s3:BypassGovernanceRetention permission.
This functionality is not supported for Amazon S3 on Outposts.
You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.
Example
Use a bare-bones client and the command you need to make an API call.
This operation is not supported for directory buckets.
Places an Object Retention configuration on an object. For more information, see Locking Objects. Users or accounts require the
s3:PutObjectRetentionpermission in order to place an Object Retention configuration on objects. Bypassing a Governance Retention configuration requires thes3:BypassGovernanceRetentionpermission.This functionality is not supported for Amazon S3 on Outposts.
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.Example
Use a bare-bones client and the command you need to make an API call.
Param: PutObjectRetentionCommandInput
PutObjectRetentionCommandInput
Returns
PutObjectRetentionCommandOutput
See
inputshape.responseshape.configshape.Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.