1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00
OpenIntegrations/docs/en/examples/S3/PutBucketEncryption.txt

17 lines
634 B
Plaintext
Raw Normal View History

2024-11-14 17:27:44 +03:00
 URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
2024-11-15 13:24:46 +03:00
Name = "opi-newbucket2";
2024-11-14 17:27:44 +03:00
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
2024-11-18 10:27:37 +03:00
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig);