Retrieves a lineage node from the Glue Data Catalog, with the nodes immediately upstream and downstream of it. A node represents one dataset or one run in the lineage graph.
Parameters:
-
identifier
(LineageNodeIdentifier)
–
The identifier of the lineage node that you want to get. Both a lineage node identifier and the SourceIdentifier of the lineage node are supported.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_lineage_node(
self,
identifier: "capo_glue.types.lineage_node_identifier.LineageNodeIdentifier",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_lineage_node_response.GetLineageNodeResponse":
"""<p>Retrieves a lineage node from the Glue Data Catalog, with the nodes immediately upstream and downstream of it. A node represents one dataset or one run in the lineage graph.</p>
Args:
identifier: <p>The identifier of the lineage node that you want to get. Both a lineage node identifier and the <code>SourceIdentifier</code> of the lineage node are supported.</p>
Raises:
capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.get_lineage_node_request.GetLineageNodeRequest]",
) -> OperationResponse[
"capo_glue.types.get_lineage_node_response.GetLineageNodeResponse"
]:
import capo_glue._operations.aws_glue.get_lineage_node
output, http_response = (
capo_glue._operations.aws_glue.get_lineage_node.get_lineage_node(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetLineageNode")
)
input_: capo_glue.types.get_lineage_node_request.GetLineageNodeRequest = {
"identifier": identifier
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|