runway.cfngin.lookups.registry module

CFNgin lookup registry.

runway.cfngin.lookups.registry.register_lookup_handler(lookup_type: str, handler_or_path: Union[str, Type[runway.lookups.handlers.base.LookupHandler]]) None[source]

Register a lookup handler.

Parameters
  • lookup_type – Name to register the handler under.

  • handler_or_path – A function or a path to a handler.

runway.cfngin.lookups.registry.unregister_lookup_handler(lookup_type: str) None[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 – Name of the lookup type to unregister.