runway.cfngin.lookups.handlers.output module

AWS CloudFormation Output lookup.

class runway.cfngin.lookups.handlers.output.OutputLookup[source]

Bases: LookupHandler[CfnginContext]

AWS CloudFormation Output lookup.

TYPE_NAME: ClassVar[str] = 'output'

Name that the Lookup is registered as.

classmethod dependencies(lookup_query: VariableValue) set[str][source]

Calculate any dependencies required to perform this lookup.

Note that lookup_query may not be (completely) resolved at this time.

Parameters:

lookup_query – Parameter(s) given to this lookup.

Returns:

Stack names this lookup depends on.

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

Fetch an output from the designated stack.

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

  • context – Context instance.

Returns:

Output from the specified stack.

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

Retain support for legacy lookup syntax.

Format of value:

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

class runway.cfngin.lookups.handlers.output.OutputQuery[source]

Bases: NamedTuple

Output query NamedTuple.

static __new__(_cls, stack_name: str, output_name: str)

Create new instance of OutputQuery(stack_name, output_name)

output_name: str

Alias for field number 1

stack_name: str

Alias for field number 0

runway.cfngin.lookups.handlers.output.deconstruct(value: str) OutputQuery[source]

Deconstruct the value.