Package com.pulumi.automation
Interface PulumiCommand
-
- All Known Implementing Classes:
LocalPulumiCommand
public interface PulumiCommand
A Pulumi command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandResult
run(java.util.List<java.lang.String> args)
Runs the Pulumi command with default options.CommandResult
run(java.util.List<java.lang.String> args, CommandRunOptions options)
Runs the Pulumi command.Version
version()
The version of the Pulumi CLI that is being used.
-
-
-
Method Detail
-
version
@Nullable Version version()
The version of the Pulumi CLI that is being used.- Returns:
- the version of the Pulumi CLI or
null
-
run
CommandResult run(java.util.List<java.lang.String> args, CommandRunOptions options) throws AutomationException
Runs the Pulumi command.- Parameters:
args
- the arguments to pass to the commandoptions
- the options for running the command- Returns:
- the command result
- Throws:
AutomationException
- if the command fails
-
run
default CommandResult run(java.util.List<java.lang.String> args) throws AutomationException
Runs the Pulumi command with default options.- Parameters:
args
- the arguments to pass to the command- Returns:
- the command result
- Throws:
AutomationException
- if the command fails
-
-