Package com.pulumi

Interface Pulumi


  • public interface Pulumi
    Pulumi program entrypoint. Possible exit codes:
    • 0 - Process Exited Successfully
    • 1 - Process Exited Before Logging User Actionable Message
    • 32 - Process Exited After Logging User Actionable Message
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static void run​(java.util.function.Consumer<Context> stack)
      Run a Pulumi stack callback and wait for result.
      static java.util.concurrent.CompletableFuture<java.lang.Integer> runAsync​(java.util.function.Consumer<Context> stack)
      Run a Pulumi stack callback asynchronously.
    • Method Detail

      • run

        static void run​(java.util.function.Consumer<Context> stack)
        Run a Pulumi stack callback and wait for result.
        In case of an error terminates the process with System.exit(int)
        Parameters:
        stack - the stack to run in Pulumi runtime
        See Also:
        runAsync(Consumer)
      • runAsync

        static java.util.concurrent.CompletableFuture<java.lang.Integer> runAsync​(java.util.function.Consumer<Context> stack)
        Run a Pulumi stack callback asynchronously.
        Parameters:
        stack - the stack to run in Pulumi runtime
        Returns:
        a future exit code from Pulumi runtime after running the stack
        See Also:
        run(Consumer)