Package com.pulumi.automation
Class LocalPulumiCommand
java.lang.Object
com.pulumi.automation.LocalPulumiCommand
- All Implemented Interfaces:
PulumiCommand
A
PulumiCommand implementation that uses a locally installed Pulumi CLI.-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalPulumiCommandcreate()Creates a newLocalPulumiCommandinstance.static LocalPulumiCommandcreate(LocalPulumiCommandOptions options) Creates a newLocalPulumiCommandinstance.run(List<String> args, CommandRunOptions options) Runs the Pulumi command.version()The version of the Pulumi CLI that is being used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pulumi.automation.PulumiCommand
run
-
Method Details
-
create
Creates a newLocalPulumiCommandinstance.- Returns:
- a new
LocalPulumiCommandinstance - Throws:
AutomationException- if an error occurs
-
create
public static LocalPulumiCommand create(LocalPulumiCommandOptions options) throws AutomationException Creates a newLocalPulumiCommandinstance.- Parameters:
options- options to configure theLocalPulumiCommand- Returns:
- a new
LocalPulumiCommandinstance - Throws:
AutomationException- if an error occurs
-
version
Description copied from interface:PulumiCommandThe version of the Pulumi CLI that is being used.- Specified by:
versionin interfacePulumiCommand- Returns:
- the version of the Pulumi CLI or
null
-
run
Runs the Pulumi command.- Specified by:
runin interfacePulumiCommand- 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
-