View a markdown version of this page

PostLineageEvent - AWS Glue

PostLineageEvent

Publishes a lineage event to the AWS Glue Data Catalog. The event describes a run and the datasets that it reads and writes. AWS Glue uses the event to build the lineage graph that you retrieve with GetLineageNode.

Request Syntax

{ "Event": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Event

The lineage event that you want to post, in OpenLineage format. Supported event types are run events and dataset events.

Type: String

Length Constraints: Maximum length of 300000.

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

Access to a resource was denied.

Message

A message describing the problem.

HTTP Status Code: 400

ConflictException

The CreatePartitions API was called on a table that has indexes enabled.

Message

A message describing the problem.

HTTP Status Code: 400

InternalServiceException

An internal service error occurred.

Message

A message describing the problem.

HTTP Status Code: 500

InvalidInputException

The input provided was not valid.

FromFederationSource

Indicates whether or not the exception relates to a federated source.

Message

A message describing the problem.

HTTP Status Code: 400

ResourceNumberLimitExceededException

A resource numerical limit was exceeded.

Message

A message describing the problem.

HTTP Status Code: 400

ThrottlingException

The throttling threshhold was exceeded.

Message

A message describing the problem.

HTTP Status Code: 400

Examples

Example

The following example posts an OpenLineage run event for a job that reads one table and writes another. The operation returns an empty response.

aws glue post-lineage-event \ --event '{"eventType":"COMPLETE","eventTime":"2026-11-14T06:42:00.000Z","run":{"runId":"0193a1b2-7c4d-7e5f-8a9b-0c1d2e3f4a5b"},"job":{"namespace":"etl","name":"build_daily_sales"},"inputs":[{"namespace":"s3://example-bucket","name":"raw/orders"}],"outputs":[{"namespace":"s3://example-bucket","name":"curated/daily_sales"}],"producer":"https://example.com/producer","schemaURL":"https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/RunEvent"}' {}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: