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

17 lines
773 B
Plaintext
Raw Normal View History

2025-06-27 11:47:43 +03:00
 URL = FunctionParameters["S3_URL"];
AccessKey = FunctionParameters["S3_AccessKey"];
SecretKey = FunctionParameters["S3_SecretKey"];
2024-11-14 17:27:44 +03:00
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/"">
2025-03-06 20:58:59 +03:00
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
2024-11-14 17:27:44 +03:00
2024-11-18 10:27:37 +03:00
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig);