lib/plugins/aws/deployFunction/index.js/AwsDeployFunction/constructor
class AwsDeployFunction:  constructor(serverless, options) {
    this.serverless = serverless;
    this.options = options || {};
    this.provider = this.serverless.getProvider('aws');

    this.pkg = new Package(this.serverless, this.options);

    Object.assign(this, validate);

    this.hooks = {
      'deploy:function:deploy': () => BbPromise.bind(this)
        .then(this.validate)
        .then(this.logStatus)
        .then(this.checkIfFunctionExists)
        .then(this.zipFunction)
        .then(this.deployFunction)
        .then(this.cleanup),
    };
  }