Package com.pulumi.automation
Interface PulumiCommand
-
- All Known Implementing Classes:
LocalPulumiCommand
public interface PulumiCommandA Pulumi command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandResultrun(java.util.List<java.lang.String> args)Runs the Pulumi command with default options.CommandResultrun(java.util.List<java.lang.String> args, CommandRunOptions options)Runs the Pulumi command.Versionversion()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
-
-