searcher_finder#

All AWS resource searchers are defined as variables in the aws_resource_search.res.${service}.py module. We don’t want to import them manually in the code; instead, we need a lazy-loading mechanism to import them programmatically based on the resource type.

class aws_resource_search.searcher_finder.SearcherFinder(searcher_cache: ~typing.Dict[str, T_SEARCHER] = <factory>)[source]#

This is a helper class to access the implemented searcher metadata, and also import the per-aws-resource-type searcher object.

reload()[source]#

Reload the lookup data from aws_resource_search/searchers.json.

all_resource_types() List[str][source]#

Return all resource types.

is_valid_resource_type(resource_type: str) bool[source]#

Check if the resource type is supported.

import_searcher(resource_type: str) T_SEARCHER[source]#

Import the searcher object by resource type, it uses cache to avoid loading the same module multiple times.