Skip to content

Commit 6791175

Browse files
committed
feat(storage): update
1 parent e19df90 commit 6791175

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

pages/object-storage/api-cli/bucket-operations.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,39 @@ Authorization: authorization string
577577
</CORSConfiguration>
578578
```
579579

580+
## PutBucketEncryption
581+
582+
This operation configures default encryption and Amazon S3 Bucket Keys for an existing bucket.
583+
584+
<Message type="note">
585+
If the operation is successful, no output will be returned.
586+
</Message>
587+
588+
```xml no-copy
589+
PUT /?encryption HTTP/1.1
590+
Host: Bucket.s3.amazonaws.com
591+
Content-MD5: ContentMD5
592+
x-amz-sdk-checksum-algorithm: ChecksumAlgorithm
593+
x-amz-expected-bucket-owner: ExpectedBucketOwner
594+
<?xml version="1.0" encoding="UTF-8"?>
595+
<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
596+
<Rule>
597+
<ApplyServerSideEncryptionByDefault>
598+
<KMSMasterKeyID>string</KMSMasterKeyID>
599+
<SSEAlgorithm>string</SSEAlgorithm>
600+
</ApplyServerSideEncryptionByDefault>
601+
<BucketKeyEnabled>boolean</BucketKeyEnabled>
602+
</Rule>
603+
...
604+
</ServerSideEncryptionConfiguration>
605+
```
606+
607+
**CLI command**
608+
609+
```bash
610+
aws s3api put-bucket-encryption --bucket BucketName --server-side-encryption-configuration <value>
611+
```
612+
580613
## PutBucketLifecycleConfiguration
581614

582615
**Sample request**

pages/object-storage/how-to/host-healthcare-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To host healthcare data in compliance with HDS requirements, you must create a n
4848

4949
9. Click **Create bucket** to confirm.
5050

51-
10. If you use an encryption mechanism other than [SSE-C](#encryption-with-sse-c), enable bucket encryption using the [PutBucketEncryption]() action.
51+
10. If you use an encryption mechanism other than [SSE-C](#encryption-with-sse-c), enable bucket encryption using the [PutBucketEncryption](/object-storage/api-cli/bucket-operations/#putbucketencryption) action.
5252

5353
Your bucket is now ready to store healthcare data. Before uploading objects, refer to the sections below for information on how to encrypt and delete your objects in compliance with regulations.
5454

0 commit comments

Comments
 (0)