lib/actions.js
function stackParameters(name, changeSetType, templateUrl, parameters) {
  return {
    StackName: name,
    Capabilities: [
      'CAPABILITY_IAM',
      'CAPABILITY_NAMED_IAM'
    ],
    ChangeSetType: changeSetType,
    TemplateURL: templateUrl,
    Parameters: Object.keys(parameters).map(function(key) {
      return { ParameterKey: key, ParameterValue: parameters[key] };
    })
  };
}
function stackParameters(name, changeSetType, templateUrl, parameters) {
  return {
    StackName: name,
    Capabilities: [
      'CAPABILITY_IAM',
      'CAPABILITY_NAMED_IAM'
    ],
    ChangeSetType: changeSetType,
    TemplateURL: templateUrl,
    Parameters: Object.keys(parameters).map(function(key) {
      return { ParameterKey: key, ParameterValue: parameters[key] };
    })
  };
}
function stackParameters ( name , changeSetType , templateUrl , parameters ) { return { StackName : name , Capabilities : [ 'CAPABILITY_IAM' , 'CAPABILITY_NAMED_IAM' ] , ChangeSetType : changeSetType , TemplateURL : templateUrl , Parameters : Object . keys ( parameters ) . map ( function ( key ) { return { ParameterKey : key , ParameterValue : parameters [ key ] } ; } ) } ; }
Build parameters object for CloudFormation requests

@private
@param {string} name - the name of the stack
@param {string} changeSetType - the type of changeset, either UPDATE or CREATE
@param {string} templateUrl - the URL for the template on S3
@param {object} parameters - name/value pairs defining the desired stack configuration
@returns {object} params - an object for use in create/update/delete stack requests
Build parameters object for CloudFormation requests