Informatica Provider API Reference¶
This section describes the main public classes and methods provided by the Informatica provider for Apache Airflow.
Hooks¶
InformaticaEDCHook¶
The InformaticaEDCHook provides low-level access to the Informatica Enterprise Data Catalog (EDC) REST API. It handles authentication, connection configuration, and common EDC operations such as retrieving catalog objects and creating lineage links.
Initialization Example:
from airflow.providers.informatica.hooks.edc import InformaticaEDCHook
hook = InformaticaEDCHook(informatica_edc_conn_id="my_informatica_conn")
Key Methods:
get_object(object_id: str, include_ref_objects: bool = False) -> dictRetrieves a catalog object by its identifier from EDC.
- param object_id:
EDC object identifier (e.g., “
edc://object/table_123”)- param include_ref_objects:
Whether to include referenced objects (default: False)
- returns:
Dictionary containing object data
object_data = hook.get_object("edc://object/table_123")
create_lineage_link(source_object_id: str, target_object_id: str) -> dictCreates a lineage relationship between source and target objects in EDC.
- param source_object_id:
Source object identifier
- param target_object_id:
Target object identifier
- returns:
Dictionary containing operation result
result = hook.create_lineage_link("source_id", "target_id")
Extractors¶
InformaticaLineageExtractor¶
The InformaticaLineageExtractor uses an InformaticaEDCHook to extract lineage information from Informatica EDC and convert it to Airflow-compatible asset definitions. It is typically used internally by the provider’s plugin and listeners.
Initialization Example:
from airflow.providers.informatica.extractors.informatica import InformaticaLineageExtractor
from airflow.providers.informatica.hooks.edc import InformaticaEDCHook
hook = InformaticaEDCHook()
extractor = InformaticaLineageExtractor(edc_hook=hook)
Key Methods:
get_object(object_id: str) -> dictReturns Informatica catalog object by ID via the EDC hook.
create_lineage_link(source_object_id: str, target_object_id: str) -> dictCreates a lineage link between source and target objects via the EDC hook.
Plugins¶
InformaticaProviderPlugin¶
The InformaticaProviderPlugin registers event listeners that monitor Airflow task lifecycle events (start, success, failure) and trigger lineage extraction and EDC API calls. This plugin is loaded automatically when the provider is installed and enabled.
No manual instantiation is required. The plugin works transparently with any task that defines inlets and outlets.
Configuration Classes¶
InformaticaConnectionConfig¶
This dataclass holds Informatica EDC connection settings, including base URL, credentials, security domain, SSL verification, and provider metadata. It is constructed internally by the hook and not typically used directly by end users.
Error Handling¶
InformaticaEDCError¶
Custom exception raised when the Informatica EDC API returns an error or a request fails.
EDC API Endpoints Used¶
The Informatica provider uses the following EDC REST API endpoints:
GET /access/2/catalog/data/objects/{object_id}?includeRefObjects={true|false}— Retrieve catalog object detailsPATCH /access/1/catalog/data/objects— Create or update lineage relationships
See the configuration and usage guides for more details and complete examples.