Package com.pulumi
Interface Pulumi
-
- All Known Implementing Classes:
com.pulumi.internal.PulumiInternal,PulumiTestInternal
public interface PulumiPulumi 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePulumi.APIPulumi entrypoint operations.
-
Method Summary
Static Methods Modifier and Type Method Description static voidrun(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.static Pulumi.APIwithOptions(StackOptions options)
-
-
-
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 withSystem.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),withOptions(StackOptions)
-
withOptions
static Pulumi.API withOptions(StackOptions options)
- Parameters:
options- theStackOptionsto use- Returns:
- a Pulumi program entrypoint with given
StackOptions - See Also:
run(Consumer),runAsync(Consumer)
-
-