code: function getInvokedFunctionArnFunctionName(awsContext) {
    const invokedFunctionArn = awsContext && awsContext.invokedFunctionArn;
    const resources = getArnResources(invokedFunctionArn);
    return resources.resource;
  }
docs: Extracts and returns the function name from the given AWS context's invokedFunctionArn.
  @param {AWSContext} awsContext - the AWS context
  @returns {string} the extracted function name