Package com.pulumi

Interface Context

All Superinterfaces:
ConfigContext, OutputContext

public interface Context extends OutputContext, ConfigContext
Provides the current stack context used in the stack callback.
  • Method Details

    • projectName

      String projectName()
      Returns:
      the name of the current project
    • stackName

      String stackName()
      Returns:
      the name of the current stack
    • organizationName

      default String organizationName()
      Returns:
      the name of the current organization
    • log

      Returns:
      the logger context
    • export

      @CanIgnoreReturnValue Context export(String name, Output<?> output)
      Append an Output to exported stack outputs.

      This method mutates the context internal state.

      Parameters:
      name - name of the Output
      output - the Output value
      Returns:
      the current Context
    • export

      @CanIgnoreReturnValue default <T> Context export(String name, T output)
      Append an Output value to exported stack outputs.

      This method mutates the context internal state.

      Parameters:
      name - name of the Output
      output - the plain output value
      Returns:
      the current Context