code: function getAlias(awsContext) {
    const invokedFunctionArn = awsContext && awsContext.invokedFunctionArn;
    const resources = getArnResources(invokedFunctionArn);
  
    const versionFromContext = awsContext && awsContext.functionVersion;
  
    const aliasOrVersion = resources.aliasOrVersion;
    return aliasOrVersion && aliasOrVersion !== versionFromContext ? //&& aliasOrVersion !== version ?
      aliasOrVersion : '';
  }
docs: Returns the alias (if any) from the given AWS context, which was passed to your Lambda function.
  
  Notes:
  - An invoked function ARN might be either an unqualified or qualified function ARN.
  - A qualified function ARN has a version or alias suffix, and maps to that version or alias.
  - An unqualified function ARN has NO version or alias suffix) and maps to the $LATEST version.
  
  @param {AWSContext} awsContext - the AWS context
  @returns {string} the alias (if any); otherwise an empty string