runway.cfngin.lookups.handlers.rxref module

Handler for fetching outputs from a stack in the current namespace.

class runway.cfngin.lookups.handlers.rxref.RxrefLookup[source]

Bases: LookupHandler[CfnginContext]

Rxref lookup.

TYPE_NAME: ClassVar[str] = 'rxref'

Name that the Lookup is registered as.

classmethod handle(value: str, context: CfnginContext, *, provider: Provider, **_: Any) Any[source]

Fetch an output from the designated stack in the current namespace.

The output lookup supports fetching outputs from stacks created within a single config file. Sometimes it’s useful to fetch outputs from stacks created outside of the current config file but using the same namespace. rxref supports this by using the runway.context.CfnginContext to expand the fqn of the stack.

Parameters:
  • value – Parameter(s) given to this lookup. “<relative-stack-name>.<OutputName>`

  • context – Context instance.

  • provider – Provider instance.

classmethod legacy_parse(value: str) tuple[OutputQuery, ParsedArgsTypeDef][source]

Retain support for legacy lookup syntax.

Format of value:

<relative-stack-name>::<OutputName>