Package com.pulumi

Interface Pulumi.API

  • All Known Implementing Classes:
    com.pulumi.internal.PulumiInternal, PulumiTestInternal
    Enclosing interface:
    Pulumi

    public static interface Pulumi.API
    Pulumi entrypoint operations.
    • Method Summary

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

      • run

        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

        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), Pulumi.withOptions(StackOptions)