runway.cfngin.lookups.registry module

CFNgin lookup registry.

runway.cfngin.lookups.registry.register_lookup_handler(lookup_type, handler_or_path)[source]

Register a lookup handler.

Parameters
  • lookup_type (str) – Name to register the handler under.

  • handler_or_path (Union[Callable, str]) – A function or a path to a handler.

runway.cfngin.lookups.registry.unregister_lookup_handler(lookup_type)[source]

Unregister the specified lookup type.

This is useful when testing various lookup types if you want to unregister the lookup type after the test runs.

Parameters

lookup_type (str) – Name of the lookup type to unregister.

runway.cfngin.lookups.registry.resolve_lookups(variable, context, provider)[source]

Resolve a set of lookups.

Parameters
Returns

Lookup -> resolved value

Return type

Dict[str, Any]