Aliyun.Oss.Bucket.Encryption.put
You're seeing just the function
put
, go back to Aliyun.Oss.Bucket.Encryption module for more information.
Link to this function
put(bucket, opts \\ [])
Specs
PutBucketEncryption接口用于配置Bucket的加密规则。
Options
:algorithm
- Accept value::aes256
,:kms
, default is:aes256
:kms_master_key_id
- Should and only be set if algorithm is:kms
Examples
iex> Aliyun.Oss.Bucket.Encryption.put("some-bucket", algorithm: :aes256)
{:ok,
%Aliyun.Oss.Client.Response{
data: "",
headers: [
{"Server", "AliyunOSS"},
{"Date", "Fri, 11 Jan 2019 05:05:50 GMT"},
{"Content-Length", "0"},
{"Connection", "keep-alive"},
{"x-oss-request-id", "5C0000000000000000000000"},
{"x-oss-server-time", "63"}
]
}}