AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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
This action is not supported by Amazon S3 on Outposts.
When the Object Lock retention mode is set to compliance, you need
s3:BypassGovernanceRetention permissions. For other requests to
s3:PutObjectRetention permissions are required.
For .NET Core this operation is only available in asynchronous form. Please refer to PutObjectRetentionAsync.
public abstract PutObjectRetentionResponse PutObjectRetention( PutObjectRetentionRequest request )
Container for the necessary parameters to execute the PutObjectRetention service method.
Supported in: 4.5, 4.0, 3.5