code: func NewCustomResourceLambdaHandler(resourceType string, logger *logrus.Logger) interface{} {
  
  	// TODO - eliminate this factory stuff and just register
  	// the custom resources as normal lambda handlers...
  	var lambdaCmd CustomResourceCommand
  	cfResource := customTypeProvider(resourceType)
  	if cfResource != nil {
  		cmd, cmdOK := cfResource.(CustomResourceCommand)
  		if cmdOK {
  			lambdaCmd = cmd
  		}
  	}
  	if lambdaCmd == nil {
  		return errors.Errorf("Custom resource handler not found for type: %s", resourceType)
  	}
  	return CloudFormationLambdaCustomResourceHandler(lambdaCmd, logger)
  }
docs: // NewCustomResourceLambdaHandler returns a handler for the given
  // type