lib/plugins/aws/deploy/compile/events/apiGateway/lib/methods.js/getAuthorizerName
    const getAuthorizerName = (event) => {
      let authorizerName;

      if (typeof event.http.authorizer === 'string') {
        if (event.http.authorizer.indexOf(':') === -1) {
          authorizerName = event.http.authorizer;
        } else {
          const authorizerArn = event.http.authorizer;
          const splittedAuthorizerArn = authorizerArn.split(':');
          const splittedLambdaName = splittedAuthorizerArn[splittedAuthorizerArn
            .length - 1].split('-');
          authorizerName = splittedLambdaName[splittedLambdaName.length - 1];
        }
      } else if (typeof event.http.authorizer === 'object') {
        if (event.http.authorizer.arn) {
          const authorizerArn = event.http.authorizer.arn;
          const splittedAuthorizerArn = authorizerArn.split(':');
          const splittedLambdaName = splittedAuthorizerArn[splittedAuthorizerArn
            .length - 1].split('-');
          authorizerName = splittedLambdaName[splittedLambdaName.length - 1];
        } else if (event.http.authorizer.name) {
          authorizerName = event.http.authorizer.name;
        }
      }

      return authorizerName[0].toUpperCase() + authorizerName.substr(1);
    };