GET Bucket object lock configuration
Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket.
Request Syntax
GET /?object-lock HTTP/1.1 Host:
<bucket-name>
.s3.amazonaws.com Date:<Thu, 15 Nov 2016 00:17:21 GMT>
Authorization:<authorization-string>
(see Authenticating Requests (AWS Signature Version 4))
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request does not have a request body.
Response Syntax
<ObjectLockConfiguration> <ObjectLockEnabled>string</ObjectLockEnabled> <Rule> <DefaultRetention> <Mode>string</Mode> <Years>integer</Years> </DefaultRetention> </Rule> </ObjectLockConfiguration>
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
For more information about the response elements that this operation returns, see ObjectLockConfiguration.
Related Resources
Locking Objects in the Amazon Simple Storage Service Developer Guide.