Package com.pulumi.automation
Class LocalWorkspaceOptions.Builder
java.lang.Object
com.pulumi.automation.LocalWorkspaceOptions.Builder
- Enclosing class:
- LocalWorkspaceOptions
Builder for
LocalWorkspaceOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theLocalWorkspaceOptions.environmentVariables(Map<String, String> environmentVariables) Environment values scoped to the current workspace.A custom logger instance that will be used for inline programs.The inline program to be used for Preview/Update operations.projectSettings(ProjectSettings projectSettings) The settings object for the current project.pulumiCommand(PulumiCommand pulumiCommand) The Pulumi CLI installation to use.pulumiHome(Path pulumiHome) The directory to override for CLI metadata.secretsProvider(String secretsProvider) The secrets provider to use for encryption and decryption of stack secrets.stackSettings(Map<String, StackSettings> stackSettings) A map of Stack names and corresponding settings objects.The directory to run Pulumi commands and read settings (Pulumi.yaml and Pulumi.{stack}.yaml).
-
Method Details
-
workDir
The directory to run Pulumi commands and read settings (Pulumi.yaml and Pulumi.{stack}.yaml).- Parameters:
workDir- the work directory- Returns:
- the builder
-
pulumiHome
The directory to override for CLI metadata.- Parameters:
pulumiHome- the pulumi home directory- Returns:
- the builder
-
pulumiCommand
The Pulumi CLI installation to use.- Parameters:
pulumiCommand- the pulumi command- Returns:
- the builder
-
secretsProvider
The secrets provider to use for encryption and decryption of stack secrets.See: https://www.pulumi.com/docs/intro/concepts/secrets/#available-encryption-providers
- Parameters:
secretsProvider- the secrets provider- Returns:
- the builder
-
program
The inline program to be used for Preview/Update operations.If none is specified, the stack will refer to
ProjectSettingsfor this information.- Parameters:
program- the program- Returns:
- the builder
-
logger
A custom logger instance that will be used for inline programs. Note that it will only be used if an inline program is also provided.- Parameters:
logger- the logger- Returns:
- the builder
-
environmentVariables
Environment values scoped to the current workspace. These will be supplied to every Pulumi command.- Parameters:
environmentVariables- the environment variables- Returns:
- the builder
-
projectSettings
The settings object for the current project.If provided when initializing
LocalWorkspacea project settings file will be written to when the workspace is initialized viaLocalWorkspace.saveProjectSettings(ProjectSettings)- Parameters:
projectSettings- the project settings- Returns:
- the builder
-
stackSettings
A map of Stack names and corresponding settings objects.If provided when initializing
LocalWorkspacestack settings file(s) will be written to when the workspace is initialized viaLocalWorkspace.saveStackSettings(String, StackSettings)- Parameters:
stackSettings- the stack settings- Returns:
- the builder
-
build
Builds theLocalWorkspaceOptions.- Returns:
- the options
-