public void execute ( ) throws MojoExecutionException { super . execute ( ) ; try { lambdaFunctions . forEach ( context -> { try { deleteTriggers . andThen ( deleteFunction ) . apply ( context . withFunctionArn ( lambdaClient . getFunction ( new GetFunctionRequest ( ) . withFunctionName ( context . getFunctionName ( ) ) ) . getConfiguration ( ) . getFunctionArn ( ) ) ) ; } catch ( Exception e ) { getLog ( ) . error ( e . getMessage ( ) ) ; } } ) ; } catch ( Exception e ) { getLog ( ) . error ( e . getMessage ( ) , e ) ; } }
The entry point into the AWS lambda function .