lambdas.js
function getInvokedFunctionArnFunctionName(awsContext) {
  const invokedFunctionArn = awsContext && awsContext.invokedFunctionArn;
  const resources = getArnResources(invokedFunctionArn);
  return resources.resource;
}
function getInvokedFunctionArnFunctionName(awsContext) {
  const invokedFunctionArn = awsContext && awsContext.invokedFunctionArn;
  const resources = getArnResources(invokedFunctionArn);
  return resources.resource;
}
function getInvokedFunctionArnFunctionName ( awsContext ) { const invokedFunctionArn = awsContext && awsContext . invokedFunctionArn ; const resources = getArnResources ( invokedFunctionArn ) ; return resources . resource ; }
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
Extracts and returns the function name from the given AWS context s invokedFunctionArn .