Class LocalWorkspaceOptions.Builder

    • Method Detail

      • workDir

        public LocalWorkspaceOptions.Builder workDir​(java.nio.file.Path 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

        public LocalWorkspaceOptions.Builder pulumiHome​(java.nio.file.Path pulumiHome)
        The directory to override for CLI metadata.
        Parameters:
        pulumiHome - the pulumi home directory
        Returns:
        the builder
      • secretsProvider

        public LocalWorkspaceOptions.Builder secretsProvider​(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

        Parameters:
        secretsProvider - the secrets provider
        Returns:
        the builder
      • program

        public LocalWorkspaceOptions.Builder program​(java.util.function.Consumer<Context> program)
        The inline program to be used for Preview/Update operations.

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

        Parameters:
        program - the program
        Returns:
        the builder
      • logger

        public LocalWorkspaceOptions.Builder logger​(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.
        Parameters:
        logger - the logger
        Returns:
        the builder
      • environmentVariables

        public LocalWorkspaceOptions.Builder environmentVariables​(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.
        Parameters:
        environmentVariables - the environment variables
        Returns:
        the builder