Class LocalWorkspaceOptions


  • public class LocalWorkspaceOptions
    extends java.lang.Object
    Extensibility options to configure a LocalWorkspace; e.g: settings to seed and environment variables to pass through to every command.
    • Method Detail

      • workDir

        @Nullable
        public java.nio.file.Path workDir()
        The directory to run Pulumi commands and read settings (Pulumi.yaml and Pulumi.{stack}.yaml).
        Returns:
        the work directory
      • pulumiHome

        @Nullable
        public java.nio.file.Path pulumiHome()
        The directory to override for CLI metadata.
        Returns:
        the pulumi home directory
      • pulumiCommand

        @Nullable
        public PulumiCommand pulumiCommand()
        The Pulumi CLI installation to use.
        Returns:
        the pulumi command
      • secretsProvider

        @Nullable
        public java.lang.String 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

        @Nullable
        public java.util.function.Consumer<Context> program()
        The inline program to be used for Preview/Update operations if any.

        If none is specified, the stack will refer to ProjectSettings for this information.

        Returns:
        the program
      • logger

        @Nullable
        public java.util.logging.Logger 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

        public java.util.Map<java.lang.String,​java.lang.String> environmentVariables()
        Environment values scoped to the current workspace. These will be supplied to every Pulumi command.
        Returns:
        the environment variables