Package com.pulumi.automation
Class LocalWorkspaceOptions
java.lang.Object
com.pulumi.automation.LocalWorkspaceOptions
Extensibility options to configure a
LocalWorkspace; e.g: settings to
seed and environment variables to pass through to every command.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a new builder forLocalWorkspaceOptions.Environment values scoped to the current workspace.logger()A custom logger instance that will be used for inline programs.program()The inline program to be used for Preview/Update operations if any.The settings object for the current project.The Pulumi CLI installation to use.The directory to override for CLI metadata.The secrets provider to use for encryption and decryption of stack secrets.A map of Stack names and corresponding settings objects.workDir()The directory to run Pulumi commands and read settings (Pulumi.yaml and Pulumi.{stack}.yaml).
-
Field Details
-
Empty
An empty set of options.
-
-
Method Details
-
builder
Returns a new builder forLocalWorkspaceOptions.- Returns:
- the builder
-
workDir
The directory to run Pulumi commands and read settings (Pulumi.yaml and Pulumi.{stack}.yaml).- Returns:
- the work directory
-
pulumiHome
The directory to override for CLI metadata.- Returns:
- the pulumi home directory
-
pulumiCommand
The Pulumi CLI installation to use.- Returns:
- the pulumi command
-
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
- Returns:
- the secrets provider
-
program
The inline program to be used for Preview/Update operations if any.If none is specified, the stack will refer to
ProjectSettingsfor this information.- Returns:
- the program
-
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.- Returns:
- the logger
-
environmentVariables
Environment values scoped to the current workspace. These will be supplied to every Pulumi command.- Returns:
- the environment variables
-
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)- Returns:
- the project settings
-
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)- Returns:
- the stack settings
-