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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Contextexport(java.lang.String name, Output<?> output)Append anOutputto exported stack outputs.default <T> Contextexport(java.lang.String name, T output)Append anOutputvalue to exported stack outputs.LoggingContextlog()default java.lang.StringorganizationName()java.lang.StringprojectName()java.lang.StringstackName()-
Methods inherited from interface com.pulumi.context.ConfigContext
config, config
-
Methods inherited from interface com.pulumi.context.OutputContext
output
-
-
-
-
Method Detail
-
projectName
java.lang.String projectName()
- Returns:
- the name of the current project
-
stackName
java.lang.String stackName()
- Returns:
- the name of the current stack
-
organizationName
default java.lang.String organizationName()
- Returns:
- the name of the current organization
-
log
LoggingContext log()
- Returns:
- the logger context
-
export
@CanIgnoreReturnValue Context export(java.lang.String name, Output<?> output)
Append anOutputto exported stack outputs.This method mutates the context internal state.
- Parameters:
name- name of theOutputoutput- theOutputvalue- Returns:
- the current
Context
-
-