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.
- 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:
OutputDoesNotExist – Output not found for Stack.
StackDoesNotExist – Stack not found for the name provided.
- 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.
- runway.cfngin.lookups.handlers.output.deconstruct(value: str) OutputQuery [source]¶
Deconstruct the value.