This commit is contained in:
Kazunori Kojima 2015-10-07 23:39:08 +09:00
parent 576b2d1109
commit 9186c29dd8
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func (c *S3Client) Put(data []byte) error {
if c.serverSideEncryption {
if c.kmsKeyID != "" {
i.SSEKMSKeyID = &c.kmsKeyID
i.SSEKMSKeyId = &c.kmsKeyID
i.ServerSideEncryption = aws.String("aws:kms")
} else {
i.ServerSideEncryption = aws.String("AES256")