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 Context
export(java.lang.String name, Output<?> output)
Append anOutput
to exported stack outputs.default <T> Context
export(java.lang.String name, T output)
Append anOutput
value to exported stack outputs.LoggingContext
log()
default java.lang.String
organizationName()
java.lang.String
projectName()
java.lang.String
stackName()
-
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 anOutput
to exported stack outputs.This method mutates the context internal state.
- Parameters:
name
- name of theOutput
output
- theOutput
value- Returns:
- the current
Context
-
-