Package com.pulumi.automation
Class ProjectRuntimeOptions.Builder
java.lang.Object
com.pulumi.automation.ProjectRuntimeOptions.Builder
- Enclosing class:
- ProjectRuntimeOptions
Builder for
ProjectRuntimeOptions.-
Method Summary
Modifier and TypeMethodDescriptionApplies to Go, .NET, and Java projects only.build()Builds theProjectRuntimeOptions.buildTarget(String buildTarget) Applies to Go projects only.Applies to YAML projects only.Applies to NodeJS projects only.packagemanager(String packagemanager) Applies to NodeJS projects only.Applies to Python projects only.typechecker(String typechecker) Applies to Python projects only.typescript(Boolean typescript) Applies to NodeJS projects only.virtualenv(String virtualenv) Applies to Python projects only.
-
Method Details
-
typescript
Applies to NodeJS projects only. A boolean that controls whether to use ts-node to execute sources.- Parameters:
typescript- the typescript flag- Returns:
- the builder
-
nodeargs
Applies to NodeJS projects only. Arguments to pass tonode.- Parameters:
nodeargs- arguments to pass tonode- Returns:
- the builder
-
packagemanager
Applies to NodeJS projects only. The package manager to use for installing dependencies, either "npm" (default), "pnpm", or "yarn".- Parameters:
packagemanager- the package manager- Returns:
- the builder
-
buildTarget
Applies to Go projects only. Path to save the compiled go binary to.- Parameters:
buildTarget- the build target- Returns:
- the builder
-
binary
Applies to Go, .NET, and Java projects only.- Go: A string that specifies the name of a pre-build executable to look for on your path.
- .NET: A string that specifies the path of a pre-build .NET assembly.
- Java: A string that specifies the path of a pre-build Java JAR file or a JBang entry-point file to execute.
- Parameters:
binary- the binary- Returns:
- the builder
-
toolchain
Applies to Python projects only. The toolchain to use for managing virtual environments, either "pip" (default) or "poetry", or "uv".- Parameters:
toolchain- the toolchain- Returns:
- the builder
-
virtualenv
Applies to Python projects only. A string that specifies the path to a virtual environment to use when running the program.- Parameters:
virtualenv- the virtual environment- Returns:
- the builder
-
typechecker
Applies to Python projects only. The type checker library to use.- Parameters:
typechecker- the type checker- Returns:
- the builder
-
compiler
Applies to YAML projects only. Executable and arguments issued to standard out.- Parameters:
compiler- executable and arguments- Returns:
- the builder
-
build
Builds theProjectRuntimeOptions.- Returns:
- the project runtime options
-