lib/cf-resources/lambda-version-resource/index.js
function getFunction(name) {
    return new Promise((resolve, reject) => {
        lambda.getFunctionConfiguration({
            FunctionName: name
        }, function(err, data) {
            if (err) return reject(err);
            resolve(data);
        });
    });
}
function getFunction(name) {
    return new Promise((resolve, reject) => {
        lambda.getFunctionConfiguration({
            FunctionName: name
        }, function(err, data) {
            if (err) return reject(err);
            resolve(data);
        });
    });
}
function getFunction ( name ) { return new Promise ( ( resolve , reject ) => { lambda . getFunctionConfiguration ( { FunctionName : name } , function ( err , data ) { if ( err ) return reject ( err ) ; resolve ( data ) ; } ) ; } ) ; }
Get function configuration by its name

@return {Promise} which resolves into the function configuration
Get function configuration by its name