apache_beam.yaml.yaml_enrichment module

apache_beam.yaml.yaml_enrichment.enrichment_transform(enrichment_handler: str, handler_config: Dict[str, Any], timeout: float | None = 30)[source]

The Enrichment transform allows one to dynamically enhance elements in a pipeline by performing key-value lookups against external services like APIs or databases.

Example using BigTable:

- type: Enrichment
  config:
    enrichment_handler: 'BigTable'
    handler_config:
      project_id: 'apache-beam-testing'
      instance_id: 'beam-test'
      table_id: 'bigtable-enrichment-test'
      row_key: 'product_id'
    timeout: 30

For more information on Enrichment, see the [Beam docs]( https://beam.apache.org/documentation/transforms/python/elementwise/enrichment/).

Parameters: