PutBucketEncryption

This action uses the encryption subresource to configure default encryption for an existing bucket.

For information about the Tebi encryption feature, see Server-Side Encryption overview.

You must have Full ACL to be able to call this action.

The following operations are related to PutBucketEncryption:

Request Syntax

 1PUT /?encryption HTTP/1.1
 2Host: <BUCKET>.s3.tebi.io
 3
 4<?xml version="1.0" encoding="UTF-8"?>
 5<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
 6    <Rule>
 7        <ApplyServerSideEncryptionByDefault>
 8            <SSEAlgorithm>string</SSEAlgorithm>
 9        </ApplyServerSideEncryptionByDefault>
10    </Rule>
11    ...
12</ServerSideEncryptionConfiguration>

The request uses the following URI parameters:

  • <BUCKET>: Name of the bucket from which the server-side encryption configuration is retrieved. Required.

The request accepts the following data in XML format:

  • ServerSideEncryptionConfiguration: Root level tag for the ServerSideEncryptionConfiguration parameters.

  • Rule: Container for information about a particular server-side encryption configuration rule.

Response Syntax

1HTTP/1.1 200
2Content-Length: 0

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

See Also

Refer here for more information.