1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/S3/PutBucketEncryption.txt

19 lines
802 B
Plaintext
Raw Normal View History

2025-06-29 14:35:33 +03:00
 URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
2024-11-14 17:27:44 +03:00
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
2025-09-01 14:51:24 +03:00
Directory = True; // Formation URL in path-style
Name = "opi-dirbucket3";
2025-09-17 12:42:49 +03:00
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
2024-11-14 17:27:44 +03:00
2025-09-01 14:51:24 +03:00
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, Directory);