Class LambdaUtil

java.lang.Object
io.quarkus.amazon.lambda.deployment.LambdaUtil

public class LambdaUtil extends Object
  • Constructor Details

    • LambdaUtil

      public LambdaUtil()
  • Method Details

    • artifactToLambda

      public static String artifactToLambda(String basename)
      Strips period, dash, and numbers. Turns characters after to uppercase. i.e. Also strips "-SNAPSHOT" from end of name. "foo.bar-1.0-SNAPSHOT" to "FooBar"
      Parameters:
      basename -
      Returns:
    • convertToken

      protected static String convertToken(String basename, String token)
    • writeFile

      public static void writeFile(io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem target, String name, String output) throws IOException
      Throws:
      IOException
    • writeExecutableFile

      public static void writeExecutableFile(io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem target, String name, String output) throws IOException
      Throws:
      IOException
    • copyResource

      public static String copyResource(String resource) throws Exception
      Throws:
      Exception
    • generateScripts

      public static void generateScripts(String handler, io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem target) throws Exception
      Throws:
      Exception