UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

22 lines (17 loc) 559 B
'use strict'; module.exports = (putParams, deploymentBucketOptions) => { const encryptionFields = [ ['serverSideEncryption', 'ServerSideEncryption'], ['sseCustomerAlgorithim', 'SSECustomerAlgorithm'], ['sseCustomerKey', 'SSECustomerKey'], ['sseCustomerKeyMD5', 'SSECustomerKeyMD5'], ['sseKMSKeyId', 'SSEKMSKeyId'], ]; const params = putParams; encryptionFields.forEach((element) => { if (deploymentBucketOptions[element[0]]) { params[element[1]] = deploymentBucketOptions[element[0]]; } }); return params; };